Support Forum

login message when restricting content for guests.

MO Monkfish
Monkfish
Member

Hello sirs!

I am wondering how or where i can add a generic message that displays when you restrict access to the forums to guest readers ?

I currently have my guest permissions set to “read forum and topic title only”, and would like to show a message telling guests to login or register should they wish to see the full content.

Can you point me in the right direction please

With thanks

Rich

6 Answers

New Answer

BR Brandon
Brandon
Member

There are a few ways you can do this. What we did on the Simple Press Demo site is create a widget that tells a non-logged in user one thing and a logged in one something else. We put it at the top of the page above the forum and the same on other pages.

See http://demo.simple-press.com/problem-with-post-edit-buttonelp/ for example as a guest. Then login as a pre-registered test member and you will see something else shown there.

A basic way to do this is shown here. http://codex.wordpress.org/Function_Reference/is_user_logged_in

You could add something like that to the actual forum page by editing it in WordPress.

MP Mr Papa
Mr Papa
Member

I would also take a look at our sneak peek feature…  it allows you to optionally show your list of forums and/or your list of topics… but not your post content…  if they try to visit the level where you stop the sneak peak, you can display a message or you can redirect to special page…

MO Monkfish
Monkfish
Member

Yes…but stupidly after I posted. Sorry.

It’s all working fantastically. Thank you once again for your help guys.

Rich

YS Yellow Swordfish
Yellow Swordfish
Member

You should be able to include html tags in the message text… did you try?

MO Monkfish
Monkfish
Member

Oops…edited my original p;ost, after finding out that you could add html!

LOL…thanks for the help guys. I think i’ve lost the plot!

YS Yellow Swordfish
Yellow Swordfish
Member

We got there in the end is the important thing!