vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Paid Subscription (https://vborg.vbsupport.ru/showthread.php?t=302565)

ANTIViRTUS 09-23-2013 12:45 PM

Paid Subscription
 
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 [DATE]1379965083[/DATE] at [TIME]1379965083[/TIME] ---------------

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 [DATE]1379968714[/DATE] at [TIME]1379968714[/TIME] ---------------

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

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

Quote:

Originally Posted by ozzy47 (Post 2447650)
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?


All times are GMT. The time now is 03:07 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.01164 seconds
  • Memory Usage 1,758KB
  • 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)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (27)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