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.

tamarian 10-23-2005 12:55 AM

Steven, try the new XML file.

steven s 10-23-2005 12:58 AM

Quote:

Originally Posted by tamarian
Not sure about the special U tags you have. Do you have any hacks or something different in your forum?

That was to illustrate the added coding. Sorry for the confusion.

tamarian 10-23-2005 01:00 AM

Quote:

Originally Posted by 1996 328ti
That was to illustrate the added coding. Sorry for the confusion.

No problem. Try the new XML file and let me know if it fixes your problem, it has been updated.

steven s 10-23-2005 01:01 AM

Quote:

Originally Posted by tamarian
Steven, try the new XML file.

It's working correctly now. Thanks.
You need to change version .5 to .6 now. :)

tamarian 10-23-2005 01:10 AM

Quote:

Originally Posted by 1996 328ti
It's working correctly now. Thanks.
You need to change version .5 to .6 now. :)

Cool. Was just waiting for confirmation :)

wacnstac 10-23-2005 01:55 AM

I can't believe how easy these plugins are to use, wow!

secret1980 10-23-2005 04:17 AM

is it possible for manually displaying who have paid or will it check only for the paid subscriptions ?

tamarian 10-23-2005 01:22 PM

Quote:

Originally Posted by secret1980
is it possible for manually displaying who have paid or will it check only for the paid subscriptions ?

It's only for paid subscribers. You might want to check the PP donation hack.

tamarian 10-23-2005 01:23 PM

Quote:

Originally Posted by mini2
Typo in the template.

Yes. XML file updated :)

paulmjno 11-25-2005 11:14 PM

I changed an active users subscription expiry date, but the list is simply not showing. Any ideas?

tamarian 11-30-2005 02:19 AM

Quote:

Originally Posted by paulmjno
I changed an active users subscription expiry date, but the list is simply not showing. Any ideas?

Did you make the edits to forum home template?

boatswife 12-01-2005 11:05 AM

Quote:

Originally Posted by 1996 328ti
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!

Thank you, that was perfect!

Noonster 12-08-2005 07:41 AM

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.

^^ I dont fully understand, how to do that... can someone help??

Cheers

Noonster 12-08-2005 07:45 AM

Dont worry I have sorted it!!

Sal Collaziano 12-08-2005 09:38 PM

I love it! Thank you! :)

groberthall 12-18-2005 04:10 PM

Just what I needed, thanks.

I have added this to the bottom of my Navbar because I would like it to show up on every page..... but like some other strings the $thanks inly works on forumhome.

Does anyone know how to make it work on all pages ?

Julie 12-19-2005 03:38 PM

Working like a charm :D Thanks for this!

tamarian 12-20-2005 03:16 PM

Quote:

Originally Posted by mini2
Just wondering, this has been working OK as far as I could tell, but it seems to be adding a session id to the URL (member.php) on each link. This therefore logs out people who are not "keeping logged in" when they click the link.

Any ideas how to strip the session out of the URLs?

Edit the thanks_bit template and remove the $session[sessionurl]. It's there because of cut & paste :)

tamarian 12-20-2005 09:23 PM

Quote:

Originally Posted by mini2
That's what's odd, that isn't in the thanks_bit template, that's just:

<a href="member.php?u=$contributer[userid]">$contributer[username]</a>

You need to refresh the list after you edits. Try editing a member's active subscription, bt adding an hour, to regenerate the list.

hugh_ 12-21-2005 06:49 AM

This plugin's only working in my default template, what am I doing wrong?

Thanks...

hugh

tamarian 12-21-2005 11:14 PM

Quote:

Originally Posted by hugh_
This plugin's only working in my default template, what am I doing wrong?

Have you made the FORUMHOME edits in the other styles?

tamarian 12-21-2005 11:17 PM

Quote:

Originally Posted by mini2
You're not understanding, I have had new subscribers since I checked to make sure there was no $session[sessionurl] in the thanks_bit template (which there wasn't), and it's refreshed/updated including a session in the links on my forum home.

Forum home is www.mini2.com/forum/

thanks_bit looks as posted above (no session information).

C11 XFF is the most recent subscriber (just now, as I type this)....

So where is the session in the URL suddenly coming from (this was working fine until recently, no sessions in the URLs?!)...

Looks like your forum is moving, so I couldn't see it.

tamarian 12-21-2005 11:32 PM

Quote:

Originally Posted by mini2
Still doing the same mind you, adding in the session details, from somewhere? Any idea where these could come from as it's not in thanks_bit.

Did you check it in the main or other styles?

tamarian 12-22-2005 02:20 AM

Quote:

Originally Posted by mini2
Just the main, it's the main style I use and all others are childs (children even) of that one. They all have the same issue.

Try the new version. It just edits the template, but you never know.

eNforce 12-22-2005 02:35 AM

Cool, works well thank you :)

bashy 12-24-2005 11:13 PM

Installed thanks...

How do i get it to show the amount donated like your screenshot please?

Regards

Bashy

tamarian 12-24-2005 11:49 PM

Quote:

Originally Posted by bashy
How do i get it to show the amount donated like your screenshot please?

It doesn't calculate the amount. The number you see in the screenshot is total weight loss. Would be great if it was the $$ amount :)

There's another hack for PayPal donations that shows the total amount donated via PayPal https://vborg.vbsupport.ru/showthrea...threadid=91567

cdoyle 12-28-2005 09:17 PM

Will this work on 3.5 instead of 3.52?

edit: Yes it does work on 3.5

ericgtr 12-29-2005 08:40 PM

Neato, installed. :)

cdoyle 12-30-2005 12:12 AM

I've read this thread, but I'm not seeing where I need to go, to say if I want to change the color of the latest paid subscribers name?

Do I change something in the thanksbit or forumhome?


All times are GMT. The time now is 06:10 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.01730 seconds
  • Memory Usage 1,826KB
  • 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
  • (18)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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