I have a MyBB plugin which displays a list of servers (witha button to connect, as well as online status and a few other things)
[url]http://i.gyazo.com/840817883ce24bb9650438908ab84849.png[/url]
This is what it looks like^^
It shows on the index page, but I only want it to display on a different page
[CODE]<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td class="thead{$expthead}" colspan="8">
<strong>{$lang->serversboard} - {$mybb->settings['bbname']}</strong>
</td>
</tr>
<td class="tcat" colspan="0"><span class="smalltext"><center><strong>{$lang->number}</strong></center></span></td>
<td class="tcat" colspan="0"><span class="smalltext"><center><strong>{$lang->status}</strong></center></span></td>
<td class="tcat" colspan="0"><span class="smalltext"><center><strong>{$lang->type}</strong></center></span></td>
<td class="tcat" colspan="0"><span class="smalltext"><center><strong>{$lang->hostname}</strong></center></span></td>
<td class="tcat" colspan="0"><span class="smalltext"><center><strong>{$lang->ip}</strong></center></span></td>
<td class="tcat" colspan="0"><span class="smalltext"><center><strong>{$lang->players_slots}</strong></center></span></td>
<td class="tcat" colspan="0"><span class="smalltext"><center><strong>{$lang->map}</strong></center></span></td>
<td class="tcat" colspan="0"><span class="smalltext"><center><strong>{$lang->more}</strong></center></span></td>
{$serversboard_index_row}
{$serversboard_index_summation}
</table><br />[/CODE]
This is the code in the serverboard_index of the plugins template, which may help?
Can someone help me please, thanks :)
Use the "pre_output_page" hook and alter $contents to replace "$whateveryourvariableis" with the entire table that contains your server list, then place "{$whateveryourvariableis}" in your templates.
-edit-
and please use the "What do you need help with" thread next time".
Sorry, you need to Log In to post a reply to this thread.