The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Dynamic Joomla!VB wrapper Details »» | |||||||||||||||||||||||||||
NB: This add-on is not a single sign-on solution.
This add-on provides a means for dynamically wrapping your vbulletin in a Joomla! 1.0.15 portal implementation. This add-on does not touch the core files of either system and there is no requirement to do anything on the Joomla! side unless you've created wrappers for several templates and want to switch between those templates. At which point, you'll simply switch your Joomla! templates via in the Joomla! template manager. And finally, this add-on assumes that your forum is located directly below your joomla implementation directory and is sharing its database. The following instructions include example code snippets to (hopefully) assist in making this add-on proceed as smoothly as possible. Before attempting to install this add-on, disable your forum and back up your database!!!. This is to ensure you have a working copy in case you run into problems.. If you install this PLEASE Click Install Preparation: Step 1: Create a subdirectory in your current template directory (both locally and on your target site) called, vbulletin. For example, if you're using one of the default templates for Joomla! 1.0.15... say... madeyourweb, you would create your vbulletin directory as follows: Installation:
Demo: http://crimsonshadows.net (click on forum to see the seamless integration between the portal and vbulletin) Notes, debugging, etcetera: Excellent/Important user feedback/tips Quote:
Quote:
I will happily answer questions that are not addressed in the above instructions. Feedback is also welcomed.Addendum Please do not ask me to write and/or debug your php code! So far, all of the questions I have received are from people who (a) did not even bother to read the detailed instructions that I provided above, and/ or (b) haven't clue one wrt writing php code, much less debugging it. If you install this PLEASE Click Install Show Your Support
|
Comments |
#42
|
||||
|
||||
Quote:
Quote:
Quote:
The only cure I've found for this is a vB file edit, which I hate doing, but I've yet to find a workaround for it. In ./clientscript/vbulletin_menu.js, edit the following function to look like this: Code:
vB_Popup_Menu.prototype.fetch_offset = function(obj) { /* if (obj.getBoundingClientRect) { // better, more accurate function for IE var rect = obj.getBoundingClientRect(); var scrollTop = Math.max(document.documentElement.scrollTop, document.body.scrollTop); var scrollLeft = Math.max(document.documentElement.scrollLeft, document.body.scrollLeft); if (document.documentElement.dir == 'rtl') { // IE returns a positive scrollLeft, but we need a negative value to actually do proper calculations. // This actually flips the scolloing to be relative to the distance scrolled from the default. scrollLeft = scrollLeft + document.documentElement.clientWidth - document.documentElement.scrollWidth; } return { 'left' : rect.left + scrollLeft, 'top' : rect.top + scrollTop }; } */ var left_offset = obj.offsetLeft; var top_offset = obj.offsetTop; while (YAHOO.util.Dom.getStyle(obj, 'position') == 'static' && (obj = obj.offsetParent) != null) { left_offset += obj.offsetLeft; top_offset += obj.offsetTop; } return { 'left' : left_offset, 'top' : top_offset }; }; -- hugh |
#43
|
||||
|
||||
Just an FYI ...
I found a bug in vB which breaks the WYSIWYG editors in Internet Explorer if the Mootools javascript library (mootools.js) is included on a vB page. So, for instance, you can't post anything or send PM's, or do anything which uses a WYSIWYG editor. It'll keep telling you your post must have more than 10 characters. Although Joomla 1.0.x itself doesn't include Mootools, a lot of Joomla components and templates do (like almost all the Rocket Themes ones). Joomla 1.5 does include Mootools by default. I submitted a bug report at vbulletin.com, and it's been marked as 'confirmed and fixed', although they didn't post the fixed code yet. The bug is in vbulletin_textedit.js. I'll update this post when I find out what the fix is. [EDIT] The fix is around line 1423, the two lines commnented with 'hugh' below: Code:
// Force Firefox 1.0 to run it here and Firefox 1.5+ later on, see Bug #22661 // hugh - patched as per http://www.vbulletin.com/forum/project.php?issueid=25602 // if (doinit && typeof Array.prototype.map == 'undefined') { this.editdoc.designMode = 'on'; } this.editdoc = this.editwin.document; // See: http://msdn.microsoft.com/workshop/author/dhtml/overview/XpSp2Compat.asp#caching this.editdoc.open('text/html', 'replace'); this.editdoc.write(text); this.editdoc.close(); if (doinit) { this.editdoc.body.contentEditable = true; // $$$ hugh //if (typeof Array.prototype.map != 'undefined') if (is_moz) { this.editdoc.designMode = 'on'; } } |
#44
|
|||
|
|||
I've applied the wrapper (without the $myjoomlacontent buffer) to my test site and all seems to be working relatively well. I am having an issue, though, when I apply the J! core SEF urls. The "/forum" subdirectory is being dropped in any of the links within the forum.
Has anybody run into this problem? Fix? J! 1.0.15/VB3.7.1 EDIT*** I've managed to work this issue out. mosShowHead() in header.php was causing the problem. |
#45
|
|||
|
|||
Quote:
|
#46
|
|||
|
|||
ok.. this seems abit too complicated to me (even though i have not tried it).
my concern is.. will this make my website lag? it seems like for every page there is alot of things to fetch.. |
#47
|
|||
|
|||
Quote:
i noticed that on shadowraith's site (http://crimsonshadows.net/forum), he has the same problem with the dropdowns, too. any other suggestions would be greatly appreciated. |
#48
|
||||
|
||||
Apologies, I should have said that fix was for 3.7.
In 3.6 I think you just need to change the 'while' line to this: PHP Code:
-- hugh |
#49
|
|||
|
|||
I'm curious if there's an example of an absolute path to the Joomla installation.
The path to my template's folder is "home/domain_name/public_html/templates/template_name/" and in that "template_name" folder is the index.php as well as the new "vbulletin" folder with the new files. Any pointers appreciated. |
#50
|
||||
|
||||
The Joomla install dir is wherever your main Joomla index.php is, which in your case is almost certainly /home/domain_name/public_html
-- hugh |
#51
|
||||
|
||||
shadowraith, thank you thank you thank you!!!
*James Argo clicked Install and Motm* Today, I'm not only learning how to wrap, but also how to do php buffering! Precious lesson! One little question, I tried with 2 different templates (madeyourweb and my own template) somehow I have difficulty with the line : .$GLOBALS['cur_template']. for example in: PHP Code:
I tried in local server, J! 1.0.15 & vB 3.6.8. Thanks Jaymz |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|