|
|
Joined: Apr 2003
Posts: 80
Power User
|
|
Power User
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!
|
|
|
|
|
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. 
|
|
|
|
|
Joined: Apr 2003
Posts: 80
Power User
|
|
Power User
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!
|
|
|
|
|
Joined: May 2003
Posts: 1,068
Junior Member
|
|
Junior Member
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
|
|
|
|
|
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. 
|
|
|
|
|
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: <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: <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.
|
|
|
|
|
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. 
|
|
|
|
|
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 at the moment - but expanding all the time....)
|
|
|
|
|
Joined: Apr 2003
Posts: 80
Power User
|
|
Power User
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!
|
|
|
|
|
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 at the moment - but expanding all the time....)
|
|
|
|
|
Joined: Apr 2003
Posts: 80
Power User
|
|
Power User
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!
|
|
|
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.
|
|
Posts: 253
Joined: January 2000
|
|
|
Forums63
Topics37,583
Posts293,957
Members13,826
| |
Most Online151,614 Nov 14th, 2025
|
|
Currently Online 2265
Topics Created 0
Posts Made 0
Users Online 0
Birthdays 27
|
|
|
|