Previous Thread
Next Thread
Print Thread
Hop To
Joined: May 2008
Posts: 753
Likes: 1
Old Hand
Old Hand
Joined: May 2008
Posts: 753
Likes: 1
how do i change the default for active topics to 24 hours instead of 7 days? and is it possible to change how much information is displayed in each topic summary?

i have people complaining that they hit active topics and get 13 pages of posts, and want it a little more abbreviated.

Last edited by badfrog; 05/15/2008 4:52 PM.

"No matter where you go, there you are."
"If you can't do something smart, Do something right"
"There are three kinds of people in the world, those who can count, and those who can't"
Joined: Aug 2006
Posts: 1,649
Likes: 1
Pooh-Bah
Pooh-Bah
Joined: Aug 2006
Posts: 1,649
Likes: 1

In \templates\default\header.tpl find this starting on or around Line 44:

HTML
	<table class="popup_menu">
		<tr>
			<td class="popup_menu_content"><a href="{ubb url="ubb=activetopics&range=7&type=t"}">{$lang.ACTIVE_TOPICS}</a></td>
		</tr>
		<tr>
			<td class="popup_menu_content"><a href="{ubb url="ubb=activetopics&range=7&type=p"}">{$lang.ACTIVE_POSTS}</a></td>
		</tr>
		<tr>
			<td class="popup_menu_content"><a href="{ubb url="ubb=activetopics&range=7&type=u"}">{$lang.ACTIVE_NO_ANSWERS}</a></td>
		</tr>
	</table>

Where you see the 3 instances of &range=7 you can change that value to:

1 for Past 24 Hours
2 for Past 48 Hours
7 for Past 7 Days (default)


GangsterBB.NET (Ver. 7.6.1.1)
PHP Version 5.6.40 / MySQL 5.7.23-23 (was 5.6.41-84.1) / Apache 2.4.54
2007 Content Rulez Contest - Hon Mention
UBB.classic 6.7.2 - RIP
Joined: May 2008
Posts: 753
Likes: 1
Old Hand
Old Hand
Joined: May 2008
Posts: 753
Likes: 1
ok, that helped. but I would still like to know how to configure the post summary that is displayed.. limit it to like 50 characters or something...


"No matter where you go, there you are."
"If you can't do something smart, Do something right"
"There are three kinds of people in the world, those who can count, and those who can't"
Joined: Jun 2006
Posts: 171
Likes: 1
member
member
Joined: Jun 2006
Posts: 171
Likes: 1
Originally Posted by badfrog
ok, that helped. but I would still like to know how to configure the post summary that is displayed.. limit it to like 50 characters or something...

This is a question I'd love an answer to, too!

I like having the ability to hover over the hyperlink to get a "description" of what was posted--which is now a feature of 7.3, but I wonder why have the brief description field in active topics AND the hover feature.

Am I making sense?

I'd like to have just the hyperlinks & the hover-link option.

~Sue
adwoff.com
Running version 7.3 (yes, I finally took the plunge!)

Joined: Apr 2007
Posts: 3,940
Likes: 1
SD Offline
Former Developer
Former Developer
Joined: Apr 2007
Posts: 3,940
Likes: 1
/scripts/activetopics.inc.php

find:
PHP Code
$topics[$i]['post_body'] = substr(strip_tags($post_body,'<a>'),0,250); 

just change the 250 to a smaller number (of chars)...

or totally remove it and just have the tooltip.. by
PHP Code
$topics[$i]['post_body'] = ''; 


Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Bots
by Outdoorking - 04/13/2024 5:08 PM
Can you add html to language files?
by Baldeagle - 04/07/2024 2:41 PM
Do I need to rebuild my database?
by Baldeagle - 04/07/2024 2:58 AM
This is not a bug, but a suggestion
by Baldeagle - 04/05/2024 11:25 PM
spam issues
by ECNet - 03/19/2024 11:45 PM
Who's Online Now
0 members (), 686 guests, and 131 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20230217)