MyBB Community Forums

Full Version: Who's Online Plugin not formatting properly
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Hi,

On my forum http://GamingFor.Us (the online today mod - at the bottom) isn't formatted properly.

But, on the forum http://muslimwebmasterforum.com , the mod works perfectly.

How can I fix this? Thanks in advance.
You will have to ask the plugin author, it's just because that theme is obviously structured differently to how the plugin anticipates.
It's because of the style of theme you've got. Add colspan="2" to the two <td> tags in the template for this plugin and it'll work.
(2010-04-25, 11:43 AM)MattRogowski Wrote: [ -> ]It's because of the style of theme you've got. Add colspan="2" to the two <td> tags in the template for this plugin and it'll work.

Here's the image:
[Image: onlinetoday.jpg]

It already has 1 colspan="2". Where should I add the other two in the other two tags?
Just add them anywhere, doesn't matter where they go, as long as it's valid HTML.
I added it to both tags, hasn't been affected at all Sad
Post the code you've got here...
Looking at the source code you don't have colspan="2" anywhere in that part. You need to edit the php file (I think) unless it adds a template to the Global Templates.
Here's the quote for the online_today template:

<html>
<head>
<title>{$mybb->settings['bbname']} - {$lang->online_today}</title>
{$headerinclude}
</head>
<body>
{$header}
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td class="thead" colspan="2" valign="center" width="50%"><span class="smalltext"><strong>{$lang->on_username}</strong></span></td>
<td class="thead" colspan="2" align="center" width="50%"><span class="smalltext"><strong>{$lang->time}</strong></span></td>
</tr>
{$todayrows}
<tr>
<td align="center" colspan="2" class="trow1" style="white-space: nowrap">{$onlinetoday}</td>
</tr>
</table>
{$footer}
</body>
</html>
Oh that's the wrong template. That is the one for http://yoursite.com/online.php?action=today, and has nothing to do with the plugin for it.

I think you have to edit the core file of the Online Today plugin to do what you need, I could edit it for you and post it and you can just replace the original file with the one I edited, if you want.
Pages: 1 2