Forums / Cotonti / Extensions / Frontpage Slideshow

Kingsley
#22524 2010-02-01 20:39
I get an error after adding this part:

Slideshow news character fix:
open news.functions.php

find:

   1.    $html = mb_substr($html, 0, $mpos) . "<span class=\"readmore\"><a href=\"$url\">{$L['ReadMore']}</a></span>";
   2.     return true;
   3. }

add after


   1. else { $pag['page_text'] = substr($pag['page_text'], 0, 150)." ...";}

the error I get:


Parse error: syntax error, unexpected T_ELSE in H:\xampp\htdocs\test\xe\plugins\news\inc\news.functions.php on line 246

this is how my news.functions.php looks like after I added that line:

    $html = mb_substr($html, 0, $mpos) . "<span class=\"readmore\"><a href=\"$url\">{$L['ReadMore']}</a></span>";
    return true;
}
	else 
	{ 
	 $pag['page_text'] = substr($pag['page_text'], 0, 150)." ...";
	}


Added 19 days later:

uh, bump..
This post was edited by Kingsley (2010-02-20 21:36, 14 years ago)