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
  #12  
Old 08-02-2011, 10:55 AM
trackpads's Avatar
trackpads trackpads is offline
 
Join Date: Aug 2003
Location: Armyville
Posts: 1,074
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Off topic, but how did you do that login where it pops up on the page? That is very nice too.

Thanks again for all your work,

-Jason
Reply With Quote
  #13  
Old 08-02-2011, 11:45 AM
BCP Hung BCP Hung is offline
 
Join Date: May 2011
Location: Vietnam
Posts: 155
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by trackpads View Post
Off topic, but how did you do that login where it pops up on the page? That is very nice too.

Thanks again for all your work,

-Jason
Sorry, this thread not about that modification.
And, when it is available, I will share here.
Reply With Quote
  #14  
Old 08-02-2011, 12:27 PM
MoDz MoDz is offline
 
Join Date: Jul 2011
Location: Germany
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

nice getamped
Reply With Quote
  #15  
Old 08-02-2011, 01:19 PM
odln018's Avatar
odln018 odln018 is offline
 
Join Date: Mar 2006
Posts: 210
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just out of curiosity, how do you get that announcement mod that slides out from the left?
Reply With Quote
  #16  
Old 08-02-2011, 01:25 PM
BCP Hung BCP Hung is offline
 
Join Date: May 2011
Location: Vietnam
Posts: 155
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by odln018 View Post
Just out of curiosity, how do you get that announcement mod that slides out from the left?
Right here : https://vborg.vbsupport.ru/showthread.php?t=265297
Reply With Quote
  #17  
Old 08-02-2011, 02:37 PM
odln018's Avatar
odln018 odln018 is offline
 
Join Date: Mar 2006
Posts: 210
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Cool, thank you very much.
Reply With Quote
  #18  
Old 11-18-2013, 07:58 AM
Harpo's Avatar
Harpo Harpo is offline
 
Join Date: Dec 2011
Location: Canada
Posts: 100
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can we have a screen shot?
Reply With Quote
  #19  
Old 11-19-2013, 01:00 AM
londoner londoner is offline
 
Join Date: Feb 2011
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi, thnaks for the effort,
can you please add a snapshot to the mod cause I dont seem to find one
and if you have added one then it might be down cause I cant see any images
thanks
Reply With Quote
  #20  
Old 11-19-2013, 08:24 AM
Arrogant-One's Avatar
Arrogant-One Arrogant-One is offline
 
Join Date: Jul 2007
Location: Brisbane
Posts: 196
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Harpo View Post
Can we have a screen shot?
I was just thinking the same thing. Screen shot would be nice.
Reply With Quote
  #21  
Old 11-20-2013, 10:22 AM
WEBDosser's Avatar
WEBDosser WEBDosser is offline
 
Join Date: Oct 2001
Location: @ MyPC
Posts: 824
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nothing to shout about there, nope just re-arranged the code a little.
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:56 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.08268 seconds
  • Memory Usage 2,350KB
  • 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
  • (3)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
  • (11)post_thanks_box
  • (1)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete