Previous Thread
Next Thread
Print Thread
Rate Thread
#246991 05/18/2003 8:04 PM
Joined: Apr 2003
Posts: 80
Power User
Power User
Offline
Joined: Apr 2003
Posts: 80
I'll try not to become a pain in the butt, but I have another question. Can I set up a category that will not be displayed on the main index? I want to give a group of people (from my church) ability to use threads but dont need anyone else to see it.


Promoting the world on bike!
Sponsored Links
Revlis #246992 05/18/2003 8:34 PM
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
You can use the URL Cat= to have them only view a specific category - but not really the other way around.

But you can create user groups and assign certain users to it, then set up forums that only that group can see.

Daine #246993 05/18/2003 8:42 PM
Joined: Apr 2003
Posts: 80
Power User
Power User
Offline
Joined: Apr 2003
Posts: 80
What I was hoping to do was not even show certain categories on my main index page. I have done what you suggested with the forums associated with that category, but I assume there is no way to hide the category from my main index. Oh well..

Last edited by biketrip; 05/18/2003 8:43 PM.

Promoting the world on bike!
Revlis #246994 05/18/2003 8:49 PM
Joined: May 2003
Posts: 1,068
Junior Member
Junior Member
Offline
Joined: May 2003
Posts: 1,068
Here's how I would do it, granted I am new too and these guys may have a much better method.

For this turorial let's use the group name "Special"

In Admin start by creating a group for the users that you want to see the forum, go to 'Group Management > Create a new group > Special'. Then add the users the Special group 'User Management > Show / Edit Users > User > Username > Edit groups' and select Special for their group.

Now to make the forum so that only users in the Special group can see it. 'Forum Management > Edit or delete a forum > (hidden forum name)' and set the following permissions:

Administrators: Read and write
Moderators: Read and write (if you want mods to see it)
Users: No access
Guests: No access
Special: Read and write

Now only the "Special" group, Mods and Administrators will see the forum and it will be hidden to everyone else



Revlis #246995 05/18/2003 8:50 PM
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
If you make the forums only visible to certain "groups" and not visible to others - then it won't appear - unless a member of that group is logged in.

Sponsored Links
Revlis #246996 05/18/2003 9:55 PM
Joined: May 1999
Posts: 1,715
Addict
Addict
Joined: May 1999
Posts: 1,715
I did exactly that a few days ago, made all forums in one given category not show up on the main index, unless that category was specifically specified in the Cat variable.

This works only for UBB.threads 6.1.x, since there has been some changes in 6.2.x, but I don't think it would be too hard to update it.
Find the following in ubbthreads.php:
Code
<br />// ------------------------------------<br />// Are we just looking at one category?<br />   $catsonly = $user['U_FrontPage'];<br />   $main     = "ubbthreads";<br />   if ($config['catsonly']) {<br />      $main = "categories";<br />   }<br />   if (!$catsonly) {<br />      $catsonly = $main;<br />   }<br />   if ( ($C) && ($catsonly == "categories") ) {<br />      $catonly = "WHERE Cat_Number = '$C'";<br />   }<br />


ADD the following below:
Code
<br />// -------------------------------------------------------<br />// Hack: Don't show category unless specifically asked for<br />   $catarr = split(",", $Cat);<br />   if ( !in_array(5, $catarr) ) {<br />       if ( !$catonly ) {<br />           $catonly = "WHERE";<br />       } else {<br />           $catonly .= " AND";<br />       }<br />       $catonly .= " Cat_Number <> 5";<br />   }<br />


Just change the "5" to the category number you don't want displayed on the main index.

c0bra #246997 05/18/2003 10:12 PM
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
That's a good idea.

Daine #246998 05/19/2003 2:10 AM
Joined: Feb 2002
Posts: 2,286
Veteran
Veteran
Joined: Feb 2002
Posts: 2,286
Useful idea Gardener - one problem I have is that I have far too many forums showing up on the main page - I could do with cutting out 90% of them, so that it did not appear overwhelming for first time visitors - With my site the majority visit via links that automatically add in the cat numbers - so it should not affect too many people, whilst at the same time keep cats visible to guests via the various links.

An alternative Biketrip is to give your church members a unique link such as http://www.domain.com/st_andrews - then within your .htaccess file enter the following...

RewriteEngine on
redirect permanent /st_andrews http://www.domain.com/ubbthreads.php?Cat=1,2,4

That would then mean everytime they enter their URL, they would automatically be shown the cats listed in the redirect - everyone else going directly to the URL would see all of them.


Fans Focus - Focusing on Fans of Sport

(Okay - mainly football (the British variety wink at the moment - but expanding all the time....)
Gorlum #246999 05/19/2003 7:28 AM
Joined: Apr 2003
Posts: 80
Power User
Power User
Offline
Joined: Apr 2003
Posts: 80
Fantastic. I'm a little embarrassed because I had essentially done what you suggested but hadn't really logged out to check it

Once I get up to speed maybe I can incorporate some of the other great suggestions made

Thanks to all..


Promoting the world on bike!
Revlis #247000 05/19/2003 12:23 PM
Joined: Feb 2002
Posts: 2,286
Veteran
Veteran
Joined: Feb 2002
Posts: 2,286
Another idea

If you would like to 'hide' certain categories from the main page, put the following in your .htaccess file. This will work if you are using the IIP from JustDave, and your index page is your home page

DirectoryIndex index.php?Cat=1,3,4

This will 'hide' category 2 both from the pal boxes, and also from the main screen when you click on the main index.




Fans Focus - Focusing on Fans of Sport

(Okay - mainly football (the British variety wink at the moment - but expanding all the time....)
Sponsored Links
Gorlum #247001 05/19/2003 2:10 PM
Joined: Apr 2003
Posts: 80
Power User
Power User
Offline
Joined: Apr 2003
Posts: 80
Okay, I reckon I need to start learning what the .htaccess file is, but shouldn't be a problem. Thanks!


Promoting the world on bike!

Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
• Shock Hosting
• Stable Host
• bluehost
• InterServer
Visit us on Facebook
Member Spotlight
Ruben Rocha
Ruben Rocha
Lutz,FL,USA
Posts: 253
Joined: January 2000
Forum Statistics
Forums63
Topics37,583
Posts293,957
Members13,826
Most Online151,614
Nov 14th, 2025
Today's Statistics
Currently Online 2265
Topics Created 0
Posts Made 0
Users Online 0
Birthdays 27
Top Posters
AllenAyres 21,080
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,834
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2026 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.1.0
(Snapshot build 20261026)