Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Add Expiration Date Column to Show Subscriptions Page Details »»
Add Expiration Date Column to Show Subscriptions Page
Version: 1.00, by the Sandman the Sandman is offline
Developer Last Online: Nov 2017 Show Printable Version Email this Page

Version: 3.5.3 Rating:
Released: 01-20-2006 Last Update: Never Installs: 12
Code Changes  
No support by the author.

In the AdminCP > Paid Subscriptions > Subscription Manager, when you click on any of the links representing the number of subscribers in the Active, Completed, and Total categories you are taken to a "Showing Subscriptions" page. I asked Logician if he could add a column with the "Expiration Date" between the "Start Date" and "Status" columns. He sent me this code modification a short time later and again gave me permission to post it here for any interested parties.

Edit admincp/subscriptions.php, find:
PHP Code:
print_form_header('user''find');
                
print_table_header(construct_phrase($vbphrase['showing_subscriptions_x_to_
y_of_z'
], ($vbulletin->GPC['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);
                
// now display the results
                
while ($user=$db->fetch_array($users))
                {
                        
$cell = array();
                        
$cell[] = $subcache["{$user['subscriptionid']}"];
                        
$cell[] = "<a href=\"user.php?" .
$vbulletin->session->vars['sessionurl'] .
"do=edit&u=$user[userid]\"><b>$user[username]</b></a>&nbsp;";
                        
$cell[] = vbdate($vbulletin->options['dateformat'], $user['regdate']);
                        
$cell[] = iif($user['status'], $vbphrase['active'],
$vbphrase['disabled']);
                        
$cell[] = construct_button_code($vbphrase['edit'], "subscriptions.php?"
$vbulletin->session->vars['sessionurl'] .
"do=adjust&subscriptionlogid=$user[subscriptionlogid]");
                        
print_cells_row($cell);
                } 
REPLACE it as:

PHP Code:
print_form_header('user''find');
                
// Logician Hack : Add Expire Date to Subscriptions
                
print_table_header(construct_phrase($vbphrase['showing_subscriptions_x_to_
y_of_z'
], ($vbulletin->GPC['limitstart'] + 1), iif($limitfinish >
$countusers['users'], $countusers['users'], $limitfinish),
$countusers[users]), 6);
                
print_cells_row(array($vbphrase['title'], $vbphrase['username'],
$vbphrase['start_date'], "Expiration Date"$vbphrase['status'],
$vbphrase['controls']), 1);
                
// Logician Hack : Add Expire Date to Subscriptions
                // now display the results
                
while ($user=$db->fetch_array($users))
                {
                        
$cell = array();
                        
$cell[] = $subcache["{$user['subscriptionid']}"];
                        
$cell[] = "<a href=\"user.php?" .
$vbulletin->session->vars['sessionurl'] .
"do=edit&u=$user[userid]\"><b>$user[username]</b></a>&nbsp;";
                        
$cell[] = vbdate($vbulletin->options['dateformat'], $user['regdate']);
                        
// Logician Hack : Add Expire Date to Subscriptions
                        
$cell[] = vbdate($vbulletin->options['dateformat'],
$user['expirydate']);
                        
// Logician Hack : Add Expire Date to Subscriptions
                        
$cell[] = iif($user['status'], $vbphrase['active'],
$vbphrase['disabled']);
                        
$cell[] = construct_button_code($vbphrase['edit'], "subscriptions.php?"
$vbulletin->session->vars['sessionurl'] .
"do=adjust&subscriptionlogid=$user[subscriptionlogid]");
                        
print_cells_row($cell);
                } 

Supporters / CoAuthors

Show Your Support

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

Comments
  #2  
Old 01-21-2006, 09:29 PM
Rich's Avatar
Rich Rich is offline
 
Join Date: Mar 2004
Location: U.S.A
Posts: 921
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello,

This is useful for me. Thanks for adding it to the .org. (I suspect it is also on the adminzone?)
Reply With Quote
  #3  
Old 01-21-2006, 09:58 PM
the Sandman's Avatar
the Sandman the Sandman is offline
 
Join Date: Aug 2003
Location: Tampa, FL
Posts: 229
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by iguanairs
Hello,

This is useful for me. Thanks for adding it to the .org. (I suspect it is also on the adminzone?)
Yes, I use it on TAZ.
Reply With Quote
  #4  
Old 01-22-2006, 06:19 AM
RMS-Chef RMS-Chef is offline
 
Join Date: Aug 2003
Location: MA, USA
Posts: 326
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks to you both.
Reply With Quote
  #5  
Old 01-22-2006, 08:57 AM
Snake's Avatar
Snake Snake is offline
 
Join Date: Mar 2005
Location: Cleveland, OH
Posts: 3,832
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

/me installs

Thanks bud!
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 02:30 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.03925 seconds
  • Memory Usage 2,277KB
  • Queries Executed 19 (?)
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
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (5)post_thanks_box
  • (5)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (5)post_thanks_postbit_info
  • (4)postbit
  • (5)postbit_onlinestatus
  • (5)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