vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=246)
-   -   Forum Home Enhancements - WCF - Change the look of FORUMHOME statistics (https://vborg.vbsupport.ru/showthread.php?t=277565)

LifesGreatestGift 01-25-2012 11:00 PM

WCF - Change the look of FORUMHOME statistics
 
1 Attachment(s)
DEMO

https://vborg.vbsupport.ru/

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!

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

rfi 01-31-2012 08:50 AM

also want to change Threads / Posts stats on the Forum Home page.

Taurus1 02-02-2012 09:08 AM

Awesome, thanks.

rfi 02-02-2012 11:33 AM

how can i get these stats in the center of the page?

foudu1030 02-02-2012 07:23 PM

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>


rfi 02-04-2012 06:27 PM

Quote:

Originally Posted by foudu1030 (Post 2295492)
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.:cool:

foudu1030 02-05-2012 10:16 AM

Code:

.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/m...ect/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

Quote:

Originally Posted by Da-Vinci (Post 2320709)
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?

Quote:

Originally Posted by Ravallojr (Post 2314025)
can we get an updated pic?

Quote:

Originally Posted by hacker_ (Post 2313998)
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

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

Quote:

Originally Posted by Skierpetros (Post 2520720)
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


All times are GMT. The time now is 06:18 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.01123 seconds
  • Memory Usage 1,791KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (6)bbcode_code_printable
  • (2)bbcode_php_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (33)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete