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.

Mark.B 08-30-2007 10:05 PM

I think from a design perspective it would match better if each row in the results had its own alt1 cell, this would then give the grey lines between ceels that are in common use throughout vB (in the default style anyway).

Wachtmeister 08-30-2007 10:11 PM

Quote:

Originally Posted by Wayne Luke (Post 1329094)
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.

I have the latest Blog posts on my vbadvanced Portal: www.webgurus.de (top right)

I used the RSS module, but if you could implement it by default i would love it!

RaceJunkie 08-31-2007 12:17 AM

Does not work on my style here

Code:

$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
        <!-- no cache headers -->
        <meta http-equiv="Pragma" content="no-cache" />
        <meta http-equiv="Expires" content="-1" />
        <meta http-equiv="Cache-Control" content="no-cache" />
        <!-- end no cache headers -->
        $headinclude
        <title><phrase 1="$vboptions[bbtitle]">$vbphrase[x_powered_by_vbulletin]</phrase></title>
</head>
<body>
$header
$navbar
<!-- USC header edit start -->
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
$usc_left
<td valign="top">
<!-- USC header edit end -->
<!-- main -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<thead>
        <tr align="center">
          <td class="thead">&nbsp;</td>
          <td class="thead" width="100%" align="$stylevar[left]">$vbphrase[forum]</td>
          <td class="thead" width="175">$vbphrase[last_post]</td>
          <td class="thead">$vbphrase[threads]</td>
          <td class="thead">$vbphrase[posts]</td>
          <if condition="$vboptions['showmoderatorcolumn']">
          <td class="thead">$vbphrase[moderator]</td>
          </if>
        </tr>
</thead>
$forumbits
<tbody>
        <tr>
                <td class="tfoot" align="center" colspan="<if condition="$vboptions['showmoderatorcolumn']">6<else />5</if>"><div class="smallfont"><strong>
                        <a href="forumdisplay.php?$session[sessionurl]do=markread" rel="nofollow">$vbphrase[mark_forums_read]</a>
                        <if condition="$vboptions['forumleaders']">&nbsp; &nbsp;
                        <a href="showgroups.php$session[sessionurl_q]" rel="nofollow">$vbphrase[view_forum_leaders]</a></if>
                </strong></div></td>
        </tr>
</tbody>
</table>
$forumhome_markread_script
<!-- /main -->

<br />
<br />

<!-- what's going on box -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<thead>
        <tr>
                <td class="tcat" colspan="2">$vbphrase[whats_going_on]</td>
        </tr>
</thead>
<if condition="$show['loggedinusers']">
<!-- logged-in users -->
<tbody>
        <tr>
                <td class="thead" colspan="2">
                        <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_activeusers')"><img id="collapseimg_forumhome_activeusers" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_activeusers].gif" alt="" border="0" /></a>
                        <a href="online.php$session[sessionurl_q]" rel="nofollow">$vbphrase[currently_active_users]</a>: $totalonline (<phrase 1="$numberregistered" 2="$numberguest">$vbphrase[x_members_and_y_guests]</phrase>)
                </td>
        </tr>
</tbody>
<tbody id="collapseobj_forumhome_activeusers" style="$vbcollapse[collapseobj_forumhome_activeusers]">
        <tr>
                <td class="alt2"><a href="online.php$session[sessionurl_q]" rel="nofollow"><img src="$stylevar[imgdir_misc]/whos_online.gif" alt="$vbphrase[view_whos_online]" border="0" /></a></td>
                <td class="alt1" width="100%">
                        <div class="smallfont">
                                <div style="white-space: nowrap"><phrase 1="$recordusers" 2="$recorddate" 3="$recordtime">$vbphrase[most_users_ever_online_was_x_y_at_z]</phrase></div>
                                <div>$activeusers</div>
                        </div>
                </td>
        </tr>
</tbody>
<!-- end logged-in users -->
</if>
<tbody>
        <tr>
                <td class="thead" colspan="2">
                        <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_stats')"><img id="collapseimg_forumhome_stats" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_stats].gif" alt="" border="0" /></a>
                        <phrase 1="$vboptions[bbtitle]">$vbphrase[x_statistics]</phrase>
                </td>
        </tr>
</tbody>
<tbody id="collapseobj_forumhome_stats" style="$vbcollapse[collapseobj_forumhome_stats]">
        <tr>
                <td class="alt2"><img src="$stylevar[imgdir_misc]/stats.gif" alt="<phrase 1="$vboptions[bbtitle]">$vbphrase[x_statistics]</phrase>" border="0" /></td>
                <td class="alt1" width="100%">
                <div class="smallfont">
                        <div>
                                $vbphrase[threads]: $totalthreads,
                                $vbphrase[posts]: $totalposts,
                                $vbphrase[members]: $numbermembers<if condition="$show['activemembers']">,
                                        <span title="<phrase 1="$vboptions[activememberdays]">$vbphrase[within_the_last_x_days]</phrase>">$vbphrase[active_members]: $activemembers</span>
                                </if>
                        </div>
                        <div><phrase 1="member.php?$session[sessionurl]u=$newuserid" 2="$newusername">$vbphrase[welcome_to_our_newest_member_x]</phrase></div>
                </div>
                </td>
        </tr>
</tbody>
<!-- Latest Blogs -->
<tbody>
        <tr>
                <td class="thead" 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">Latest Blogs</a>
                </td>
        </tr>
</tbody>
<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>
<!-- Latest Blogs -->
<if condition="$show['birthdays']">
<!-- today's birthdays -->
<tbody>
        <tr>
                <td class="thead" colspan="2">
                        <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_birthdays')"><img id="collapseimg_forumhome_birthdays" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_birthdays].gif" alt="" border="0" /></a>
                        $vbphrase[todays_birthdays]
                </td>
        </tr>
</tbody>
<tbody id="collapseobj_forumhome_birthdays" style="$vbcollapse[collapseobj_forumhome_birthdays]">
        <tr>
                <td class="alt2"><a href="calendar.php?$session[sessionurl]do=getday&amp;day=$today&amp;sb=1"><img src="$stylevar[imgdir_misc]/birthday.gif" alt="$vbphrase[view_birthdays]" border="0" /></a></td>
                <td class="alt1" width="100%"><div class="smallfont">$birthdays</div></td>
        </tr>
</tbody>
<!-- end today's birthdays -->
</if>
<if condition="$show['upcomingevents']">
<tbody>
        <tr>
                <td class="thead" colspan="2">
                        <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_events')"><img id="collapseimg_forumhome_events" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_events].gif" alt="" border="0" /></a>
                        <if condition="$show['todaysevents']">$vbphrase[todays_events]<else /><phrase 1="$vboptions[showevents]">$vbphrase[upcoming_events_for_the_next_x_days]</phrase></if>
                </td>
        </tr>
</tbody>
<tbody id="collapseobj_forumhome_events" style="$vbcollapse[collapseobj_forumhome_events]">
        <tr>
                <td class="alt2"><a href="calendar.php$session[sessionurl_q]"><img src="$stylevar[imgdir_misc]/calendar.gif" alt="$vbphrase[calendar]" border="0" /></a></td>
                <td class="alt1" width="100%"><div class="smallfont">$upcomingevents</div></td>
        </tr>
</tbody>
</if>
</table>
<br />
<!-- end what's going on box -->

<!-- icons and login code -->
<table cellpadding="0" cellspacing="2" border="0" width="100%">
<tr valign="bottom">
        <td>
                <table cellpadding="2" cellspacing="0" border="0">
                <tr>
                        <td><img src="$stylevar[imgdir_statusicon]/forum_new.gif" alt="$vbphrase[contains_new_posts]" border="0" /></td>
                        <td class="smallfont">&nbsp; $vbphrase[forum_contains_new_posts]</td>
                </tr>
                <tr>
                        <td><img src="$stylevar[imgdir_statusicon]/forum_old.gif" alt="$vbphrase[contains_no_new_posts]" border="0" /></td>
                        <td class="smallfont">&nbsp; $vbphrase[forum_contains_no_new_posts]</td>
                </tr>
                <if condition="$vboptions['showlocks']">
                <tr>
                        <td><img src="$stylevar[imgdir_statusicon]/forum_old_lock.gif" alt="$vbphrase[a_closed_forum]" border="0" /></td>
                        <td class="smallfont">&nbsp; $vbphrase[forum_is_closed_for_posting]</td>
                </tr>
                </if>
                </table>
        </td>
        <if condition="!$show['guest']">
                <!-- member logout -->
                <td align="$stylevar[right]"><a href="login.php?$session[sessionurl]do=logout&amp;logouthash=$bbuserinfo[logouthash]"  onclick="return log_out('$vbphrase[sure_you_want_to_log_out]')"><phrase 1="$bbuserinfo[username]">$vbphrase[log_out_x]</phrase></a></td>
                <!-- end member logout -->
        </if>
</tr>
</table>
<!-- / icons and login code -->
<!-- USC footer edit start -->
</td>
$usc_right
</tr>
</table>
<!-- USC footer edit end -->
$footer
</body>
</html>

If I remove the USC Ultimate Side Column edits then it will work otherwise is messes the whole page up.

ericgtr 08-31-2007 03:04 AM

The template has been fixed, just re-apply the edit.

RaceJunkie 08-31-2007 03:11 AM

Quote:

Originally Posted by ericgtr (Post 1329259)
The template has been fixed, just re-apply the edit.


This is what I get

ericgtr 08-31-2007 03:15 AM

Quote:

Originally Posted by RaceJunkie (Post 1329263)

Hmm.. When I collapse the "Upcoming Events for the Next 7 Day(s)" everything displays fine. Where exactly are you pasting it in your FORUMHOME template? We may need to find a different location due to that style.

NFLfbJunkie 08-31-2007 03:39 AM

Can you take a look at the two attached pictures? Is the 'after' picture the correct layout? I don't like how the "Mark Forums Read" & "View Forum Leaders" are now outside of a table and flushed to the left, and can the cell spacing for the author, title, views and date be fixed to have no spacing and the columns to have a border?

Quantnet 08-31-2007 04:35 AM

Would be great if you can incorporate this into the Top X mod here https://vborg.vbsupport.ru/showthread.php?t=150766

readjono 08-31-2007 06:06 AM

I get something similar to Junkie :confused:

Hornstar 08-31-2007 06:35 AM

Quote:

Originally Posted by Loco.M (Post 1329088)
nice :)
a few more of these and I may switch over

I'm with you, im waiting to see how much better vb blog can be with extra modifications first.

This is a good start. thanks.

RaceJunkie 08-31-2007 10:16 AM

Quote:

Originally Posted by ericgtr (Post 1329264)
Hmm.. When I collapse the "Upcoming Events for the Next 7 Day(s)" everything displays fine. Where exactly are you pasting it in your FORUMHOME template? We may need to find a different location due to that style.

Make sure you choose the Development skin, when I collapse it, it does not change. My sidebar is at the bottom of the site instead of the side.

FORUMHOME
Code:

$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
        <!-- no cache headers -->
        <meta http-equiv="Pragma" content="no-cache" />
        <meta http-equiv="Expires" content="-1" />
        <meta http-equiv="Cache-Control" content="no-cache" />
        <!-- end no cache headers -->
        $headinclude
        <title><phrase 1="$vboptions[bbtitle]">$vbphrase[x_powered_by_vbulletin]</phrase></title>
</head>
<body>
$header
$navbar
<!-- USC header edit start -->
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
$usc_left
<td valign="top">
<!-- USC header edit end -->

<!-- main -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<thead>
        <tr align="center">
          <td class="thead">&nbsp;</td>
          <td class="thead" width="100%" align="$stylevar[left]">$vbphrase[forum]</td>
          <td class="thead" width="175">$vbphrase[last_post]</td>
          <td class="thead">$vbphrase[threads]</td>
          <td class="thead">$vbphrase[posts]</td>
          <if condition="$vboptions['showmoderatorcolumn']">
          <td class="thead">$vbphrase[moderator]</td>
          </if>
        </tr>
</thead>
$forumbits
<tbody>
        <tr>
                <td class="tfoot" align="center" colspan="<if condition="$vboptions['showmoderatorcolumn']">6<else />5</if>"><div class="smallfont"><strong>
                        <a href="forumdisplay.php?$session[sessionurl]do=markread" rel="nofollow">$vbphrase[mark_forums_read]</a>
                        <if condition="$vboptions['forumleaders']">&nbsp; &nbsp;
                        <a href="showgroups.php$session[sessionurl_q]" rel="nofollow">$vbphrase[view_forum_leaders]</a></if>
                </strong></div></td>
        </tr>
</tbody>
</table>
$forumhome_markread_script
<!-- /main -->

<br />
<br />

<!-- what's going on box -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<thead>
        <tr>
                <td class="tcat" colspan="2">$vbphrase[whats_going_on]</td>
        </tr>
</thead>
<if condition="$show['loggedinusers']">
<!-- logged-in users -->
<tbody>
        <tr>
                <td class="thead" colspan="2">
                        <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_activeusers')"><img id="collapseimg_forumhome_activeusers" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_activeusers].gif" alt="" border="0" /></a>
                        <a href="online.php$session[sessionurl_q]" rel="nofollow">$vbphrase[currently_active_users]</a>: $totalonline (<phrase 1="$numberregistered" 2="$numberguest">$vbphrase[x_members_and_y_guests]</phrase>)
                </td>
        </tr>
</tbody>
<tbody id="collapseobj_forumhome_activeusers" style="$vbcollapse[collapseobj_forumhome_activeusers]">
        <tr>
                <td class="alt2"><a href="online.php$session[sessionurl_q]" rel="nofollow"><img src="$stylevar[imgdir_misc]/whos_online.gif" alt="$vbphrase[view_whos_online]" border="0" /></a></td>
                <td class="alt1" width="100%">
                        <div class="smallfont">
                                <div style="white-space: nowrap"><phrase 1="$recordusers" 2="$recorddate" 3="$recordtime">$vbphrase[most_users_ever_online_was_x_y_at_z]</phrase></div>
                                <div>$activeusers</div>
                        </div>
                </td>
        </tr>
</tbody>
<!-- end logged-in users -->
</if>
<tbody>
        <tr>
                <td class="thead" colspan="2">
                        <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_stats')"><img id="collapseimg_forumhome_stats" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_stats].gif" alt="" border="0" /></a>
                        <phrase 1="$vboptions[bbtitle]">$vbphrase[x_statistics]</phrase>
                </td>
        </tr>
</tbody>
<tbody id="collapseobj_forumhome_stats" style="$vbcollapse[collapseobj_forumhome_stats]">
        <tr>
                <td class="alt2"><img src="$stylevar[imgdir_misc]/stats.gif" alt="<phrase 1="$vboptions[bbtitle]">$vbphrase[x_statistics]</phrase>" border="0" /></td>
                <td class="alt1" width="100%">
                <div class="smallfont">
                        <div>
                                $vbphrase[threads]: $totalthreads,
                                $vbphrase[posts]: $totalposts,
                                $vbphrase[members]: $numbermembers<if condition="$show['activemembers']">,
                                        <span title="<phrase 1="$vboptions[activememberdays]">$vbphrase[within_the_last_x_days]</phrase>">$vbphrase[active_members]: $activemembers</span>
                                </if>
                        </div>
                        <div><phrase 1="member.php?$session[sessionurl]u=$newuserid" 2="$newusername">$vbphrase[welcome_to_our_newest_member_x]</phrase></div>
                </div>
                </td>
        </tr>
</tbody>
<!-- Latest Blogs -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<thead>
        <tr>
                <td class="tcat">
                        <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('latest_blogs')"><img id="collapseimg_latest_blogs" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_latest_blogs].gif" alt="" border="0" /></a>
                        <a href="blog.php">Latest Blogs</a>
                </td>
        </tr>
</thead>
<tbody id="collapseobj_latest_blogs" style="$vbcollapse[collapseobj_latest_blogs]">
        <tr>
                <td class="alt1">
                        <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="smallfont">$spitblogs_username</a></td>
                <td class="smallfont">$spitblogs_title</a></td>
                <td class="smallfont">$spitblogs_views</a></td>
                <td class="smallfont">$spitblogs_date</a></td>
        </tr>
</table>
                </td>
        </tr>
</tbody>
</table>
<!-- Latest Blogs -->

<if condition="$show['birthdays']">
<!-- today's birthdays -->
<tbody>
        <tr>
                <td class="thead" colspan="2">
                        <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_birthdays')"><img id="collapseimg_forumhome_birthdays" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_birthdays].gif" alt="" border="0" /></a>
                        $vbphrase[todays_birthdays]
                </td>
        </tr>
</tbody>
<tbody id="collapseobj_forumhome_birthdays" style="$vbcollapse[collapseobj_forumhome_birthdays]">
        <tr>
                <td class="alt2"><a href="calendar.php?$session[sessionurl]do=getday&amp;day=$today&amp;sb=1"><img src="$stylevar[imgdir_misc]/birthday.gif" alt="$vbphrase[view_birthdays]" border="0" /></a></td>
                <td class="alt1" width="100%"><div class="smallfont">$birthdays</div></td>
        </tr>
</tbody>
<!-- end today's birthdays -->
</if>
<if condition="$show['upcomingevents']">
<tbody>
        <tr>
                <td class="thead" colspan="2">
                        <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_events')"><img id="collapseimg_forumhome_events" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_events].gif" alt="" border="0" /></a>
                        <if condition="$show['todaysevents']">$vbphrase[todays_events]<else /><phrase 1="$vboptions[showevents]">$vbphrase[upcoming_events_for_the_next_x_days]</phrase></if>
                </td>
        </tr>
</tbody>
<tbody id="collapseobj_forumhome_events" style="$vbcollapse[collapseobj_forumhome_events]">
        <tr>
                <td class="alt2"><a href="calendar.php$session[sessionurl_q]"><img src="$stylevar[imgdir_misc]/calendar.gif" alt="$vbphrase[calendar]" border="0" /></a></td>
                <td class="alt1" width="100%"><div class="smallfont">$upcomingevents</div></td>
        </tr>
</tbody>
</if>
</table>
<br />
<!-- end what's going on box -->

<!-- icons and login code -->
<table cellpadding="0" cellspacing="2" border="0" width="100%">
<tr valign="bottom">
        <td>
                <table cellpadding="2" cellspacing="0" border="0">
                <tr>
                        <td><img src="$stylevar[imgdir_statusicon]/forum_new.gif" alt="$vbphrase[contains_new_posts]" border="0" /></td>
                        <td class="smallfont">&nbsp; $vbphrase[forum_contains_new_posts]</td>
                </tr>
                <tr>
                        <td><img src="$stylevar[imgdir_statusicon]/forum_old.gif" alt="$vbphrase[contains_no_new_posts]" border="0" /></td>
                        <td class="smallfont">&nbsp; $vbphrase[forum_contains_no_new_posts]</td>
                </tr>
                <if condition="$vboptions['showlocks']">
                <tr>
                        <td><img src="$stylevar[imgdir_statusicon]/forum_old_lock.gif" alt="$vbphrase[a_closed_forum]" border="0" /></td>
                        <td class="smallfont">&nbsp; $vbphrase[forum_is_closed_for_posting]</td>
                </tr>
                </if>
                </table>
        </td>
        <if condition="!$show['guest']">
                <!-- member logout -->
                <td align="$stylevar[right]"><a href="login.php?$session[sessionurl]do=logout&amp;logouthash=$bbuserinfo[logouthash]"  onclick="return log_out('$vbphrase[sure_you_want_to_log_out]')"><phrase 1="$bbuserinfo[username]">$vbphrase[log_out_x]</phrase></a></td>
                <!-- end member logout -->
        </if>
</tr>
</table>
<!-- / icons and login code -->
<!-- USC footer edit start -->
</td>
$usc_right
</tr>
</table>
<!-- USC footer edit end -->

$footer
</body>
</html>


ericgtr 08-31-2007 02:47 PM

Quote:

Originally Posted by Junkie (Post 1329272)
Can you take a look at the two attached pictures? Is the 'after' picture the correct layout? I don't like how the "Mark Forums Read" & "View Forum Leaders" are now outside of a table and flushed to the left, and can the cell spacing for the author, title, views and date be fixed to have no spacing and the columns to have a border?

Are you placing the template code above this?
Code:

<if condition="$show['birthdays']">

NFLfbJunkie 08-31-2007 02:55 PM

Yes, just like the instructions state.

ericgtr 08-31-2007 04:07 PM

Quote:

Originally Posted by Junkie (Post 1329538)
Yes, just like the instructions state.

It's hard to say without testing with that specific style, not sure where the code is not meshing with it. Basically, it's just a table at 100%.

ThreeD 08-31-2007 04:07 PM

hmmm I've got everything working eric, two questions though :)

Is there any way we can make the usernames appear with the colors of their usergroup legend?

I tried to add the time the blog was posted to the existing date, but I couldn't find the correct sql column. Do you know what the time column is called in the database?

Thanks :)

NFLfbJunkie 08-31-2007 04:13 PM

Quote:

It's hard to say without testing with that specific style, not sure where the code is not meshing with it. Basically, it's just a table at 100%.
I use the vBulletin default style, and so I don't understand why it's not working for me.

ericgtr 08-31-2007 09:11 PM

Okay guys, how about this? Let me know and if it appears to work for you I will update the first post.
HTML Code:

<!-- Latest Blogs -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<thead>
        <tr>
                <td class="thead" colspan="2">
                        <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('latest_blogs')"><img id="collapseimg_latest_blogs" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_latest_blogs].gif" alt="" border="0" /></a>
      <a href="blog.php">Latest Blogs</a>
                </td>
        </tr>
</thead>
<tbody id="collapseobj_latest_blogs" style="$vbcollapse[collapseobj_latest_blogs]">
        <tr>
                <td class="alt1">
                        <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>$spitblogs_username</td>
                <td>$spitblogs_title</td>
                <td>$spitblogs_views</td>
                <td>$spitblogs_date</td>
        </tr>
</table>
                </td>
        </tr>
</tbody>
</table>
<!-- Latest Blogs -->


RaceJunkie 08-31-2007 09:29 PM

Sorry does not work for me.. Maybe vB will come out with something soon, thanks for your work..

ericgtr 08-31-2007 09:33 PM

I tested and it works both in the default and custom themes I have. Sorry about that, not sure what it is about that style.

Fearlessninja 08-31-2007 09:55 PM

Can you make something like this for vbadvanced?

Konstantinos 08-31-2007 10:47 PM

the template edit messes everything up

Konstantinos 08-31-2007 11:06 PM

Quote:

Originally Posted by Loco.M (Post 1329088)
nice :)
a few more of these and I may switch over

actually vbloggetin looks much better than the official one and has more options . the problem with it is that is always beta which forces us using the official. athough i dont like it

ericgtr 08-31-2007 11:37 PM

Quote:

Originally Posted by Fearlessninja (Post 1329759)
Can you make something like this for vbadvanced?

Okay http://www.vbadvanced.com/forum/showthread.php?t=24069

Quantnet 09-01-2007 04:42 AM

Quote:

Originally Posted by ericgtr (Post 1329827)

looks great. can you go over the step we need to import that module ?
thansk

ericgtr 09-01-2007 05:18 PM

Sure, although I've only exported but I am sure this will work. In your Admin CP go to vBa CMPS > Download / Upload Module > Browse and Submit, that should do it.

Lpspider 09-01-2007 06:21 PM

How difficult would it be to add this to the sidebar?

ericgtr 09-01-2007 06:55 PM

Quote:

Originally Posted by Lpspider (Post 1330282)
How difficult would it be to add this to the sidebar?

If you have vbadvanced you can put into one of your sidebar items and have it displayed on your forum page, they have a how to on that over at their site.

ThreeD 09-02-2007 07:21 AM

eric do you know how to fix the username colors (legend) I've tried to fix it myself, but all names only show up with the default blue color :)

thc 09-02-2007 11:33 AM

merci

readjono 09-02-2007 12:11 PM

Any development on the template coding for this? :(


All times are GMT. The time now is 04:55 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.01537 seconds
  • Memory Usage 1,955KB
  • 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
  • (3)bbcode_code_printable
  • (2)bbcode_html_printable
  • (13)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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