Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Beta Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Show Expiration Date in Subscription Manager List Details »»
Show Expiration Date in Subscription Manager List
Version: 1.00, by Amzadi Amzadi is offline
Developer Last Online: Aug 2004 Show Printable Version Email this Page

Version: 3.0.0 Rating:
Released: 03-06-2004 Last Update: Never Installs: 11
Is in Beta Stage  
No support by the author.

This will show you the expiration date right beside the start date on the Paid Subscription Manager list. See what it will look like in the attached jpg. Tested and working on VB3 RC4. I created this because I got sick and tired of clicking edit on each subscription to see the darn dates. You can also make a print out of the list now and see who has what and for how long. Feel free to PM me if you have any questions.

Time to Install: 1 minute
Changes to 1 PHP file only! No template or database modifications.

Step 1: FIND in AdminCP/Subscriptions.php
PHP Code:
print_table_header(construct_phrase($vbphrase['showing_subscriptions_x_to_y_of_z'], ($limitstart 1), iif($limitfinish $countusers['users'], $countusers['users'], $limitfinish), $countusers[users]), 5);
print_cells_row(array($vbphrase['title'], $vbphrase['username'], $vbphrase['start_date'], $vbphrase['status'], $vbphrase['controls']), 1); 
- Replace with
PHP Code:
print_table_header(construct_phrase($vbphrase['showing_subscriptions_x_to_y_of_z'], ($limitstart 1), iif($limitfinish $countusers['users'], $countusers['users'], $limitfinish), $countusers[users]), 6);
print_cells_row(array($vbphrase['title'], $vbphrase['username'], $vbphrase['start_date'], $vbphrase['expiry_date'], $vbphrase['status'], $vbphrase['controls']), 1); 
This extends the cells 1 column and adds the additional field.

Step 2: FIND in AdminCP/Subscriptions.php (same file a couple lines down)
PHP Code:
$cell[] = vbdate($vboptions['dateformat'], $user['regdate']); 
- Add the following below it
PHP Code:
$cell[] = vbdate($vboptions['dateformat'], $user['expirydate']); 
YOU'RE DONE!!!

Show Your Support

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

Comments
  #2  
Old 03-07-2004, 04:11 AM
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 6,863
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice one!

But you forgot one instruction:

Step 1a: FIND in admincp/subscriptions.php
PHP Code:
print_cells_row(array($vbphrase['title'], $vbphrase['username'], $vbphrase['start_date'], $vbphrase['status'], $vbphrase['controls']), 1); 
- Replace with
PHP Code:
print_cells_row(array($vbphrase['title'], $vbphrase['username'], $vbphrase['start_date'], $vbphrase['expiry_date'], $vbphrase['status'], $vbphrase['controls']), 1); 
[high]* Andreas clicks install[/high]
Reply With Quote
  #3  
Old 03-07-2004, 04:32 AM
Amzadi Amzadi is offline
 
Join Date: Nov 2003
Posts: 104
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Duh! I was in such a hurry to get the format right, I forgot to add that line. Nice catch, I edited the original install script they way it should have read.
Reply With Quote
  #4  
Old 03-07-2004, 04:39 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Excellent little idea! Thank you, sir.
Reply With Quote
  #5  
Old 03-07-2004, 09:33 AM
gmarik's Avatar
gmarik gmarik is offline
 
Join Date: May 2002
Location: Mocsow
Posts: 1,288
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

good one
Reply With Quote
  #6  
Old 03-07-2004, 03:59 PM
Koutaru's Avatar
Koutaru Koutaru is offline
 
Join Date: Feb 2003
Location: IL
Posts: 589
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for this Installing..
Reply With Quote
  #7  
Old 03-07-2006, 05:04 AM
UDPride UDPride is offline
 
Join Date: Dec 2005
Posts: 27
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This doesnt seem to work in 3.5.x

I got a date of 1/1/1970 for an expiration date for my one subscription. Hmm.

I wish subscriptions had much better accounting tools than it does. Anyone?
Reply With Quote
Reply


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:20 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04491 seconds
  • Memory Usage 2,277KB
  • Queries Executed 20 (?)
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
  • (6)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (6)postbit
  • (7)postbit_onlinestatus
  • (7)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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete