Tips and Tricks HQ Support

Support site for Tips and Tricks HQ premium products

  • Home
  • Contact Us
  • Documentation
  • Forum Home
    • Forum
    • Forum Search
    • Forum Login
    • Forum Registration
You are here: Home

Jeremy

  • Profile
  • Topics Started
  • Replies Created
  • Engagements
  • Favorites

Forum Replies Created

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • March 6, 2015 at 4:17 pm in reply to: eMember – add custom field verification for registration #68925
    Jeremy
    Member

    Thanks for pointing me to the right place. Do you know where I could locate the javascript error checking code for the registration form also? Figure I would add it for those using a browser that supports javascript. I will hunt around for it later today after I have finished up the php code but if you could point me to the right file it would save me time hunting for it.

    Here is a test snippet of code for those looking for a code example that come across this post,

    // Check if user entered a valid registration code

    $reg_code = $_POST;

    if ($reg_code !== “1234”) {

    $output .= ‘<span class=”emember_error”>Bad registration code. Go back and retry your registration code.</span>’;

    $emember_config->set_stacked_message(’emember_full_registration’, array(‘type’ => ‘warning’, ‘message’ => $output));

    return;

    }

    March 5, 2015 at 8:52 pm in reply to: eMember – add custom field verification for registration #68923
    Jeremy
    Member

    I would prefer to do the check in php as I don’t want to rely on javascript for the form checking. I just need help in figuring out what php file I need to add my code checking to.

    March 4, 2015 at 10:47 pm in reply to: eMember – add custom field verification for registration #68921
    Jeremy
    Member

    No email verification link would be used for registration.

    Client wants to have each of its reps to have a unique registration code that they can hand out to customers. Then when the customer registers they will enter this registration code in the registration form in a custom field called “Registration Code”. When they hit submit i want to compare the value of that code with a database of valid codes (which I will do custom code for). If the code is a valid code then I will allow them to register, if not then throw an error letting them know it is not a valid code.

    So we want it so you have to have a valid registration code to register on the site so I need to know where to find the registration processing code is to add this custom code in.

    November 6, 2014 at 10:08 pm in reply to: eMember – Php code to check if a post is protected #66628
    Jeremy
    Member

    Sorry my question was typed out slightly wrong, should of been,

    Is there anyway to find out if a post is protected wether the user is logged in or not?

  • Author
    Posts
Viewing 4 posts - 1 through 4 (of 4 total)

Forum Related

  • Forum Home
  • Forum Search
  • Forum Registration
  • Forum Login

Support Related Forms

  • Contact Us
  • Customer Support
  • Request a Plugin Update
  • Request Fresh Download Links

Useful Links

  • Plugin Upgrade Instructions
  • WP eStore Documentation
  • WP eMember Documentation
  • WP Affiliate Platform Documentation
  • Tips and Tricks HQ Home Page
  • Our Projects

Quick Setup Video Tutorials

  • WP eStore Video Tutorial
  • WP eMember Video Tutorial
  • WP Affiliate Platform Video Tutorial
  • Lightbox Ultimate Video Tutorial

Our Other Plugins

  • WP Express Checkout
  • Stripe Payments Plugin
  • Simple Shopping Cart Plugin
  • Simple Download Monitor

Copyright © 2025 | Tips and Tricks HQ