Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Last X Blogs as cached front page 1.1.2 Details »»
Last X Blogs as cached front page 1.1.2
Version: 1.1.2, by cad2go cad2go is offline
Developer Last Online: Nov 2013 Show Printable Version Email this Page

Category: Portal Software - Version: 3.8.x Rating:
Released: 02-04-2009 Last Update: 03-14-2009 Installs: 9
Additional Files Translations Is in Beta Stage  
No support by the author.

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

File Type: zip last_x_blogs-1.1.2.zip (4.7 KB, 58 views)

Show Your Support

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

Comments
  #12  
Old 02-26-2009, 11:04 AM
cad2go cad2go is offline
 
Join Date: Feb 2009
Posts: 181
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Update for categories and minor fixes later today.
Reply With Quote
  #13  
Old 02-26-2009, 11:38 AM
cad2go cad2go is offline
 
Join Date: Feb 2009
Posts: 181
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
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
Reply With Quote
  #14  
Old 02-26-2009, 02:52 PM
wicked80 wicked80 is offline
 
Join Date: Feb 2008
Posts: 53
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
  #15  
Old 02-26-2009, 06:37 PM
cad2go cad2go is offline
 
Join Date: Feb 2009
Posts: 181
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
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 https://vborg.vbsupport.ru/showthread.php?t=205388
Reply With Quote
  #16  
Old 01-16-2010, 07:53 PM
masterweb's Avatar
masterweb masterweb is offline
 
Join Date: Aug 2007
Location: Italy
Posts: 164
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Still is this hack in Beta stage
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 07:44 PM.


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.06901 seconds
  • Memory Usage 2,280KB
  • Queries Executed 23 (?)
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_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (6)post_thanks_box
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (6)post_thanks_postbit_info
  • (5)postbit
  • (1)postbit_attachment
  • (6)postbit_onlinestatus
  • (6)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_postinfo_query
  • fetch_postinfo
  • 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_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete