Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
general-topic
How I redirect people to a sales page?
Avatar
David Jeters
Member
Free Members
sp_UserOfflineSmall Offline
Jan 7, 2013 - 2:40 pm

I currently trying to setup a paid forum, similar to this forum.

Although I can't figure out how to get the "become a member" button(which is next to the login button on this site, but not mine) to show up for unregistered users.

Also I am not sure how to setup the redirect to a sales page for the teaser content.

 

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Jan 7, 2013 - 3:40 pm

You can not distinguish between registered and non-registered users only between those logged in and those not logged in. The easiest way to test if a user is logged in is to use the WP function:

is_user_logged_in()

which will return a true or a false.

What is meant by 'teaser content'?

andy-signature.png
YELLOW
SWORDFISH
Avatar
David Jeters
Member
Free Members
sp_UserOfflineSmall Offline
Jan 9, 2013 - 11:24 am

So you are saying that the "become a button" is not part of the simplepress and has to be coded in using the is_user_logged_in() WP Function?

Teaser content - is any content that you only see a portion of for free, and if you want to see the full content you have to pay. So on your website I am referring to how your support forum works. So if I am not logged in I can see your forum and the threads in each of the forums, but if I want to read a thread, I have to pay for a membership. Hopefully I explained that in a way that makes sense.

So what are my options on doing a redirect from within the simplepress plugin to a sales page/membership page?

 

 

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Jan 9, 2013 - 2:04 pm

The 'Become a member' button you see on our site falls under the banner of customisation - yes. It is not hard to achieve however. This is how we coded it into the template (spHead.php - replacing the standard registration function):

if (!sp_get_auth('reply_topics')) {
   echo "<a class='spButton spRight vtip' title='Become an SP Support Member' href='".SFSITEURL."membership/'>";
   echo "<img class='spIcon' src='".SPTHEMEICONSURL."sp_Registration.png' alt=''/>Become Member</a>";
}

This checks to see if the user can reply to topics as opposed to being logged in. It also - obviously - loads our own url. Easily adaptable.

As to your other question then go to the forum admin > components > custom messages. Right hand side - Sneak Peek. I think that is what you will need.

andy-signature.png
YELLOW
SWORDFISH
Avatar
David Jeters
Member
Free Members
sp_UserOfflineSmall Offline
Jan 9, 2013 - 2:49 pm

Thanks, that helped, although now I have a few questions.

So, if I update the spHead.php, will have update it again when you update simplepress?

Where should I place to the code in the spHead.php file to get the same effect as in your forum? I placed your code at the bottom of spHead.php and it makes button appear below the log-in button. If I place the code at the top of the spHead.php it makes the "become a member" button appear above the log-in button.

Where can turn on the Sneek Peek for a forum? I know its probably very obvious, but I can't seem to find it.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Jan 9, 2013 - 3:03 pm

As always we recommend that you create your own SP theme so that any customisation is not lost during a future update. (http://codex.simple-press.com/.....g-a-theme/)

As I said - replace the current function that displays the registration button. Or - if you want to keep that button, place this code beside it.

Setitng things so users can view forums but not posts - for example - are all permissions that you assign to user groups via the forums. See our Getting Started section on the codex for examples and details.

andy-signature.png
YELLOW
SWORDFISH
Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 619
Members: 17362
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625