Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases

Reply
 
Thread Tools
vBaCMPS Most Recent Subscribers Module Details »»
vBaCMPS Most Recent Subscribers Module
Version: 1.00, by kall kall is offline
Developer Last Online: Aug 2021 Show Printable Version Email this Page

Version: 3.0.3 Rating:
Released: 09-05-2004 Last Update: Never Installs: 12
 
No support by the author.

This will place a box on your vBa CMPS homepage showing the 10 most recent Paid Subscriptions.

It works by querying the subscriptionlog table for the expiry date of the subscription.

If you want it to show them by expiry date, or change the number shown, instructions are in the .zip.

*edit* They are now.

Show Your Support

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

Comments
  #12  
Old 12-26-2004, 10:10 PM
steven s's Avatar
steven s steven s is offline
 
Join Date: Aug 2004
Location: Greenville, SC
Posts: 572
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This worked very well, thanks.

But shouldn't 'subscribers_bit' be 'adv_portal_subsribers_bit' to conform with the other templates?
Reply With Quote
  #13  
Old 12-27-2004, 04:56 AM
alkatraz alkatraz is offline
 
Join Date: Oct 2002
Location: Vancouver, Canada
Posts: 384
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

/me clicks install

thx!
Reply With Quote
  #14  
Old 01-01-2005, 10:20 PM
steven s's Avatar
steven s steven s is offline
 
Join Date: Aug 2004
Location: Greenville, SC
Posts: 572
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is it possible to sort by username?
Reply With Quote
  #15  
Old 01-20-2005, 01:15 AM
steven s's Avatar
steven s steven s is offline
 
Join Date: Aug 2004
Location: Greenville, SC
Posts: 572
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Again, is it possible to sort by username and is it possible to make this block run in 2 columns?
Reply With Quote
  #16  
Old 01-25-2005, 07:25 PM
4number8 4number8 is offline
 
Join Date: Nov 2004
Posts: 118
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

if there is anything I could do to help you out in any way id be more than willing to my friend, thanks you once again for beiing such a great person you are, please If I run into troule would you be willing to help me out? I can ususally figure it out on my won but nothing like good company to keep you entertained, many thanks once again m8 and hope you and your familay are doing great, talk with you later on, take care and hope to hear from you soon
Reply With Quote
  #17  
Old 01-26-2005, 09:21 AM
kall's Avatar
kall kall is offline
 
Join Date: Apr 2004
Location: New Zealand
Posts: 2,608
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by 1996 328ti
Again, is it possible to sort by username and is it possible to make this block run in 2 columns?
Probably.

Change
PHP Code:
WHERE subscriptionlog.status '1' ORDER BY regdate DESC LIMIT 10
    
"); 
to
PHP Code:
WHERE subscriptionlog.status '1' ORDER BY username DESC LIMIT 10
    
"); 
That's just me looking at it and doing the completely obvious thing of swapping regdate for username...I haven't tested it, but as I say, it's obvious, so it should work.

Just in case it crops up, swap DESC to ASC if you want the order reversed and LIMIT 10 to LIMIT * (where * is the number you want to display).

As for the columns, I wouldn't know. HTML is the devil.
Reply With Quote
  #18  
Old 01-26-2005, 11:39 AM
steven s's Avatar
steven s steven s is offline
 
Join Date: Aug 2004
Location: Greenville, SC
Posts: 572
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks but that doesn't work either.
The choices in subscription.status are

subscriptionlogid
subscriptionid
pusergroupid
regdate
expirydate
Reply With Quote
  #19  
Old 01-26-2005, 05:49 PM
kall's Avatar
kall kall is offline
 
Join Date: Apr 2004
Location: New Zealand
Posts: 2,608
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by 1996 328ti
Thanks but that doesn't work either.
The choices in subscription.status are

subscriptionlogid
subscriptionid
pusergroupid
regdate
expirydate
You are wrong. Doing as I said does work. Either you did not do as I said, or you are looking at a cached version, or something else strange is happening because that does work.

The choices you mention have nothing to do with what was asked, which was 'can we sort them by username?' As username was already being called from the db, it would seem really obvious that simply substituting regdate for username would work. And it does.

*shakes head* All you had to do was replace one word with another, and you couldn't manage it?

Examples below.
Reply With Quote
  #20  
Old 01-26-2005, 10:17 PM
steven s's Avatar
steven s steven s is offline
 
Join Date: Aug 2004
Location: Greenville, SC
Posts: 572
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by kall
*shakes head* All you had to do was replace one word with another, and you couldn't manage it?
No need for sarcasim. :ermm:

Did you edit your original post?
In the email that vB sent me you clearly said to change regdate to userid.

In the text below the change you mention username.
I tried username and naturally it works. Thank you.
Reply With Quote
  #21  
Old 01-27-2005, 12:42 AM
kall's Avatar
kall kall is offline
 
Join Date: Apr 2004
Location: New Zealand
Posts: 2,608
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by 1996 328ti
No need for sarcasim. :ermm:

Did you edit your original post?
In the email that vB sent me you clearly said to change regdate to userid.

In the text below the change you mention username.
I tried username and naturally it works. Thank you.
Yes, I did edit that post..within seconds of posting it, but yours was posted over 2 hours after mine.

From that, I would have assumed that you would have *read* the post prior to trying the changes.

Also, given the total lack of a tick in the 'Supported' box above, you should be a little more appreciative of the support.

As it was such a simple change, may I suggest you take the time to learn a little about how mySQL queries work? If you had done this prior, it would have saved you a lot of time, and me having to post to point out that the table is already included, and all you have to do is change the name of the one it is sorted by.
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 03:27 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.04385 seconds
  • Memory Usage 2,304KB
  • 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
  • (2)bbcode_php
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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