miniBB ®

miniBB

®
Support Forums
  
 · Start · Sign in · Register · Search · Statistics · File Bank · Manual ·
Official Addons and Solutions miniBB Support Forums / Official Addons and Solutions /  
 

Custom Rankings

 
 
Page  Page 1 of 2 :  1  2  Next »

Author Anonymous
Guest
#1 · Posted: 6 Dec 2006 10:11
Where in the template there is user nickname?

Hello all,

I am trying to add user ranking with the addon and I am stuck. I have followed the readme and inserted all the code except for the last step:

***** Add in templates/main_posts_cell.html (under user nickname):

{$userInfo_num_posts[$poster_id]}

Question is - Where is user nickname? I cannot find it in main_posts_cell.html. Below is the code from main_posts_cell.html :

<tr valign="top" class="{$bg}">
<td class="caption1">
<a name="msg{$cols[6]}" href="JavaScript:paste_strinL('{$posterNameJs}',2)">
<span class="username">{$posterName}</span>
</a>
<br />
<span class="txtSm">{$viewReg}</span>
</td>
<td class="caption1">
<span class="txtSm">
<a href="#msg{$cols[6]}">#</a> {$l_posted}: {$postDate}{$editedBy}{$viewIP}
<br />
{$eachReply}<script type="text/javascript">getQuotation();</script>{$allowed}
</span>
<br /><br />{$posterText}{$deleteBox}<br /><br />
</td>
</tr>


Where exactly would I insert this? I have tried different places but the user ranking is still nt working so I guess I am going something wrong.

Any help woudl be greatly appreciated!

Thanks!

Author tom322
Active Member
#2 · Posted: 6 Dec 2006 11:32
I think {posterName} is the nickname. I would try this:


<tr valign="top" class="{$bg}">
<td class="caption1">
<a name="msg{$cols[6]}" href="JavaScript:paste_strinL('{$posterNameJs}',2)">
<span class="username">{$posterName}</span>
</a>
{$userInfo_num_posts[$poster_id]}
<br />
<span class="txtSm">{$viewReg}</span>
</td>
<td class="caption1">
<span class="txtSm">
<a href="#msg{$cols[6]}">#</a> {$l_posted}: {$postDate}{$editedBy}{$viewIP}
<br />
{$eachReply}<script type="text/javascript">getQuotation();</script>{$allowed}
</span>
<br /><br />{$posterText}{$deleteBox}<br /><br />
</td>
</tr>

Author Team
8-)
#3 · Posted: 6 Dec 2006 12:06
the user ranking is still nt working so I guess I am going something wrong
I'm almost sure you're doing something wrong in another place. For example, if $userInfoInPosts array in setup_options.php is not specified correctly or is commented, ranking will not appear of course.

Author Anonymous
Guest
#4 · Posted: 6 Dec 2006 12:22
Thanks Tom322..I tried that but it's still not working.

Team - Thanks for the info. This is what I have for that option:

$enableViews=TRUE;
//$userInfoInPosts=array($dbUserSheme['num_posts'][1]);
//$userDeleteMsgs=1;

Is this the problem? If so, how should it read?

Thanks again for the info!

Author tom322
Active Member
#5 · Posted: 6 Dec 2006 12:26
As Team mentioned, I think you must uncomment (meaning remove the two slashes // from setup_options), so it should be:

$enableViews=TRUE;
$userInfoInPosts=array($dbUserSheme['num_posts'][1]);
//$userDeleteMsgs=1;

Author Anonymous
Guest
#6 · Posted: 6 Dec 2006 12:37
It worked!!!!!

Thanks to all for such fast replies and detailed info. I am new to this all and still learning alot. Now I know how to uncomment!

Thanks again...all is working GREAT!!

Author Paul
Lead Lead Developer
#7 · Posted: 6 Dec 2006 13:00
Now I know how to uncomment!
I would be happy if all our users know it at last. 50% of not-working stuff comes because people are not able to read manual carefully.

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

Author Anonymous
Guest
#8 · Posted: 16 Dec 2006 07:07
Hi!
Thx for minibb! I have a question. I have "Custom Rankings solution" in my forum, but the rank doesn't appear in administrator... What I have to do, it works?
Thanks

Author Paul
Lead Lead Developer
#9 · Posted: 16 Dec 2006 15:03
I think the string which lists

elseif($GLOBALS['cols'][0]!=1 and !isset($GLOBALS['userRanks'][$GLOBALS['cols'][0]])){

should then be changed to

elseif(!isset($GLOBALS['userRanks'][$GLOBALS['cols'][0]
])){

Author Anonymous
Guest
#10 · Posted: 16 Dec 2006 18:09
Paul
thx a lot, it works!!! :)

Author kelen
Guest
#11 · Posted: 6 Apr 2007 15:46
Can i have custom ranking plug-in and number of posts in the same time?? for example

kelen
Administrator
private (rank)
23 (number of posts)

thnx a lot for answer

Author Paul
Lead Lead Developer
#12 · Posted: 9 Apr 2007 02:38
For sure you can... just modify the output so it returns not only $rank but also $val. For example:

return '<span class=txtSm>'.$rank.'<br />'.$val.'</span>';

Author kelen
Guest
#13 · Posted: 9 Apr 2007 03:48
thnx a lot!

Author kelen
Guest
#14 · Posted: 9 Apr 2007 10:44
Paul pls...one more question :( you write

elseif(!isset($GLOBALS['userRanks'][$GLOBALS['cols'][0]
])){

show custom rank for administrator...it´s work !! :) but for moderator? what i must do...I want custom ranks for my moderator too...thx a lot!

Author kelen
Guest
#15 · Posted: 9 Apr 2007 10:45
sry i got it!!! VERY SRY pls delete this

Page  Page 1 of 2 :  1  2  Next » 
Official Addons and Solutions miniBB Support Forums / Official Addons and Solutions /
 Custom Rankings
 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
Did you know that you may be allowed to hide miniBB credits and remove miniBB's copyright notice?