View Full Version : vBulletin Blog - Blog Statistics Forum Home + Latest Blogs
Atakan KOC
11-03-2007, 10:00 PM
Blog Statistics Forum Home + Latest Blogs
This hack uses only 1 query and monitors all statistics and latest blogs. You can choose to show the number of blogs and to which user group.
Mark as Installed (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=161910) - Nominate for MOTM (https://vborg.vbsupport.ru/vborg_miscactions.php?do=nominate&threadid=161910&type=1)
install
Go to your admin cp, then:
Plugin System -> Manage Products -> [Add/Import Product] -> Select 'product-blogstatistics.xml' from your computer then press 'Import'
File Change
Open index.php and find
$phrasegroups = array('holiday');Replace
$phrasegroups = array('holiday','vbblogglobal');Find
$specialtemplates = array(
'userstats',Replace
$specialtemplates = array(
'userstats',
'blogstats',Modifications Info
Plugin : 2
Phrases : 9
Template : 2
Setting : 3
Versions:
v1.0 - 04 November 2007
-First release
Mark as Installed (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=161910) - Nominate for MOTM (https://vborg.vbsupport.ru/vborg_miscactions.php?do=nominate&threadid=161910&type=1)
TvPano (http://www.tvpano.com/) - Yabancı Dizi (http://www.tvpano.com/yabanci-dizi/) - Yerli Dizi (http://www.tvpano.com/yerli-dizi/) - Anime (http://www.tvpano.com/anime/)
Atakan KOC
11-04-2007, 03:59 PM
reserved
wwoottt! very very nice :)
kaptanblack
11-04-2007, 05:49 PM
Thanks Atakan KOC...
I will install this mod when buy vbulletin blog :D
PoetJA-1975
11-04-2007, 06:34 PM
Looks good = Thanx for the sharing ;)
Jacquii.
Commisat
11-04-2007, 07:46 PM
nice thanks:up:
SuperTaz
11-04-2007, 08:22 PM
Installed. Thank you :D
Ba$im
11-04-2007, 10:53 PM
very nice
I would use it as box slide on forum home for example on left colume
what code should I use plz?
aslo r there any way tp view member avatar as on tatest blogin on blog home?
thanks
WaaDaa
11-05-2007, 06:49 AM
Good job Atakan!
projectego
11-05-2007, 07:45 AM
* projectego clicks install. Thank you very much! :D
yoyoyoyo
11-05-2007, 09:23 AM
very cool - it would be better if we didn't have to edit core files, though
Jezlad
11-05-2007, 12:03 PM
Hi
Installed and working fantastic - great mod.
Just one question.
Which template would I edit to alter the size of the entry title text?
Its a little to large.
Thanks
Jez
sefa sahin
11-05-2007, 12:52 PM
Teşekk?rler ATAKAN, tebrik ederim!:up:
Thank you ATAKAN, congratulations!:up:
ThorstenA
11-05-2007, 02:58 PM
Changing of $phrasegroups and $specialtemplates can be done by hooks!
Jezlad
11-05-2007, 03:21 PM
Sorry I dont understand.
All I want to do is reduce the size of the text. Hooks?
Snake
11-05-2007, 06:58 PM
Thanks for the release!
murrtex
11-05-2007, 08:15 PM
well done master ;)
PoetJA-1975
11-05-2007, 10:39 PM
Excellent share = Thanx!
Jacquii.
PoetJA-1975
11-05-2007, 10:46 PM
Hi
Installed and working fantastic - great mod.
Just one question.
Which template would I edit to alter the size of the entry title text?
Its a little to large.
Thanks
Jez
in the AdminCP ---> Styles & Templates ---> Style Manager ---> Edit Templates ---> Blog Templates ---> blog_stat_forum_home
Find:
<div>
<strong>$vbphrase[blog_stat_latestblogs]: </strong><br />
$blogyaz
</div>
Change <div> to <div class="smallfont">
HTH,
Jacquii.
aycan555
11-05-2007, 11:27 PM
Hello abi, thanx for this great hack abi my question is not on this hack, i am planing to buy the vb blog, is it got turkish lang file?
FreshFroot
11-06-2007, 04:34 AM
good stuff mate, thanks.
parabat
11-07-2007, 11:27 PM
I'm hoping someone could assist me please.
I'm not PHP wise and want to display my Wordpress blog entries on my forum homepage just like this mod does. Unfortunately I don't have the VbBlog but I am using Wordpress.
My Wordpress and vBulletin have separate databases. Usually the forum members don't view the blogs on the main homepage, hence me trying to display them in the forum so they become more visible.
I understand the general idea how to do it, but have no clue how to actually write the PHP code. I had a look at this code, but it's not opening a different database which has me stumped. I guess Wordpress also uses different database fields etc.
So any help at all would be greatly appreciated.
Thanx in advance
-PB
FireFish
11-16-2007, 01:24 AM
Firstly, this is a great mod. I find it very useful.
Nothing is perfect; I found a bug in it.
I drafted up a nice lengthy Blog entry & published it, but had it set to Publish On & set a future time today.
However, even though my Blog entry wasn't yet published & wasn't viewable by browsing to my blog as a guest or any other member, the headline was showing in the Recent Headline Summary on the Forum's Home Page. When the link to that article was clicked, you get a forum page that says:
Invalid Blog specified. If you followed a valid link, please notify the administrator
Basically, it leaks the headline of the Blog entry that was scheduled to be published.
JustJon
11-16-2007, 04:48 PM
I like this mod. Thanks.
One question. Is there any way for me to move the blog stats below the upcoming events?
BuRaCh
11-16-2007, 08:01 PM
great idea atakan
installed;)
Queensoul
11-22-2007, 09:47 AM
nice mod..thanks.
how much query it will add at forum home?
forumrunt
12-03-2007, 05:49 PM
Great job! thanks!
Wild Bronco
12-05-2007, 01:42 AM
Small trouble...
What can it be?
I use translation..
REVHEAD
12-09-2007, 07:34 AM
works like a charm thanks.
expatdirectory
12-09-2007, 09:01 AM
Nice Mod, shame you have to alter main scripts but works a charm.
Working copy here for those considering install. (http://forums.theexpatdirectory.com/)
Clicked install. :D
compact123
12-24-2007, 11:05 AM
Pleae upgrade 3.7 versiyon.
atakan bunu 3.7 versiyona g?re uyarlayabilirmisin acaba ve diğer modlarınıda, teşekk?rler.
ericgtr
12-27-2007, 05:08 PM
I have also installed this, I like it better than my mod :D
A couple of additions from me here if that's okay Atakan. Since the plugin is already pulling title, username, userid, and views I've decided to add them, I've also moved the other items into the title bar. View the attached image to see what it looks like.
If anyone's interested in this revision, all you have to do is replace the following templates.
blog_stat_forum_bits
Replace entire contents with
<img src="$stylevar[imgdir_statusicon]/post_old.gif" border="0" class="inlineimg" alt="" /> <a href="blog.php?b=$blog_list[blogid]">$blog_list[title]</a> | By: <a href="blog.php?u=$blog_list[userid]">$blog_list[username]</a> | Views: $blog_list[views]<br />
blog_stat_forum_home
Replace entire contents with
<tbody>
<tr>
<td class="thead" colspan="2">
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_blogstat')"><img id="collapseimg_forumhome_blogstat" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_blogstat].gif" alt="" border="0" /></a>
$vbphrase[blog_stats]
$vbphrase[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[total_blog_entries]: <strong>$blogstats[total_blog_entries]</strong>, $vbphrase[todays_blog_entries]: <!-- last 24 hours --><strong>$blogstats[entries_in_24hours]</strong>
</td>
</tr>
</tbody>
<tbody id="collapseobj_forumhome_blogstat" style="$vbcollapse[collapseobj_forumhome_blogstat]">
<tr>
<td class="alt2"><a href="blog.php?do=bloglist"><img src="$stylevar[imgdir_misc]/whos_online.gif" alt="" border="0" /></a></td>
<td class="alt1" width="100%">
<div class="smallfont">
$blogyaz
</div>
</td>
</tr>
</tbody>
htscpl
12-27-2007, 08:14 PM
Looks good! I've been trying to get more interest in my members blogging, this should help. THANKS! *** installs ***
IT also looks great with ericgtr's templete changes :D
Thanks !
nokturno
01-15-2008, 06:22 PM
problem :
I drafted up a nice lengthy Blog entry & published it, but had it set to Publish On & set a future time today.
However, even though my Blog entry wasn't yet published & wasn't viewable by browsing to my blog as a guest or any other member, the headline was showing in the Recent Headline Summary on the Forum's Home Page. When the link to that article was clicked, you get a forum page that says:
Invalid Blog specified. If you followed a valid link, please notify the administrator
Basically, it leaks the headline of the Blog entry that was scheduled to be published.
abe_119
01-26-2008, 01:49 AM
I got this small problem...
Blog Stastics : 0,:,:
How do I fix this ???
Thanks
I have also installed this, I like it better than my mod :D
A couple of additions from me here if that's okay Atakan. Since the plugin is already pulling title, username, userid, and views I've decided to add them, I've also moved the other items into the title bar. View the attached image to see what it looks like.
If anyone's interested in this revision, all you have to do is replace the following templates.
blog_stat_forum_bits
Replace entire contents with
<img src="$stylevar[imgdir_statusicon]/post_old.gif" border="0" class="inlineimg" alt="" /> <a href="blog.php?b=$blog_list[blogid]">$blog_list[title]</a> | By: <a href="blog.php?u=$blog_list[userid]">$blog_list[username]</a> | Views: $blog_list[views]<br />
blog_stat_forum_home
Replace entire contents with
<tbody>
<tr>
<td class="thead" colspan="2">
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_blogstat')"><img id="collapseimg_forumhome_blogstat" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_blogstat].gif" alt="" border="0" /></a>
$vbphrase[blog_stats]
$vbphrase[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[total_blog_entries]: <strong>$blogstats[total_blog_entries]</strong>, $vbphrase[todays_blog_entries]: <!-- last 24 hours --><strong>$blogstats[entries_in_24hours]</strong>
</td>
</tr>
</tbody>
<tbody id="collapseobj_forumhome_blogstat" style="$vbcollapse[collapseobj_forumhome_blogstat]">
<tr>
<td class="alt2"><a href="blog.php?do=bloglist"><img src="$stylevar[imgdir_misc]/whos_online.gif" alt="" border="0" /></a></td>
<td class="alt1" width="100%">
<div class="smallfont">
$blogyaz
</div>
</td>
</tr>
</tbody>
cool codes!!! thankz! :)
ChaosBurnt
02-08-2008, 08:06 AM
Brilliant, thank you
SoftDux
02-16-2008, 05:28 PM
for which blog component is this?
AngelBlue
03-26-2008, 11:14 PM
Good hack, but you need to replace
$blog_lists = $db->query("SELECT blogid, title, username, dateline, userid, state, views FROM " . TABLE_PREFIX . "blog WHERE state='visible' ORDER BY dateline DESC LIMIT $blogsatir");
With:
$blog_lists = $db->query("
SELECT blogid, title, username, dateline, userid, state, views
FROM " . TABLE_PREFIX . "blog
WHERE state='visible'
AND userid NOT IN (
SELECT bloguserid from " . TABLE_PREFIX . "blog_user
WHERE options_everyone = 0
)
ORDER BY dateline DESC LIMIT $blogsatir
");
- or this mod will show up private (buddies-only) blogs on the lastest blogs list.
Also, it would be a really good idea for this mod to use the :
<url>https://vborg.vbsupport.ru/showthread.php?t=161910</url>
In the product file.
ZapFlash
04-16-2008, 03:28 AM
2 things:
How can i change the number of total blogs link to the blogs home instead of the bloglist?
is there a way to make it show two columns, one with the latest blogs and the other with the latest blogs comments?
thanks :D
REVHEAD
04-24-2008, 08:05 AM
Is this getting refresh anytime soon?
REVHEAD
04-24-2008, 08:16 AM
I have only just started my blogger again, and after an update to 3.6.9 and now to 3.6.10 there is this small problem is this normal, and how can I fix it thanks.
aberg
05-01-2008, 05:08 PM
I got this small problem...
Blog Stastics : 0,:,:
How do I fix this ???
Thanks
Same problem here after update to Vbulletin 3.7.0
Atakan, any chance for any vBAdvanced module?
harry_5
05-08-2008, 07:30 PM
Same problem here after update to Vbulletin 3.7.0
Don?t forget to do the changes in index.php - see post from Atakan.
This hack also works with 3.7!
chrisdaman77
06-20-2008, 08:24 PM
Don?t forget to do the changes in index.php - see post from Atakan.
This hack also works with 3.7!
I am having the same issue as others. I have no clue what post you are referring to. I put all of the stuff in the way it was to be done and I still get the problem. This is a nice mod other than that one part showing as 0,: , :
dadoc
07-05-2008, 10:31 AM
Installed
Easy and quick
thanks:D
The reason that there is a problem with the title saying something like this is '0''; is that you have not done the edit to the index.php file
Rend Sever
09-07-2008, 08:51 PM
Would be awesome if I could put this on other pages, such as Who's Online.
yotsume
09-16-2008, 01:24 AM
Can this be made to show say 15 new blogs but in three columns? Just list 10 straight down is a waste of space.
Been Told
04-25-2009, 03:38 PM
Works fine on 3.8.2 :) Thank you!
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.