minibb®
Fight the automated spam - protect your miniBB-forums,
getting the Captcha addon! Click here to read more.
Captcha Addon for miniBB
Community Forum
 | Forums | File Bank | Sign Up | Reply | Search | Statistics | Manual |
How To miniBB Community Forum / How To /

Using bb_special's $userRanks

 Page:  ««  1  2 
Team
8-)
#16 | Posted: 6 Jun 2005 22:05
Reply 
Set manually any text rank, image rank, any HTML rank in this property.
Barely_breaking_Even
Forums Member
#17 | Posted: 11 Jun 2006 05:05
Reply 
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]);
realitybytes
Forums Member
#18 | Posted: 11 Jun 2006 09:43 | Edited by: realitybytes
Reply 
check the manual

http://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
Barely_breaking_Even
Forums Member
#19 | Posted: 11 Jun 2006 10:12
Reply 
i've done that as well, however, what i'm looking for is how to make someone an admin as well as lower ranking.
realitybytes
Forums Member
#20 | Posted: 11 Jun 2006 11:06
Reply 
There is only one admin account in minibb and that is user id 1 the first user created.

outside of that you have moderators

http://www.minibb.com/forums/manual.html#modsarray
michael1234
Forums Member
#21 | Posted: 2 Jan 2007 17:23
Reply 
$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?
Paul
CEO
#22 | Posted: 3 Jan 2007 04:35
Reply 
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'
);
Anonymous
Guest
#23 | Posted: 28 Sep 2007 09:29
Reply 
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...
Paul
CEO
#24 | Posted: 1 Oct 2007 04:13
Reply 
$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>';
666
Guest
#25 | Posted: 23 Oct 2007 16:05
Reply 
I have used $userRanks... I created $userRanks2 and it works :D
thx alot paul
 Page:  ««  1  2 
Your reply
Bold Style  Italic Style  Image Link  URL Link 


» Username  » Password 
You are welcome to post anonymously by entering a nickname with no password (if that nickname has not been taken by another member) or by leaving both fields empty. If you have a forums membership account, you can also sign in from this page without posting a message, or sign in and post at once.

Before posting, be sure your message is compliant with our forum posting rules. If not, it may be locked or deleted with no explanation.

 
Online now: Guests - 24
Members - 0
Most users ever online: 191 [24 Dec 2007 14:33]
Guests - 191 / Members - 0

Forums are powered by miniBB®