miniBB ® miniBB®
miniBB Support Forums
 | Forums | Register | Reply | Search | Statistics | Manual |
Master Class miniBB Support Forums / Master Class /   

how to keep alive a php variable

Author inglyber
Registered
#1 | Posted: 9 Oct 2009 09:49 
hi there, sorry for my bad english.
My problem is the following:
i arrive to the index page of the forum with a custom php variable called 'id' like that
www.?????.com/forum/index.php?id=xxxxxxx

i arrive to show in my header the content with {$id}

i want to keep this variable id alive all the time when i use the forum.
for this moment, when i click to any link , like vthread etc, i loose the variable content in the next page id =

all information about keeping alive a variable all the time are welcome.

Many thanks to all

Author Paul
Lead Developer
#2 | Posted: 9 Oct 2009 14:13 
Try to define it under $indexphp of setup_options.php.

$indexphp='index.php?id=xxxx&';

It will work only for non-mod_rewritten pages. If you have mod_rewrite rules, you will need to add this id to their references as well.

Author inglyber
Registered
#3 | Posted: 12 Oct 2009 03:20 
Many thanks for your answer.

it works 100%

Thanks a lot

Bruno

Master Class miniBB Support Forums / Master Class / how to keep alive a php variable Top

Your Reply Click this icon to move up to the quoted message

 Short link for this topic:

 ?
Only registered users are allowed to post here. Please, enter your username/password details upon posting a message, or register first.


Before posting, make sure your message is compliant with our forum posting rules. If not, it may be locked or deleted with no explanation.
 
miniBB Support Forums Powered by Forum Software miniBB ® Features  Requirements  Demo  Download  Showcase  Gallery of Arts
Compiler  Premium Extensions  Premium Support  License  Contacts
Get the Captcha add-on: protect your miniBB-forums from the automated spam and flood.
Captcha Addon for miniBB