![]() |
Dynamic Joomla!VB wrapper
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 |
Ok, with that skin, it looks pretty nice... i wonder how it would look like in the default skin or others :D
Good job so far. |
Quote:
|
Btw, for anyone who is interested in seeing what the default vb skin looks like in the wrapped Joomla! I've turned on the vb style switcher. Just scroll down to the very bottom of the page and select "default" from the drop down menu. I'll add a switcher interface to the portal skin later, so you can see the wrapper skin switching as well.
|
I salute You shadowraith for this.
A little complicated for a non-programmer but if it works... :o I'll try this with a Yootheme template. I think it's going to be harder compared to Rockettheme as from January they've switched to a new on-the-fly method gzip javascript files and combine (and gzip) css files in to one (more info here)... I'll definitely coming back with my results. Thanks again for this much needed wrapper idea/solution. :up: |
demo not working
|
'Hi there,
i really made a big joyjump on my desk when i saw this product. Unfortunatly i dont get it to work. As Result of doing your steps, double-checked of course, i only get a white page. As MenuID i gave the id to the normal wrapperlink of joomla, which i use to get the board into the rest of the site. As absolute Path i gave Code:
/srv/www/htdocs/web69/html/rap Thank you much for your support. |
Quote:
parse error, unexpected '<'This is due to the fact that they are not using the $myjoomlacontent buffer. In other words if you just cut/pasted your index into your files, you will run into probs such as you are seeing. And, as I stated above, vbulletin has a prob w/html that has imbeded php. |
Is there any chance of this working on Joomla 1.5.1?
|
I'm with ERuiz... what do we need to do to get this working with 1.5.1?
Also... any chance of having the private message box popping up on joomla when you have a PM? |
I wrote the initial add-on for Joomla! 1.5 however since I needed to roll back to 1.0.15 to support the numerous modules/bots, I no longer have those files.
As far as making such a wrapper? You can generate a wrapper by defining your absolute joomla path ($myjoomlapath), template name ($myjoomlatemplate), and, for say, rocket themes, style name ($myjoomlastyle). I would also add these as parameters so that you can easily change them in the vBulletin settings, should you decide to switch themes/styles. Then, it is a matter of removing the joomla calls in the add-on xml, adding the code to fetch the parameters, and replacing $this->baseurl, $this->template, and $tstyle, respectively, in your head, header, & footer php files. In addtion, you would need to replace the "menu code" with your own home-grown menu function. Since the concept of this add-on is fairly straight forward, it is simply a matter of hacking this add-on to work with Joomla! 1.5. Or otherwise put, if you are comfortable with Joomla! 1.5 and vbulletin, and have solid php coding knowledge, a 1.5 hack such as the above, while tedious, should be quite simple. Ymmv, of course. The down side is that a hacked implementation, such as the above is not dynamic. In other words, if/when you switch Joomla! styles, you would also need to change them in the vBulletin settings area. You would also need to upgrade your menu function anytime you changed the main menu. If I went this route, I would create a sharable menu include file, so that regardless the template, that menu function would always be included into the wrapper. And finally, I have no doubt there is a better approach than the aforementioned for 1.5. However, migrating to 1.5 is not on my "to do" list atm, so unless that changes, I will not have time to investigate it further. If you have other questions, feel free to pm me. |
This is what I was exactly looking for! :eek:
Thank you so much for sharing! :cool: Does it work also if J and VB don't share the same database? Otherwise do I have to add some code to make it working? Thanks |
In theory, it should work regardless of whether they are in separate databases or not. In reality, it depends upon how they implemented their db classes. For example, are they using a thread resource pool? If not, any real loading will likely result in some odd behavior.
That said, I would first try to ensure it works with an integrated db. Then, once things are working smoothly, repoint vb to it's original seperate db by exporting the integrated db, and loading it into the seperate db. By doing this, you limit potential sources for error during your trouble shooting phase. Ymmv, of course. |
For those of you using Rocket Theme, I received some excellent input regarding the differing font size and alignment problem.
Quote:
|
Quote:
Actually I have Joomla and vBulletin in different databases. I'll start doing some tests with your hack and I'll let you know. :cool: Btw...do you think the same thing could be applied to phpbb3? :erm: |
Quote:
|
I have a question. Are we just copy the data in the boxes for the 3 files? Because i got a blank page after i applied the theme....
|
Quote:
As it stands now, I am going to disable the "will support" and will not answer any further "all I am getting is a white screen" questions. If you cannot help yourself by at least reading the instructions, then I do not have the time or patience to even remotely consider helping you. |
Ok, sorry for not having English as my primary language and sorry for being an amateur in coding and not knowing how to "buffer the html". I humbly seize my existence in order to stop bothering you. Please don't disable the "will support" because others might actually need it.
|
anyone tested this with 3.7?
btw, thanks shadowraith for your contribution. |
Error in installation description ?
Original description: * Insert $myjoomladhead at the end of the header template * Insert $myjoomladheader at the end of headinclude template Instead (my take): * Insert $myjoomladheader at the end of the header template * Insert $myjoomladhead at the end of headinclude template |
Quote:
|
I really cant get it to work, since i dont understand php. Is there anyone who will do it for a few bucks?
|
Has anyone noticed all the call to undefined errors when viewing in threaded mode?
|
Ohhh no !!!
I've been working hard during 2 days to integrate manually my joomla template ! Haven't seen an addon could exist :'( Gonna try it now ! Thank you very much shadowraith !! |
Quote:
|
Ok... I took a whack at making this work in J! 1.5.1, but I think it may be beyond my shaky grasp of the differences between J! 1.0x and J! 1.5x and php in general :o. Basically we never messed with 1.0x after we decided that the vB bridges were too unstable, so I don't know that much about 1.0x at all.
The function call mosMainbody doesn't exist in 1.5, I took a stab at it but I'm not at all sure I've got it right. I also had to modify the plugin a bit, so that it looks more like this: Code:
define( '_JEXEC, 1 ); If you *do* play with it in 1.5, let us know? Given that we're working with media mogul too, it'd be a real easy implementation for us if you provide updated templates based on RT's MM.:D I'll keep on banging away on it to see if I can figure out what's wrong... And post back if I make any headway. James and Susan |
Hi, I am very interested in your wrapper. Its the best I have ever seen at the moment. However, you also posted another file download in the rockettheme.com forum (http://www.rockettheme.com/option,co...697.msg156280/), if that is you, under post 11.
Is the file the same as the first post of this topic? |
Quote:
|
Quote:
|
@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 Quote:
-- hugh |
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 |
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 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 |
Another quickie ... need to add ...
PHP Code:
-- hugh |
Has anyone tested it with vb 3.7.0? :confused:
Thanks. |
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 |
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 |
I've fixed it! :D
Rockettheme slightly modified their templates' index.php since firenzie, so some code was left out of the <head></head> section. :D 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 :p. Btw, any chance for an updated version with you CSS tips included? (to have Joomla and vbulletin working with own CSS styles). https://vborg.vbsupport.ru/external/2008/05/11.png |
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. |
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. |
All times are GMT. The time now is 04:09 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|