vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Latest X Paid Subscribers on Forum Home (https://vborg.vbsupport.ru/showthread.php?t=99049)

tamarian 10-21-2005 10:00 PM

Latest X Paid Subscribers on Forum Home
 
By request, this has been ported from the vB 3.0.x version:
https://vborg.vbsupport.ru/showthrea...threadid=65254

What this hack does:
This hack will list and instantly refresh (when a new subscription is made) a list of the latest X paid subscribers to your forum. It's a nice way of recognizing members who help pay the the forum bills, and encourages others to join.

There are no queries generated on page views. Only when a subscription is added, changed or deleted.

Installation:
1. Import the product XML file (Plugin System --> Manage Products
Add/Import Product)
2. Edit FORUMHOME tamplate, and place the variable $thanks anywhere you want to display the list.


Notes:

o To build the list for the first time, edit the active subscription of any member, just a minute to their expiry date, and save.
o To change the default (5) names to something else, there's a setting for it in vBulletin Options -> Last XX Paid Subscribers in the admincp
o To change the HTML for usernames, edit the thanks_bits template

Freezerator 10-22-2005 10:15 PM

Screenshot? Looks like a nice addtion! :)

michaelbenson 10-22-2005 10:26 PM

Can you perhaps create an installation file and upload that too?
Since i dont want to be referring here for each time i want to install.

steven s 10-22-2005 10:56 PM

Plugin System --> Manage Products
Add/Import Product.

There are different places to put $thanks.
I did it this way.

Edit FORUMHOME
Find
<span title="<phrase 1="$vboptions[activememberdays]">$vbphrase[within_the_last_x_days]</phrase>">$vbphrase[active_members]: $activemembers</span>
</if>
</div>

Add below
<div class="smallfont">Thanks to our latest <a href="payments.php">contributing members</a>: $thanks</div>

Thanks!

steven s 10-22-2005 11:06 PM

Now I just need to know how I can make the names not bold and where would I change the number of listed if I would want to later.

tamarian 10-22-2005 11:10 PM

Quote:

Originally Posted by 1996 328ti
Now I just need to know how I can make the names not bold and where would I change the number of listed if I would want to later.

It's in the first post :)

Quote:

o To change the default (5) names to something else, there's a setting for it in vBulletin Options -> Last XX Paid Subscribers in the admincp
o To change the HTML for usernames, edit the thanks_bits template

hbalagh1 10-22-2005 11:40 PM

thanks :)

steven s 10-23-2005 12:35 AM

I am running into some problems.
I still don't see where to change the font color and remove the bold coding.
<font color="#228E8E"><b>
The thanks_bit only had <strong> coding.

I also have additional coding when a subscriber is is clicked on.
/forum/%5C%22member.php?u=2058\%22

tamarian 10-23-2005 12:43 AM

Quote:

Originally Posted by 1996 328ti
I am running into some problems.
I still don't see where to change the font color and remove the bold coding.
<font color="#228E8E"><b>
The thanks_bit only had <strong> coding.

I also have additional coding when a subscriber is is clicked on.
/forum/%5C%22member.php?u=2058\%22

You can add the font colour tags to the template. It currently uses your CSS for smallfont and strong:

HTML Code:

<span class="smallfont"><a href="member.php?$session[sessionurl]u=$contributer[userid]"><strong>$contributer[username]</strong></a></span>
You can simplify it by changing it:
HTML Code:

<a href="member.php?$session[sessionurl]u=$contributer[userid]">$contributer[username]</a>
Not sure about the special U tags you have. Do you have any hacks or something different in your forum?

wacnstac 10-23-2005 12:50 AM

Sweet. Many thanks.


All times are GMT. The time now is 01:56 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.01309 seconds
  • Memory Usage 1,740KB
  • 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_html_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete