News:

Wondering if this will always be free?  See why free is better.

Main Menu

[2.0] Subscriptions

Started by Turtles, August 11, 2010, 10:50:56 AM

Previous topic - Next topic

Turtles

Hello. May I ask how to make a category like "Home" on 2.0 RC SMF Forums but instead of home, make it go to like a menu, where you can pay for Subscriptions. Right now its at Profile -> Actions, but its too long to get to it. So is it possible to make a category with Subscriptions in it.

CapadY

In sources/subs.php you will find the neubar. Nearly at the bottom end of that file.

Just copy and paste the subscription option from the profile to the home button.
Please, don't PM me for support unless invited.
If you don't understand this, you will be blacklisted.

Turtles

#2
Quote from: capady on August 11, 2010, 11:00:57 AM
In sources/subs.php you will find the neubar. Nearly at the bottom end of that file.

Just copy and paste the subscription option from the profile to the home button.

How do I do that ? Sorry I'm kind of.. new to this.

Edit: Ah, found the category I was looking for. Now what do I replace it with? Subscription stuff? Like at the moment its

),
'help' => array(
'title' => $txt['help'],
'href' => $scripturl . '?action=help',
'show' => true,
'sub_buttons' => array(
),

Do I edit it to something like this?

),
'help' => array(
'title' => $txt['Subscribe'],
'href' => $scripturl . '?action=subscribe',
'show' => true,
'sub_buttons' => array(
),

Turtles


CapadY

Don't bump within 24 hours please.

Please, don't PM me for support unless invited.
If you don't understand this, you will be blacklisted.

Turtles


mirahalo

try this one:


         'subscribe' => array(
            'title' => 'subscriptions',
            'href' => $scripturl . '?action=subscribe',
            'show' => true,
            'sub_buttons' => array(
            ),

clean your cache after the changes.


and yes, please as capady said, do not bump your topics, theres a 24 hours period, capady, as the rest of the people here, are all volunteers.

Turtles

How do I delete my cache?  :-\

mirahalo

go to admin / Forum Maintenance »
Routine /  Empty the file cache

Turtles

Works, I got no errors but it does nothing. As in, its just like another "Home" Button, but in address bar it displays the action=subscribe

mirahalo

well, you need to actually have that page  action=subscribe


Im assuming you wnat to use the Paid Subscriptions, you have to enable this first on admin/ core features / Paid Subscriptions / click the icon, and click save on the button, once its enable

you will see a Paid Subscriptions menu on the members menu  where you cna configure your Paid Subscriptions


the link will be somthing like this:   ?action=profile;area=subscriptions;u=0

so try this one, dont forget to clean your cache again.


   'subscribe' => array(
            'title' => 'subscriptions',
            'href' => $scripturl . '?action=profile;area=subscriptions;u=0',
            'show' => true,
            'sub_buttons' => array(
            ),

Turtles

One more question, what's the =action for Home? (Index) I just made one for =forum, and i've got a front page. I tried creating a home button w/o any action but it doesnt redirict to the frontpage

mirahalo

theres no action for home, just use this:    'href' => $scripturl,   


the home action its only available if you have a portal,  there will be two, one called forum and another called home

Advertisement: