TinyPortal

Development => Support => Topic started by: sydbat on August 29, 2011, 03:22:10 PM

Title: TPShout "Show 50 Latest"
Post by: sydbat on August 29, 2011, 03:22:10 PM
SMF 2.0 Final
TP 1.104

A quick question...hopefully...

At the bottom of the TPShout block, there is a link to "Show 50 Latest". I have been asked if there is a way to change this to a lower number. The reason is, when showing those 50 latest shouts, it gives a long list that seems to go on forever.

Is there a way to reduce the latest shouts page to 10 or 15 or 20 with a breadcrumb "1,2,3...6,7...etc" kinda thing? If so, what file needs editing?

As an aside, TP is working out quite well so far. Thanks to all the developers!
Title: Re: TPShout "Show 50 Latest"
Post by: IchBin on August 29, 2011, 05:00:22 PM
You can change the number by editing the link in the template. In the default theme you should open the TPShout.template.php file and edit this line:
<br /><a href="' , $scripturl , '?action=tpmod;shout=show50">' . $txt['tp-showlatest'] . '</a>

Change the number 50 to be what you want. As for making pages of them, not possible at this time. That would take significant code changes. Not something I have time to sit down and show you.
Title: Re: TPShout "Show 50 Latest"
Post by: sydbat on August 30, 2011, 07:56:43 PM
Works perfectly. Thank you!

Also, to change the text at the bottom of the TPShout block, you need to change the language file...TPShout.english.php