cotonti.com : Icons https://www.cotonti.com Son konu mesajları Cotonti en Sun, 05 Apr 2026 15:19:39 -0000 Trustmaster Sal, 02 Eyl 2008 19:32:28 -0000 Ratibor Boss : can? :) Need delete all html code in core]]> Cum, 15 Ağu 2008 10:57:20 -0000 Boss
"PLUGIN_TITLE" => "<a href=https://www.cotonti.com/\"plug.php?e=$e\">".$plugin_title."</a>",
"PLUGIN_SHORTTITLE" => $plugin_title,
]]>
Cum, 15 Ağu 2008 10:36:58 -0000
Trustmaster Cum, 15 Ağu 2008 09:18:37 -0000 Ratibor
line 116:
"PLUGIN_TITLE" => "<a href=https://www.cotonti.com/\"plug.php?e=$e\">".$plugin_title."</a>",

replace with:
"PLUGIN_TITLE" => $plugin_title,
]]>
Cum, 15 Ağu 2008 08:10:01 -0000
Trustmaster Per, 14 Ağu 2008 15:23:38 -0000 Ratibor
For example, look at {PAGE_ROW_COMMENTS} tag
It outputs an image and number of comments.
What if someone doesn't need the image?
He needs to hack the core.
We'd better make it output number of comments only, and if someone needed the image, he would do it with TPL without touching the core.

Requires editing functions.php

line 635
$res = "<a href=https://www.cotonti.com/\"".$url."&amp;comments=1\"><img src=\"skins/".$usr['skin']."/img/system/icon-comment.gif\" alt=\"\" />";
replace with:
$res = "<a href=https://www.cotonti.com/\"".$url."&amp;comments=1\">";

line 640
$res .= " (".$nbcomment.")";
replace with:
$res .= $nbcomment;


Now about {PAGE_ROW_CATICON}
It should output image path from database rather than complete HTML.

So let's change functions.php

line 1962
{ $row['structure_icon'] = "<img src=https://www.cotonti.com/\"".$row['structure_icon']."\" alt=\"\" />"; }
replace with:
{ $row['structure_icon'] = $row['structure_icon']; }
]]>
Per, 14 Ağu 2008 15:16:09 -0000