miniBB ® miniBB®
miniBB Support Forums
 | Forums | Register | Reply | Search | Statistics | Manual |
Custom Tutorials and Modifications miniBB Support Forums / Custom Tutorials and Modifications /   

Displaying text / content for logged in users only

Author jmcurtusan
Guest
#1 | Posted: 31 Mar 2006 01:41 
how can i add links at the top to specific pages only if a user is loged in?

at the top where it shows

- Statistics - Search - Preferences - Logout - Members list

i would like to add some links for when a user is loged in

Author Team
8-)
#2 | Posted: 31 Mar 2006 09:29 
In bb_plugins.php you need to write a condition, for example:

if($user_id!=0){
//if $user_id is not equal to 0 it means he's logged in
$menuLink1='Link1';
$menuLink2='Link2';
}

then paste {$menuLink1} {$menuLink2} in main_header.html for example.

Custom Tutorials and Modifications miniBB Support Forums / Custom Tutorials and Modifications / Displaying text / content for logged in users only 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
Install the Captcha add-on: protect your miniBB-forums from the automated spam and flood.
Captcha Addon for miniBB