Web Wiz - Green Windows Web Hosting - Celebrating 25 Years!

  New Posts New Posts RSS Feed - Invisible
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Invisible

 Post Reply Post Reply
Author
jabbasabba View Drop Down
Groupie
Groupie
Avatar

Joined: 11 April 2003
Location: Sweden
Status: Offline
Points: 103
Post Options Post Options   Thanks (0) Thanks(0)   Quote jabbasabba Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
Chris View Drop Down
Newbie
Newbie
Avatar

Joined: 01 March 2003
Status: Offline
Points: 29
Post Options Post Options   Thanks (0) Thanks(0)   Quote Chris Quote  Post ReplyReply Direct Link To This Post 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.

Back to Top
jabbasabba View Drop Down
Groupie
Groupie
Avatar

Joined: 11 April 2003
Location: Sweden
Status: Offline
Points: 103
Post Options Post Options   Thanks (0) Thanks(0)   Quote jabbasabba Quote  Post ReplyReply Direct Link To This Post 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).

Back to Top
Guerriero4 View Drop Down
Newbie
Newbie
Avatar

Joined: 31 December 2003
Location: Greece
Status: Offline
Points: 16
Post Options Post Options   Thanks (0) Thanks(0)   Quote Guerriero4 Quote  Post ReplyReply Direct Link To This Post Posted: 11 January 2004 at 2:28pm
I dont get it, how can you hide a whole category???
Back to Top
india View Drop Down
Senior Member
Senior Member


Joined: 21 November 2003
Status: Offline
Points: 499
Post Options Post Options   Thanks (0) Thanks(0)   Quote india Quote  Post ReplyReply Direct Link To This Post 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

Back to Top
manf View Drop Down
Newbie
Newbie
Avatar

Joined: 17 December 2004
Location: France
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote manf Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
manf View Drop Down
Newbie
Newbie
Avatar

Joined: 17 December 2004
Location: France
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote manf Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
ljamal View Drop Down
Mod Builder Group
Mod Builder Group


Joined: 16 April 2003
Status: Offline
Points: 888
Post Options Post Options   Thanks (0) Thanks(0)   Quote ljamal Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.