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
vblog2wp : show last X vb blogs in wordpress Details »»
vblog2wp : show last X vb blogs in wordpress
Version: 1.00, by cad2go cad2go is offline
Developer Last Online: Nov 2013 Show Printable Version Email this Page

Category: Integration with vBulletin - Version: 3.8.1 Rating:
Released: 03-15-2009 Last Update: Never Installs: 6
Is in Beta Stage  
No support by the author.

Last 'x' vblogs as wordpress page (cached)

Add a page to your wordpress blog that shows the last 'x' vblogs. The page will have your standard header, footer, sidebar as well as the content from as many vblogs as you like.

Ideal if you have a forum at www.yourdomain.com/forum and want to show show blogs at www.yourdomain.com. In fact for the instructions we'll presume just that.

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 x 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!

Instructions:

To Install:

1. First create a writeable directory for the cache file with appropriate permissions
2. Open vblog2wp.php [attached]

Edit the following:

Code:
<div id="content" class="narrowcolumn">
Unfortunately this varies by theme. Try replacing with
Code:
<div id="container">
or just
Code:
<div>
if you're not sure or use firebug to examine your blog css and replace with that.

Code:
$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:
Code:
$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 vblog2wp.php to your wordpress default theme folder ( something like /var/www/vhosts/yourdomain.com/httpdocs/wp-content/themes/default)

4. In your wordpress cp, go to page>add page, pick last x blogs from the template menu, give the page a title and publish!

5. Done!


Extra Notes:

*If you want to make it your static front page , click settings in dashboard then reading. For "Front page displays" pick "A static page" then select your vb page from the list. (If you expect a lot of hits install extra caching for the rest of wp - e.g. WP Super Cache

*If you don't want a sidebar just remove "<?php get_sidebar(); ?>" from vblog2wp.php

Pic shows blog page in default wp theme:

Demo:
http://www.rletc.com

Download Now

File Type: php vblog2wp.php (4.6 KB, 47 views)

Screenshots

File Type: jpg vblog2wp.jpg (51.6 KB, 0 views)

Show Your Support

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

Comments
  #2  
Old 03-16-2009, 08:34 PM
cad2go cad2go is offline
 
Join Date: Feb 2009
Posts: 181
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

*Reserved
Reply With Quote
  #3  
Old 03-17-2009, 05:55 PM
Jasem's Avatar
Jasem Jasem is offline
 
Join Date: Feb 2006
Location: www.menokia.com
Posts: 594
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Good work, thank you
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:45 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.05731 seconds
  • Memory Usage 2,234KB
  • Queries Executed 17 (?)
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
  • (5)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (3)post_thanks_box
  • (3)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (3)post_thanks_postbit_info
  • (2)postbit
  • (2)postbit_attachment
  • (3)postbit_onlinestatus
  • (3)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_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete