vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Mini Mods - vbCoupons - offer money-off coupons for paid subscriptions (https://vborg.vbsupport.ru/showthread.php?t=173778)

DssCrazy 03-29-2008 09:50 PM

Quote:

Originally Posted by ringleader (Post 1477793)
No it won't.
A user can only hold one coupon at a time. If a new coupon is entered, it overwrites any previous one they had.

And therefore only get one discount at a time; that way, it prevents accumulation of discounts for one subscription.

I'd prefer to keep it that way as well, as it would be difficult to monitor many coupons in one person's account.

Ok cool just making sure it does not because people could just gather coupons lol.

Is the Update still on track for tomorrow?

Thanks

ringleader 03-30-2008 01:52 PM

Quote:

Originally Posted by 2guys1forum (Post 1477884)
I tried with and without %, nothing both times :/

If the coupon date is not valid (i.e. it has passed/expired) it will show as having been added to the user, but will not deduct any value from the subscription cost.

I have updated the mod to include the coupon generator as well now.

2guys1forum 03-30-2008 02:22 PM

Everything is working now :D I don't really know what did the trick, but it works.

Thanks for the fast support and a great mod ;)

DssCrazy 03-30-2008 02:31 PM

New update crashes get a database error when uploadaing xml file.

here is what i did reuploaded everything.

then tried to up load the xml threw the admin cp and got this database error

DssCrazy 03-30-2008 02:36 PM

Fixed: Do Not Try And Overwrite Other Wise You Will Get A Database Error. Uninstall the old vb coupons XML and reinstall the NEW

Thanks

ringleader 03-30-2008 03:20 PM

Guys you are way too fast for me! I hadn't even sent an update yet.

The reason being there's other bits in the new update.

version 1.3 allows the coupons only to be used on particular paid subscriptions, so you can offer them on a per-subscription basis (as requested by bada_bing and DssCrazy).

This changes the way the files process things, so please re-do the file edits in the Install Guide again if you had an earlier version installed.

I also fixed the xml install so that there should not be any errors on upgrade.

Hope it's all okay for you all! :D

DssCrazy 03-30-2008 03:28 PM

I'll test it now.

DssCrazy 03-30-2008 03:31 PM

Question do i need to do the payment.php edits again? if i don't need to then tell me REALLY don't feel like doing them lol

ringleader 03-30-2008 03:34 PM

Quote:

Originally Posted by DssCrazy (Post 1478389)
Question do i need to do the payment.php edits again? if i don't need to then tell me REALLY don't feel like doing them lol

Yeah you do, unfortunately.
The function that checks the cost of the subscription and updates it now also checks the subscriptionid that it's valid for as well. The only way I could find to do it was to change that :(

bada_bing 03-30-2008 03:40 PM

Quote:

Originally Posted by ringleader (Post 1478395)
Yeah you do, unfortunately.
The function that checks the cost of the subscription and updates it now also checks the subscriptionid that it's valid for as well. The only way I could find to do it was to change that :(

So basically revert the edits in payment.php from the prior version and add the new edits correct? Thanks for adding the addition features.


All times are GMT. The time now is 08: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.01269 seconds
  • Memory Usage 1,738KB
  • 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
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete