vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   vBaCMPS Module - Top 10 Thanked Users (https://vborg.vbsupport.ru/showthread.php?t=81560)

tehcake 05-15-2005 10:00 PM

vBaCMPS Module - Top 10 Thanked Users
 
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

INSTALL:
Create a style template called "adv_portal_topstats"
Put the following code in the template.
Code:

<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.
Code:

<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:
Quote:

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

softvnzla 01-04-2008 11:24 AM

?? download module? is error?


All times are GMT. The time now is 09:59 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01009 seconds
  • Memory Usage 1,725KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete