miniBB ® 

miniBB

®
Support Forums
  
 | Start | Register | Search | Statistics | File Bank | Manual |
Custom Tutorials and Modifications miniBB Support Forums / Custom Tutorials and Modifications /  
 

"You have to register" message for Guests

 
Author Anonymous
Guest
#1 | Posted: 26 Feb 2005 18:01 
Everyone can read my forums, but only registeret users can post.

Can i make a message to anonymous users like "You have to register, before you can post" in the threads?

Thanks, Michael

Author Team
8-)
#2 | Posted: 26 Feb 2005 18:21 
I think, you can write this message in one of the templates, for example, main_posts or main_topics, or both.

Author Anonymous
Guest
#3 | Posted: 26 Feb 2005 18:39 
Thanks a lot for your reply!

Can members who are logged in, still read these messages, then?

Author Team
8-)
#4 | Posted: 26 Feb 2005 18:46 
Yes.. If you want they don't see this message, program a simple plugin based on $user_id.

Author Anonymous
Guest
#5 | Posted: 26 Feb 2005 18:56 
Can you give me an example?
Mic

Author Team
8-)
#6 | Posted: 26 Feb 2005 19:08 
Insert this in bb_plugins:

if($user_id==0) $displayAnonymousWarning='You have to register, before you can post!'; else $displayAnonymousWarning='';

and insert {$displayAnonymousWarning} in whatever template you want.

Author Anonymous
Guest
#7 | Posted: 26 Feb 2005 19:16 
How nice this is!?? what a support you deliver here, thank you so much!!!

Author Team
8-)
#8 | Posted: 26 Feb 2005 19:31 
I am just online this Saturday, so... :)

Custom Tutorials and Modifications miniBB Support Forums / Custom Tutorials and Modifications /
 "You have to register" message for Guests
 Share Topic's Link

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


  ?
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
Try the Captcha add-on: protect your miniBB-forums from the automated spam and flood.


  ⇑