News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

A more direct route to getting customers to paid subscriptions link

Started by fishinreeltime.com, March 10, 2014, 11:33:30 PM

Previous topic - Next topic

fishinreeltime.com

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.

Sir Osis of Liver

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.......
When in Emor, do as the Snamors.
                              - D. Lister

Bob Perry of Web Presence Consulting

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...
Best Regards,
Bob Perry



"The world is moving so fast these days that the man who says it can't be done is generally interrupted by someone doing it." Elbert Hubbard

Sir Osis of Liver


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.
When in Emor, do as the Snamors.
                              - D. Lister

fishinreeltime.com

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

Bob Perry of Web Presence Consulting

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...

Best Regards,
Bob Perry



"The world is moving so fast these days that the man who says it can't be done is generally interrupted by someone doing it." Elbert Hubbard

Sir Osis of Liver

Search Subs.php for 'All the buttons'.  That's the beginning of the buttons array.
When in Emor, do as the Snamors.
                              - D. Lister

NanoSector

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.
My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

fishinreeltime.com

I am actually in my FTP now I cant find a file named /Sources/Subs.php

Kindred

If that file is not there, then your forum would not run at all.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

fishinreeltime.com

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?

Kindred

no. as I said. that file, with that exact name **MUST** be there.
Subs.php in the Sources directory
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

fishinreeltime.com

I found the subs.php file the only thing is im trying to find exactly where I should enter the code.


Sir Osis of Liver

When in Emor, do as the Snamors.
                              - D. Lister

Advertisement: