vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Miscellaneous Hacks - Mass Subscription Extender (https://vborg.vbsupport.ru/showthread.php?t=239963)

ThePhoneGuy 04-06-2010 10:00 PM

Mass Subscription Extender
 
1 Attachment(s)
Easier Version
~~~~~https://vborg.vbsupport.ru/showthread.php?t=248232~~~~


Hey i noticed that i needed to update end dates for all my subscription users at once. Took me a while to figure out and the is 0 documentation on how to do this so run this as an sql query in phpmyadmin

UPDATE `DATABASE_NAME`.`subscriptionlog` SET `expirydate` = `expirydate` + '430000'

430000 = 5 days in epoch time

epoch time is just seconds that have elapsed since January 1, 1970

Hope that helps someone who was as frustrated as me :D.

http://www.epochconverter.com/

abdobasha2004 04-07-2010 08:54 AM

nice idea
thanks

ThePhoneGuy 04-08-2010 04:41 AM

Thank you :D.

Da-Vinci 04-11-2010 05:18 PM

Wish I'd know aboutthis 2 weeks ago lol. Thanks for this it will make lfe easier.

ThePhoneGuy 04-12-2010 11:12 AM

lol yeah we have about 500 subscribers and i wasnt about to do it by hand :P. and you are welcome. If this becomes fairly popular i will make it into an addon.

customcolor 06-27-2010 05:18 AM

im not able to run a sql...why..?? i am the admin of the site!

customcolor 06-27-2010 05:26 AM

i should say...what is phpmyadmin?

merk_aus 06-27-2010 05:28 AM

Thanks for this a fantastic option to have - although I don't need it at the moment I will need it in about a weeks time so have taken down the sql querie.

Much appreciated.

customcolor 06-27-2010 05:34 AM

ok i found out....now if i have a few diff types of subscriptions...how do i just change just one of them

ThePhoneGuy 07-07-2010 07:22 PM

:) Thanks everyone. Also about the question with multiple subscriptions. I am not totally sure. I would have to it in php. I wouldnt know where to start in mysql. You would need to find out what the subscription id is for sure though :P.


All times are GMT. The time now is 04:55 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.01170 seconds
  • Memory Usage 1,720KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete