Cotonti / Open Source PHP Content Management FrameworkContent Management Framework

Forums / Cotonti / Patches / automatic more link for rss

Gökhan YILDIZ
#21958 2010-01-04 19:06
show up to a specific character, and then automatically continue rss link to put;

open rss.php

find:
if ($readmore > 0)
{
$pag_html = mb_substr($pag_html, 0, $readmore);
$pag_html .= " <span class=\"readmore\"><a href=\"".$pag_pageurl."\">".$L['ReadMore']."</a></span>";
}
add after:
else { $pag_html = substr($pag_html, 0, 250)." <a href=\"".$pag_pageurl."\">read more</a>";}
find:
if ($readmore>0)
{
$pag_text = mb_substr($pag_text, 0, $readmore);
$pag_text .= " <span class=\"readmore\"><a href=\"".$pag_pageurl."\">".$L['ReadMore']."</a></span>";
}
add after:
else { $pag_text = substr($pag_text, 0, 250)."<a href=\"".$pag_pageurl."\">read more</a>";}
P.S:
substr($pag_text, 0, 250)
250= rss character limit
Gökhan YILDIZ