Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Layout, and a new statistics for "What's Going On?" Details »»
Layout, and a new statistics for "What's Going On?"
Version: 2.00, by BCP Hung BCP Hung is offline
Developer Last Online: Jan 2019 Show Printable Version Email this Page

Category: Forum Home Enhancements - Version: 4.x.x Rating:
Released: 05-10-2011 Last Update: Never Installs: 18
Template Edits
Code Changes Translations  
No support by the author.

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​​.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Благодарность от:
eTiKeT?

Comments
  #2  
Old 05-11-2011, 02:50 PM
BCP Hung BCP Hung is offline
 
Join Date: May 2011
Location: Vietnam
Posts: 155
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Add a screenshot.
Reply With Quote
  #3  
Old 05-12-2011, 05:32 AM
ssslippy ssslippy is offline
 
Join Date: Jan 2006
Posts: 877
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I tried doing the whats going on at 100% width trick and it breaks everything.
Reply With Quote
  #4  
Old 05-12-2011, 09:12 AM
BCP Hung BCP Hung is offline
 
Join Date: May 2011
Location: Vietnam
Posts: 155
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ssslippy View Post
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.
Reply With Quote
  #5  
Old 05-12-2011, 08:42 PM
ssslippy ssslippy is offline
 
Join Date: Jan 2006
Posts: 877
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #6  
Old 05-12-2011, 10:57 PM
rob01 rob01 is offline
 
Join Date: Sep 2008
Location: Mexico
Posts: 410
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

any screenshot?
Reply With Quote
  #7  
Old 05-13-2011, 01:55 AM
BCP Hung BCP Hung is offline
 
Join Date: May 2011
Location: Vietnam
Posts: 155
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sorry, my bad, I really did not pay attention to <vb:if... .
Now, I fixed, it really work 100%.
Reply With Quote
  #8  
Old 07-21-2011, 12:32 PM
BCP Hung BCP Hung is offline
 
Join Date: May 2011
Location: Vietnam
Posts: 155
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Major change.
I made a new look for it, remove a few code.
----------------------------------------------
Update ver 2.00 : New look !
Reply With Quote
  #9  
Old 07-22-2011, 09:19 AM
synseal's Avatar
synseal synseal is offline
 
Join Date: Apr 2009
Posts: 334
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Demo doesn't work for me?.
Reply With Quote
  #10  
Old 07-22-2011, 09:31 AM
BCP Hung BCP Hung is offline
 
Join Date: May 2011
Location: Vietnam
Posts: 155
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by synseal View Post
Demo doesn't work for me?.
Sorry men ! I have changed my default domain, new domain to vBulletin Demo has been setup, try it !
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:42 AM.


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.08910 seconds
  • Memory Usage 2,343KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (8)bbcode_html
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (1)post_thanks_box_bit
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete