TinyPortal

Development => Support => Topic started by: ScopeXL on August 13, 2009, 03:38:31 AM

Title: Edit Recent Topics block
Post by: ScopeXL on August 13, 2009, 03:38:31 AM
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.
Title: Re: Edit Recent Topics block
Post by: Lesmond on August 13, 2009, 03:50:15 AM
There are some custom resent topic in the Block code snippets board (http://www.tinyportal.net/index.php/board,46.0.html) you may fine useful
Title: Re: Edit Recent Topics block
Post by: ScopeXL on August 13, 2009, 04:51:47 AM
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]
Title: Re: Edit Recent Topics block
Post by: cavedeamon on August 13, 2009, 05:29:42 AM
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 />
Title: Re: Edit Recent Topics block
Post by: ScopeXL on August 13, 2009, 05:46:49 AM
Awesome, exactly what I needed. Thanks!
Title: Re: Edit Recent Topics block
Post by: Lesmond on August 13, 2009, 06:06:56 AM
Thanks cavedeamon, I am on my laptop, and dont have the files on it to find that edit

Mark as Solved then