egSuperBusiness: Creating new custom Php page in members area
Search:
Creating new custom Php page in members area

To add new custom php page in members area, please follow these instructions:

1) Php files for members area should be located in "public_html/modules/", So you may create the php file then save to public_html/modules/members_new_page.php ,

2) Create html template file then save to public_html/themes/***tpl_name***/member/members_new_page.html ,

3) Open public_html/members.php then add the page query:  

case 'new_page':
            require_once (DOCSPATH . 'modules/members_new_page.php');
            break;

This will allow you to set the url to members.php?pa=new_page

4) Open members_new_page.php then write your php codes, Use function "display_member_page" to output.

Example:

display_member_page('members_new_page.html');

If you have php variables to output, you may arrange them in array then include to function display_member_page.

Example:

$show_array = array(
   'var1' => 'my var1 value',
   'var2' => 'my var2 value', 
   'var3' => 'my var3 value'
);

display_member_page('members_new_page.html', $show_array);

5)  Open http://yoursite.com/members.php?pa=new_page to see your  new page

 

Other tutorials in egSuperBusiness:

 

Popular Tutorials:


Testimonial

Renato from Australia:
 Hi there EGN Software, I have bought a couple of your products in the past, and currently the Viral Shop script. My experience has been very good support, and all questions answered as needed. In addition, the products seem to work very well. Have not noticed any problems. Lots of thought, and design went into this script, and its very feature packed. This does not happen fast, but takes a lot of hard work and effort to produce a good product. I would like to recommend EGN Software. I setup the Viral Shop script and its working fine, and this is a very good company to deal with, no problems with them. Due to my privacy I have not displayed my email address for public viewin... 

Latest News

Accepted Payments

Copyright © 2007 - 2026 EGN Software, All rights reserved

Talk to us?