How to set that when a guest access the forum, it show a login form but not the category lists.
Aug 8, 2002, 3:16 AM
User (190 posts)
Aug 8, 2002, 3:16 AM
Post #2 of 12
Views: 7657
Hello backdream
hopefully I understood you correctly
go to your Admin Planel
go to Forn
select there the forum of your choice
and modify
With Group Permission you can make the attitudes for Guest users and Non Validated users
Greets hoefti
linktobuy Web Directory
Ratgeber Recht
hopefully I understood you correctly
go to your Admin Planel
go to Forn
select there the forum of your choice
and modify
With Group Permission you can make the attitudes for Guest users and Non Validated users
Greets hoefti
linktobuy Web Directory
Ratgeber Recht
Aug 8, 2002, 10:32 PM
User (190 posts)
Aug 8, 2002, 10:32 PM
Post #4 of 12
Views: 7658
Hello
Ok i understand
in your Admin Planel
open template
category_list.html
after the head of this template
( --%> )
put <%if current_Username%>
at the end of the Site
put <%else%>
<%include login.html%>
<%endif%>
As current_Username will only be available if a user has logged in.
if he not logging in the login.html will be iincluded
Greets hoefti
Sorry about my englisch :)
linktobuy Web Directory
Ratgeber Recht
Ok i understand
in your Admin Planel
open template
category_list.html
after the head of this template
( --%> )
put <%if current_Username%>
at the end of the Site
put <%else%>
<%include login.html%>
<%endif%>
As current_Username will only be available if a user has logged in.
if he not logging in the login.html will be iincluded
Greets hoefti
Sorry about my englisch :)
linktobuy Web Directory
Ratgeber Recht
Aug 10, 2002, 6:48 PM
Staff / Moderator (2198 posts)
Aug 10, 2002, 6:48 PM
Post #5 of 12
Views: 7600
That should be: <%if current_user_username%> instead of <%if current_Username%> - but it's probably better to use: <%if current_user_id%> - checking the username could fail if someone signed up with the username "0".
Jason Rhinelander
Gossamer Threads
jason@gossamer-threads.com
Jason Rhinelander
Gossamer Threads
jason@gossamer-threads.com
Aug 11, 2002, 7:52 PM
Staff / Moderator (2198 posts)
Aug 11, 2002, 7:52 PM
Post #7 of 12
Views: 7576
Basically, a user who hasn't logged in will have their permission defined by the permissions of the Guest group. So, if you have a forum set to:
So, set forums that guests shouldn't see to "No Access" and leave the ones that they should be able to view as "Read access" (the default).
Jason Rhinelander
Gossamer Threads
jason@gossamer-threads.com
- No Access - the group won't see the forum in the list
- Viewable in forum list - the group will see the forum name, but it isn't linked and they won't be able to see what's in it
- Posts viewable but not readable - the group will be able to enter it and see the lists of posts, but won't be able to actually read them.
- Read access - the group can enter the forum and read posts (this is the default for the guest group)
- Read/Reply - the group can enter the forum, read posts, and reply to any threads
- Read/Reply/Post - the group can enter the forum, read posts, reply to any threads, and start new threads
So, set forums that guests shouldn't see to "No Access" and leave the ones that they should be able to view as "Read access" (the default).
Jason Rhinelander
Gossamer Threads
jason@gossamer-threads.com
Aug 11, 2002, 9:21 PM
Staff / Moderator (2198 posts)
Aug 11, 2002, 9:21 PM
Post #9 of 12
Views: 7610
Oh, I see. You can do that by putting:
<%if num_forums or num_subcats%>
<%endif%>
around the category display.
Jason Rhinelander
Gossamer Threads
jason@gossamer-threads.com
Code:
<%if num_forums or num_subcats%>
<%endif%>
around the category display.
Jason Rhinelander
Gossamer Threads
jason@gossamer-threads.com
Sep 11, 2002, 5:54 PM
Enthusiast (648 posts)
Sep 11, 2002, 5:54 PM
Post #11 of 12
Views: 7531
Hi Ian
I had this working but now that I have created a subsection in a section below root, the top section which has subsections (and discussions) is displayed.
For example you have
Products [-]
and then Gossamer Mail [-]
when I use this code Gossamer Mail and content is not displayed, however "Products" is displayed but no content below.
Also could you give a better indication as to where the "category display" starts and stops, maybe I didn't put my <%endif> far enough down.
John
Significant Media
I had this working but now that I have created a subsection in a section below root, the top section which has subsections (and discussions) is displayed.
For example you have
Products [-]
and then Gossamer Mail [-]
when I use this code Gossamer Mail and content is not displayed, however "Products" is displayed but no content below.
Also could you give a better indication as to where the "category display" starts and stops, maybe I didn't put my <%endif> far enough down.
John
Significant Media
Feb 28, 2005, 7:12 AM
User (64 posts)
Feb 28, 2005, 7:12 AM
Post #12 of 12
Views: 7350
Hello Jason,
Along the lines of this thread, would it be possible to set up a 'private' category that only users belonging to a certain group could see ?
In pseudo-perl:
next unless user_group=~/SPECIAL/;
}
Thanks.
Bob
Along the lines of this thread, would it be possible to set up a 'private' category that only users belonging to a certain group could see ?
In pseudo-perl:
Code:
if (category_name=~/private/) { next unless user_group=~/SPECIAL/;
}
Thanks.
Bob