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)
-   -   Miscellaneous Hacks - Gift Subscriptions (https://vborg.vbsupport.ru/showthread.php?t=166121)

jamoss 12-26-2007 04:11 PM

User goes to their CONTROL PANEL and then clicks on PAID SUBSCRIPTIONS (which you have to have enabled and set up already).

It defaults to the user's username, but they can enter another member's username as a gift subscription. The rest of the checkout goes through normally.

The recipient is NOT notified. That is up to the gifter or the moderator. Some gifters want to remain anonymous.

Arachnophiles 12-26-2007 09:39 PM

Nice hack, thank you :)

I think a nice addition would be the ajax type 'auto-fill' feature (ie that found in the PM and search) which finds the correct username as your typing.

Are there plans to modify for vB3.7 ?

Cheers,
Adam

the Sandman 12-27-2007 12:49 AM

Thank you! :)

the Sandman 12-27-2007 08:26 AM

I think you need to account for a table prefix in the file hack part of the mod.

Steeler Nation 12-27-2007 01:50 PM

Quote:

Originally Posted by hornstar1337 (Post 1409328)
This is just one of the many things that would really make the subscriptions really great, if vbulletin had it in default.

Thanks for sharing :)

I agree - this should be a default for vBulletin.

The hack works great.

jamoss 12-27-2007 07:40 PM

Quote:

Originally Posted by the Sandman (Post 1409999)
I think you need to account for a table prefix in the file hack part of the mod.

You're right.. I removed it by mistake. Will fix.

the Sandman 12-27-2007 07:53 PM

Quote:

Originally Posted by jamoss (Post 1410281)
You're right.. I removed it by mistake. Will fix.

Thanks! :)

aakhan136 01-05-2008 09:11 PM

Thanks

jilly 01-09-2008 01:52 AM

testing it on 3.5.4 soon

*edit* - gave me an error message on 3.5.4 - I am upgrading to 3.7 in a few weeks - will try again..

Do you know what will happen if the user already has the subscription? Will it be able to tell the user already has it and give the attempted gifter that message? Also would be nice to have the option to be anonymous or not, and send some sort of text message with the gift, either from anonymous or from the real user..

kether1 01-11-2008 08:01 PM

This works well with 3.6.8 patch level2. The only issue I have with it is that when someone enters a typo in the username field or types something like 'happy birthday kether' instead of just 'kether', they get a database error. I tried to figure out how to capture the error and redirect them back to the subscription page to correct the mistake, but I am not a programmer. The problem comes with the userid of the recipient if their name is typed wrong or if it doesn't exist.

My solution would be to send them to a page that automatically redirects back to the subscription page after they had time to read a short messsage that says again: "Please type only the username of the member for which you would like to purchase a gift subscription " Anyone have any way to do that?

-K


All times are GMT. The time now is 03:41 PM.

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.01064 seconds
  • Memory Usage 1,733KB
  • 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
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (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