miniBB ® miniBB®
miniBB Support Forums
 | Forums | Register | Reply | Search | Statistics | 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 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