| Author |
Topic Search Topic Options
|
jabbasabba
Groupie
Joined: 11 April 2003
Location: Sweden
Status: Offline
Points: 103
|
Post Options
Thanks(0)
Quote Reply
Topic: Invisible Posted: 11 April 2003 at 3:43pm |
In my Webwizforum I have an Category and itīs invisible to users that isnīt in a specific group. But itīs not entire invisible because when you are not logged in you still can see the Category-Titel. You canīt use the hidden Forum but see the title. So if I have a lot of invisible forum for different groups, everyone still can see the category-title. This could be nagged when you canīt see but just a lot of titles and no Forum to discuss in.
So, when you chose to hide a Forum if no access then the Category is also invisible. Because I donīt want anyone who has no access to see that there is a hidden Forum.
|
 |
Chris
Newbie
Joined: 01 March 2003
Status: Offline
Points: 29
|
Post Options
Thanks(0)
Quote Reply
Posted: 11 April 2003 at 11:44pm |
One solution could be to name the categories to blank spaces, i.e.
Category 1: _ 2: __ 3: ___ 4: _____
etc where _ stands for a press on your space-key.
|
 |
jabbasabba
Groupie
Joined: 11 April 2003
Location: Sweden
Status: Offline
Points: 103
|
Post Options
Thanks(0)
Quote Reply
Posted: 12 April 2003 at 7:46am |
Yes thatīs working. Thank you Chris! 
But is there anyway to get this work without writing spaces for the category title? It should be two alternatives: either you hide a Forum under a specific Category or you can hide the entire Category (inclusive the Forums under that).
|
 |
Guerriero4
Newbie
Joined: 31 December 2003
Location: Greece
Status: Offline
Points: 16
|
Post Options
Thanks(0)
Quote Reply
Posted: 11 January 2004 at 2:28pm |
|
I dont get it, how can you hide a whole category???
|
 |
india
Senior Member
Joined: 21 November 2003
Status: Offline
Points: 499
|
Post Options
Thanks(0)
Quote Reply
Posted: 11 January 2004 at 2:50pm |
There is a mod. the function is
suppose there is a category with 1 forum which is not accessible to u, it wont display u that category only.. ys if its more than 1 forum n only 1 forum not acessible 2 u it wont work
|
 |
manf
Newbie
Joined: 17 December 2004
Location: France
Status: Offline
Points: 4
|
Post Options
Thanks(0)
Quote Reply
Posted: 30 December 2004 at 11:29am |
|
I also encountered the problem and changed the code in the default.asp
page (so it does not show the categories with only invisible forums).
However I still have troubles with two features which makes the 'invisible forums' not fully invisible :
- the text search (which may return topics from invisible forums in the search results)
- the drop-lists to quick-go to a forum or to move a topic to anoter forum.
I will try to find a more generic way to list only the forums visible by the user (coming soon).
Amicalement ..
Edited by manf - 31 December 2004 at 9:15am
|
 |
manf
Newbie
Joined: 17 December 2004
Location: France
Status: Offline
Points: 4
|
Post Options
Thanks(0)
Quote Reply
Posted: 31 December 2004 at 7:30am |
|
I have a solution :
I added the following procedure :
create procedure selectVisibleForums
(
@AuthorId int
)
as
begin
declare @groupId int ;
select @groupId = Group_ID from tblAuthor where Author_ID=@AuthorId ;
select distinct tblForum.* from tblForum , tblPermissions
where
(
(tblForum.Hide=0)
OR
(
tblPermissions.Forum_ID = tblForum.Forum_ID
AND
(
tblPermissions.Author_ID = @AuthorId
OR
tblPermissions.Group_ID = @groupId
)
AND tblPermissions.[Read]=1
)
)
order by tblForum.Cat_ID ;
end ;
Of course, you must adapt that to your table names, and it won't work for Access DB (yet, adapting it should be fairly simple).
This procedure will return you the details of all forums the user is allowed to see, ordered by forum category.
Updated 04/01/2005 : I added the AND tblPermissions.Read=1 in the Where clause.
Edited by manf - 05 January 2005 at 11:14am
|
 |
ljamal
Mod Builder Group
Joined: 16 April 2003
Status: Offline
Points: 888
|
Post Options
Thanks(0)
Quote Reply
Posted: 31 December 2004 at 5:28pm |
here's a mod that will hide the categories if there is no forum to display. it works for all database versions.
Hidden Category MOD
|
|
|
 |