miniBB ® 

miniBB

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

Using bb_special's $userRanks

 
 
Page  Page 2 of 2:  « Previous  1  2

Author Team
8-)
#16 | Posted: 6 Jun 2005 22:05 
Set manually any text rank, image rank, any HTML rank in this property.

Author Barely_breaking_Even
Partaker
#17 | Posted: 11 Jun 2006 05:05 
11 Jun 2006 11:49 - Attached on mergeing:
admin probs

I read a the previous post on how an admin can change ranking. I pasted to code and uploaded the file, but when i search for all my members and go to anyone of them, it still doesn't give me the option of chaninging ranks. So far this is what i did:
Edit bb_specials.php, directly after <? type:

$Ranks=array("Rank1","Rank2","Rank3","Rank4","Rank5");

And change $userRanks to:

$userRanks=array(1=>$Ranks[0],2=>$Ranks[1],3=>$Ranks[2]
, 4=>$Ranks[2],5 =>$Ranks[1],6=>$Ranks[3],7=>$Ranks[4],8=>$Ranks[3],9=>$Ranks[5],10=>$R anks[5]);

Author realitybytes
Partaker
#18 | Posted: 11 Jun 2006 09:43 
check the manual

https://www.minibb.com/forums/manual.html#userrankings

What you have posted above is an exampe that will result in user id 1 displaying Rank1 which is Admin by default.

user id 2 displaying Rank2 which is Member by default then so on through your array

Author Barely_breaking_Even
Partaker
#19 | Posted: 11 Jun 2006 10:12 
i've done that as well, however, what i'm looking for is how to make someone an admin as well as lower ranking.

Author realitybytes
Partaker
#20 | Posted: 11 Jun 2006 11:06 
There is only one admin account in minibb and that is user id 1 the first user created.

outside of that you have moderators

https://www.minibb.com/forums/manual.html#modsarray

Author michael1234
Partaker
#21 | Posted: 2 Jan 2007 17:23 
$userRanks=array(1=>'<img src="./img/smilies/cool.gif" width=15 height=15 border=0 alt="8-)">');

How do you change this for more than one person?

Author Paul
Lead Developer 
#22 | Posted: 3 Jan 2007 04:35 
Basically you need to specify user ID. In the example above, 1 is ID for the admin. For example, if I would specify custom rank for myself on these forums, it would look like:

$userRanks=array(
1=>'<img src="./img/smilies/cool.gif" width=15 height=15 border=0 alt="8-)">',
9=>'miniBB Developer'
);

Author Anonymous
Guest
#23 | Posted: 28 Sep 2007 09:29 
Is there a way to assign a gif image to those userranks without having to write several array statements?

$userRanks=array(
1=>'<img src="http://www.domain.com/icon.gif" width=20 height=20>',
2=>'<img src="http://www.domain.com/icon.gif" width=20 height=20>',

I have about 300 members I need to do this for. Is this the only way or is there a way to write it as a list of users for example:

$UserRanks=array(1,2,3,4,5,6,7,8,9....

then define the icon of choice?

Thanks...

Author Paul
Lead Developer 
#24 | Posted: 1 Oct 2007 04:13 
$userRankingGroup=array(1,2,3,4,5...); // <-- list user IDs here which needs to be assigned to the rank

foreach($userRankingGroup as $ug) $userRanks[$ug]='<img src="http://www.domain.com/icon.gif" width=20 height=20>';

Author 666
Guest
#25 | Posted: 23 Oct 2007 16:05 
I have used $userRanks... I created $userRanks2 and it works :D
thx alot paul

Author Prince
Partaker
#26 | Posted: 17 Aug 2011 02:47 
Is there any limitation for "User Rank" in bb_special.php?

Like how many users can be ranked on it?

Author Paul
Lead Developer 
#27 | Posted: 17 Aug 2011 12:02 
There is no limitation - it's up to you, whatever big list you can handle.

Though I'm not sure why this list should be or could be big, if this is only for "selected" users, for special users. Special users are minority ;)

Author Prince
Partaker
#28 | Posted: 17 Aug 2011 14:55 
Paul:
for special users. Special users are minority ;)
Because I've moderator for Forums, so I rank them with forums name like: (Mod of "forum name"). and also some users.

Author Paul
Lead Developer 
#29 | Posted: 17 Aug 2011 17:05 
This is not the large list. Sure, $userRanks array can handle it.

Page  Page 2 of 2:  « Previous  1  2 
How To miniBB Support Forums / How To /
 Using bb_special's $userRanks
 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
Proceed with the Captcha add-on: protect your miniBB-forums from the automated spam and flood.


  ⇑