(no subject)

Hi Tom,

hehe, not like that. if the char not more than 80
chars. it's still show you the link.
I want just like if the char not more than 100 chars
it will not show the link :smiley:

--- Tom <tom@mir2.dk> wrote:

On 30/09/04 7:06, "Lie Joni" <jenokz@yahoo.com>
wrote:

> hi,
>
> I want to make like if the texte more than 100
chars
> then it shows a link.
>
> Here is my code below,
>
> in sommaire.html
>
> [<div
>
class="content4">(#TEXTE|couper{100}|delyou)</div>]
>
> in mes_fonctions.php3
>
> function delyou($texte) {
> global $url_article;
> $texte = eregi_replace("\(...\)", " <a
> href='$url_article'>more</a>", $texte);
> return $texte;
> }
>
> anyone have clue about this one ?
>
> Thank you.
>
>
>
> _______________________________
> Do you Yahoo!?
> Declare Yourself - Register online to vote today!
> http://vote.yahoo.com
> _______________________________________________
> spip-en@rezo.net -
http://listes.rezo.net/mailman/listinfo/spip-en
>

I did like this, and its working (in the
sommaire-dist)
Maybe to simple for you..?!

[<div class="detail">(#TEXTE|couper{80})<a
href="#URL_ARTICLE">L&aelig;s
videre</a></div>]

=====
nokoya
--------------------------------
www.hostinginside.com
eggdrop and psybnc shell hosting

_______________________________
Do you Yahoo!?
Declare Yourself - Register online to vote today!
http://vote.yahoo.com