Support » Fixing WordPress » e-Commerce and WordPress

  • Hello, I have a client who is using WordPress, the temporary site is located here: The company would like to “password protect” pages for members only, and they would also like to sell products somewhere down the line. They are working with a company that supplies the e-Commerce and payment gateway. The e-Commerce company deals with all membership, payment and even the cookies that show whether a member is logged in.

    What they need from me is a way to get the below plugin to show up on only certain pages.

     * @package Remote_Auth
     * @version 1.0
    Plugin Name: Remote Auth
    Plugin URI:
    Description: Authenticate against remote server.
    Author: AT Integrated
    Version: 1.0
    Author URI:
    function checkuser(){
    	echo "<div id='auth'>Authenticated</div>";
    	//this is where the authentication code will reside.
    	//Currently it writes this div to show that it executed.
    	//You need to gigure out how to make it execute on some posts and not on others
    // Now we set that function up to execute when the admin_notices action is called
    add_action( 'get_header', 'checkuser' );
    // We need some CSS to position the paragraph
    function auth_css() {
    	echo "
    	<style type='text/css'>
    		{ margin:20px auto; width:100px; background-color:#FFFFCC; color:#FF0000; border:1px solid #000000; padding:20px;}

    They have everything else written – according to them – and only need this to show on certain pages. So, I have three questions. Is there a quick way to make this happen on only certain pages? Two, Is there a way to make this work with Blog pages as well? Three, Has anyone written a plugin to make this work?

    Thanks in advance!


  • The topic ‘e-Commerce and WordPress’ is closed to new replies.