Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Blog Statistics Forum Home + Latest Blogs Details »»
Blog Statistics Forum Home + Latest Blogs
Version: 1.00, by Atakan KOC Atakan KOC is offline
Developer Last Online: Mar 2023 Show Printable Version Email this Page

Category: vBulletin Blog - Version: 3.6.8 Rating:
Released: 11-03-2007 Last Update: Never Installs: 75
Uses Plugins Template Edits Auto-Templates
Code Changes  
No support by the author.

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 - Nominate for MOTM

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

PHP Code:
$phrasegroups = array('holiday'); 
Replace

PHP Code:
$phrasegroups = array('holiday','vbblogglobal'); 
Find
PHP Code:
$specialtemplates = array(
    
'userstats'
Replace

PHP Code:
$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 - Nominate for MOTM

TvPano - Yabancı Dizi - Yerli Dizi - Anime

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #32  
Old 12-09-2007, 09:01 AM
expatdirectory expatdirectory is offline
 
Join Date: Nov 2007
Posts: 36
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice Mod, shame you have to alter main scripts but works a charm.

Working copy here for those considering install.

Clicked install.
Reply With Quote
  #33  
Old 12-24-2007, 11:05 AM
compact123 compact123 is offline
 
Join Date: Jun 2006
Posts: 235
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Pleae upgrade 3.7 versiyon.

atakan bunu 3.7 versiyona g?re uyarlayabilirmisin acaba ve diğer modlarınıda, teşekk?rler.
Reply With Quote
  #34  
Old 12-27-2007, 05:08 PM
ericgtr's Avatar
ericgtr ericgtr is offline
 
Join Date: Apr 2003
Location: Portland, Oregon
Posts: 1,407
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have also installed this, I like it better than my mod

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
Code:
<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
Code:
<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>
Reply With Quote
  #35  
Old 12-27-2007, 08:14 PM
htscpl's Avatar
htscpl htscpl is offline
 
Join Date: Sep 2003
Location: Houston
Posts: 151
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

Thanks !
Reply With Quote
  #36  
Old 01-15-2008, 06:22 PM
nokturno nokturno is offline
 
Join Date: Sep 2005
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #37  
Old 01-26-2008, 01:49 AM
abe_119 abe_119 is offline
 
Join Date: Jan 2008
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I got this small problem...

Blog Stastics : 0,:,:

How do I fix this ???

Thanks
Reply With Quote
  #38  
Old 01-26-2008, 07:35 AM
RvG2 RvG2 is offline
 
Join Date: Jan 2007
Posts: 457
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ericgtr View Post
I have also installed this, I like it better than my mod

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
Code:
<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
Code:
<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!
Reply With Quote
  #39  
Old 02-08-2008, 08:06 AM
ChaosBurnt's Avatar
ChaosBurnt ChaosBurnt is offline
 
Join Date: Feb 2008
Location: United Kingdom
Posts: 128
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Brilliant, thank you
Reply With Quote
  #40  
Old 02-16-2008, 05:28 PM
SoftDux SoftDux is offline
 
Join Date: May 2007
Location: Johannesburg, South Afric
Posts: 137
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

for which blog component is this?
Reply With Quote
  #41  
Old 03-26-2008, 11:14 PM
AngelBlue AngelBlue is offline
 
Join Date: Jun 2007
Posts: 125
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Good hack, but you need to replace
Code:
$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:
Code:
		$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 :
Code:
<url>https://vborg.vbsupport.ru/showthread.php?t=161910</url>
In the product file.
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 10:23 PM.


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.05973 seconds
  • Memory Usage 2,325KB
  • Queries Executed 25 (?)
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
  • (7)bbcode_code
  • (4)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (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
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • 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