Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Design and Graphics Discussions
  #1  
Old 02-09-2010, 01:14 PM
imported_silkroad imported_silkroad is offline
 
Join Date: Dec 2003
Posts: 563
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Wordpress Integrated into vBulletin (Alpha Release)

From time to time, we read where folks want a very powerful blog like WordPress integrated into their forum. Sometimes we get answers from the vB staff talking about the vB blog, but it is really not best-of-breed, in our opinion.

We looked at the "full or semi-full" integration packages here, but they were not what we wanted. We simply wanted to integrate WordPress into the look and feel of our forum. We don't need cross-posts or single logins, just look and feel integration.

Finally, took a day and just "did it".... and here is it:

http://www.unix.com/blog/

So far, the user comments in our advisory forum have been good
Reply With Quote
  #2  
Old 02-11-2010, 03:18 AM
Milez Milez is offline
 
Join Date: Jan 2002
Posts: 126
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hey I like it. I am also looking at doing something like this with some tweaks. if you're willing to share your changes I would be happy to share mine.
Reply With Quote
  #3  
Old 02-11-2010, 05:05 AM
imported_silkroad imported_silkroad is offline
 
Join Date: Dec 2003
Posts: 563
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes, we will share it in a blog post after it has been through a few months of testing. We still have a few bugs to work out, mostly based on the inconsistent ways that developers code URLs (relative v. absolute paths; hard coded URLs v. phrased URLs, etc.)

Not being a very good PHP programmer, I can't complain. But I do find, after many years of running vB, that a lot of add-ons and hacks are just "hacked together" and can break things. Also, a lot of the HTML in the vB code base has been deprecated over the years (causing some CSS issues). We don't want to share anything that is "just hacked" and can break other's boards.

Basically, what we did it is pretty simple but tricky if you are not comfy with modifying HTML and PHP:
  • Pick a clean WP theme that you like.
  • Copy it and and use that copy for your development.
  • Copy the vB navbar template as navbar_blog (optional, so you can modify if you need to)
  • Add a new WP PHP theme file called navbar.php (or whatever)
  • Put vB navbar PHP code in that WP theme file.
  • Find the same area in the WP theme files (index, singlepage, etc.) and replace the WP code with the vB navbar code (we use a require_once() php include statement).
  • Do something similar for the footer code.
  • Add your favorite HTML headerincludes to the WP header.php theme file.
Notes:
  1. In our configuration , as you can see, the root directory is the forum and WP is in a directory.
  2. If you can't get the vB links to work properly in the navbar, you can copy those PHP over to the WP directory until you get things sorted out in the vB templates.
  3. This is only a "look and feel" integration. There is no cross posts, shared user data etc. That is exactly what we wanted.
  4. Be careful with SEO add-ons. They can break things if you are not careful.
Reply With Quote
Reply

Thread Tools
Display Modes

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 04:08 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.03565 seconds
  • Memory Usage 2,176KB
  • Queries Executed 13 (?)
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
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)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
  • (3)postbit
  • (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_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_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete