Forums / Cotonti / Support / How do I replace a tag with an image?

SunChase
#18036 2009-10-21 02:19
The simplest way is to do a corehack:

line 619(system/core/forums/forums.posts.inc.php)


from:
$rowquote  = ($usr['id']>0) ? "<a href=\"".sed_url('forums', "m=posts&s=".$s."&q=".$q."&quote=".$row['fp_id']."&n=last", "#np")."\">".$L['Quote']."</a>" : "&nbsp;";
to:
$rowquote  = ($usr['id']>0) ? sed_url('forums', "m=posts&s=".$s."&q=".$q."&quote=".$row['fp_id']."&n=last", "#np") : "&nbsp;";

or change the $L['Quote'] to <img border="0" src="skins/{PHP.skin}/img/system/button-quote.gif"/>
like this:
$rowquote  = ($usr['id']>0) ? "<a href=\"".sed_url('forums', "m=posts&s=".$s."&q=".$q."&quote=".$row['fp_id']."&n=last", "#np")."\"><img border="0" src="skins/{PHP.skin}/img/system/button-quote.gif"/></a>" : "&nbsp;";
[url=http://ka13.orgfree.com]KA13[/url] - The essence of creativity