#52627
03/19/2002 6:27 AM
|
Joined: Mar 2002
Posts: 19
Junior Member
|
Junior Member
Joined: Mar 2002
Posts: 19 |
Is it possible to auto move all closed topics to the bottom of the page? Would be very nice If this function is already implemented, please ignore this suggestion.
|
|
|
#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
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
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
In ubb_forum.cgi FIND: my($had_stickies, $had_polls, $had_hots, $had_moves, $had_locks) = (0, 0, 0, 0, 0); ADD BEFORE/ABOVE: my $bonus_html = ""; my $is_bonus = 0; FIND: next unless($one && ($one =~ m/^d{6}$/)); undef($hot_icon); ADD AFTER: FIND: $had_locks++; $closed = 'X'; ADD AFTER: FIND: REPLACE WITH: if($is_bonus > 0) { $bonus_html .= &topic_row; } else { $ThisHTML .= &topic_row; } FIND: $ThisHTML .= &page_bottom($had_stickies, $had_polls, $had_hots, $had_moves, $had_locks); ADD BEFORE: $ThisHTML .= $bonus_html; Then clear the forum page cache
|
|
|
#52631
03/03/2005 9:03 PM
|
Joined: Jun 2001
Posts: 729
Coder
|
Coder
Joined: Jun 2001
Posts: 729 |
Could this be made a selectable option (top/bottom) on a per forum basis via the ACP?
|
|
|
#52632
03/03/2005 9:10 PM
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
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
Joined: Jun 2001
Posts: 729 |
OK I get it, I am confusing closed with sticky 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
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 
|
|
|
#52635
03/04/2005 12:45 PM
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
updated my code to add those 
|
|
|
#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 ?
|
|
|
#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 
|
|
|
#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 |
Originally posted by Zombie: What would be really cool is to have a display option to not show the closed topics at all There is one, it's called delete 
|
|
|
#52639
04/20/2005 8:57 AM
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
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
|
|
|
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: 449
Joined: February 2008
|
|
Forums63
Topics37,575
Posts293,930
Members13,823
|
Most Online6,139 Sep 21st, 2024
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|