vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   vBulletin Blog - Blog Statistics Forum Home + Latest Blogs (https://vborg.vbsupport.ru/showthread.php?t=161910)

Atakan KOC 11-03-2007 10:00 PM

Blog Statistics Forum Home + Latest Blogs
 
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

Atakan KOC 11-04-2007 03:59 PM

reserved

RvG2 11-04-2007 04:42 PM

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

[high]* projectego clicks install. Thank you very much! :D[/high]

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

Quote:

Originally Posted by Jezlad (Post 1376213)
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:
Code:

<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.

Zia 11-27-2007 05:10 AM

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.

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
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>


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

RvG2 01-26-2008 07:35 AM

Quote:

Originally Posted by ericgtr (Post 1410207)
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
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! :)

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
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.


All times are GMT. The time now is 10:34 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.01367 seconds
  • Memory Usage 1,829KB
  • 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
  • (8)bbcode_code_printable
  • (4)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete