TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,972
  • Latest: Lineo
Stats
  • Total Posts: 196,140
  • Total Topics: 21,346
  • Online today: 1,074
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 256
  • Total: 256

TPShout "Show 50 Latest"

Started by sydbat, August 29, 2011, 03:22:10 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

sydbat

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!

IchBin

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.

sydbat

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

This website is proudly hosted on Crocweb Cloud Website Hosting.