SimplePortal

Customization => Custom Coding => Topic started by: allemand1 on April 04, 2009, 10:10:56 PM

Title: Add the [...] to the topic block subject!
Post by: allemand1 on April 04, 2009, 10:10:56 PM
I want this:
La gran alerta por el virus Conficker se q....

and not this:
La gran alerta por el virus Conficker se
queda en nada 

Please... how can i do it?
Title: Re: Add the [...] to the topic block subject!
Post by: Robbo on April 05, 2009, 02:02:27 AM
Code: ("find on line 1147 in sources/SPortal2.php") [Select]
<a href="', $topic['href'], '">', $topic['subject'], '</a>

Code: ("change to") [Select]
<a href="', $topic['href'], '">', shorten_subject($topic['subject'], 20), '</a>

I think  that is what you want. That's for SMF 2. Would be similar in SMF 1.
Title: Re: Add the [...] to the topic block subject!
Post by: allemand1 on April 05, 2009, 10:59:07 AM
Thanks... I have SMF 1 and is like this:
Find:
Code: [Select]
<a href="', $post['href'], '">', $post['subject'], '</a>Replace:
Code: [Select]
<a href="', $post['href'], '">', shorten_subject($post['subject'], 20), '</a>
Title: Re: Add the [...] to the topic block subject!
Post by: Sentinel [AF] on April 06, 2009, 04:02:02 PM
Thanks esés :D :thumbup:
SimplePortal 2.3.8 © 2008-2024, SimplePortal