<?php
function myforumicons_activate()
{
require_once MYBB_ROOT."inc/adminfunctions_templates.php";
find_replace_templatesets("forumbit_depth2_forum", "#".preg_quote("id=\"mark_read_{\$forum['fid']}\"></span>")."#i", "id=\"mark_read_{\$forum['fid']}\" {\$forum['myforumicon_override']}></span>{\$forum['myforumicon']}");
}
<?php
<tr>
<td class="{$bgcolor}" align="center" valign="middle" width="1"><div class="forum_status forum_{$lightbulb['folder']} ajax_mark_read" title="{$lightbulb['altonoff']}" id="mark_read_{$forum['fid']}"><i class="fa fa-circle-o"></i></div></td>
<td class="{$bgcolor}" valign="middle">
<strong><a href="{$forum_url}"><span class="threadtext">{$forum['name']}</span></a></strong><br />{$forum_viewers_text} {$forum['description']} {$subforums}</td>
<td class="{$bgcolor}" valign="middle" align="left" width="23%" style="white-space: nowrap">{$lastpost}</td>
<td class="{$bgcolor}" valign="middle" align="center" width="9%" style="white-space: nowrap">
<span class="threadtext">Topics </span><br />{$threads}{$unapproved['unapproved_threads']}</td>
<td class="{$bgcolor}" valign="middle" align="center" width="9%" style="white-space: nowrap">
<span class="threadtext">Replies </span><br />{$posts}{$unapproved['unapproved_posts']}</td>
</tr>
<?php
id="mark_read_{$forum['fid']}"></span>
<?php
<tr>
<td class="{$bgcolor}" align="center" valign="middle">
{$forum['myforumicon_override']}
{$forum['myforumicon']}
</td>
<td class="{$bgcolor}" align="center" valign="middle" width="1"><div class="forum_status forum_{$lightbulb['folder']} ajax_mark_read" title="{$lightbulb['altonoff']}" id="mark_read_{$forum['fid']}"><i class="fa fa-circle-o"></i></div></td>
<td class="{$bgcolor}" valign="middle">
<strong><a href="{$forum_url}"><span class="threadtext">{$forum['name']}</span></a></strong><br />{$forum_viewers_text} {$forum['description']} {$subforums}</td>
<td class="{$bgcolor}" valign="middle" align="left" width="23%" style="white-space: nowrap">{$lastpost}</td>
<td class="{$bgcolor}" valign="middle" align="center" width="9%" style="white-space: nowrap">
<span class="threadtext">Topics </span><br />{$threads}{$unapproved['unapproved_threads']}</td>
<td class="{$bgcolor}" valign="middle" align="center" width="9%" style="white-space: nowrap">
<span class="threadtext">Replies </span><br />{$posts}{$unapproved['unapproved_posts']}</td>
</tr>
(20 Apr, 2015, 4:03 am)AndresXZ09 escribió: ¿Y no has pensado en hacerlo con FontAwesome? Es mejor a la larga, menos carga para el servidor, miles de imagenes, fácil de hacer. No sé, digo yo.
(20 Apr, 2015, 8:10 am)Jazo16 escribió: me sale esto style="display: none;" u.u me rindo, provare con lo que dice andres :p
<?php
<tr>
<td class="{$bgcolor}" align="center" valign="middle">
{$forum['myforumicon']}
</td>
<td class="{$bgcolor}" align="center" valign="middle" width="1"><div class="forum_status forum_{$lightbulb['folder']} ajax_mark_read" title="{$lightbulb['altonoff']}" id="mark_read_{$forum['fid']}"><i class="fa fa-circle-o"></i></div></td>
<td class="{$bgcolor}" valign="middle">
<strong><a href="{$forum_url}"><span class="threadtext">{$forum['name']}</span></a></strong><br />{$forum_viewers_text} {$forum['description']} {$subforums}</td>
<td class="{$bgcolor}" valign="middle" align="left" width="23%" style="white-space: nowrap">{$lastpost}</td>
<td class="{$bgcolor}" valign="middle" align="center" width="9%" style="white-space: nowrap">
<span class="threadtext">Topics </span><br />{$threads}{$unapproved['unapproved_threads']}</td>
<td class="{$bgcolor}" valign="middle" align="center" width="9%" style="white-space: nowrap">
<span class="threadtext">Replies </span><br />{$posts}{$unapproved['unapproved_posts']}</td>
</tr>