miniBB ®

miniBB

®
Support Forums
  
 · Start · Sign in · Register · Search · Statistics · File Bank · 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:41Reply Quote
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:29Reply Quote
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
 Share Topic's Link

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

BB code for the Bold StyleBB code for the Italic StyleBB Code for the PictureBB code for the URLUpload a File

  ?
Post as a Guest, leaving the Password field blank. You could also enter a Guest name, if it's not taken by a member yet. Sign-in and post at once, or just sign-in, bypassing the message's text.


Before posting, make sure your message is compliant with forum rules; otherwise it could be locked or removed with no explanation.

 

 
miniBB Support Forums Powered by Forum Software miniBB ® Home  Features  Requirements  Demo  Download  Showcase  Gallery of Arts
Compiler  Premium Extensions  Premium Support  License  Contact Us
Check out the File and Picture Attachments add-on: extend your miniBB-forums, attaching images and files.