Go Back   vb.org Archive > vBulletin Modifications > Archive > Modification Graveyard

Reply
 
Thread Tools
Latest Paid Subscribers v1.1 Details »»
Latest Paid Subscribers v1.1
Version: 1.00, by paul41598 paul41598 is offline
Developer Last Online: Jun 2013 Show Printable Version Email this Page

Category: Forum Home Enhancements - Version: 3.6.4 Rating:
Released: 10-09-2006 Last Update: 02-27-2007 Installs: 84
Uses Plugins Template Edits
 
No support by the author.

Latest Paid Subscribers v1.1 (LITE VER)

- This Hack Does Use The Usergroups Markup Color For A More Accurate Display Of Subscription Members!! This Hack Has It All!

Description:
This hack is fully functional and flexible allowing you to display the latest [x] subscribers on your forumhome! It also allows you to display a reminder/alert to your users who's subscriptions are expiring.

Features: (Lite Version)
  • Activate The System (Latest Paid Subscribers)
  • Select The Number Of Subscribers To Show On ForumHome

Features: (Premium Version Only)
  • Activate The System (Latest Paid Subscribers)
  • Select The Number Of Subscribers To Show On ForumHome
  • Display A Reminder/Alert Window To Warn Subscribers When Their Subscription Is Up
  • Select The Number Of Days Before That Reminder Shows
  • Never Show This Again For Reminder Alert!
  • Allow The Subscriber Info In The Title HoverOver Or Turn It Off
  • Select A Date Format For That HoverOver

Installation:
1.) 1 Template Edit
2.) 1 Product Upload
3.) Enjoy Release

Bug Fixes:
Allow Subscriber Info In HoverOver Never Worked - FIXED
Activate Latest Paid Subscribers Only Deactivated The Users, Not The Phrases Or Expiry Alert. - FIXED
SQL Bugs. - FIXED

Notes:
- Adds 1 extra query
- Premium Version Of Hacks Found Here

If you find any bugs, have comments, questions feel free to post them. I'll do my best to accomidate anything.
Disclaimer: Any modification to this hack, must get prior consent/authorization by me first.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #22  
Old 10-11-2006, 05:42 PM
rmxs rmxs is offline
 
Join Date: Apr 2006
Posts: 419
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Maybe for the Reminder to dispayed in all pages
Reply With Quote
  #23  
Old 10-11-2006, 10:15 PM
jgommel's Avatar
jgommel jgommel is offline
 
Join Date: Jun 2005
Location: Ohio
Posts: 115
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Okay, this time around it installed just fine. Thanks for the update paul41598. I hope you don't mind, but because I'm meticulous about appearance and placement. I decided to code this into it's own FORUMHOME "What's Going On" box and remove it from within the "Currently Active Users" box.

For those who want to do the same, here's what I did...

Disregard Step 1 (Edit Templates) in paul41598's instructions and instead, do this...

Template Name: forumhome

Find:
PHP Code:
<!-- end logged-in users -->
</if> 
Add below:
PHP Code:
<!-- Latest Paid Subscribers -->
<
tbody>
    <
tr>
        <
td class="thead" colspan="2">
        <
a style="float:$stylevar[right]href="#top" onclick="return toggle_collapse('paid_subscribers')"><img id="collapseimg_paid_subscribers" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_paid_subscribers].gif" alt="" border="0" /></a>
        <
phrase 1="$show[subscribers]">$vbphrase[last_paid_subscribers_display]</phrase>
    </
tr>
</
tbody>
<
tbody id="collapseobj_paid_subscribers" style="$vbcollapse[collapseobj_paid_subscribers]">
    <
tr>
        <
td class="alt2"><img src="$stylevar[imgdir_misc]/whos_online.gif" alt="Paid Subscribers" border="0" /></td>
        <
td class="alt1" width="100%"><div class="smallfont">$showsubscribers</div></td>
    </
tr>
</
tbody
Find:
PHP Code:
$navbar 
Add Below:
PHP Code:
<if condition="$show['subscribers']">$expiryalert</if> 
Continue with Step 2 (Load The Product)

I'm going to look at your vBAdvanced module too and see if there's anything else I can do to it as well.

Thanks!
Reply With Quote
  #24  
Old 10-11-2006, 11:03 PM
whitetigergrowl whitetigergrowl is offline
 
Join Date: Jun 2004
Posts: 243
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Database error in vBulletin 3.6.2:

Invalid SQL:

SELECT subscriptionlog.userid, subscriptionlog.subscriptionid, subscription.subscriptionid, subscriptionlog.expirydate,
user.userid, user.username
FROM vb_subscriptionlog AS subscriptionlog, vb_subscription AS subscription
LEFT JOIN vb_user AS user ON (subscriptionlog.userid = user.userid)
WHERE subscriptionlog.status != '0' AND subscriptionlog.subscriptionid = subscription.subscriptionid AND user.userid = 1 AND subscriptionlog.expirydate < 1163203283
ORDER BY subscriptionlog.expirydate ASC LIMIT 5;

MySQL Error : Unknown column 'subscriptionlog.userid' in 'on clause'
Error Number : 1054
Date : Wednesday, October 11th 2006 @ 07:01:23 PM
Script : http://www.mywebsite.com/community/index.php
Referrer : http://www.mywebsite.com/community/a...ex.php?do=head
IP Address : *********
Username : ********
Classname : vB_Database
Sensite info blocked out. I have followed this to a T and this is the sql error I recieve. I use php and sql 5+.
Reply With Quote
  #25  
Old 10-11-2006, 11:10 PM
jgommel's Avatar
jgommel jgommel is offline
 
Join Date: Jun 2005
Location: Ohio
Posts: 115
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Did you download 'latest paid subscribers 1.1.zip' or 'latest paid subscribers 1.1 update.zip'

Uninstall the one on your vBulletin board and then Download the 'latest paid subscribers 1.1 update.zip' from here and install this one.
Reply With Quote
  #26  
Old 10-12-2006, 12:43 AM
Lionel Lionel is offline
 
Join Date: Dec 2001
Location: Delray Beach, Florida
Posts: 3,277
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by paul41598
Now I've never created a vbadvanced module before, so bare with me. However, below is the module I created. I've tested and it seems to work on my forums. Just follow the directions and hopefully it will work for you too.
Thanks. I kept it at global hook and simply put the variable in vbadavanced global
Reply With Quote
  #27  
Old 10-12-2006, 02:19 AM
whitetigergrowl whitetigergrowl is offline
 
Join Date: Jun 2004
Posts: 243
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Database error in vBulletin 3.6.2:

Invalid SQL:

SELECT subscriptionlog.userid, subscriptionlog.subscriptionid, subscription.subscriptionid, subscriptionlog.expirydate,
user.userid, user.username
FROM vb_subscriptionlog AS subscriptionlog, vb_subscription AS subscription
LEFT JOIN vb_user AS user ON (subscriptionlog.userid = user.userid)
WHERE subscriptionlog.status != '0' AND subscriptionlog.subscriptionid = subscription.subscriptionid AND user.userid = 1 AND subscriptionlog.expirydate < 1163215075
ORDER BY subscriptionlog.expirydate ASC LIMIT 5;

MySQL Error : Unknown column 'subscriptionlog.userid' in 'on clause'
Error Number : 1054
Date : Wednesday, October 11th 2006 @ 10:17:55 PM
Script : http://www..com/community/index.php
Referrer : http://www..com/community/admincp/index.php?do=head
IP Address :
Username :
Classname : vB_Database
Tried both. This is the error with the update one. (Minus sensitive info)
Reply With Quote
  #28  
Old 10-12-2006, 04:09 AM
TVNettet's Avatar
TVNettet TVNettet is offline
 
Join Date: Mar 2006
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Tried both your files, got db error on vb3.6.2 Read about your fresh install, unfortunately have too much stuff already installed to go through all of those again, but nice try all the same.
Had a similar product working in earleir vB version and it was gr8!!
I'll keep an eye out for any updates you release...
Reply With Quote
  #29  
Old 10-13-2006, 12:25 PM
Quarterbore Quarterbore is offline
 
Join Date: Mar 2005
Location: Valley Forge PA
Posts: 538
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If you don't mind... I would like some help changing the hover from the "Subscription Expires On DATE" to a message that says "Subscription to "SUBSCRIPTION NAME" on DATE"

For new subscribers, it isn't urgent that they resubscribe... but I would like to recognize them for their contribution as I have several levels of contributor!

Also, I tried to move the pluggin code for the subscription expiring to a new pluggin and I hooked it to global_start. Then I used the template change and added the notification to SHOWTHREAD template.

It works for a base install but it will not work on my site because of the way I use vbAdvanced (my site is linked below). I'll figure it out one of these days...
Reply With Quote
  #30  
Old 10-18-2006, 03:10 PM
scottct1 scottct1 is offline
 
Join Date: Mar 2002
Location: Connecticut
Posts: 391
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How do I set the message shown to users when there subscription is about to expire.

I searched for the phrase expiryalert and did not find anything.
Reply With Quote
  #31  
Old 10-18-2006, 05:41 PM
paul41598's Avatar
paul41598 paul41598 is offline
 
Join Date: Jun 2004
Location: MI
Posts: 732
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by scottct1
How do I set the message shown to users when there subscription is about to expire.

I searched for the phrase expiryalert and did not find anything.
Its in the template "expirydatebits"
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:58 PM.


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.04705 seconds
  • Memory Usage 2,328KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (4)bbcode_php
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete