vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=246)
-   -   Forum Home Enhancements - Layout, and a new statistics for "What's Going On?" (https://vborg.vbsupport.ru/showthread.php?t=263477)

BCP Hung 05-10-2011 10:00 PM

Layout, and a new statistics for "What's Going On?"
 
1 Attachment(s)
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 :
  1. 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.
  2. 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">&nbsp;</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 !
  3. 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​​.

BCP Hung 05-11-2011 02:50 PM

Add a screenshot.

ssslippy 05-12-2011 05:32 AM

I tried doing the whats going on at 100% width trick and it breaks everything.

BCP Hung 05-12-2011 09:12 AM

Quote:

Originally Posted by ssslippy (Post 2194661)
I tried doing the whats going on at 100% width trick and it breaks everything.

Can you give me your FORUMHOME template, maybe I need a screenshot.

ssslippy 05-12-2011 08:42 PM

If you notice you are moving a closing <vb:if> you can't do this as it leaves an included vb:if. You can not even save the template with the edit you are doing.

Also if u move the vb:if then statement attached to there it puts everything into one column.

rob01 05-12-2011 10:57 PM

any screenshot?

BCP Hung 05-13-2011 01:55 AM

Sorry, my bad, I really did not pay attention to <vb:if... .
Now, I fixed, it really work 100%.

BCP Hung 07-21-2011 12:32 PM

Major change.
I made a new look for it, remove a few code.
----------------------------------------------
Update ver 2.00 : New look !

synseal 07-22-2011 09:19 AM

Demo doesn't work for me?.

BCP Hung 07-22-2011 09:31 AM

Quote:

Originally Posted by synseal (Post 2223511)
Demo doesn't work for me?.

Sorry men ! I have changed my default domain, new domain to vBulletin Demo has been setup, try it !


All times are GMT. The time now is 04:49 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01117 seconds
  • Memory Usage 1,785KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (8)bbcode_html_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete