miniBB Support Forums | 15 years on The Web
miniBB ®

miniBB

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

how to keep alive a php variable

 
Author inglyber
Partaker
#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
Partaker
#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
 Share Topic's Link

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


 ?
You are welcome to post anonymously, by entering a nickname with no password (if the similar Username has not been taken yet), or by leaving both fields empty. If you have a forums account, you can also sign in from this page without posting a message, or sign in and post at once.


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  Contact Us
Install the Captcha add-on: protect your miniBB-forums from the automated spam and flood.
↑ TOP