|
#53873
06/27/2002 9:55 AM
|
Joined: Jul 2001
Posts: 14
Junior Member
|
Junior Member
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. 
|
|
|
#53874
06/27/2002 8:34 PM
|
Joined: May 2002
Posts: 77
Member
|
Member
Joined: May 2002
Posts: 77 |
Use the hidden forum hack.
|
|
|
#53875
06/28/2002 1:34 AM
|
Joined: Jul 2001
Posts: 14
Junior Member
|
Junior Member
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. 
|
|
|
#53876
06/28/2002 6:04 PM
|
Joined: May 2002
Posts: 77
Member
|
Member
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]and change to: [code] I'm not 100% sure since I haven't tested it or anything. It should work though.
|
|
|
#53877
06/29/2002 8:53 AM
|
Joined: May 2002
Posts: 77
Member
|
Member
Joined: May 2002
Posts: 77 |
Actually, the Extended Category Hack can hide entire categories for you. You should use that instead.
|
|
|
#53878
06/29/2002 9:00 AM
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
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 
|
|
|
#53879
07/01/2002 10:10 AM
|
Joined: Jul 2001
Posts: 14
Junior Member
|
Junior Member
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?
|
|
|
#53880
07/01/2002 10:31 AM
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
I think it should be: [code][/code]
|
|
|
#53881
07/01/2002 12:43 PM
|
Joined: Jul 2001
Posts: 14
Junior Member
|
Junior Member
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.
|
|
|
#53882
07/01/2002 1:15 PM
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
It's only when using ?category=X, you know
|
|
|
#53883
07/01/2002 1:37 PM
|
Joined: Jul 2001
Posts: 14
Junior Member
|
Junior Member
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.
|
|
|
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: 69
Joined: January 2001
|
|
Forums63
Topics37,575
Posts293,931
Members13,824
|
Most Online6,139 Sep 21st, 2024
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|
|