Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 03-25-2007, 10:25 PM
DiSpy's Avatar
DiSpy DiSpy is offline
 
Join Date: Feb 2007
Location: South Florida!!
Posts: 107
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Subscriptions page mod...

I posted this over on vBulletin.com and was told that it was not possible to do... but upon further thought I think there is a way to do it thier way on the backend, but have the frontend (that the user sees) be alot simpler.

Here's my old post:
Quote:
Basically, I'm trying to setup the subscriptions system on my site.

I love the idea that I can set it up so that users can subscribe to my site either by a "monthly" or "yearly" rate, and that I can set this to "one-time" or "recurring". However, according to the manual I have to set a specific amount for each type, but I would rather allow people to pay as much as they want (with say a $1 minimum for a monthly account, or whatever).

In otehr words, If I was to setup a subscription that is for "1 month" and "one-time" payment, I want them to be able to pay any amount they want for that month. (ie: choose the amount from a dropdown box)

As it is right now I can setup like 50 options where they can donate $1, $2, $3, $4, etc etc for each type (That's like 50 X 4 (200) payment options i'd have to setup.) and have them choose one, but that is a crappy way to do it. It will be one LOOONG list on the payments.php page, and no one will want to use it.
...

there's got to be an easier way... anyone??
Now... as I said... upon further thought... I would be willing to setup those 200+ subscription options, and then add a page (a template or something) to organize it into a *nice* looking frontend.

Then once they choose say for example from the "1 month", "non-recurring" "plan a" box the "$4" choice, they are taken to the subscription page for that specific one (of the 200+, they only see 4 options with dropdowns before going to the next page).

Anyone know how I could do something like this? I'm kind of new to vB, but I know there is a hack for adding template pages... but how would I use/add globals, and pull variables so that I could list subscription types that are pre-defined in the admin panel in the dropdowns??

I hope I didn't confuse everyone... haha.
THANK YOU!

EDIT:
Darn, ok I added a second post with more details, and it deleted it as a "double post"... grrr...

Here's what I had added:

I'd like to make my own page (using one of the add a page mods), and link to it in the navbar. On this page will be something like this page: http://yourdomain.tld/payments.php (but not inside the user CP). I would customize this page with my packages and the features they get for each one, etc, etc... then have some dropdown boxes for the duration, wheather it's re-occuring or not, and the price they want to pay.

THEN once they choose the options they want, it'll go and pass the appropriate info to the http://yourdomain.tld/payments.php?do=order page where they can pay for thier subscription.

Again, I realize i'd have to setup all possible combinations in the adminCP and that's o-k.
Reply With Quote
  #2  
Old 04-12-2007, 02:15 PM
DiSpy's Avatar
DiSpy DiSpy is offline
 
Join Date: Feb 2007
Location: South Florida!!
Posts: 107
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Here's an example of what i'm talking about:

http://www.wrestlingforum.com/register.php?do=start

How did they put that page into thier registration page I wonder... but it's exactly what i'm looking for for the subscription page.

Once a user clicks a button in the appropriate column, it takes them to the built-in page to buy that subscription.

----
Upon further inspection of the payments.php page...

If you view the source of the page for a paypal transaction, you find normal looking form submission code:

Code:
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
    <fieldset class="fieldset">
        <legend>Order Using PayPal</legend>
        <div style="padding:3px">
            <div style="margin-bottom:3px">To pay for your subscription using <a href="http://www.paypal.com" target="_blank">PayPal</a> click the button below and follow the onscreen instructions.</div>
            <div>
                
<input type="hidden" name="cmd" value="_xclick-subscriptions" />
<input type="hidden" name="business" value="<removed>" />
<input type="hidden" name="item_name" value="Member Subscription" />
<input type="hidden" name="item_number" value="<removed>" />
<input type="hidden" name="currency_code" value="USD" />
<input type="hidden" name="a3" value="5.00" />
<input type="hidden" name="p3" value="1">
<input type="hidden" name="t3" value="M">
<input type="hidden" name="src" value="1">
<input type="hidden" name="sra" value="1">
<input type="hidden" name="no_shipping" value="1" />
<input type="hidden" name="shipping" value="0.00" />
<input type="hidden" name="return" value="<removed>" />
<input type="hidden" name="cancel_return" value="<removed>" />
<input type="hidden" name="notify_url" value="<removed>" />
<input type="hidden" name="custom" value="<removed (username)>" />
<input type="hidden" name="no_note" value="1" />
<input type="hidden" name="tax" value="0.00" />

                <input type="submit" class="button" style="font-weight:normal" value="Order Using PayPal" />
            </div>
        </div>
    </fieldset>
</form>
So, my question is... can I make my own page, with my own buttons, and just paste that info in from the "payments.php?do=order" pages for each package that I create.

Will that work? (at least for paypal payments)
Reply With Quote
  #3  
Old 04-13-2007, 04:48 AM
hambil's Avatar
hambil hambil is offline
 
Join Date: Jun 2004
Location: Seattle
Posts: 1,719
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I agree this is an interesting addition. It's a way to gather small donations from your subscribers, and anyway to do that is good. Once they've already decided they will pay $1 (or whatever) for a month it's always a good time to ask them if they are willing to pay an extra $1 just to say thanks.

It would also be nice if you could assign ranks to payment levels. So if they pay 5 they get one rank, if they pay 10 they get another... without having to create, as you said, dozens or hundreds of subscription types.

Now, it just so happens that I want to add a feature to the subscription system also. I want trail memberships. Basically, a free membership for x number of days that can be purchased only once by any given member. If re-occuring then it will bill them the next time around. Pretty standard tactic.

So, I've decided to code this. I need to think through the features a bit (suggestions are welcome), but I should be putting it together and offering it here on the org sometime in the next few days.
Reply With Quote
  #4  
Old 04-13-2007, 01:10 PM
DiSpy's Avatar
DiSpy DiSpy is offline
 
Join Date: Feb 2007
Location: South Florida!!
Posts: 107
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ohh... the free trial sounds interesting as well.

I hope you can incorporate all of this into your hack, I would really love something like that. :up:

Any idea how that guy did it on his registration page? That would be the perfect time to offer a free trial.

I love your ideas, once you have something working, i'd love to help you test it.

Meantime, i'll try and think of some more features for this.
Reply With Quote
  #5  
Old 04-13-2007, 01:19 PM
hambil's Avatar
hambil hambil is offline
 
Join Date: Jun 2004
Location: Seattle
Posts: 1,719
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by DiSpy View Post
Any idea how that guy did it on his registration page?
I haven't even looked. I supposed I should aye?

Okay, I looked. Seems like he still has fixed subscriptions. He just has a nice looking page to show them, rather than the (comparatively) bland vb default one. And he has it link to the register page. Also, he has a nice integration w hen you reach the registration page. Far as I know it would appear to be custom work. I don't recall seeing the hack listed anyway.

It's obviously a vB forum but the copy right and version have been removed. Funny, since he kept the vbSEO copyright lol
Reply With Quote
  #6  
Old 04-13-2007, 02:48 PM
DiSpy's Avatar
DiSpy DiSpy is offline
 
Join Date: Feb 2007
Location: South Florida!!
Posts: 107
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by hambil View Post
It's obviously a vB forum but the copy right and version have been removed. Funny, since he kept the vbSEO copyright lol
Yeah, I noticed that... haha
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 03:06 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.03754 seconds
  • Memory Usage 2,224KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_code
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (6)post_thanks_box
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (6)post_thanks_postbit_info
  • (6)postbit
  • (6)postbit_onlinestatus
  • (6)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete