Print Page | Close Window

Invisible

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums
Forum Description: Support forum for Web Wiz Forums application.
URL: https://forums.webwiz.net/forum_posts.asp?TID=1775
Printed Date: 11 April 2026 at 10:41pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Invisible
Posted By: jabbasabba
Subject: Invisible
Date 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.



Replies:
Posted By: Chris
Date 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.



Posted By: jabbasabba
Date 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).



Posted By: Guerriero4
Date Posted: 11 January 2004 at 2:28pm
I dont get it, how can you hide a whole category???

-------------
There's no place like 127.0.0.1


Posted By: india
Date 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



Posted By: manf
Date 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 ..


Posted By: manf
Date 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.


Posted By: ljamal
Date 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.

http://ljamal.com/code/wwf780_hidcatmod.zip - Hidden Category MOD

-------------
L. Jamal Walton

http://www.ljamal.com/" rel="nofollow - L. Jamal Inc : Web/ Print Design and ASP Programming



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net