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,947
  • Latest: sgm09
Stats
  • Total Posts: 195,775
  • Total Topics: 21,279
  • Online today: 231
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 59
  • Total: 59

[New Style] Articles in a Category Block

Started by fussilet, February 19, 2009, 10:25:22 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

fussilet

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...

FERNSIDEâ„¢

#1
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 />';


This website is proudly hosted on Crocweb Cloud Website Hosting.