Previous Thread
Next Thread
Print Thread
Rate Thread
#52627 03/19/2002 6:27 AM
Joined: Mar 2002
Posts: 19
Junior Member
Junior Member
Offline
Joined: Mar 2002
Posts: 19
Is it possible to auto move all closed topics to the bottom of the page?
Would be very nice laugh

If this function is already implemented, please ignore this suggestion.

Sponsored Links
#52628 03/03/2005 5:01 PM
Joined: Dec 2001
Posts: 13
Newbie
Newbie
Joined: Dec 2001
Posts: 13
Has this been done ? Any News ?

#52629 03/03/2005 6:10 PM
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
this has not been done, but I'm gonna give it a shot now

#52630 03/03/2005 7:01 PM
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
In ubb_forum.cgi
FIND:

Code
	my($had_stickies, $had_polls, $had_hots, $had_moves, $had_locks) = (0, 0, 0, 0, 0);
ADD BEFORE/ABOVE:

Code
	my $bonus_html = "";
my $is_bonus = 0;
FIND:
Code
		next unless($one && ($one =~ m/^d{6}$/));
undef($hot_icon);
ADD AFTER:
Code
$is_bonus = 0;
FIND:
Code
			$had_locks++;
$closed = 'X';
ADD AFTER:
Code
			$is_bonus = 1;
FIND:
Code
		$ThisHTML .= &topic_row;
REPLACE WITH:
Code
		if($is_bonus > 0)
{
$bonus_html .= &topic_row;
} else {
$ThisHTML .= &topic_row;
}
FIND:
Code
	$ThisHTML .= &page_bottom($had_stickies, $had_polls, $had_hots, $had_moves, $had_locks);
ADD BEFORE:
Code
$ThisHTML .= $bonus_html;
Then clear the forum page cache

#52631 03/03/2005 9:03 PM
Joined: Jun 2001
Posts: 729
Coder
Coder
Offline
Joined: Jun 2001
Posts: 729
Could this be made a selectable option (top/bottom) on a per forum basis via the ACP?

Sponsored Links
#52632 03/03/2005 9:10 PM
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
already built in. if you want a closed topic to appear at the topic, sticky it

#52633 03/03/2005 10:38 PM
Joined: Jun 2001
Posts: 729
Coder
Coder
Offline
Joined: Jun 2001
Posts: 729
OK I get it, I am confusing closed with sticky tipsy

I was looking for a way to make a sticky an option to be either at the top or bottom selectable by forum.

Not sure what I was thinking when I read this...

#52634 03/03/2005 10:40 PM
Joined: Jun 2001
Posts: 729
Coder
Coder
Offline
Joined: Jun 2001
Posts: 729
BTW if anyone is using this make sure you place an underscore between any ones missing from

$is bonus
$bonus html

They should be
$is_bonus
$bonus_html

Else you will get erros wink

#52635 03/04/2005 12:45 PM
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
updated my code to add those wink tipsy

#52636 04/19/2005 4:16 PM
Joined: Dec 2001
Posts: 13
Newbie
Newbie
Joined: Dec 2001
Posts: 13
this works great on a per-page basis for me. BUT ... can we make all of the closed topics go to the bottom ? I am using a forum as a to-do list , and when a topic has been solved, we close it. I would like the open topics (all of them) to be at the top.

Any Ideas ?

Sponsored Links
#52637 04/19/2005 4:18 PM
Joined: Dec 2001
Posts: 13
Newbie
Newbie
Joined: Dec 2001
Posts: 13
What would be really cool is to have a display option to not show the closed topics at all

wink

#52638 04/20/2005 7:57 AM
Joined: Jan 2000
Posts: 5,833
Likes: 20
UBBDev / UBBWiki Owner
Time Lord
UBBDev / UBBWiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,833
Likes: 20
Quote
Originally posted by Zombie:

What would be really cool is to have a display option to not show the closed topics at all

wink
There is one, it's called delete wink


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
#52639 04/20/2005 8:57 AM
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
you aren't getting a UI, but if you just don't do the last step from my earlier post, you'll get the desired results


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)