miniBB ® 

miniBB

®
Support Forums
  
 | Start | Register | Search | Statistics | File Bank | Manual |
FAQ miniBB Support Forums / FAQ /  
 

forum for registered users only (the $allForumsReg option and its variations)

 
 
Page  Page 4 of 6:  « Previous  1  2  3  4  5  6  Next »

Author Paul
Lead Developer 
#46 | Posted: 8 Jun 2006 09:17 
it opens up a whole new wave of ideas and possabilities for addons

It always was opened, in general :-) I understand now, that we have not documented in full all features of miniBB for coders, so maybe these small snippets will give an idea how to work with them.

Author shedrock
Partaker
#47 | Posted: 10 Jun 2006 12:39 
This is awesome!. It works like a charm.

Author Rajeev
Partaker
#48 | Posted: 26 Jul 2006 12:02 
Hello There

I have recently done $allForumsReg=TRUE but still any one can post anonymously. Could you please help.

Author Paul
Lead Developer 
#49 | Posted: 26 Jul 2006 12:16 
Be sure you have uncommented this option.

$allForumsReg=TRUE;

not

//$allForumsReg=TRUE;

Author Nejib1
Guest
#50 | Posted: 30 Jul 2006 11:53 
Paul

Your tips works great - just some partiicular forums are out of sight from unregistered users.

Author Paul
Lead Developer 
#51 | Posted: 31 Jul 2006 08:18 
Sorry, I didn't understand your latest reply. Was my advice helpful? Are you having more troubles with something?..

Author Sounds
Guest
#52 | Posted: 2 Aug 2006 04:19 
Hi,

Would i be right in saying,
If i'm using //$allForumsReg=TRUE;
I just take off the two // in front of it,
And this causes unregistered users trying to post,
to get a popup window saying "you are not allowed to preform this action"
So basicaly everybody has to be a registered member to post?

If i'm right about this, where would i change the text in that popup window
To let the users know they have to become a member to post etc..

Am i on the right track with this?

Later thanks

Author Team
8-)
#53 | Posted: 2 Aug 2006 07:58 
Sounds
I think, this text is already built-in by default. When you typed your message on our board, you should see sentense "You can post anonymously, entering just a nickname without password, if username is not taken by another member; or leaving both fields empty." under the login fields. If it would be disallowed for anonymous to post, you should see a message "Only registered users can post here. Enter your login/password correctly before posting a message, or register first."

As Ivan wrote, these sentenses may be changed in language pack ($l_anonAllowed and $l_anonDisallowed variables).

We think it's enough for users to know what they should do; anyway, if somebody posts anonymously, he will not lose his posting anyway, because the next screen will report a warning and display his message. This works as described in newest version of miniBB, of course, and we have no plans to change something regarding that.

Author raita
Guest
#54 | Posted: 20 Aug 2006 21:29 
as said, works like a charm ;)

Author Ivan
Advanced Member
#55 | Posted: 23 Aug 2006 04:55 
Hi Paul!

How can I totally hide certain forum and its topics from the front page and in the same time all registered and loggen in users to view it and to write in it? I somehow cannot see the solution...

Author Paul
Lead Developer 
#56 | Posted: 23 Aug 2006 08:13 
The solution would be quite simple... Define $clForums and $clForumsUsers arrays in bb_specials.php as if it was the closed forum with no users. For example:

$clForums=array(FORUM_ID1, FORUM_ID2... );
$clForumsUsers[FORUM_ID1]=array();
$clForumsUsers[FORUM_ID2]=array();
...

then at the end of the language pack, paste the following:

if($user_id!=0) {
$clForumsUsers[FORUM_ID1][]
=$user_id;
$clForumsUsers[FORUM_ID2][]
=$user_id;
//...
}

I've checked it and it should work...

Author Ivan
Advanced Member
#57 | Posted: 23 Aug 2006 09:03 
Thank you! Simple, but very useful! :)

Greetings :)

Author mermer
Guest
#58 | Posted: 8 Feb 2008 01:41 
sir i also want to know how to make some forums only viewable and edittable only by registered users...
how sir pls...
help....
i already have time limit in our organization...
i must finish it in 2 days...

thnk you very much si

Author Paul
Lead Developer 
#59 | Posted: 8 Feb 2008 03:42 
There is some code to paste at the end of the language pack (that works if you have specified $regUsrForums array of registered-users-only forums - for hiding all forums from guests locate the hack posted above in this thread):

/* Hack - hiding registered users only forums from guests */
if($user_id==0){
foreach($regUsrForums as $key){
if(!in_array($key, $clForums)) { $clForums[]=$key; $clForumsUsers[$key]=array(); }
}
}
/* --Hack - hiding registered users only forums from guests */
Btw... all urgent tasks are subject of our paid support only. How your organization could be related to our own terms?..

Author mermer
Guest
#60 | Posted: 9 Feb 2008 03:46 
thnk you very much sir....!!!!

Page  Page 4 of 6:  « Previous  1  2  3  4  5  6  Next » 
FAQ miniBB Support Forums / FAQ /
 forum for registered users only (the $allForumsReg option and its variations)
 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
Install the Captcha add-on: protect your miniBB-forums from the automated spam and flood.


  ⇑