cotonti.com : How do I replace a tag with an image? https://www.cotonti.com Последние сообщения в теме Cotonti en Thu, 27 Nov 2025 12:10:59 -0000 Kingsley # Koradhil :
$R['frm_rowquote'] = '<a href=https://www.cotonti.com/"{$url}"><img src="skins/'.$skin.'/img/system/button-quote.gif"></a>';

is there something in this code that I must change? still get Quote"> as a result.]]>
вс, 08 авг 2010 17:10:12 -0000
donP # Koradhil : Images should not be included in core. Its best to use a resource string for this (similar to the language system). In system/resources.php you should add a resource string for the $rowquote value. It should be the original value by default (<a href=https://www.cotonti.com/...) and you can overwrite it in your skinname/skinname.php file with your own value.

I haven't got system/resources.php in my Cotonti package... :/]]>
пн, 26 окт 2009 16:34:52 -0000
GHengeveld changeset 1001 and 1002.

If you want to use an image instead of the default text, put the following line in your skinname/skinname.php file.

$R['frm_rowquote'] = '<a href=https://www.cotonti.com/"{$url}"><img src="skins/'.$skin.'/img/system/button-quote.gif"></a>';
]]>
чт, 22 окт 2009 00:54:46 -0000
SunChase $L['Quote'] = '<img src=https://www.cotonti.com/"skins/{PHP.skin}/img/system/button-quote.gif"/>';
in skinname.en.lang.php]]>
ср, 21 окт 2009 18:56:44 -0000
Kingsley # Koradhil : Images should not be included in core. Its best to use a resource string for this (similar to the language system). In system/resources.php you should add a resource string for the $rowquote value. It should be the original value by default (<a href=https://www.cotonti.com/...) and you can overwrite it in your skinname/skinname.php file with your own value.

Can you explain to me how? Am not that familiar with php..

thank you.]]>
ср, 21 окт 2009 04:25:05 -0000
SunChase ]]> ср, 21 окт 2009 03:00:22 -0000 GHengeveld ср, 21 окт 2009 02:53:05 -0000 SunChase the html wont understand if you write that string directly]]> ср, 21 окт 2009 02:27:25 -0000 Kingsley ср, 21 окт 2009 02:20:33 -0000 SunChase
line 619(system/core/forums/forums.posts.inc.php)


from:
$rowquote  = ($usr['id']>0) ? "<a href=https://www.cotonti.com/\"".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=https://www.cotonti.com/"skins/{PHP.skin}/img/system/button-quote.gif"/>
like this:
$rowquote  = ($usr['id']>0) ? "<a href=https://www.cotonti.com/\"".sed_url('forums', "m=posts&s=".$s."&q=".$q."&quote=".$row['fp_id']."&n=last", "#np")."\"><img border="0" src=https://www.cotonti.com/"skins/{PHP.skin}/img/system/button-quote.gif"/></a>" : "&nbsp;";
]]>
ср, 21 окт 2009 02:19:00 -0000
Kingsley
<a href=https://www.cotonti.com/"{FORUMS_POSTS_ROW_QUOTE}"><img border="0" src=https://www.cotonti.com/"skins/{PHP.skin}/img/system/button-quote.gif"/></a>

but then i get the image and next to it: Quote"/> :(]]>
ср, 21 окт 2009 02:01:59 -0000