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 - Latest Blogs on Home Page (https://vborg.vbsupport.ru/showthread.php?t=156652)

ericgtr 08-29-2007 10:00 PM

Latest Blogs on Home Page
 
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.

ThreeD 08-30-2007 08:32 PM

ahhh nice :) Gotta try this!

Brandon Sheley 08-30-2007 08:45 PM

nice :)
a few more of these and I may switch over

ericgtr 08-30-2007 08:46 PM

Yeah, it's a great system but it needs more visible than just the "Blogs" link in the navbar to get some attention.

Wayne Luke 08-30-2007 08:53 PM

Thanks. I will probably look at this for the vbAdvanced portal that I want to create for my new site. Actually want blogs to be the main focus.

ThreeD 08-30-2007 09:36 PM

Is it just my setup or is the collapse button not working? :( I am trying to add a completely new box with a thead above the "What's going on?" box, but for some reason the tables get all weird.

Shouldn't the code below do the trick?

HTML Code:

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<thead>
        <tr>
                <td class="tcat" colspan="2"><a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_blog')"><img id="collapseimg_forumhome_blog" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_blog].gif" alt="" border="0" /></a>
                        <a href="blog.php">$vbphrase[latest_blog_entries]</a></td>
        </tr>
</thead>

<tbody id="collapseobj_forumhome_blog" style="$vbcollapse[collapseobj_forumhome_blog]">
<table border="0" width="100%">
        <tr>
                <td class="thead">Author</td>
                <td class="thead">Title</td>
                <td class="thead">Views</td>
                <td class="thead">Date</td>
        </tr>
        <tr>
                <td class="alt1">$spitblogs_username</a></td>
                <td class="alt1">$spitblogs_title</a></td>
                <td class="alt1">$spitblogs_views</a></td>
                <td class="alt1">$spitblogs_date</a></td>
        </tr>
</table>
</tbody>

It is basically the same code, I've just added the <thead> and moved the collapse button up to the thead section.

killswitch 08-30-2007 09:46 PM

just bought the blog system!

ericgtr 08-30-2007 09:47 PM

Quote:

Originally Posted by ThreeD (Post 1329108)
It is basically the same code, I've just added the <thead> and moved the collapse button up to the thead section.

Okay, is it working for you? If so let me know and I will update the template edit.

ThreeD 08-30-2007 09:52 PM

Eric, the output is correct and the design is fine, but the collapse button is not working.

it's not working on my code snippet, and I can't get your collapse button to work either :( I'm looking over some tutorials on collapse buttons right now..

readjono 08-30-2007 09:54 PM

Can't get it to be friendly with my template. It works, it just doesn't look right.


All times are GMT. The time now is 01:38 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.01074 seconds
  • Memory Usage 1,743KB
  • 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
  • (1)bbcode_html_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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