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)

ringleader 03-27-2008 02:57 PM

Quote:

Originally Posted by Benjamin-P (Post 1475875)
My paypal account accepts payments automatically so the memer will gain it's new udergroup directly after payment. This only works when you do NOT use a coupon code. When you USE a coupon code... you pay, you return to website and you have not been upgraded to the new usergroup.

That's not this hack doing that.
This only modifies the cost before it even goes to the payment processor, and has nothing to do with the callbacks, etc.

You won't change subscriptions in vbulletin if you are an undeletable user, however.
Are you set in your includes/config file as undeletable?

Unless this is happening to others?
Mine upgrades for several users, both with and without coupons.
I'm using the payPal sandbox for testing, not the live paypal server.
Still, I doubt it has anything to do with this.

ringleader 03-27-2008 03:04 PM

Hey DssCrazy,

Is this the kind of coupon code generator you're looking for? [see attached screenshots]

The coupons can be limited either until a particular date, by number of uses, or by both of these factors together.

The first pic is the particulars you want for your coupons: a prefix (if you want one), number of coupons to generate with this prefix, number of uses the coupons then are limited to (each), the dates they are valid from and until, the length you want the coupon code to be, and the value the coupons are to have (%).

Let me know if there's anything I'm missing.

Benjamin-P 03-27-2008 03:20 PM

I have changed the config and I am not set as UNDELETABLE.

Is there a way to test payment systems without having to test with real money? I'm losing out with all these transaction charges. :D

The generator would be great!!! I'm interested.

ringleader 03-27-2008 03:29 PM

Quote:

Originally Posted by Benjamin-P (Post 1475945)
Is there a way to test payment systems without having to test with real money? I'm losing out with all these transaction charges. :D

Yeah, there is (for paypal, at least).
Your board will NOT be able to accept payments while you are testing, though.

Get a login for testing purposes at http://developer.paypal.com
Create a business account (this is equivalent to the email address you normally use) and a personal account (like a customer would use).
Put the testing email address that paypal generates for your developer Business account into your payment api for paypal instead of your regular one.
Turn on IPN for your testing Business account.

Change every occurrence in includes/class_paypal.php of
www.paypal.com
to
www.sandbox.paypal.com

Now when you go to payments.php on your board it will use the testing business email from the api to connect to the sandbox.paypal.com testing server.
To pay for a payment use the login for the personal testing account that was generated for you on the paypal developers site.

DssCrazy 03-27-2008 06:09 PM

Quote:

Originally Posted by ringleader (Post 1475930)
Hey DssCrazy,

Is this the kind of coupon code generator you're looking for? [see attached screenshots]

The coupons can be limited either until a particular date, by number of uses, or by both of these factors together.

The first pic is the particulars you want for your coupons: a prefix (if you want one), number of coupons to generate with this prefix, number of uses the coupons then are limited to (each), the dates they are valid from and until, the length you want the coupon code to be, and the value the coupons are to have (%).

Let me know if there's anything I'm missing.

This is looking REALLY GOOD. Question tho. When using the gen keys when you use it will it no longer be able to be used? because if you can still use it after the first time thay can hand out and then everyone will have it. where is if it auto del that coupon code after first use it will be PERFECT.

That was quick

Thanks

ringleader 03-28-2008 08:09 AM

Quote:

Originally Posted by DssCrazy (Post 1476074)
This is looking REALLY GOOD. Question tho. When using the gen keys when you use it will it no longer be able to be used? because if you can still use it after the first time thay can hand out and then everyone will have it. where is if it auto del that coupon code after first use it will be PERFECT.

Yeah, there's a bit where you enter how many times each coupon can be used, so if it's used once then it can't be used again.
That way, you can do a 'Bring a friend for the same discount' or a 'two for one'.
It can also be set to expire by time, so if it isn't used by them it'll expire when you set it to.

Should be done completely by Sunday or early next week at the latest ;)

regitbull 03-28-2008 11:54 AM

Quote:

Originally Posted by ringleader (Post 1476578)
Yeah, there's a bit where you enter how many times each coupon can be used, so if it's used once then it can't be used again.
That way, you can do a 'Bring a friend for the same discount' or a 'two for one'.
It can also be set to expire by time, so if it isn't used by them it'll expire when you set it to.

Should be done completely by Sunday or early next week at the latest ;)

Good job with continu updating your mod.
This forum needs more people like you :)

2guys1forum 03-28-2008 12:44 PM

I just downloaded this great mod. I have a problem thoug :/

I have uploaded files, installed the xml file and done the template edits, but when i get to the file edit step i get a problem. When i search for
Code:

$string .= "<option value=\"{$key}_{$currency}\" >" . $subobj->_CURRENCYSYMBOLS["$currency"] . $value ."</option>\n";
it doesn't find anything. The closest thing i can find is:
Code:

$string .= "<option value=\"{$key}_{$currency}\" >" . $subobj->_CURRENCYSYMBOLS["$currency"] . vb_number_format($value, 2) . "</option>\n";
If it add the code above that, nothing happens with the price when the coupon is added :/

- Jacob

DssCrazy 03-28-2008 01:15 PM

Quote:

Originally Posted by ringleader (Post 1476578)
Yeah, there's a bit where you enter how many times each coupon can be used, so if it's used once then it can't be used again.
That way, you can do a 'Bring a friend for the same discount' or a 'two for one'.
It can also be set to expire by time, so if it isn't used by them it'll expire when you set it to.

Should be done completely by Sunday or early next week at the latest ;)

PERFECT!

Thanks

DssCrazy 03-28-2008 01:17 PM

Quote:

Originally Posted by regitbull (Post 1476684)
Good job with continu updating your mod.
This forum needs more people like you :)

I was thinking the same thing. This mode is wicked and the thing that makes it even better is the coder is dedicated to his work.


All times are GMT. The time now is 04:58 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.01139 seconds
  • Memory Usage 1,752KB
  • 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
  • (2)bbcode_code_printable
  • (7)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