PDA

View Full Version : Miscellaneous Hacks - Mass Subscription Extender


ThePhoneGuy
04-06-2010, 10:00 PM
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.