Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Jul 2001
Posts: 14
Junior Member
Junior Member
Offline
Joined: Jul 2001
Posts: 14
I wish a particular category not to display on the main forum page. I will then create a separate link to the category summary page. Can this be done? I don't mind if this is just hard code. help

Sponsored Links
Joined: May 2002
Posts: 77
Member
Member
Offline
Joined: May 2002
Posts: 77
Use the hidden forum hack.

Joined: Jul 2001
Posts: 14
Junior Member
Junior Member
Offline
Joined: Jul 2001
Posts: 14
Using the hidden forum hack will hide the forum no matter it is in the main page or not. What I want is just not to display a particular category in the main page but leave it intact when I just display that category alone. frown

Joined: May 2002
Posts: 77
Member
Member
Offline
Joined: May 2002
Posts: 77
Ah, I misread the original post. I think you just need to hack the SortForums subroutine in ubb_forum_summary.cgi. This should work:

Find:

Code
[/code]and change to:

[code]
I'm not 100% sure since I haven't tested it or anything. It should work though.

Joined: May 2002
Posts: 77
Member
Member
Offline
Joined: May 2002
Posts: 77
Actually, the Extended Category Hack can hide entire categories for you. You should use that instead.

Sponsored Links
Joined: Mar 2001
Posts: 7,394
LK Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
That's basically its purpose - not to hide it so only admins can see it, but to hide it because there are 2 different purposes, test things, etc. Example - http://www.nomadsoft.net/ - you can see "Syncronet" in the list at the left, but not at http://www.nomadsoft.net/cgi-bin/ubb/ultimatebb.cgi laugh

Joined: Jul 2001
Posts: 14
Junior Member
Junior Member
Offline
Joined: Jul 2001
Posts: 14
I am using 6.2. So I cannot use the extended category hack.

I have try

quote:
foreach (@sorted_forums) {
if ($in{category} eq "$cat_list{$_}" && $in{category} ne "7") { push (@sortforums, $forum_line_list{$_}); }
}

but seems nothing happens. I have also try != 7 instead of ne "7" but it did not work too.

What does $in{category} stands for?

Joined: Mar 2001
Posts: 7,394
LK Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
I think it should be:
[code][/code]

Joined: Jul 2001
Posts: 14
Junior Member
Junior Member
Offline
Joined: Jul 2001
Posts: 14
It does not work either. The output looks like as if nothing has been edited.

I try to comment out these 3 lines, nothing happens. It seems that the display do not involve this three lines.

Joined: Mar 2001
Posts: 7,394
LK Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
It's only when using ?category=X, you know

Sponsored Links
Joined: Jul 2001
Posts: 14
Junior Member
Junior Member
Offline
Joined: Jul 2001
Posts: 14
It seems that this is not what I need. Your Extended Category Hack is exactly what I need. I don't want to display a category with a lot of fourms inside in the main page but display it somewhere separately. But it is a pity that it is only for 6.3.


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
AllenAyres
AllenAyres
Texas
Posts: 21,079
Joined: March 2000
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
Morgan 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)