News:

Want to get involved in developing SMF? Why not lend a hand on our GitHub!

Main Menu

Guests only can see topictitles

Started by Webby, December 22, 2004, 08:09:18 AM

Previous topic - Next topic

Webby

Hi there.

I want my guests to see all boards and in these boards all topictitles. But when they click on a topictitle to see what's it about it must show the "you have to register or login....bladiebla".

How can I do this the easiest way ?

Pause

Quote from: Webby on December 22, 2004, 08:09:18 AM
Hi there.

I want my guests to see all boards and in these boards all topictitles. But when they click on a topictitle to see what's it about it must show the "you have to register or login....bladiebla".

How can I do this the easiest way ?
All you need to do is set the board permissions so that guests can view and read all boards (if you don't want them to start/reply then obviously you don't give them the permissions to start/reply.
"You and me, inside that box, now." - The Doctor

Bite Fusion
Fusion Web Network
VG Fusion
Wrestling Fusion

[Unknown]

You could add is_not_guest() to Display.php.

-[Unknown]

Webby

Quote from: [Unknown] on December 22, 2004, 08:20:10 AM
You could add is_not_guest() to Display.php.

-[Unknown]

Where ?  How ?

I want it the way babylonking has it, you can see the whole board, the topictitles, but when you want to read the topic, you get prompted with the message to sing in or log on.....

Webby

Tried a few things without messing things up, but still it doesn't wwork the way I want it .....

Jerry

There is something I think like this posted, to show all the forums to guests, but asking them to login when they click it and don't have access.


- Jerry
Find me on:
Facebook
Twitter
PlanetSMF

"If all you look for is the negative in things, you will never see the positive."

babylonking

Quote from: [Unknown] on December 22, 2004, 08:20:10 AM
You could add is_not_guest() to Display.php.

-[Unknown]

webby just do what unkown said  ;)

in Display.php just before ?> add  is_not_guest()

Webby


[Unknown]

Actually, it's a bit better to add is_not_guest(); after this:

function Display()
{


-[Unknown]

Webby


Nemis

with this mod Guest can see all topictitels but no topic

but if i want that guest can read some topics (like forum's rules etc etc) ?

farg

I can decide which board? (for ex: id=1 and id=3)
and not only guests, but all members can see topic titles..  :D

farg

excuse me! I have mistaken to write question in the previous message!
I would want to make so that this modification is only applied to the forum that I want!
Because in a forum I would want that the visitors can also write...

even adding some "if" in the code...
but how?

[Unknown]

Quote from: [Unknown] on December 23, 2004, 06:57:36 AM
Actually, it's a bit better to add is_not_guest(); after this:

function Display()
{


-[Unknown]

if ($GLOBALS['board'] == ### || $GLOBALS['board'] == ###)
   is_not_guest();

Where ### is the board id.

-[Unknown]

farg

ok! thank's!
you're fast and precise!
that God bless to you  ;D (it is written therefore?)

farg

#15
in smf 1.0.3 this feature not work  :'(

jazz

Quote from: forgyx on April 06, 2005, 06:27:31 AM
in smf 1.0.3 this feature not work  :'(

I was just about to try this, and then saw this post.  Is there a different method to accomplish this ->
Quote from: [Unknown] on January 28, 2005, 05:40:33 PM
if ($GLOBALS['board'] == ### || $GLOBALS['board'] == ###)
   is_not_guest();

Where ### is the board id.

-[Unknown]

in 1.0.3?

[Unknown]

Nope, that should be perfectly fine in 1.0.x or 1.1.

-[Unknown]

jazz

It works great!  I just wanted to point this out, because it's something that confused me.  You do the following ->
Quote from: [Unknown] on January 28, 2005, 05:40:33 PM
Quote from: [Unknown] on December 23, 2004, 06:57:36 AM
Actually, it's a bit better to add is_not_guest(); after this:

function Display()
{


-[Unknown]

if ($GLOBALS['board'] == ### || $GLOBALS['board'] == ###)
   is_not_guest();

Where ### is the board id.

-[Unknown]

for the boards you want to block access to.  Not the boards you want to be seen.

Thanks for your help!

unknown77

for 1.0.5 its not work..  thix sux :(

Advertisement: