MyBB Codes

Full Version: Stats Image
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4
Try this. It works as shown at the attached screenshot.

<tr>
<td class="tcat"><span class="smalltext"><strong>{$lang->whos_online}</strong> [<a href="online.php">{$lang->complete_list}</a>]</span></td>
</tr>
<tr>
<td class="trow1"><img src="{$theme['imgdir']}/imagename.gif" alt = "" style = "vertical-align: middle; margin: -2px 5px 0 0;"/><span class="smalltext">{$lang->online_note}<br /><br />{$onlinemembers}</span></td>
</tr>

P.s. Can you link me to the theme that you saw this so I can get a better look and understanding?
This looks cool. I had it at my Ipb forum and now I added it at my MyBB forum too. Thanx for asking for it light33 and thanx babjusi for the code.
Here is the site babjusi: http://exorth.com/forums.php

Here is one of the code that is used to add the image to the left:
<tbody id="collapse" style="">
    <tr>
        <td class="alt2"><a href="IINDEX.PHP"><img src="IMAGE.GIF" alt="IMG" border="0" /></a></td>
        <td class="alt1" width="100%">
            <div class="smallfont">
                <div style="white-space: nowrap">CONTENT</div>
                </div>
        </td>
    </tr>
</tbody>
(12-09-2009 09:57 PM)Light33 Wrote: [ -> ]Here is the site babjusi: http://exorth.com/forums.php

Here is one of the code that is used to add the image to the left:
<tbody id="collapse" style="">
    <tr>
        <td class="alt2"><a href="IINDEX.PHP"><img src="IMAGE.GIF" alt="IMG" border="0" /></a></td>
        <td class="alt1" width="100%">
            <div class="smallfont">
                <div style="white-space: nowrap">CONTENT</div>
                </div>
        </td>
    </tr>
</tbody>

Ah, I see, a vb feature. Well, if you do that at the online part then you must do it at the stats as well in order to get it in propotion, like it was at that forum. And that will require more changes to the other templates.
Yes.. vB.
I tried with this code:
<tr>
<td class="tcat" width="100%"><span class="smalltext"><strong>{$lang->whos_online}</strong> [<a href="online.php">{$lang->complete_list}</a>]</span></td>
</tr>
<tr>
<tr><td class="tcat" align="left"><img src="images/affiliates.png" valign="middle" alt="*" border="0" /></td>
<td class="trow1" align="left">
<div class="smallfont">
<div>{$lang->online_note}<br />{$onlinemembers}</div>
</div></td></tr>
<th class="tcat" width="100%"><span class="smalltext">UserGroup Legend</th>
</tr>
<tr>
<td class="trow1" valign="top" align="left" width="100%"><span class="smalltext">
<span style="color: blue;"><strong>Administrators</strong></span> •
<span style="color: green;"><strong>Global Moderators</strong></span> •
<span style="color: red;"><strong>Sectional Moderators</strong></span> •
<span style="color: black;"><strong>Veteran</strong></span> •
<span style="color: purple;"><strong>Donators</strong></span> •
<span style="color: orange;"><strong>RSS Bot</strong></span></tr>

And look what I got:
[attachment=55]
I'm trying to align the other tables and will be fine.
It looks like a bit overdone in my opinion. ALl you have to do is the img code inside another <td <td> tags. Atm I don''t have much free time to look deeper into this. But keep me updated.

Also, you must adjust the stats templates to have a symetrical stats area.
<tr>
<td class="tcat" width="100%"><span class="smalltext"><strong>{$lang->whos_online}</strong> [<a href="online.php">{$lang->complete_list}</a>]</span></td>
</tr>
<tr>
<tr><td class="tcat" align="left"><td><img src="images/affiliates.png" valign="middle" alt="*" border="0" /></td></td>
<td class="trow1" align="left">
<div class="smallfont">
<div>{$lang->online_note}<br />{$onlinemembers}</div>
</div></td></tr>

With the image into another <td></td>:
[attachment=57]
You are adding un-necccessary divs and tr''s at the code. But as I said above, in order for this to appear in proper semetry, he stats templates must be adjusted too. Just like with that rss feed button we did.

P.s. Personally I don''t see the point in addin one of vb features or the like. try the other code I gave you, it is more original btw.
I like so much this feature can you help me code the changes for the vB feature?
When you have time can post the code?
Thank you.
To be honest I ain''t too keen on doing something cos vb has it.

http://community.mybboard.net/thread-59036.html
Pages: 1 2 3 4
Reference URL's