Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 06-06-2017, 04:42 PM
rbrt508 rbrt508 is offline
 
Join Date: Feb 2016
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Payments.php permissions/features

Greetings!

My forum is dedicated to technical support revolving around game servers, dedicated servers, web hosting, and applications. I intend to offer recurring products and services through my forum that I believe vBulletin handles very well without the need to purchase external billing software, especially for someone trying to get their site off the ground with minimal resources but a lot of time and effort that will pay off in the end.

I would like to make my payments.php page visible to the unregistered users, but they can not order without an account. Currently, no one can view this page unless logged in.

This page for example:
https://overclockedlan.pro/threads/5...-64GB-DDR4-RAM)

If you take a look at the page, you will see that I have a "Buy Now" button on the bottom. This button links back to the payments.php page where the user can then choose this server (or future standalone services and subscriptions).

Furthermore what I am wondering, is if there is a way I can directly link to said subscription. The only thing I see at the end of the URL is do?=order or something like that, which is pretty generic. There is no ID to tell the URL exactly what subscription I am looking for.

I know that this feature of vBulletin isn't necessarily used for this, but it is perfect for where I want to be right now. It also integrates the way I want to; flawless.

Is there a plugin to further enhance the capabilities of vBulletin paid subscriptions? I am not looking for something like the eCommerce plugin that is now un-supported, and out of date with errors out of the box. Additionally, it has too many features that I do not require. I enjoy the simplicity of the vB paid subs.

Would even appreciate something along the lines of a category instructional or plugin that could be added.

Would modifying the paid subscriptions feature be as simple as modifying the payments.php code itself? Or should I expect to also look at includes if I am taking this route?

Thanks.
Reply With Quote
  #2  
Old 06-06-2017, 05:44 PM
Dave Dave is offline
 
Join Date: May 2010
Posts: 2,583
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Right now payments.php is pretty much integrated into the UserCP page. It's possible to do what you want, but you'll have to make quite some modifications.
  • Remove any requirement that the user is logged in.
  • Modify the template so people who are not logged in don't see UserCP related things.
  • Adjust the information vBulletin stores in the database when someone makes a payment (paymentinfo table). It's used to check if it's a valid payment when the payment provider pings back to vBulletin. If a valid payment has been made, it uses the information in the paymentinfo table to update the users settings.
    • Along with this, you have to modify payment_gateway.php which handles incoming requests from payment providers.
    • Instead of modifying payment_gateway.php, you could create your own payment gateway script which you can modify exactly to your needs. This would probably be easier.
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 05:00 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03992 seconds
  • Memory Usage 2,166KB
  • 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)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (2)post_thanks_box
  • (2)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (2)post_thanks_postbit_info
  • (2)postbit
  • (2)postbit_onlinestatus
  • (2)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