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 |
#32
|
||||
|
||||
@shadowraith
Nice idea, and thanks for contributing this. Total time it took me to get it working on two Joomla templates was about 30 minutes - 10 mins reading the notes and installing the XML, and about 10 minutes each chomping up the index.php. Just FYI, with the two templates I've tried (Rhuk, and JoomlArt's Xenia), the raw chopped up index.php code works just fine as-is without having to use the $myjoomlacontent[] technique. What version of PHP are you running? One fairly important change though, for anyone even vaguely concerned about server load, you should probably wrap this around the plugin code: PHP Code:
The issue I'm working on at the moment is to see if I can get rid of the re-draws of things like CSS styled menus that use re-styling of UL elements, etc. It's particularly noticeable on the JA Xenia template, where the 'top' (main) menu draws three times - once as a plain UL, once with the text styling applied, and finally as the horizontal menu. I noticed something similar on your demo site. Not sure if it'll be possible without some template-specific surgery though. @nonamer69 Seems to work OK on 3.7 Beta 5. I've only been testing it for an hour or so though. -- hugh |
#33
|
||||
|
||||
Also need to add this to the plugin:
PHP Code:
FYI, I tracked that CSS menu styling redraw thing to a template specific bug. Nothing to do with this mod. -- hugh |
#34
|
||||
|
||||
An obvious drawback with embedding vB within J! is that you will very probably run into CSS conflicts. We have two radically different systems trying to share the same sandbox, and they end up stomping on each others CSS toes. I thought I'd document how I resolved these issues on my J! template (JA Xenia), but the same techniques will apply to most styles.
The main issue is obviously that vB's main stylesheet is overriding J! styling, and vice versa. It occurred to me that the first problem (vB stomping on J!) could be solved if all of vB's style selectors were specified as 'descendents' of the J! container wrapper div. In my case, using JA Xenia, this has the ID #ja-containerwrap. By the nature of the way this mod works, all of vB is contained within that div. The ID will vary depending on the J! template you are using, but there should be a 'wrapper' div which obviously surrounds vB. So, I made a small code mod (much as I hate code mods, but there is no hook available in that location, I've requested one but am not holding my breath!) to vB, in ./includes/adminfunctions_template.php. At the end of the construct_css(), just before the 'return', I added this code: PHP Code:
Code:
#ja-containerwrap .page { background: #FFFFFF; color: #000000; } #ja-containerwrap td, #ja-containerwrap th, #ja-containerwrap p, #ja-containerwrap li { font: 10pt verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif; } ... etc etc .. This goes most of the way to solving the "vB stomping on J!" issue.. This has already gotten rather long, so I'll follow up in another post with the other stuff I had to do to get everything playing nicely together. -- hugh |
#35
|
||||
|
||||
Another quickie ... need to add ...
PHP Code:
-- hugh |
#36
|
|||
|
|||
Has anyone tested it with vb 3.7.0?
Thanks. |
#37
|
|||
|
|||
I'm testing the hack wit RT's populus template. It works BUT there's an error displayed at the top of the page:
Code:
Warning: Invalid argument supplied for foreach() in C:\xampp\htdocs\Joomla\templates\rt_populus\rt_styleloader.php on line 11 Code:
Warning: in_array() [function.in-array]: Wrong datatype for second argument in C:\xampp\htdocs\Joomla\templates\rt_populus\rt_styleloader.php on line 28 See attachment. Quote:
Code:
Thanks |
#38
|
||||
|
||||
I'd have to see the three 'chunks' of template to work out why you are getting those errors.
For the 'cron' thing, edit the global_start plugin, and just wrap that if statement around all the code, so it's ... if (THIS_SCRIPT != 'cron') { ... original code ... } -- hugh |
#39
|
|||
|
|||
I've fixed it!
Rockettheme slightly modified their templates' index.php since firenzie, so some code was left out of the <head></head> section. NOW...I still have some questions: 1) if I change the default style in Joomla's backend (same template but different style), it doesn't change in forum page. Of course it happens 'cause I have to manually change parameters in /vbulletin/head.php. Is there a way to let head.php read parameters directly from template's index.php? 2) How can I display correctly modules in forum page? I tried it but they didn't got displayed well; 3) There's a bug with vb's dropdown menus. As I click on them, they got displayed away from menu (see pic). Sorry for too many questions . Btw, any chance for an updated version with you CSS tips included? (to have Joomla and vbulletin working with own CSS styles). |
#40
|
|||
|
|||
Could someone also explain this?
Code:
# vBulletin seems to have problems parsing the raw Joomla! html w/embedded php. Hence the reason to use the $myjoomlacontent buffer variable, which you must dump ala the echo/implode when needing to make a function call that echoes the results as opposed to returning a string. Thanks. |
#41
|
|||
|
|||
Ugh...I've just tried to install the product on my live website and the forum doesn't load.
I've got this error message displayed: Quote:
Joomla --> www.mydomain.com vbulletin --> www.mydomain.com/vbulletin My plugin's settings: Enter the full path to your joomla directory: www.mydomain.com Same error with 'www.mydomain.com/' But if I type '../' a blank page loads. Any hint? :erm: How should I type the url of my joomla installation? Thanks. |
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|