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)

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 06: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.01153 seconds
  • Memory Usage 1,754KB
  • 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
  • (7)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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