Log in

View Full Version : $activeusers


nighthalk
06-15-2006, 02:48 AM
where can i find the $activeusers template stored at?

getting help from the irc chat and useing this as a post board.

Thanks alot Chris_M



<!-- forum legend start -->
<tbody>
<tr>
<td class="thead" colspan="2">
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_legend')"><img id="collapseimg_forumhome_activeusers" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_activeusers].gif" alt="" border="0" /></a> Legend
</td>
</tr>
</tbody>

<tbody id="collapseobj_forumhome_legend" style="$vbcollapse[collapseobj_forumhome_activeusers]">
<tr>
<td class="alt2">
<center> <img src="$stylevar[imgdir_button]/online.gif" border="0" /> </center>
</td>
<td class="alt1" width="100%">
<div class="smallfont">
<div>
$legend
</div>
</div>
</td>
</tr>
</tbody>
<!-- forum legend end -->

Chris M
06-15-2006, 03:08 AM
Right basically...

You need to find the code in the plugin that initiates the template manipulation, which I believe is something like:
$text_ara = '$activeusers';
$vbulletin->templatecache['FORUMHOME'] = str_replace($text_ara,fetch_template('FORUMHOME_Co lorGroups').$text_ara,$vbulletin->templatecache['FORUMHOME']);

Now you need to replace it with something like:
eval("\$legend .= \"".fetch_template('FORUMHOME_ColorGroups')."\";");

Then in the FORUMHOME template, add $legend where you want it to display :)

Chris

nighthalk
06-15-2006, 03:47 AM
Thanks chris_m it worked I didnt edit it correctly.

nighthalk
06-15-2006, 04:13 AM
It works now

Chris M
06-15-2006, 08:46 AM
Not a problem, glad I could help at that time of the morning, shows I'm not completely useless :p

Chris