View Full Version : vBulletin Blog - vB Blog Stats on Forumhome
Lizard King
09-20-2007, 10:00 PM
I was in need to show vBulletin Blog stats on forumhome and i prepared the following product. As i am not the perfect coder any further advise will be taken seriously for optimizing the product.
Installation Instructions :
Import the attached product via vBulletin Product Manager
Edit FORUMHOME template and search for :
$vbphrase[members]: $numbermembers<if condition="$show['activemembers']">,
<span title="<phrase 1="$vboptions[activememberdays]">$vbphrase[within_the_last_x_days]</phrase>">$vbphrase[active_members]: $activemembers</span>
</if>
add right after
$vbphrase[forumhome_total_blogs] : <if condition="$blogstats['total_blog_users']"><a href="blog.php?$session[sessionurl]do=bloglist">$blogstats[total_blog_users]</a><else />0</if>,
$vbphrase[forumhome_total_blog_entries]: $blogstats[total_blog_entries],
$vbphrase[forumhome_todays_blog_entries]:</b> $blogstats[entries_in_24hours]
You are ready to go
Ascor
09-21-2007, 10:28 AM
Installed, thank you :)
Feckie (Roger)
09-21-2007, 12:25 PM
Doesn't seem to be working
Lea Verou
09-21-2007, 12:41 PM
Thanks, will install soon! :)
Lizard King
09-21-2007, 01:50 PM
Doesn't seem to be working
What error do you receive ?
Cybertims
09-21-2007, 02:11 PM
Which mod does this go with? Can you provide a link to the main mod please?
Cheers.
Milad
09-21-2007, 04:26 PM
As i am not the perfect coder any further advise will be taken seriously for optimizing the product.
For sure, this product can be optimized.
You used three queries and that's too much.
First of all you need to run a cron job to save those stats in the datastore table. use the hook cron_script_cleanup in includes/cron/cleanup.php
Then you need to get the information via the hook init_stratup in includes/init.php
if (THIS_SCRIPT == 'forumhome')
{
$datastore_fetch[] = "'here_your_datastore_title'";
}
and then use $vbulletin->here_your_datastore_title to access your info.
Then you can bypass the template edits by joining your info to a variable ex: $totalposts
regards
Feckie (Roger)
09-21-2007, 06:57 PM
What error do you receive ?
Non and it does not display totals nothing
ThreeD
09-21-2007, 07:35 PM
thanks for this one :)
Feckie, check your product manager and make sure the plugin is enabled. Mine was not enabled per default after installing it.
Feckie (Roger)
09-21-2007, 08:13 PM
thanks for this one :)
Feckie, check your product manager and make sure the plugin is enabled. Mine was not enabled per default after installing it.
Yep That Worked thanks.
1st time that as happened to me ha ha :rolleyes:
kaptanblack
09-21-2007, 08:14 PM
Thanks lizard :)
ThreeD
09-21-2007, 08:42 PM
Which mod does this go with? Can you provide a link to the main mod please?
Cheers.
This is an addon for the vBulletin Blog by Jelsoft.
Hornstar
09-22-2007, 05:20 AM
Thanks, I will keep this in mind once I switch over to vbblog (very soon)
PoetJA-1975
09-22-2007, 06:06 AM
a screenshot or demo would be nice please ;)
I mean - is it like Lated Blogs on Home Page (https://vborg.vbsupport.ru/showthread.php?t=156652&highlight=blog)?
JAcquii.
Lizard King
09-22-2007, 07:31 AM
a screenshot or demo would be nice please ;)
I mean - is it like Lated Blogs on Home Page (https://vborg.vbsupport.ru/showthread.php?t=156652&highlight=blog)?
JAcquii.
http://www.ayyas.com/forum.html
You can check on right sidebar below shoutbox.
Snake
09-22-2007, 11:21 AM
Thanks, been waiting for something like this.
Brandon Sheley
09-22-2007, 12:19 PM
Thanks Lizard King :)
has the product been optimized from the first page ?
cheers
murrtex
09-22-2007, 11:40 PM
Good work,thanks Lizard King
yoyoyoyo
10-10-2007, 01:06 AM
this product is not enabled by default. After you import it you must enable it in order to get it to work properly.
Nikke
10-13-2007, 02:10 PM
Is there anyway the blogstats could be added to the normal stats? Blogentries = threads and blogcomments = posts.
Snake
01-18-2008, 08:25 PM
Just a quick question here. Is this going to function just fine on 3.6.8?
Hornstar
11-07-2008, 09:13 PM
I suppose since vbblog 2 does this standard now, I will uninstall this. Thanks
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.