Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: fishinreeltime.com on March 10, 2014, 11:33:30 PM

Title: A more direct route to getting customers to paid subscriptions link
Post by: fishinreeltime.com on March 10, 2014, 11:33:30 PM
Hello,

I have a forum that has an option to have paid subscriptions. However it is a rather long process for customers to be able to get to the link to be able to sign up for a paid subscription. I wanted to know is there any way to create a tab that directly links to my "checkout" page. Instead of visitors having to click on the profile link and then actions link and then paid subscriptions link etc.

I just want a tab on the top that says Register Now. that takes them directly to my checkout page. Is this possible? thanks in advance for all of your time and help.
Title: Re: A more direct route to getting customers to paid subscriptions link
Post by: Sir Osis of Liver on March 10, 2014, 11:37:08 PM
You can add a 'Subscribe' button to the main forum menu that takes the member directly to the paid subs area in their profile.  Will see if I can find the code.......
Title: Re: A more direct route to getting customers to paid subscriptions link
Post by: Bob Perry of Web Presence Consulting on March 10, 2014, 11:39:37 PM
Are you familiar with editing the source files? I have my system set up so that there is a direct button under the Profile Tab that takes them directly to subscriptions page, not too hard to do if you've studied the Subs.php file...
Title: Re: A more direct route to getting customers to paid subscriptions link
Post by: Sir Osis of Liver on March 10, 2014, 11:42:26 PM

Here it is, mope.  Just stick this in the buttons array in /Sources/Subs.php -



'subscribe' => array(
'title' => '<span style="font-weight: bold;">Subscribe</span>',
'href' => $scripturl . '?action=profile;area=subscriptions',
'show' => (!$user_info['is_guest']),
'sub_buttons' => array(
),
),



Backup the file before you tinker with it.
Title: Re: A more direct route to getting customers to paid subscriptions link
Post by: fishinreeltime.com on March 15, 2014, 02:42:39 PM
Can I just cut and paste this code and it will create a link on the main menu screen to my subscriptions page? if so is  /Sources/Subs.php - the name of the file where I would add this code? if so can you tell me where in the file? Im new to all of this but with assistance and instruction I can do it. Thanks for your time and help
Title: Re: A more direct route to getting customers to paid subscriptions link
Post by: Bob Perry of Web Presence Consulting on March 15, 2014, 03:04:26 PM
Quote from: fishinreeltime.com on March 15, 2014, 02:42:39 PM
Can I just cut and paste this code and it will create a link on the main menu screen to my subscriptions page? if so is  /Sources/Subs.php - the name of the file where I would add this code? if so can you tell me where in the file? Im new to all of this but with assistance and instruction I can do it. Thanks for your time and help

Yes, in the file near the bottom you'll see several other snippets of code with exactly the same structure as this and if you study them you will recognize some of them as corresponding to your menu buttons, the only tricky part is to be sure that you insert the code into the place that you want to see the button in such a way as to NOT create a syntax error which means there's some punctuation(s) out of place or missing, if that happens just attach your entire Subs.php file to this thread and I'll fix it for ya, but truly you need to get use to making minor modifications to source at some point and the best way to learn is by trial & error by yourself...

Title: Re: A more direct route to getting customers to paid subscriptions link
Post by: Sir Osis of Liver on March 15, 2014, 03:16:37 PM
Search Subs.php for 'All the buttons'.  That's the beginning of the buttons array.
Title: Re: A more direct route to getting customers to paid subscriptions link
Post by: NanoSector on March 16, 2014, 05:02:57 PM
Had any luck with this? :)

If you feel uncomfortable with this, you can attach your Subs.php file to this topic and we'll perform the edit for you.
Title: Re: A more direct route to getting customers to paid subscriptions link
Post by: fishinreeltime.com on March 20, 2014, 08:22:16 PM
I am actually in my FTP now I cant find a file named /Sources/Subs.php
Title: Re: A more direct route to getting customers to paid subscriptions link
Post by: Kindred on March 20, 2014, 08:34:11 PM
If that file is not there, then your forum would not run at all.
Title: Re: A more direct route to getting customers to paid subscriptions link
Post by: fishinreeltime.com on April 01, 2014, 08:28:07 PM
exactly what will the file say? Exactly what will be the name of the file that im looking for? I cannot find a file named  /Sources/Subs.php. could it be named something else?
Title: Re: A more direct route to getting customers to paid subscriptions link
Post by: Kindred on April 02, 2014, 12:20:51 AM
no. as I said. that file, with that exact name **MUST** be there.
Subs.php in the Sources directory
Title: Re: A more direct route to getting customers to paid subscriptions link
Post by: fishinreeltime.com on April 02, 2014, 09:02:19 PM
I found the subs.php file the only thing is im trying to find exactly where I should enter the code.
Title: Re: A more direct route to getting customers to paid subscriptions link
Post by: ApplianceJunk on April 02, 2014, 09:14:25 PM
Seems you have two topics going on what you are trying to do...

http://www.simplemachines.org/community/index.php?topic=520662.0
Title: Re: A more direct route to getting customers to paid subscriptions link
Post by: Sir Osis of Liver on April 02, 2014, 11:30:45 PM
Three, actually.