Previous Thread
Next Thread
Print Thread
Rating: 5
Joined: Oct 2003
Posts: 2,305
Old Hand
Old Hand
Joined: Oct 2003
Posts: 2,305
Mod Name / Version: Hide a Forum from Everyone

Description: Hides a Forum from EVERYONE for which you can provide a link.

Working Under: UBB.Threads 6.5

Mod Status: Beta

Any pre-requisites:

Author(s): id242

Date: 07/26/04

Credits: Suggested by coloradok5 and based on id242's notes

Files Altered: ubbthreads.php, /admin/viewboard.php, /admin/doeditboard.php, templates/admin/viewboard.tmpl, languages/english/admin/generic.php, templates/default/admin/createforum.tmpl, admin/docreateforum.php


New Files:

Database Altered: yes one field added to the Boards Table

Info/Instructions:

Disclaimer: Please backup every file that you intend to modify.
If the modification modifies the database, it's a good idea to backup your database before doing so.

Note: If you modify your UBB.Threads code, you may be giving up your right for "official" support from Infopop.If you need official support, you'll need to restore unmodified files.
Attachments
117381-hideforum.txt (0 Bytes, 74 downloads)

Last edited by scroungr; 07/27/2004 7:28 PM.
Sponsored Links
Joined: Apr 2002
Posts: 610
Code Monkey
Code Monkey
Joined: Apr 2002
Posts: 610
DUDE, you just made subforums, did you not? All you have to do is make the forums, hide them, and then add the links in the right place in the forum description...????

Isn't that right?

Joined: Oct 2003
Posts: 2,305
Old Hand
Old Hand
Joined: Oct 2003
Posts: 2,305
I could make subforums in my sleep. I actually hit upon the formula when I created my shop mod. I had endless subcategories going but I decided it was bestter to limit it to one sub cat.

Joined: Apr 2002
Posts: 610
Code Monkey
Code Monkey
Joined: Apr 2002
Posts: 610
Oh my golly goodness. I am being needing of the subforums very badly. You are not knowing how bad I am being needing of them. They are mostly of the great importance to me.

Joined: May 1999
Posts: 1,715
Addict
Addict
Joined: May 1999
Posts: 1,715
I have a neat little trick on my site www.rollspel.nu where I can set some categories to only show if they have been explicitly entered in the Cat variable in the url. It's only a couple of lines of change to ubbthreads.php really.

Sponsored Links
Joined: Sep 2003
Posts: 803
Coder
Coder
Offline
Joined: Sep 2003
Posts: 803
Do you think they would be upset if you or someone created a mod for subforums and released it.

By mod I mean a full working mod to show how to add the catagory to the main forums page and link it to the sub forums.

Joined: Oct 2003
Posts: 2,305
Old Hand
Old Hand
Joined: Oct 2003
Posts: 2,305
there has to be a hidden agenda as to why they don't do subforums.. I mean if ya really look at it.. forums are actually subforums of categories.. all ya have to do is add another field to track parent and child and you have subforums of forums. now this sounds easy it does take a little work. But I figured out the fomula with my shop mod when I created endless subcategories. so until they actually do it to threads I would only consider this in a pay situation and right now I am busey converting over the vb arcade to threads which is about 90% done

Joined: Sep 2003
Posts: 803
Coder
Coder
Offline
Joined: Sep 2003
Posts: 803
Sounds logical and not to hard but you lost me at "all ya have to do is add another field to track parent and child and you have subforums of forums" lol

I can see why they would not want to add it as an option and support it because thats what makes vb set apart from threads. (my opinion only) If they were both the same there would be no reason bother going from one to the other.

totaly understandable.

Joined: Sep 2003
Posts: 803
Coder
Coder
Offline
Joined: Sep 2003
Posts: 803
while installing this mod I came to the last step in the process...

[] in languages/english/admin/createboard.php add to bottom

$ubbt_lang['HIDDEN'] = "Should Forum be shown in Main Index?";
[/]

In 6.5b1, I dont see that file...

there is createcat, creategroup, and createisland....


Also, in admin/viewboard.php there is this section to change but im not sure I get it...
[] ***find
list($Title,$Keyword,$Description,$HTML,$Expires,$Markup,$Moderated,$Cattemp,$Catnum,$Groups,$WGroups,$ThreadAge,$RGroups,$header,$stylesheet,$forumimage,$bonum,$boactive) = $dbh -> fetch_array($sth);

***add to the end, ",$HIDDEN" / change to
list($Title,$Keyword,$Description,$HTML,$Expires,$Markup,$Moderated,$Cattemp,$Catnum,$Groups,$WGroups,$ThreadAge,$RGroups,$header,$stylesheet,$forumimage,$bonum,$boactive,$bohidden) = $dbh -> fetch_array($sth); [/]

the part I dont get is where it says "***add to the end, ",$HIDDEN" / change to"? do i add that terxt to the end after I change it?


Last edited by DrChaos; 07/27/2004 6:02 PM.
Joined: Oct 2003
Posts: 2,305
Old Hand
Old Hand
Joined: Oct 2003
Posts: 2,305
change the find it. I need to edit add to the end, ",$HIDDEN" / out also in b1 theres no createboard.php in the languages/english/admin directory? there is in 6.5br4

look at the admin/createboard.php file then and see what language it calls. thats the one the string needs to go into.

Last edited by scroungr; 07/27/2004 6:32 PM.
Sponsored Links
Joined: Sep 2003
Posts: 803
Coder
Coder
Offline
Joined: Sep 2003
Posts: 803
bah, a no go there too. I downloaded 6.5b4 and dont see it in there either.

Im going to restore the files from the backups and wait and see if someone can get this to work for them

Joined: Oct 2003
Posts: 2,305
Old Hand
Old Hand
Joined: Oct 2003
Posts: 2,305
actually you are right that should have been languages/english/admin/viewboard.php I will update the instructions now

Joined: Oct 2003
Posts: 2,305
Old Hand
Old Hand
Joined: Oct 2003
Posts: 2,305
actually I moved that language string to the /languages/english/admin/generic.php

Joined: Apr 2002
Posts: 610
Code Monkey
Code Monkey
Joined: Apr 2002
Posts: 610
sweet! Very much looking forward to the vb arcade in ubbt

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
[]scroungr said:
there has to be a hidden agenda as to why they don't do subforums.. I mean if ya really look at it.. forums are actually subforums of categories.. all ya have to do is add another field to track parent and child and you have subforums of forums. now this sounds easy it does take a little work. But I figured out the fomula with my shop mod when I created endless subcategories. so until they actually do it to threads I would only consider this in a pay situation and right now I am busey converting over the vb arcade to threads which is about 90% done [/]

Yeah, JustDave did something like that on a site I saw.

IMO, Infopop leaving out subforums, was a very serious mistake.

Joined: Apr 2002
Posts: 610
Code Monkey
Code Monkey
Joined: Apr 2002
Posts: 610
I agree Josh.

Not only because there are a lot of threads users requesting it, but also because there are a lot of potential customers closely comparing threads and VB and that is one area where VB really "ONE UP'S" threads...IMO.

Joined: Apr 2002
Posts: 474
Enthusiast
Enthusiast
Offline
Joined: Apr 2002
Posts: 474
With this mod will a hidden forum be excluded from searches?

Joined: Sep 2003
Posts: 803
Coder
Coder
Offline
Joined: Sep 2003
Posts: 803
I got it installed and working on 6.5b1.

One last observation for you though. In the directions where you have
[] ***find
if ($boactive) {
$boactive_checked = "checked="checked"";
}
[/]

In 6.5b1 it is written backwards like this
[] $boactive_checked = "checked="checked"";

if ($boactive) {
}[/]

So I just reversed what you said to add below it to look like this and it works perfectly.
[]
$bohidden_checked = "checked="checked"";

if ($bohidden) {
}
[/]

Joined: Oct 2003
Posts: 2,305
Old Hand
Old Hand
Joined: Oct 2003
Posts: 2,305
I know I saw that line to and just chalked that up to a bug cause it made no sense...

Joined: Feb 2002
Posts: 2,286
Veteran
Veteran
Joined: Feb 2002
Posts: 2,286
[]Gardener said:
I have a neat little trick on my site www.rollspel.nu where I can set some categories to only show if they have been explicitly entered in the Cat variable in the url. It's only a couple of lines of change to ubbthreads.php really. [/]

Isn't this default - unless I am missunderstanding you.

If I am perhaps you can share your code / what you mean

Thanks.


Fans Focus - Focusing on Fans of Sport

(Okay - mainly football (the British variety wink at the moment - but expanding all the time....)
Gorlum #277316 07/29/2004 7:54 AM
Joined: May 1999
Posts: 1,715
Addict
Addict
Joined: May 1999
Posts: 1,715
[]Ian_W said:
[]Gardener said:
I have a neat little trick on my site www.rollspel.nu where I can set some categories to only show if they have been explicitly entered in the Cat variable in the url. It's only a couple of lines of change to ubbthreads.php really. [/]

Isn't this default - unless I am missunderstanding you.

If I am perhaps you can share your code / what you mean

Thanks. [/]

No, by default all categories are shown on the forum index, and thus all forums. I've opened a new category which can only be viewed from a special forum index so that they won't show up on the main forum index but can still be viewed by clicking on a link in the menu.

In the link I've added Cat=5 when I want to show the list of the forums in the "hidden" category. This will keep the user in this category, only showing these forums when clicking on the "Main Index" li until they click on the link to get back to viewing (almost) all categories.

I did this because I wanted to open some users to be able to have their own forums for their own little projects, without them taking up space and load on the main index.

Why I mentioned it is because it sounded like it was very similar to the mod in this thread, and if that is what sub-forums are used for I might finally have understood what the fuss about them are.

The code is very simple, I add the numbers of the categories I want to show in a config option and if that number is not in the Cat variable it isn't included in the list of forums read from the database.

c0bra #277317 07/29/2004 12:53 PM
Joined: Feb 2002
Posts: 2,286
Veteran
Veteran
Joined: Feb 2002
Posts: 2,286
Oh I see in the index page - I do likewise.

I think the thing with sub-forums, is that the forums are also shown in the breadcrumbs as an extra layer or two. This enables quicker navigation.

I have a similar set-up on www.nonleague.com - where a limited number of forums are shown on the index page, but links are provided in the forum descriptions. they then show up the different categories in the URL.

I think it is vritually impossible to list all the categories on one page on my site.

I would like to add more forums to my site, but without sub-forums, I do not think I can.

I am not sure if this mod does the same thing - perhaps someone could show an example with it in use.

Ian


Fans Focus - Focusing on Fans of Sport

(Okay - mainly football (the British variety wink at the moment - but expanding all the time....)
Gorlum #277318 07/29/2004 5:27 PM
Joined: Oct 2003
Posts: 2,305
Old Hand
Old Hand
Joined: Oct 2003
Posts: 2,305
actually I may try and make subforums for 6.5 a mod once it goes out of beta

Joined: Jul 2001
Posts: 442
Enthusiast
Enthusiast
Offline
Joined: Jul 2001
Posts: 442

Joined: Sep 2003
Posts: 803
Coder
Coder
Offline
Joined: Sep 2003
Posts: 803
did I read what I think I just read?

Also, Did I meantion that I love you. (not in that way)

Joined: Jan 2002
Posts: 674
Junior Member
Junior Member
Offline
Joined: Jan 2002
Posts: 674
Is this possible on the 6.4 I am not to sold on 6.5 yet

BTW this a very cool and glad somebody finally cracked the wall of subforums.

234234 #277322 09/17/2004 3:40 AM
Joined: Feb 2002
Posts: 2,286
Veteran
Veteran
Joined: Feb 2002
Posts: 2,286
[]scroungr said:
actually I may try and make subforums for 6.5 a mod once it goes out of beta [/]

Sounds Good I am just in the process of upgrading to 6.5 and am genuinely struggling to see how I can organise my forums without sub-forums/sub-categories.

It is a bit like have all your files on your computer in the root - it looks a mess


Fans Focus - Focusing on Fans of Sport

(Okay - mainly football (the British variety wink at the moment - but expanding all the time....)
Gorlum #277323 09/28/2004 11:18 PM
Joined: Nov 2000
Posts: 1,271
Kahuna
Kahuna
Joined: Nov 2000
Posts: 1,271
ok, i'm a little confused here, so go easy on me

what i'd like to do is set up an "announcements" forum that is not viewable on the main index, but is viewable on the entrance IIP page

whats the best way to go about that?

#277324 09/29/2004 2:14 AM
Joined: Feb 2002
Posts: 2,286
Veteran
Veteran
Joined: Feb 2002
Posts: 2,286
You should be able to use this mod - and turn off the button that says display on the index page - it should still display on the entrance if you select it within IIP


Fans Focus - Focusing on Fans of Sport

(Okay - mainly football (the British variety wink at the moment - but expanding all the time....)
Gorlum #277325 10/06/2004 10:27 AM
Joined: Feb 2002
Posts: 2,286
Veteran
Veteran
Joined: Feb 2002
Posts: 2,286
Slight correction to the instructions...


Run the following mysql command

ALTER TABLE `w3t_Boards` ADD `Bo_Hidden` VARCHAR( 3 ) DEFAULT 'OFF' NOT NULL;


should be


Run the following mysql command

ALTER TABLE `w3t_Boards` ADD `Bo_Hidden` VARCHAR( 3 ) DEFAULT 'OFF' NOT NULL

(I think )


Fans Focus - Focusing on Fans of Sport

(Okay - mainly football (the British variety wink at the moment - but expanding all the time....)
Gorlum #277326 10/11/2004 8:46 PM
Joined: Jan 2003
Posts: 141
Journeyman
Journeyman
Offline
Joined: Jan 2003
Posts: 141
I finally got this installed and I have a problem. When moving a thread from another forum into the hidden one, it doesn't show up. However if you go into another thread in the hidden forum and hit "prev" or "next" it is there. It just doesn't show in the list.

Also is there a way not to have the forums listed in the "Jump to" box?

#277327 10/12/2004 2:36 PM
Joined: Jan 2003
Posts: 141
Journeyman
Journeyman
Offline
Joined: Jan 2003
Posts: 141
I checked to make sure it wasn't a fluke and imported another thread into another hidden forum and it is the same thing. It is there, just not visible.

#277328 10/13/2004 6:12 PM
Joined: Jan 2003
Posts: 141
Journeyman
Journeyman
Offline
Joined: Jan 2003
Posts: 141
Has anyone else tried to move a thread into a hidden forum? Or am I just an unlucky guy? LOL

#277329 10/13/2004 8:12 PM
Joined: Oct 2003
Posts: 2,305
Old Hand
Old Hand
Joined: Oct 2003
Posts: 2,305
haven't tried it.

234234 #277330 10/14/2004 6:24 PM
Joined: Jan 2003
Posts: 141
Journeyman
Journeyman
Offline
Joined: Jan 2003
Posts: 141
Well I guess that we'll just call it a bug then. Now it's off to uninstall it.


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:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
isaac
isaac
California
Posts: 1,157
Joined: July 2001
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)