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
WCF - Change the look of FORUMHOME statistics Details »»
WCF - Change the look of FORUMHOME statistics
Version: 4.1.10, by LifesGreatestGift LifesGreatestGift is offline
Developer Last Online: Apr 2015 Show Printable Version Email this Page

Category: Forum Home Enhancements - Version: 4.1.10 Rating:
Released: 01-25-2012 Last Update: Never Installs: 53
Template Edits
Re-useable Code  
No support by the author.

DEMO



Add the following to additional.css
Code:
#totalforumstatscontainer{width:100%;display:inline-block;}
.totalforumstats{text-align:center;float:left;padding:0px 15px 0px 0px !important;}
p.forumstatsnumber{font-size:2em;}
p.forumstatsname{font-weight:bold;}
Open template FORUMHOME

Find:
Code:
				<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>
Replace with:
Code:
<div id="totalforumstatscontainer">
<div class="totalforumstats">
<p class="forumstatsnumber">{vb:raw totalthreads}</p>
<p class="forumstatsname">{vb:rawphrase threads}</p>
</div>
<div class="totalforumstats">
<p class="forumstatsnumber">{vb:raw totalposts}</p>
<p class="forumstatsname">{vb:rawphrase posts}</p>
</div>
<div class="totalforumstats">
<p class="forumstatsnumber">{vb:raw numbermembers}</p>
<p class="forumstatsname">{vb:rawphrase members}</p>
</div>
<vb:if condition="$show['activemembers']">
<div class="totalforumstats">
<p class="forumstatsnumber">{vb:raw activemembers}</p>
<p class="forumstatsname">Active</p>
</div>
</vb:if>
</div>                                                

				<div>

Feel free to edit/style as needed.

Enjoy!

Show Your Support

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

Comments
  #12  
Old 01-31-2012, 08:50 AM
rfi rfi is offline
 
Join Date: Jul 2009
Posts: 35
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

also want to change Threads / Posts stats on the Forum Home page.
Reply With Quote
  #13  
Old 02-02-2012, 09:08 AM
Taurus1's Avatar
Taurus1 Taurus1 is offline
 
Join Date: Dec 2009
Posts: 648
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Awesome, thanks.
Reply With Quote
  #14  
Old 02-02-2012, 11:33 AM
rfi rfi is offline
 
Join Date: Jul 2009
Posts: 35
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

how can i get these stats in the center of the page?
Reply With Quote
  #15  
Old 02-02-2012, 07:23 PM
foudu1030 foudu1030 is offline
 
Join Date: Jul 2008
Posts: 20
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Code:
<div id="totalforumstatscontainer">
<center>
<div class="totalforumstats">
<p class="forumstatsnumber">{vb:raw totalthreads}</p>
<p class="forumstatsname">{vb:rawphrase threads}</p>
</div>
<div class="totalforumstats">
<p class="forumstatsnumber">{vb:raw totalposts}</p>
<p class="forumstatsname">{vb:rawphrase posts}</p>
</div>
<div class="totalforumstats">
<p class="forumstatsnumber">{vb:raw numbermembers}</p>
<p class="forumstatsname">{vb:rawphrase members}</p>
</div>
<vb:if condition="$show['activemembers']">
<div class="totalforumstats">
<p class="forumstatsnumber">{vb:raw activemembers}</p>
<p class="forumstatsname">Active</p>
</div>
</vb:if>
</center>
</div>                                                

				<div>
Reply With Quote
  #16  
Old 02-04-2012, 06:27 PM
rfi rfi is offline
 
Join Date: Jul 2009
Posts: 35
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by foudu1030 View Post
Code:
<div id="totalforumstatscontainer">
<center>
<div class="totalforumstats">
<p class="forumstatsnumber">{vb:raw totalthreads}</p>
<p class="forumstatsname">{vb:rawphrase threads}</p>
</div>
<div class="totalforumstats">
<p class="forumstatsnumber">{vb:raw totalposts}</p>
<p class="forumstatsname">{vb:rawphrase posts}</p>
</div>
<div class="totalforumstats">
<p class="forumstatsnumber">{vb:raw numbermembers}</p>
<p class="forumstatsname">{vb:rawphrase members}</p>
</div>
<vb:if condition="$show['activemembers']">
<div class="totalforumstats">
<p class="forumstatsnumber">{vb:raw activemembers}</p>
<p class="forumstatsname">Active</p>
</div>
</vb:if>
</center>
</div>                                                

				<div>
No Man it didn't work I believe it is to do something with the .css portion! I have tried

Code by LifesGreatestGift
PHP Code:
.totalforumstats{text-align:center;float:left;padding:0px 15px 0px 0px !important;} 
I changed it to
PHP Code:
.totalforumstats{text-align:center;float:Center;padding:0px 15px 0px 0px !important;} 
This has put the text to the center but alignment was out.....Please find the exact solution.
Reply With Quote
  #17  
Old 02-05-2012, 10:16 AM
foudu1030 foudu1030 is offline
 
Join Date: Jul 2008
Posts: 20
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Code:
.totalforumstats{text-align:right;float:center;padding:0px 15px 0px 0px !important;}
This ?
Reply With Quote
  #18  
Old 02-05-2012, 10:43 AM
doctorsexy's Avatar
doctorsexy doctorsexy is offline
 
Join Date: Mar 2011
Location: earth
Posts: 383
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Working great... thank you
Reply With Quote
  #19  
Old 03-24-2012, 10:28 AM
Ohlala.Vn Ohlala.Vn is offline
 
Join Date: May 2009
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Demo die !!!
Reply With Quote
  #20  
Old 03-25-2012, 07:52 PM
magrabe magrabe is offline
 
Join Date: Nov 2011
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default



?
Reply With Quote
  #21  
Old 03-27-2012, 08:39 PM
hacker_ hacker_ is offline
 
Join Date: May 2010
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Screenshot or Live demo 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 07:39 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.08852 seconds
  • Memory Usage 2,334KB
  • 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
  • (6)bbcode_code
  • (2)bbcode_php
  • (1)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
  • (3)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