View Full Version : Forum Home Enhancements - WCF - Change the look of FORUMHOME statistics
LifesGreatestGift
01-25-2012, 11:00 PM
DEMO
https://vborg.vbsupport.ru/
Add the following to additional.css
#totalforumstatscontainer{width:100%;display:inlin e-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:
<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:
<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!
BlueCheri
01-26-2012, 04:12 AM
Looks good, tagged. Will try with new version.
Thanx
Scalemotorcars
01-26-2012, 05:27 AM
Nice and clean. Works great, thanks....
Alecsmith
01-26-2012, 02:11 PM
Nice :) updated on my site with some modification :)
Thanks
Konsolenheld
01-26-2012, 03:27 PM
works with 4.1.7?
Pvtiste
01-26-2012, 04:33 PM
Nice job!
foudu1030
01-26-2012, 05:58 PM
Hello, Thanks ! :)
How I can add statstic for X cat?gorie ? :)
Robru
01-26-2012, 10:55 PM
Thanks for sharing this! :)
Ricsca
01-27-2012, 12:43 PM
Good ;)
Dr.osamA
01-28-2012, 03:36 AM
rated and inatalled
thank you bro
also want to change Threads / Posts stats on the Forum Home page.
Taurus1
02-02-2012, 09:08 AM
Awesome, thanks.
how can i get these stats in the center of the page?
foudu1030
02-02-2012, 07:23 PM
<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>
<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
.totalforumstats{text-align:center;float:left;padding:0px 15px 0px 0px !important;}
I changed it to
.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.:cool:
foudu1030
02-05-2012, 10:16 AM
.totalforumstats{text-align:right;float:center;padding:0px 15px 0px 0px !important;}
This ?
doctorsexy
02-05-2012, 10:43 AM
Working great... thank you
Ohlala.Vn
03-24-2012, 10:28 AM
Demo die !!!
magrabe
03-25-2012, 07:52 PM
http://i293.photobucket.com/albums/mm71/smallvilleproject/demo-4.jpg
?
hacker_
03-27-2012, 08:39 PM
Screenshot or Live demo please
Ravallojr
03-27-2012, 10:09 PM
can we get an updated pic?
Da-Vinci
04-16-2012, 08:20 PM
Why use Photobucket or Tiny pic, there images always expire, why not just upload your screens direct to the forum?
Does anybody have a demo or a screen please?
xbrian88
04-18-2012, 12:42 AM
Why use Photobucket or Tiny pic, there images always expire, why not just upload your screens direct to the forum?
Does anybody have a demo or a screen please?
can we get an updated pic?
Screenshot or Live demo please
quote friends
HHelp1
04-18-2012, 12:41 PM
Any demo or image please? Because the image up there is no longer work :/
Donavaz
04-18-2012, 03:04 PM
Can u add a demo please?
DM BoNeZ
04-20-2012, 08:28 AM
i want demo first
marccap
05-07-2012, 12:27 PM
as above demo/screen shot would be nice
Blutengel
03-05-2013, 01:51 AM
http://imagez.me/photos/20130304136245179167368.jpg (http://imagez.me/)
fxdigi-cash
05-07-2013, 02:32 AM
Thanks for the nice modification... works great on vb.4.2.1
Skierpetros
10-31-2014, 07:42 AM
screen shot or demo?
GamerPerfection
11-01-2014, 08:10 PM
screen shot or demo?
Really? For something that's over 2 years old?
haimanpop
11-02-2014, 05:58 PM
good job
thanks
oldfan
05-24-2023, 07:43 PM
I like it, working on 4.2.6. php 7.2
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.