PDA

View Full Version : Paid Subscription


ANTIViRTUS
09-23-2013, 12:45 PM
Hey,

i want create a Paid Subscription on my Forum and i want add a custom Subscription Length.
With the name "Lifetime" without any numbers etc only "Lifetime".

Like this:

https://vborg.vbsupport.ru/external/2013/09/6.jpg

How i can do this?

ozzy47
09-23-2013, 06:14 PM
So if you have the subscription for Lifetime, with no numbers, how is the user supposed to know how much is costs? Also is that going to be the only subscription available or will there be more?

ANTIViRTUS
09-23-2013, 06:24 PM
Please look my screen.
I think we can check it with php but i cant code php.

ozzy47
09-23-2013, 06:35 PM
Ok so you want to have a 3 month, 6month, 1 Year and a Lifetime, so how much will the lifetime be?

ANTIViRTUS
09-23-2013, 06:37 PM
50€

--------------- Added 1379965083 at 1379965083 ---------------

And i want have 1 Month, 2 Month, 4 Month , 6 Month , 2 Years, 6 Years and Lifetime

ozzy47
09-23-2013, 06:48 PM
Ok so if you don't want any numbers showing for the lifetime, after you set up all your subscriptions in the Subscription Manager, setting the lifetime to €51.11, go to Styles & Templates, Replacement Variable Manager, choose your style and click on [Add New Replacement Variable]

In the field, Search for Text, put €51.11 and in the field, Replace with Text put Lifetime, or something similar, then click Save.

So now it won't show €51.11 it will show Lifetime.

ANTIViRTUS
09-23-2013, 06:56 PM
Thank you

ozzy47
09-23-2013, 06:59 PM
If you have any other issues let me know. :)

ANTIViRTUS
09-23-2013, 07:00 PM
What is with expire-date it show Lifetime too?

ozzy47
09-23-2013, 07:04 PM
Not sure what you mean?

ANTIViRTUS
09-23-2013, 07:06 PM
If someone buy Lifetime on payments.php it shows Lifetime too expire date?

ozzy47
09-23-2013, 07:10 PM
No it will show how ever long you set it for, so if you set your lifetime at 99 Years, that is what it will show.

ANTIViRTUS
09-23-2013, 07:20 PM
Hmm maximal is 20 Years how i can change it to 99999 again with this method? Replace the Variable 20 to 9999?

ozzy47
09-23-2013, 07:26 PM
Are you sure 20 is the max, I set mine to 987564 Years, then you can use the replacement variable on that number.

ANTIViRTUS
09-23-2013, 07:28 PM
The length of the subscription you entered is invalid. The length must be a positive value which will result in a date less than 2037.

How i can do it with expire date with Lifetime.

ozzy47
09-23-2013, 07:32 PM
What version of vB are you running?

ANTIViRTUS
09-23-2013, 07:35 PM
vBulletin 4.2.1

--------------- Added 1379968714 at 1379968714 ---------------

I think it would be easier for me if i could find a special character which represents the same as the * does (unlimited characters), so i could replace all the dates which ends with the same year : like: 09-10-2017, *2017 with Lifetime. Is there such a character in vbulletin?

ozzy47
09-23-2013, 07:39 PM
That is strange, here is how I set mine up and it saves without that message.

https://vborg.vbsupport.ru/external/2013/09/25.png (http://s96.photobucket.com/user/ozzy47/media/subyears.png.html)

ANTIViRTUS
09-23-2013, 07:41 PM
I think it would be easier for me if i could find a special character which represents the same as the * does (unlimited characters), so i could replace all the dates which ends with the same year : like: 09-10-2017, *2017 with Lifetime. Is there such a character in vbulletin?

ozzy47
09-23-2013, 07:42 PM
Not that I am aware of.

ANTIViRTUS
09-23-2013, 07:44 PM
Okay thank you

ozzy47
09-23-2013, 10:20 PM
A note about the error.

From my further readings this is supposedly a limitation of php if you are using a 32bit kernel. Or it could be a limitation in your php version.

ANTIViRTUS
09-24-2013, 03:54 AM
And where i can change the limit on php?

ozzy47
09-24-2013, 09:05 AM
Is your server a 32 bit? What version of php is your server running? Either way it is something your host would have to handle. Tell them the error you are getting and see what they say.

ANTIViRTUS
09-24-2013, 11:13 AM
Is your server a 32 bit? What version of php is your server running? Either way it is something your host would have to handle. Tell them the error you are getting and see what they say.

I have a VPS Server 32 bit
and i think php 5

ozzy47
09-24-2013, 07:10 PM
Yeah I would ask you host then, if they can help with that error.

ANTIViRTUS
09-25-2013, 03:24 PM
This thing with Variable is shit because if i create a new Thread and write 20 Years it says "Lifetime" :) Any other method maybe with if method in payments.php?