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,965
  • Latest: boruko
Stats
  • Total Posts: 195,982
  • Total Topics: 21,320
  • Online today: 431
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online

Edit Recent Topics block

Started by ScopeXL, August 13, 2009, 03:38:31 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

ScopeXL

Hello,

Just wondering where the Recent Topics block is stored, I would like the edit the template of it to fit my sites theme. Is it in a TP folder PHP block code snippet? Because I am unable to find it. Thanks in advance.

Lesmond

There are some custom resent topic in the Block code snippets board you may fine useful

ScopeXL

I did see some and they are good, but my main goal is to bring the timestamp down a line, taking here for example:

Original:
TP Reviews module by keith021773 new [Today at 22:33]
Incompatibilidad con skin... by negi new [Today at 22:09]
[Block] Top Posters with ... by vas new [Today at 22:05]

Looking for:
TP Reviews module by keith021773
[Today at 22:33]

Incompatibilidad con skin... by negi
[Today at 22:09]

[Block] Top Posters with ... by vas
[Today at 22:05]

cavedeamon

#3
Its located in the TPBlocks.template.php file in your theme directory. should be around line 148 or search for "function TPortal_recentbox()"

find

echo ' ['.$w['time'].']
</li>


replace with

echo ' <br />['.$w['time'].']
</li><br />

ScopeXL

Awesome, exactly what I needed. Thanks!

Lesmond

Thanks cavedeamon, I am on my laptop, and dont have the files on it to find that edit

Mark as Solved then

This website is proudly hosted on Crocweb Cloud Website Hosting.