Topic: Replacing code between <div> </div> via manifest.xml
I'd like to put the code below in my index.php via an extension
What does the manifest.xml need to look like?
($hook = get_hook('in_users_online_pre_online_info_output')) ? eval($hook) : null;
?>
<div id="brd-online" class="gen-content" style="display: none;">
<h3 class="hn"><span><?php printf($lang_index['Currently online'], implode($lang_index['Online stats separator'], $forum_page['online_info'])) ?></span></h3>
<?php if (!empty($users)): ?> <p><?php echo implode($lang_index['Online list separator'], $users) ?></p>
<?php endif; ($hook = get_hook('in_new_online_data')) ? eval($hook) : null; ?>
</div>
<?php>
($hook = get_hook('in_users_online_end')) ? eval($hook) : null;
}
then I guess I'll be able to deduct for the second block which is this one:
($hook = get_hook('in_stats_pre_info_output')) ? eval($hook) : null;
?>
<div id="brd-statistics" class="gen-content">
<h2 class="hn"><span>Board: Statistics <a id="clickMeA" href="javascript:toggle3('brd-stats','clickMeA');"><img src="/extensions/hide_show_category/img/plus.png"></a> | Online <a id="clickMeB" href="javascript:toggle3('brd-online','clickMeB');"><img src="/extensions/hide_show_category/img/plus.png"></a></span></h2>
</div>
<div id="brd-stats" class="gen-content" style="display: none">
<h2 class="hn"><span><?php echo $lang_index['Statistics'] ?></span></h2>
<ul>
<?php echo implode("\n\t\t", $stats_list)."\n" ?>
</ul>
</div>
<?php
($hook = get_hook('in_stats_end')) ? eval($hook) : null;
($hook = get_hook('in_users_online_start')) ? eval($hook) : null;