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,970
  • Latest: bynw
Stats
  • Total Posts: 196,055
  • Total Topics: 21,337
  • Online today: 201
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 1
  • Guests: 131
  • Total: 132
  • illori

Recent Topics titles block in bold

Started by EasyRider, September 19, 2010, 04:36:54 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

IchBin

Well it's in one of those TP files. I don't remember what it is back in beta 4. Thats too long ago to remember for me. I'd suggest you download all the TP files from the default theme folder and search each file until you find the recent function.

EasyRider

Well, i find the file. Is the TPBlocks.template.php

But the bold tag not work in this string

<li style="overflow: auto;"><a href=" '.$w['href'].'">'.$w['short_subject']. '</a> ', $txt[525], ' ', $w['poster']['link'];

I try it like this

<li style="overflow: auto;"><a href=" '.$w
['href'].'">'<b>.$w['short_subject'].</b> '</a> ', $txt[525], ' ', $w['poster']['link'];


And print me this error:

Parse error: syntax error, unexpected '>' in home/public_html/Themes/default/TPBlocks.template.php on line 172

I change several positions to tags, but no luck after all..
SMF  1.1.11 / TinyPortal v1.0 beta 4 /default theme

IchBin

Bold is deprecated, use < strong > instead.
<li style="overflow: auto;"><a href=" '.$w['href'].'"><strong>'.$w['short_subject']. '</strong></a> ', $txt[525], ' ', $w['poster']['link'];

ZarPrime

EasyRider,

I'm sorry, I just got back to this topic.  Out of curiosity, why are you wanting to change the core TP code in the files?  The work we did earlier in this topic will give you a php block that will do basically the same thing.  The disadvantage to what you are doing is that, at some point in the future, you are going to want to upgrade to the latest version of TinyPortal, and, then, your edits will be lost. ???

Or am I missing something? ::)

ZarPrime

EasyRider

you're Absolutely Right ZarPrime!

..i just see it works in TP core in another site and like it.. i suppose have to change again the code in new version..   

Nothing you missing and big thanks for your help here and the old TP. ! O0




SMF  1.1.11 / TinyPortal v1.0 beta 4 /default theme

EasyRider

Quote from: IchBin on September 21, 2010, 02:05:46 AM
Bold is deprecated, use < strong > instead.
<li style="overflow: auto;"><a href=" '.$w['href'].'"><strong>'.$w['short_subject'].'</strong></a> ', $txt[525], ' ', $w['poster']['link'];


That works finaly! thanks mate!  i do something wrong.. i was put  the tags inside  apostrophes 
'.$w['short_subject']. '
and the right as seen in your example,  is outside!  :)
SMF  1.1.11 / TinyPortal v1.0 beta 4 /default theme

This website is proudly hosted on Crocweb Cloud Website Hosting.