Previous Thread
Next Thread
Print Thread
Rate Thread
#180112 12/20/2002 1:46 PM
Joined: Dec 2001
Posts: 112
Member
Member
Offline
Joined: Dec 2001
Posts: 112
to make certain category have a different default than what we have on the main board ( showing topics for 20 days), there are a few we would like to show for a year or indefinately...

we are using Ultimate Bulletin Board 6.04d

Thanks
Delw

Sponsored Links
#180113 12/20/2002 7:49 PM
Joined: Mar 2000
Posts: 21,080
Likes: 3
I type like Navaho
I type like Navaho
Joined: Mar 2000
Posts: 21,080
Likes: 3
hmmm... it's possible, would require an extended if/then statement in ubb_forum.cgi. You'll need the forum numbers for all your forums I think smile

Is there a reason you wouldn't want them all to display? When you upgrade to 6.4, you'll be able to take advantage of the ubb accelerator and the pagination that's been done in the versions since you last upgraded. Your server load will drop a bit with just that one change smile We're doing that here (displaying all topics regardless of the user's choice) for that reason smile


- Allen wavey
- What Drives You?
#180114 12/20/2002 10:06 PM
Joined: Dec 2001
Posts: 112
Member
Member
Offline
Joined: Dec 2001
Posts: 112
Allen. we want the http://www.huntandlodge.com/cgi-bin/ultimatebb.cgi?category=3 to be able to be viewed by anyone at anytime. 20 days from now (thats what are default is set for) they will not be viewable unless the user changes the Show topics from xxx....

What would happen if we displayed them all now(on our version 6.04d) would it slow the board up?


Delw

#180115 12/21/2002 2:28 AM
Joined: Mar 2001
Posts: 7,394
LK Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
I don't have 6.04d so I might be wrong with my instructions, but try the following in ubb_forum.cgi:
Code
Find:
my $extension = "";
Add above:
$user_topic_view = "1000" if ($in{f} =~ m/^(66|67|69|70)$/);
If you can't find that portion of code or what I said doesn't change anything, I suggest you to upgrade to the latest version you can. The code in "Find" portion was taken from 6.2.1.2, but if you upgrade to it we should also update ultimatebb.php...

#180116 12/21/2002 12:41 PM
Joined: Dec 2001
Posts: 112
Member
Member
Offline
Joined: Dec 2001
Posts: 112
This was all I found. I will look around at some other files and see if I can find some things.
Thanks

Code
# which topic view do they need-> $user_topic_view
if ($user_topic_view eq '') { $user_topic_view = "$vars_display{DaysPruneDefault}"; }

#is days prune being changed?
if ($in{DaysPrune} ne '') { $user_topic_view = "$in{DaysPrune}"; }

# check for hardset (mulit-page forums)
if ($in{hardset} ne '') { $user_topic_view = $in{hardset}; }

# if sorting alphabetically, no need to prune topic list!
if ($this_forum[15] eq 'abc') { $user_topic_view = '1000'; }

foreach (qw(1 2 5 10 20 30 45 60 75 100 365 1000)){
$topic_view{$_}= '';
}

$topic_view{$user_topic_view} = 'SELECTED';
Delw

Sponsored Links

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
Nettomo
Nettomo
Germany, Bremen
Posts: 417
Joined: November 2001
Forum Statistics
Forums63
Topics37,583
Posts293,955
Members13,824
Most Online151,614
Nov 14th, 2025
Today's Statistics
Currently Online 30631
Topics Created 0
Posts Made 0
Users Online 1
Birthdays 31
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
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 20260108)