cotonti.com : Icons https://www.cotonti.com Останні повідомлення в темі Cotonti en Wed, 04 Feb 2026 04:23:25 -0000 Trustmaster Вт, 02 Вер 2008 19:32:28 -0000 Ratibor Boss : can? :) Need delete all html code in core]]> Пт, 15 Сер 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,
]]>
Пт, 15 Сер 2008 10:36:58 -0000
Trustmaster Пт, 15 Сер 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,
]]>
Пт, 15 Сер 2008 08:10:01 -0000
Trustmaster Thu, 14 Сер 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']; }
]]>
Thu, 14 Сер 2008 15:16:09 -0000