Previous Thread
Next Thread
Print Thread
Hop To
Joined: May 2008
Posts: 741
Likes: 1
Old Hand
OP Offline
Old Hand
Joined: May 2008
Posts: 741
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 3: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,637
Pooh-Bah
Offline
Pooh-Bah
Joined: Aug 2006
Posts: 1,637

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)
2007 Content Rulez Contest - Hon Mention
UBB.classic 6.7.2 - RIP
Browsers: Chrome, Firefox, & Safari (iPhone); No IE, ever!
Joined: May 2008
Posts: 741
Likes: 1
Old Hand
OP Offline
Old Hand
Joined: May 2008
Posts: 741
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
Offline
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
SD Offline
Former Developer
Offline
Former Developer
Joined: Apr 2007
Posts: 3,940
/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
Return to Page
by Abbott - 02/20/2021 9:57 AM
Importers folder?
by DaveZ - 02/18/2021 11:31 AM
PM Next and Prior
by Abbott - 02/15/2021 4:37 PM
Custom Island between Post 1 and 2 Not Showing?
by BellaOnline - 01/26/2021 7:36 PM
Empty Replies and Quotes...
by Metamatic - 09/16/2020 8:36 AM
Who's Online Now
0 members (), 68 guests, and 143 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
gallery test
gallery test
by Mors, September 23
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Powered by UBB.threads™ PHP Forum Software 7.7.5