Layout, and a new statistics for "What's Going On?"
Mod Version: 2.00, by BCP Hung
vB Version: 4.x.x |
Rating: (2 votes - 5.00 average) |
Installs: 18 |
Released: 11 May 2011 |
Last Update: Never |
Downloads: 0 |
Not Supported
Template Edits
Code Changes
Translations
|
About this modification : I will give you a new look for the "What's Going On?" box. It is not complicated, even very simple. You would have a statistics about "real" posts, rearranging the layout for "What's Going On?" become neat, and give it full size.
Not much to say, it is better to start immediately! Install :- Make new statistics look !
In FORUMHOME template, search for :
HTML Code:
<div id="wgo_stats" class="wgo_subblock section">
<h3 class="blocksubhead"><img src="{vb:stylevar imgdir_misc}/forum_stats.png" alt="{vb:rawphrase x_statistics, {vb:raw vboptions.bbtitle}}" />{vb:rawphrase x_statistics, {vb:raw vboptions.bbtitle}}</h3>
<div>
<dl>
<dt>{vb:rawphrase threads}</dt>
<dd>{vb:raw totalthreads}</dd>
<dt>{vb:rawphrase posts}</dt>
<dd>{vb:raw totalposts}</dd>
<dt>{vb:rawphrase members}</dt>
<dd>{vb:raw numbermembers}</dd>
<vb:if condition="$show['activemembers']">
<dt>{vb:rawphrase active_members}</dt>
<dd>{vb:raw activemembers}</dd>
</vb:if>
</dl>
<p>{vb:rawphrase welcome_to_our_newest_member_x, {vb:link member, {vb:raw newuserinfo}}, {vb:raw newuserinfo.username}}</p>
{vb:raw template_hook.forumhome_wgo_stats}
</div>
</div>
Replace with :
HTML Code:
<div id="wgo_stats" class="wgo_subblock section">
<h3 class="blocksubhead"><img src="{vb:stylevar imgdir_misc}/forum_stats.png" alt="{vb:rawphrase x_statistics, {vb:raw vboptions.bbtitle}}" />{vb:rawphrase x_statistics, {vb:raw vboptions.bbtitle}}</h3>
<div>
<dl>
<dt>{vb:rawphrase threads}</dt> <dd>{vb:raw totalthreads}</dd>
<dt>{vb:rawphrase posts}</dt> <dd>{vb:raw totalposts}</dd>
<dt>{vb:rawphrase members}</dt> <dd>{vb:raw numbermembers}</dd>
<vb:if condition="$show['activemembers']">
<dt>{vb:rawphrase active_members}</dt> <dd>{vb:raw activemembers}</dd>
</vb:if>
<dd>{vb:rawphrase welcome_to_our_newest_member_x, {vb:link member, {vb:raw newuserinfo}}, {vb:raw newuserinfo.username}}</dd>
</dl>
{vb:raw template_hook.forumhome_wgo_stats}
</div>
</div>
If you want easier look and neat, add to the front <br /> and <br /> at the end.
- Make it neat : I will split statistics and icon legend into two column.
- First, search for : <div class="blockbody formcontrols floatcontainer"> and add below :
HTML Code:
<table cellpadding="{vb:stylevar padding}" cellspacing="{vb:stylevar spacing}" border="0" width="100%" align="center">
<tr>
<td width="60%" valign="top">
- Then, search for :
HTML Code:
{vb:raw template_hook.forumhome_wgo_stats}
</div>
</div>
add above :
HTML Code:
</td>
<td width="1%" valign="top"> </td>
<td width="39%" valign="top">
- And finally, search for : {vb:raw template_hook.forumhome_wgo_pos5}, add above :
HTML Code:
</td>
</tr>
</table>
And, it over !
- If you want your WGO full width (when use "Sidebar & Block"), please as in direction after path:
- At very bottom, search for and delete (or cut) it:
HTML Code:
<vb:if condition="$show['sidebar']">
</div>
</div>
<div id="sidebar_container"<vb:if condition="$show['sidebarposition'] == 'left'"> class="sidebarleft"</vb:if>>
<a id="sidebar_button_link" href="#">
<vb:if condition="$show['sidebarposition'] == 'left'">
<img id="sidebar_button" src="{vb:stylevar imgdir_misc}/tab-collapsed-left.png" alt="" />
<vb:else />
<img id="sidebar_button" src="{vb:stylevar imgdir_misc}/tab-collapsed.png" alt="" />
</vb:if>
</a>
<ul id="sidebar">
{vb:raw sidebar}
</ul>
</div>
</vb:if>
- Then, search for : <!-- /main -->, add below :
HTML Code:
<vb:if condition="$show['sidebar']">
</div>
</div>
<div id="sidebar_container"<vb:if condition="$show['sidebarposition'] == 'left'"> class="sidebarleft"</vb:if>>
<a id="sidebar_button_link" href="#">
<vb:if condition="$show['sidebarposition'] == 'left'">
<img id="sidebar_button" src="{vb:stylevar imgdir_misc}/tab-collapsed-left.png" alt="" />
<vb:else />
<img id="sidebar_button" src="{vb:stylevar imgdir_misc}/tab-collapsed.png" alt="" />
</vb:if>
</a>
<ul id="sidebar">
{vb:raw sidebar}
</ul>
</div>
</vb:if>
Do not difficult to do, and now please enjoy what you have made.
Download
No files for download.
|