Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Last X Blogs as cached front page 1.1.2 Details »
Last X Blogs as cached front page 1.1.2
Mod Version: 1.1.2, by cad2go (Member) cad2go is offline
Developer Last Online: Nov 2013 I like it Show Printable Version Email this Page

vB Version: 3.8.x Rating: (1 vote - 5.00 average) Installs: 8
Released: 05 Feb 2009 Last Update: 15 Mar 2009 Downloads: 84
Not Supported Additional Files Translations Is in Beta Stage  

Last X Blog Posts as Home Page (Or any page)

This mod simply produces a cached page with the last 5(or however any you want) blogs posted at your site. It's ideal if you have a forum at www.yourdomain.com/forum and want a simple blog front page at www.yourdomain.com

It supports showing avatar only IF they are held within the filesystem. I recommend you change this if you want to use this mod. In fact, I recommend using the filesystem for all images regardless of whether you use this mod or not.

Features:
*Last 5 Blogs
*Smilies/Images and all bbcode
*Avatars
*Tags
*Categories
*AME 2.5 - Media Embedding for posts, sigs, vm's, groups and blogs fully supported
*Three queries! (Per hour if you want!)
*No file or db changes
*Digg Proof
*Free!


To Install:

1. First create a writeable directory for the cache file with appropriate permissions (usually chmod the directory to 777)
2. Open index2.php [attached]

Edit the following:

$numblogs=5; //NUMBER OF BLOGS SHOWN
$cachetime=60; //HOW LONG (IN SECONDS) BETWEEN CALLS TO THE DATABASE TO CHECK FOR UPDATED CONTENT

$forumpath = '/var/www/vhosts/yourdomain.com/httpdocs/forum'; //no trailing slashes!
$cachepath = '/var/www/vhosts/yourdomain.com/cache';// no trailing slashes and writable!
These are the paths on your server NOT the web addresses.

Next edit:
$wwwavatarpath = '/forum/customavatars'; //no trailing slashes
$wwwforumpath = '/forum'; //no trailing slashes

These are relative paths so if your forums are at www.mydomain.com/forums then $wwwforumpath would be '/forums'

3. Upload index.php to your domain (www.yourdomain.com) and style.css to (yourdomain.com/styles)

4. Go to www.yourdomain.com in any browser and marvel at the glory of your new front page blogs

Demo:
http://www.rletc.com/index2.php

Next Steps:
Here's one I've added a header to
http://www.rletc.com/index_rletc.php

Feel free to mess around with the css to achieve whatever look you want. It's also not a problem renaming index2.php to blogfront.php or index.php if you want to retain an existing php file.

Have Fun!

Note: I plan to give minimal support but am available for custom solutions.

AFAIK this will work with any vbblog that supports tags even if it's running on 3.7.x

Update History:
Last5blogs.zip - 1st beta
last_x_blogs-1.1.zip : Added category support, minor fixes, added vb prefixes to tag queries, number of blogs and cachetime as variables.
last_x.blogs-1.2.zip : Fixed css, repackaged zip (index called index2.php to avoid over writing)

Download Now

Only licensed members can download files, Click Here for more information.

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • If you like this modification support the author by donating.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
vBulletin Blog Latest Blogs on Home Page ericgtr vBulletin 3.6 Add-ons 110 18 Dec 2008 11:48

Comments
  #2  
Old 05 Feb 2009, 17:18
cad2go cad2go is offline
 
Join Date: Feb 2009
*reserved for updates/answers*
Reply With Quote
  #3  
Old 05 Feb 2009, 18:07
Rene Kriest Rene Kriest is offline
 
Join Date: Jul 2008
Real name: King René II
Screenshots pls! We are visualz!
Reply With Quote
  #4  
Old 05 Feb 2009, 18:13
KevinL KevinL is offline
 
Join Date: Apr 2005
Originally Posted by Rene Kriest View Post
Screenshots pls! We are visualz!
There are 2 demos provided...
Reply With Quote
  #5  
Old 05 Feb 2009, 18:43
Tarfandestan Tarfandestan is offline
 
Join Date: Nov 2008
Real name: Kasra
wow, its wonderful.
and if we have archive and category in site is better.
Reply With Quote
  #6  
Old 06 Feb 2009, 13:14
cad2go cad2go is offline
 
Join Date: Feb 2009
Originally Posted by Tarfandestan View Post
wow, its wonderful.
and if we have archive and category in site is better.
I'll have a look over the weekend. I don't use categories at the moment and if it's going to take another query to grab then it might be optional.

What would you like to see for archive? Why not just link to it?
Reply With Quote
  #7  
Old 10 Feb 2009, 10:27
Twilkey's Avatar
Twilkey Twilkey is offline
 
Join Date: Oct 2006
I made a whole CMS that uses the blog system. I also made a vbadvanced module that uses the blog system like the news module. But this is cool aswell.
Reply With Quote
  #8  
Old 26 Feb 2009, 08:34
lebanon lebanon is offline
 
Join Date: Jan 2005
Just a note, as i was checking this out, since it uses direct mysql query it does not use Table Prefix , and in your case you have just added your own prefix "vb"
So in the query $tagsql="SELECT blog_tag ....
The vbblog should be renamed to whatever the user's table prefix is, or include vb globals and use table_prefix .
regards
__________________
More than 3000+ Live Games Per Month And Exclusive Community Forums
Reply With Quote
  #9  
Old 26 Feb 2009, 09:31
asj's Avatar
asj asj is offline
 
Join Date: Jul 2006
Warning: chdir(): No such file or directory (errno 2) in c:\appserv\www\forum\index3.php on line 18

the problem of code :line 18
Reply With Quote
  #10  
Old 26 Feb 2009, 12:03
cad2go cad2go is offline
 
Join Date: Feb 2009
Originally Posted by asj View Post
Warning: chdir(): No such file or directory (errno 2) in c:\appserv\www\forum\index3.php on line 18

the problem of code :line 18
What do you have filled in for $forumpath? See below or above for instructions.

$forumpath = '/var/www/vhosts/yourdomain.com/httpdocs/forum'; //no trailing slashes!
$cachepath = '/var/www/vhosts/yourdomain.com/cache/';//trailing slashes!

These are the paths on your server NOT the web addresses. Please note the second path has a trailing slash. I've included a file path.php that you can upload then open in your browser if you are unsure of your document paths.

Next edit:
$wwwavatarpath = '/forum/customavatars'; //no trailing slashes
$wwwforumpath = '/forum'; //no trailing slashes
Reply With Quote
  #11  
Old 26 Feb 2009, 12:04
cad2go cad2go is offline
 
Join Date: Feb 2009
Update for categories and minor fixes later today.

Last edited by cad2go; 11 Feb 2011 at 16:36.
Reply With Quote
  #12  
Old 26 Feb 2009, 12:38
cad2go cad2go is offline
 
Join Date: Feb 2009
Originally Posted by lebanon View Post
Just a note, as i was checking this out, since it uses direct mysql query it does not use Table Prefix , and in your case you have just added your own prefix "vb"
So in the query $tagsql="SELECT blog_tag ....
The vbblog should be renamed to whatever the user's table prefix is, or include vb globals and use table_prefix .
regards
Fixed in this release. Thanks for the feedback

Last edited by cad2go; 26 Feb 2009 at 14:51.
Reply With Quote
  #13  
Old 26 Feb 2009, 15:52
wicked80 wicked80 is offline
 
Join Date: Feb 2008
Hi,
I am using wordpress as the homepage of our site. Is there anywhere to display these entries in the wordpress homepage???

Your help would be greatly appreciated.

Thanks
Reply With Quote
  #14  
Old 26 Feb 2009, 19:37
cad2go cad2go is offline
 
Join Date: Feb 2009
Originally Posted by wicked80 View Post
Hi,
I am using wordpress as the homepage of our site. Is there anywhere to display these entries in the wordpress homepage???

Your help would be greatly appreciated.

Thanks
There's a wordpress bridge on here somewhere that shares users and posts http://www.vbulletin.org/forum/showthread.php?t=205388

Last edited by cad2go; 26 Feb 2009 at 22:01.
Reply With Quote
  #15  
Old 16 Jan 2010, 20:53
masterweb's Avatar
masterweb masterweb is offline
 
Join Date: Aug 2007
Real name: Arteaga
Still is this hack in Beta stage
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

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


New To Site? Need Help?

All times are GMT. The time now is 02:16.

Layout Options | Width: Wide Color: