PDA

View Full Version : vBaCMPS Module - Top 10 Thanked Users


tehcake
05-15-2005, 10:00 PM
This addon will allow you to show the Top 10 Thanked members on your forum on the front page.

REQUIRED:
vBaCMPS
Post Thank You Hack (https://vborg.vbsupport.ru/showthread.php?t=73410)

INSTALL:
Create a style template called "adv_portal_topstats"
Put the following code in the template.
<table cellpadding="4" cellspacing="$stylevar[cellspacing]" border="0" class="tborder" width="100%">
<tr>
<td class="tcat"><span class="smallfont"><b>$vboptions[blockbullet]
Top
10 Thanked </a></b></span></td>
</tr>
<tr class="alt1">
<td width="100%"><span class="smallfont">$top_stats[top_thanks]
</span></td>
</tr>
</table>
<br />

Create a template and call it "top_thanks"
Put the following code in the template.
<span class="smallfont"><center><b><a href="/forum/member.php?u=$top_thank[userid]">$top_thank[username]</a></b> ($top_thank[post_thanks_thanked_times])</center></span>

Put the attached PHP file in your /modules/ folder.

Add the module via vBaCMPS admincp.
For templates used, put adv_portal_topstats.



Anyone know how to create a CRON job to add a user to a usergroup once they get X ammount of thanks?

Lionel
05-16-2005, 08:29 AM
You don't need a cron job for that. You can do it with vb "promotion" in admincp.
I am also pulling the userid from your hack so I link it to profile

Lionel
05-16-2005, 08:34 AM
you can also link the count to post_thanks.php?do=findthanks&u=xx

DR?@M W?@V?R
05-16-2005, 03:05 PM
Thanked for what? I dont understand.

Abe1
05-16-2005, 06:40 PM
It seems to be a 10 ten of users who got thanked. You need "Post Thank You Hack" written by me. (Link is in my sig.)

tehcake, nice work.

vakvak
05-17-2005, 02:09 AM
where this top stats.php upload?

Abe1
05-17-2005, 03:25 PM
here: Put the attached PHP file in your /modules/ folder.

softvnzla
01-04-2008, 11:24 AM
?? download module? is error?