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

Special rankings assigned to the whole group?

Author ben
Registered
#1 | Posted: 21 Jul 2006 17:01 
hi all,

I understand the custom titles setup as follows:

$userRanks=array(1=>'Boss', 17=>'Team member', 9=>'Team member');

so ID=>'Title'

my question is, can this be done like the moderation ie:

'Title'=>array(ID1,ID2);

thanks for your time,

-Ben

Author ben
Registered
#2 | Posted: 21 Jul 2006 17:02 | Edited by: ben 
just hit me as I was re-reading my post.

can one subscribe to a thread without posting?

Author tom322
Registered
#3 | Posted: 21 Jul 2006 18:43 
can one subscribe to a thread without posting?
yes -set $EMPTYSUBSCRIBE =TRUE in setup_options.php

Author ben
Registered
#4 | Posted: 21 Jul 2006 20:35 
ah thanks :)

Author Paul
Lead Developer
#5 | Posted: 22 Jul 2006 12:23 | Edited by: Paul 
Ok, try to insert the code below to bb_specials.php. If you paste before $userRanks, it will override any $userRanks you already have; else vice versa.

/* Group rankings */

$userRanksTitles=array();
$userRanksTitles[1]['title']='Votre titre';
$userRanksTitles[1]['ids']=array(1,9);

/* The same code goes for $userRanksTitles[2]['title'], $userRanksTitles[2]['ids']; $userRanksTitles[3]['title'], $userRanksTitles[3]['ids']; $userRanksTitles[4]['title'], $userRanksTitles[4]['ids'] etc.
*/

if(sizeof($userRanksTitles)>0){
foreach($userRanksTitles as $ut){
foreach($ut['ids'] as $us_id){
$userRanks[$us_id]=$ut['title'];
}
}
}

/* --Group rankings */

Author ben
Registered
#6 | Posted: 25 Jul 2006 15:37 
this worked well, thanks :)

Custom Tutorials and Modifications miniBB Support Forums / Custom Tutorials and Modifications / Special rankings assigned to the whole group? 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
Try the Captcha add-on: protect your miniBB-forums from the automated spam and flood.
Captcha Addon for miniBB