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
Latest Blogs on Home Page Details »»
Latest Blogs on Home Page
Version: 1.2, by ericgtr ericgtr is offline
Developer Last Online: Feb 2022 Show Printable Version Email this Page

Category: vBulletin Blog - Version: 3.6.8 Rating:
Released: 08-29-2007 Last Update: 09-03-2007 Installs: 113
Uses Plugins Template Edits
 
No support by the author.

This will display the last 5 blogs on the home page blow the What's Going On box. See screenshot for example.

Installation is easy, just import the product and make the template edit.

Update 9/2/07: Removed the template edit from the What's going on box and added it below. With the table structure it makes more sense in this modification. If you have already installed it, apply the template edit again.

RSS_Instructions
This is an alternative method to the above that will display the last 10, this was taken from one of the admins over at vbulletin.com that originally wrote it for the latest threads and modified for this. It's display is not as clean but it will not show blogs that are hidden and I have yet to work that out for the above method.

Show Your Support

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

Comments
  #72  
Old 09-24-2007, 08:48 AM
Blackhat's Avatar
Blackhat Blackhat is offline
 
Join Date: Mar 2005
Posts: 323
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

can I get this into a sidebar instead of the bottom ?
Reply With Quote
  #73  
Old 10-06-2007, 07:58 AM
AzH's Avatar
AzH AzH is offline
 
Join Date: Feb 2005
Location: UK
Posts: 224
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

<a href="http://lurkingmastermind.com/forums/blogs/evil/yesterday-s-entries-30/" target="_blank">http://lurkingmastermind.com/forums/...-s-entries-30/</a>

Problem. Entries saved as draft appear in the latest blogs table and when click naturally throw up an error message.
Reply With Quote
  #74  
Old 10-06-2007, 01:54 PM
Hengest Hengest is offline
 
Join Date: May 2007
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just installed, thanks!

Edit: How do I hide this from non members or any other user group?
Reply With Quote
  #75  
Old 10-11-2007, 06:53 PM
zCarot's Avatar
zCarot zCarot is offline
 
Join Date: Jul 2007
Location: Lol'sk
Posts: 49
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I made fix for private blog entries. Not good (I just cut some code form blog_functions), but works =)
PHP Code:
//Latest Blogs

require_once(DIR '/includes/blog_functions_shared.php');

$having_or = array();
    if (!
can_moderate_blog())
    {
        if (
$vbulletin->userinfo['userid'])
        {
            
$having_or[] = "userid = " $vbulletin->userinfo['userid'];
            
$having_or[] = "(bu.options_ignore & " $vbulletin->bf_misc_vbblogsocnetoptions['canviewmyblog'] . " AND ignoreid IS NOT NULL)";
            
$having_or[] = "(bu.options_buddy & " $vbulletin->bf_misc_vbblogsocnetoptions['canviewmyblog'] . " AND buddyid IS NOT NULL)";
            
$having_or[] = "(bu.options_everyone & " $vbulletin->bf_misc_vbblogsocnetoptions['canviewmyblog'] . " AND (bu.options_buddy & " $vbulletin->bf_misc_vbblogsocnetoptions['canviewmyblog'] . " OR buddyid IS NULL) AND (bu.options_ignore & " $vbulletin->bf_misc_vbblogsocnetoptions['canviewmyblog'] . " OR ignoreid IS NULL))";
        }
        else
        {
            
$having_or[] = "bu.options_everyone & " $vbulletin->bf_misc_vbblogsocnetoptions['canviewmyblog'];
        }
    }

    
$having_join = array();
    
$having_select = array();
    if (
$vbulletin->userinfo['userid'])
    {
        
$having_join[] = "LEFT JOIN " TABLE_PREFIX "userlist AS buddy ON (buddy.userid = blog.userid AND buddy.relationid = " $vbulletin->userinfo['userid'] . " AND buddy.type = 'buddy')";
        
$having_join[] = "LEFT JOIN " TABLE_PREFIX "userlist AS ignored ON (ignored.userid = blog.userid AND ignored.relationid = " $vbulletin->userinfo['userid'] . " AND ignored.type = 'ignore')";
        
$having_select[] = "ignored.relationid AS ignoreid, buddy.relationid AS buddyid";
    }

$latestblogs $db->query(
    SELECT blog.blogid, blog.title, blog.username, blog.dateline, blog.userid, blog.views, options_everyone, options_buddy
    " 
. (!empty($having_select) ? ", " implode(", "$having_select) : "") . "
    FROM " 
TABLE_PREFIX "blog as blog
    LEFT JOIN " 
TABLE_PREFIX "blog_user as bu ON (bu.bloguserid = blog.userid)
    " 
. (!empty($having_join) ? implode("\r\n"$having_join) : "") . "
    WHERE blog.state='visible' AND blog.pending='0'
    " 
. (!empty($having_or) ? "HAVING " implode("\r\n\tOR "$having_or) : "") . "
    ORDER BY blog.dateline DESC 
    LIMIT 10 
"
); 
while (
$showblogs=$db->fetch_array($latestblogs)) 

    
$showblogsprivate false;
    if (
can_moderate() AND $showblogs['userid'] != $vbulletin->userinfo['userid'])
    {
        
$everyoneelsecanview $showblogs['options_everyone'] & $vbulletin->bf_misc_vbblogsocnetoptions['canviewmyblog'];
        
$buddiescanview $showblogs['options_buddy'] & $vbulletin->bf_misc_vbblogsocnetoptions['canviewmyblog'];
        if (!
$everyoneelsecanview AND (!$showblogs['buddyid'] OR !$buddiescanview))
        {
            
$showblogsprivate true;
        }
    }

    
$counter++; 
    
$blog_userid $showblogs['userid'];
    
$blogid $showblogs['blogid'];
    
$blog_title $showblogs['title'];
    
$blog_views $showblogs['views'];
    
$blog_username $showblogs['username'];
    
$blog_dateline vbdate($vbulletin->options['dateformat'], $showblogs['dateline']);
   
    if (
$showblogsprivate)
        
$spitblogs_title .= '<img class="inlineimg" src="/images/misc/blog/key.gif" alt="Private Entry"  border="0" />'// very bad code =)
    
$spitblogs_title .= "<a href=\"blog.php?b=$blogid\">$blog_title</a>";
    
$spitblogs_title .= "<br /> ";
    
$spitblogs_views .= $blog_views;
    
$spitblogs_views .= "<br /> ";
    
$spitblogs_username .= "<a href=\"blog.php?u=$blog_userid\">$blog_username</a>";
    
$spitblogs_username .= "<br /> ";
    
$spitblogs_date .= $blog_dateline;
    
$spitblogs_date .= "<br /> ";
    
    if (
$counter 5
    { 
        
$spitblogs .= "<br /> "
    } 
    elseif (
$counter == 5)
    {
        break;
    }
}
//Latest Blogs 
Reply With Quote
  #76  
Old 10-18-2007, 01:43 AM
imprezion imprezion is offline
 
Join Date: Oct 2007
Posts: 62
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

how do I install the blogs in my homepage instead of the forum home?
Reply With Quote
  #77  
Old 10-21-2007, 03:05 PM
lifanovsky's Avatar
lifanovsky lifanovsky is offline
 
Join Date: Oct 2004
Location: Moscow, Russia
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by zCarot View Post
I made fix for private blog entries. Not good (I just cut some code form blog_functions), but works =)
Thanks for the Russian translation, zCarot - using it. 8)

Concerning the hack you provided - it caused troubles when I tried to use it - half of my users could access the forum. So I switched back to the original version...

Thanks for the try anyway...
Reply With Quote
  #78  
Old 10-21-2007, 03:29 PM
zCarot's Avatar
zCarot zCarot is offline
 
Join Date: Jul 2007
Location: Lol'sk
Posts: 49
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by lifanovsky View Post
Thanks for the Russian translation, zCarot - using it. 8)
You're welcome
Quote:
Originally Posted by lifanovsky View Post
Concerning the hack you provided - it caused troubles when I tried to use it - half of my users could access the forum. So I switched back to the original version...

Thanks for the try anyway...
DB error (show it)? Or just blank page?
Reply With Quote
  #79  
Old 10-24-2007, 04:31 PM
BigDog56 BigDog56 is offline
 
Join Date: Jan 2007
Posts: 430
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Very nice! Thank you, looks good!
Reply With Quote
  #80  
Old 10-26-2007, 06:42 AM
mmmender's Avatar
mmmender mmmender is offline
 
Join Date: Sep 2002
Location: toronto
Posts: 65
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've got a major problem with this on my forumhome. I think it may be due to the fact that my server admin recently upgraded to php5. Installing the product as-is and making the template edit as-is I get a black table where the list of recent blogs is supposed to be (see image). I tried altering both the .xml file and the template edit to replace any .php extensions with .php5 extensions but I'm still getting a black table instead of the blog data. Can you please help?
Reply With Quote
  #81  
Old 10-26-2007, 08:21 AM
mmmender's Avatar
mmmender mmmender is offline
 
Join Date: Sep 2002
Location: toronto
Posts: 65
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I solved the problem myself. It was a style problem. I think you should mention in your read me file that people might want it to match their forums styles so, personally, I would change this:

Code:
<td class="smallfont">$spitblogs_username</td>
<td class="smallfont">$spitblogs_title</td>
<td class="smallfont">$spitblogs_views</td>
<td class="smallfont">$spitblogs_date</td>
to this:
Code:
<td class="alt2">$spitblogs_username</td>
<td class="alt1">$spitblogs_title</td>
<td class="alt1">$spitblogs_views</td>
<td class="alt1">$spitblogs_date</td>
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 06:36 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05314 seconds
  • Memory Usage 2,353KB
  • 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
  • (2)bbcode_code
  • (1)bbcode_php
  • (3)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