TinyPortal

Development => Block Codes => Topic started by: fussilet on February 19, 2009, 10:25:22 PM

Title: [New Style] Articles in a Category Block
Post by: fussilet on February 19, 2009, 10:25:22 PM
open TPBlocks.template.php

find :
echo '<b><a href="'.$scripturl.'?page='.$listing['shortname'].'">'.$listing['subject'].'</a></b> ' , $context['TPortal']['blocklisting_author']=='1' ? $txt[525].' '.$listing['poster'] : '' , '<br />';

replace with:
echo '<a href="'.$scripturl.'?page='.$listing['shortname'].'" class="smalltext"><img src="'.$settings['images_url'].'/arrow.gif" alt="" border="0" style="margin:0 2px 0 0;" />'.$listing['subject'].'</a> ' , $context['TPortal']['blocklisting_author']=='1' ? $txt[525].' '.$listing['poster'] : '' , '<br />';

and put arrow.gif to in  /Themes/yourtheme/images

Demo picture and arrow.gif  are attached.

regards...
Title: Re: [New Style] Articles in a Category Block
Post by: FERNSIDEâ„¢ on June 11, 2009, 10:22:11 AM
That looks pretty nice :)
Although I have yet to make any articles, I will use this for when I do lol ;)

Cheers :)

For TP v0.9.8 search in your TPortalBlocks.template for
echo '<b><a href="'.$scripturl.'?page='.$listing['id'].'">'.$listing['subject'].'</a></b> '.$txt[525].' '.$listing['poster'].'<br />';


and change to
echo '<a href="'.$scripturl.'?page='.$listing['id'].'" class="smalltext"><img src="'.$settings['images_url'].'/arrow.gif" alt="" border="0" style="margin:0 2px 0 0;" />'.$listing['subject'].'</a> '.$txt[525].' '.$listing['poster'].'<br />';
Title: Re: [New Style] Articles in a Category Block
Post by: fussilet on June 11, 2009, 11:20:47 PM
I forgot tp 098  ;)

thanks