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
  #22  
Old 10-31-2014, 07:41 AM
Skierpetros's Avatar
Skierpetros Skierpetros is offline
 
Join Date: Jan 2008
Location: www.shopforum.gr
Posts: 180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

screen shot?
Reply With Quote
  #23  
Old 11-15-2014, 04:47 PM
killah360z killah360z is offline
 
Join Date: Jul 2013
Posts: 57
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

heres a screenshot
Attached Images
File Type: jpg Capture.jpg (80.9 KB, 0 views)
Reply With Quote
  #24  
Old 02-21-2016, 09:50 AM
marysnow786 marysnow786 is offline
 
Join Date: Nov 2013
Location: Denmark
Posts: 38
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

screen print please
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 11:28 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.06235 seconds
  • Memory Usage 2,292KB
  • Queries Executed 19 (?)
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
  • (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
  • (4)post_thanks_box
  • (1)post_thanks_box_bit
  • (4)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (4)post_thanks_postbit_info
  • (3)postbit
  • (1)postbit_attachment
  • (4)postbit_onlinestatus
  • (4)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_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
  • postbit_attachment
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete