vBulletin Mods

The Official vBulletin Modifications Site
https://www.vbulletin.org/forum/showthread.php?t=145781

Joomla for vBulletin (IMPORTANT UPDATE) - Bridge to the World's Most Popular CMS
by Michael Morris
26 Apr 2007 04:40

Warning!!! An potential exploit has been found in this modification. The server that hosts vjoomla.com has been attacked several times. It is known to already be severely comprimised so at this time it is unclear whether the vulnerability lies in vJoomla, Joomla itself or the server. Until this is resolved to my satisfaction I am removing this modification. My apologies.


The modification WILL be re-released once this issue is resolved!

vJoomla is an offshoot of Joomla 1.0 that is designed to run in tandem with vbulletin. Unlike the main release it will not run without vbulletin - if you desire a CMS without a forum then use Joomla! instead. vJoomla is identical in most all regards to Joomla!

What vJoomla Does
  • Provide a single session, single login interface to Joomla and vbulletin.
  • Allows Joomla pages to be skinned by vbulletin's template engine.
  • Maps Joomla usergroups to vbulletin usergroups.

What vJoomla Does Not Do
  • It does not rewrite your templates for you - so you will need to go in currently and change relative links to images and pages to absolute links. This is most important in the style sheets and in the navbar template. This is something you need to do yourself rather than programmatically since no two sites are likely to be using the same style sheet and the same setup for these links.

Install Instructions
  1. Log into your admincp
  2. Close your forum
  3. If your forums are at the root of your site move them elsewhere - the best location is probably /forum
  4. Upload the files from the zip packages to their respective locations. There should be no overwrites.
  5. Navigate to the root of your site and run the Joomla installer.
  6. Go back to the admincp and install the Joomla product file
  7. Now either copy the ./cpstyles, ./clientscript and ./images directory of the forum into the Joomla directory OR create symbolic links to those directories. The contents of the ./images directory of Joomla and vbulletin will need to be merged.

This is release candidate 2.

Michael Morris 26 Apr 2007 04:41

Ok, for the technically inclined, and especially for those considering writing components or modules for this variant of Joomla, here in brief is how this works.

Joomla's global file calls vbulletin's global.php - either the forum or the admincp version as needed. If the forum version is used it caches it's 20 templates. The rest of the hacks are in the Joomla mainframe. Rather than allow the Joomla database object to connect itself the resource id of the Master connection is passed to it from the vbulletin database object. Both database classes are therefore available. So if you like you can do

$database->setQuery("-- some query");
$database->loadObjectList();

or you can use vbulletin's way.

$db->query_read(" -- some query ");

Each system has it's advantages and disadvantages. Typically I use the joomla object to handle joomla tables if, for no other reason, the table prefix in the queries is automatically parsed. But I digress.

Joomla doesn't do it's own login in this hack. Instead, at the line where Joomla WOULD verify the password it instead checks the vbulletin registry object ($vbulletin) to see if there is a user. If there is the hack lies to Joomla and cuts it loose with a session without independent verification. Therefore, in this hack all logins and user manipulations go through vbulletin (which has a far more robust user system anyway so in my opinion, no loss).

This will cause problems if you install a Joomla component that extends on the Joomla user object. These components probably will not work.

vJoomla, for the most part, doesn't need a complete user list. The first time a vbulletin user moves to a joomla page though part of their registration is copied into the joomla user table. This should help certain components function and is also necessary for the Joomla backend to work. I may write some stricter syncing code if necessary -- vJoomla itself doesn't need it to work but some components might.

The admin side is a little tricker. I had to disable joomla timing out - I swear this took longer than any other part but it works now. Again, Joomla is dependent on vbulletin to get the security right in this hack. Since admincp global throws a login interface automatically if you time out on it there's no reason for Joomla to maintain a seperate check. If you return from vbulletin global.php in the Joomla admin files you're golden.

Final notes are on templates. Once Joomla is ready to call it's template engine a hack steps in and iterates over the Joomla module positions, reading them all into an array. Each module position is then wrapped in a template file (though in this base distribution there are no elaborations on these templates). After this is done Joomla's output passes through vbulletin's template engine and vbulletin completes the page output.

In all it took 2 months on and off to figure this all out. But though it's incomplete, it's working very smoothly at the moment. Questions and comments welcome.

Quantnet 26 Apr 2007 04:59

Been on the fence for so long. Would love to see a demo of how vjoomla use the vb template

Michael Morris 26 Apr 2007 05:02

I don't have a live test demo site up as of yet and won't for another couple weeks. Also things are still in flux at the moment.

Ntfu2 26 Apr 2007 05:15

Awesome job here it looks like a solid start and may have just get another vBulletin license for up coming project now :)

dizzy100 26 Apr 2007 12:46

I tried the beta on test and it works very well indeed.

However installing some components showed issues with paths i guess ? Sorry i didn't write down the error messages. Removing the mod and the components all worked as expected.

Its a great start though.

UncoderMom 26 Apr 2007 13:44

If you need a licensed board that is inactive to test on let me know! I have one you can use lol! PM me!

I would love to have this on my live site!!

The plug in I have now requires me to turn off my VB registration and use the Joomla only. I dont want that as I use the referral system.. A LOT.

Also, Im not sure I read this right... Are you saying that this modification will allow Joomla to be skinned with your vb templates? :eek:

beduino 26 Apr 2007 13:58

Very interesting!
tks for your work - and really the add-ons will be very useful.
All the best
Joao Barroca
aka beduino

dizzy100 26 Apr 2007 14:52

Quote:

Originally Posted by UncoderMom (Post 1235756)

Also, Im not sure I read this right... Are you saying that this modification will allow Joomla to be skinned with your vb templates? :eek:

When i tried it on my testbed the vbulletin skins is used for joomla which looked great :) Navbar links will need to be encoded with full paths though or they won't work.

Michael Morris 26 Apr 2007 14:59

Quote:

Originally Posted by UncoderMom (Post 1235756)
Also, Im not sure I read this right... Are you saying that this modification will allow Joomla to be skinned with your vb templates? :eek:

Yes. It does.

StuntFactoryX 26 Apr 2007 15:14

very interesting. there is some very cool stuff out there for joomla. few questions. i have read on here that there is huge security holes in joomla. the coder made it sound like it was common knowledge. was that a opinion or do you disagree or agree?

next thing is do you anticipate alot of problems or changes to make this work as vbulletin upgrades?

RedGTiVR6 26 Apr 2007 16:55

Can you compare this to the bbPixel bridge that I literally just purchased YESTERDAY!

Why does that always happen...lol

gothicuser 26 Apr 2007 17:09

Thankyou for a very useful hack :D
Digressing, it is just so pleasant and refreshing to see a full detailed description (as in the second post), Mr. Morris, a million thanks.

Michael Morris 26 Apr 2007 17:22

Quote:

Originally Posted by StuntFactoryX (Post 1235822)
very interesting. there is some very cool stuff out there for joomla. few questions. i have read on here that there is huge security holes in joomla. the coder made it sound like it was common knowledge. was that a opinion or do you disagree or agree?

Whatever security holes Joomla has, they are irrelevant to this mod since it does user authentication using vbulletin.
Quote:

next thing is do you anticipate alot of problems or changes to make this work as vbulletin upgrades?
I anticipate no problems. The vbulletin code isn't hacked in any way so unless Jelsoft changes the structure of the vbulletin registry in a major fashion this mod will continue to work. I would imagine that any change in vbulletin sufficient to break this mod would also break every mod on this site - in other words the type of change you might see in version 4.0, but not in version 3.6 forward.

Speaking of which, although I haven't tested it with 3.5 I *think* it will work there - this installs templates only and runs an alter table query - it doesn't have any plugins so it should work in 3.5

Michael Morris 26 Apr 2007 17:32

Quote:

Originally Posted by RedGTiVR6 (Post 1235869)
Can you compare this to the bbPixel bridge that I literally just purchased YESTERDAY!

Why does that always happen...lol

bbpixel hacks both Joomla and vbulletin. It merges then mirrors the user database and allows logins from both sides. This hacking means that every single time either product updates you have to reinstall the hack.

bbpixel doesn't bridge the template engines - therefore if you want a site to have a unified look and feel you have no choice but to skin the thing TWICE. vJoomla uses vbulletin's template engine and throws away Joomla's master template engine (modules can however still call and use patTemplate to build their content).

bbpixel is more mature than vJoomla having been around for a couple years. I'm working to get most of the same functionality in place as quickly as possible. The main obstacle - getting the bridge itself to work, has been accomplished.

These are the main differences. For the record I purchased bbpixel and was vastly disappointed in their customer service and how they implemented the bridge, so I wrote my own.

Michael Morris 26 Apr 2007 17:34

Quote:

Originally Posted by dizzy100 (Post 1235803)
When i tried it on my testbed the vbulletin skins is used for joomla which looked great :) Navbar links will need to be encoded with full paths though or they won't work.

By the final version I hope to use a modRewrite schema to work around this.

C_P 26 Apr 2007 17:49

Check your PM Michael Morris. I may be able to assist.

RedefiningFate 26 Apr 2007 17:53

I'm a novice to this. But find it great that you are creating this for us. As I was turned on to Joomla! the other day and I like the way it functions.

I don't understand what you mean by this, and feel free to make fun of me for it...

Quote:

Either create a symbolic link for images, clientscript and cpstyles in the site root, or copy the contents of those folders to the site root.
What exactly does it take to create either one of those?

J.T.

Jack Black 26 Apr 2007 18:14

I run my forum on a sub-domain.....forum.mywebsite.com....and i really do not want to move it.

Anyway this mod will work on my setup?

Michael Morris 26 Apr 2007 18:29

Quote:

Originally Posted by C_P (Post 1235908)
Check your PM Michael Morris. I may be able to assist.

Quote:

Originally Posted by RedefiningFate (Post 1235909)
I'm a novice to this. But find it great that you are creating this for us. As I was turned on to Joomla! the other day and I like the way it functions.

I don't understand what you mean by this, and feel free to make fun of me for it...



What exactly does it take to create either one of those?

J.T.

A symbolic link is exactly like a windows shortcut icon on the desktop that points to a file or folder elsewhere. The command is


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

For my dev site the command to link the cpstyles was


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.



Quote:

Originally Posted by Jack Black (Post 1235917)
I run my forum on a sub-domain.....forum.mywebsite.com....and i really do not want to move it.

Anyway this mod will work on my setup?

The final release version will - part of the installer will be the setup of the paths between Joomla and vbulletin. Expect to see that within 3 weeks or so.

Quantnet 26 Apr 2007 20:00

Quote:

Originally Posted by dizzy100 (Post 1235803)
When i tried it on my testbed the vbulletin skins is used for joomla which looked great :) Navbar links will need to be encoded with full paths though or they won't work.

Would you be able to provide me with the link ? I like to see how the front page layout look using the vb templates. Thanks

dizzy100 26 Apr 2007 21:16

Quote:

Originally Posted by Quantnet.org (Post 1235969)
Would you be able to provide me with the link ? I like to see how the front page layout look using the vb templates. Thanks

Sorry it was on a local host. It skinned Joomla perfectly with my vbulletin skin but there are a few problems i feel still with the bridge.

My default Joomla had a login module on the front page that wouldn't take with my vbulletin username and password. However using the vbulletin one logs me into both systems (minor but worth remembering how the bridge is working).

Also i found some components just error out. MosDirectory for instance installed fine but mysql error'd when trying to add an entry (although removing the bridge it then performed as expected).

Seems a great start and will certainly bring a great deal to the vbulletin community. Not a huge fan of Joomla myself as i find the interface confusing but its certainly an extremely powerful system that could add huge benefits to vbulletin boards.

Kudos to the developer with his beta bridge and the clear instructions he laid down to install. I'll be keeping a close eye on this one.

StuntFactoryX 26 Apr 2007 22:05

exciting. looking forward to this developing. would nominate mod of the century and click a donate button if this develops into somthing simple that us everyday board owners could use and maintain.

i would also like a sneek peak once sombody gets 1 running. :)

cygy2k 26 Apr 2007 23:19

I have to tell you, I love Joomla and have learned to love vBulletin over the past year. You ROCK for making this mod as it's one of the most needed and useful in my opinion. If you really put some time into this, you could easily make some money off of it and/or build some awesome communities around it.

pete_brady 27 Apr 2007 00:15

looking forward to this... been working on joomla-ing up my site & having access to vb stuff would be a big plus....

nanaimobar 27 Apr 2007 00:18

Looks very promising, Michael. Congratulations.

I use Joomla, with iJoomla Magazine mod, as my main web site face and use vBulletin for all the grunt and security work so I am quite interested in seeing a demo site running using your bridge.

Combining the two as you have is quite a gift to the vBulletin community. Thanks.:up:

Will definitely download your bridge when it is ready for production environments.

Michael Morris 27 Apr 2007 01:27

Just noticed the following and am posting notice in the original post.

Warning: Joomla complains about register globals emulation being on (this is the default setting). It is cited as a security risk. You MUST leave this setting on for this hack to work - however the "security risk" is non-existent as vbulletin will clean out the globals array during it's initialization.

This also means that any component or module for Joomla that requires Register Globals emulation to be turned on WILL NOT WORK! (most do not though - developers have been moving away from register globals for awhile now).

Tonight's task list is to tighten the template integration with Joomla and make some progress on mod_vJoomlaRecentThreads.

mclark2112 27 Apr 2007 01:56

Wow, can't wait until this is fully released...

WHat about a module for having new articles create threads in vB?

tuanluu 27 Apr 2007 03:37

Me too I will give it a try

INcredible
by dvsDave
27 Apr 2007 03:52

Everytime I have to work in joomla template, I wish it was the joomla template system. Please let us know if you need funds or a test platform or anything, I really want to see this thru to fruition.

Michael Morris 27 Apr 2007 04:01

Beta 0.0.2 introduces a major change in how Joomla handles modules. Traditionally Joomla wraps module content in one of 4 wrappers - div, 3 div, table or raw. The code of frontend.php and frontend.html.php has been rewritten so that now Joomla calls the vbulletin template engine to perform the wrapping process. The exact wrap used depends on which module position was used. The tradeoff (for the moment) is the moduleclass suffix is ignored. However this allows for much more powerful templating of the module blocks than CSS can hope to offer. It also moves the control of the module appearance fully into the vbulletin template engine which I'll wager will be more familiar to users than Joomla's engine anyway.

Tomorrow night I will do the same thing to Joomla's com_content component. Most Joomla content goes through this component so that should complete the skinning process - just keep in mind that 3rd party modules may use wildly different schema for populating their content block.

Also progress is being made on the module to view recent threads out of the vbulletin database. For those familiar with vbAdvanced you'll find most of the same options in the Joomla version of the latest topics module - but one major difference is the Joomla version will have a caching system so that instead of loading the recent threads on each view of the thread list at set intervals. This is for large boards like ENWorld where such queries can slow down the system noticeably.

Quantnet 27 Apr 2007 06:37

Keep very close watch on this.
I had joomla for a year or so before i got too tired of it. Integration is the worst. Template is another problem.

Now, look forward to seeing this to fruition.

Robru 27 Apr 2007 10:51

Thanks for this super job :)

project-Buckfas 27 Apr 2007 11:31

Very interested in this. I haven't been able to find a decent bridge so far. This looks promising!

memomemo 27 Apr 2007 13:29

Hello my setup this vJoomla beta 0 0 2 but dont work home page.

http://www.forumsitesi.info/index.php

Adminpage working only homepage dont work.
Please help

Thank you

kartik786 27 Apr 2007 16:38

Does ths work with 3.6.4 ?

Reeve of shinra 27 Apr 2007 16:39

Anyone have a good example of using joomla (integrated or not) as a "____ of the month" type thing?

RedGTiVR6 27 Apr 2007 17:50

Quote:

Originally Posted by Michael Morris (Post 1235891)
bbpixel hacks both Joomla and vbulletin. It merges then mirrors the user database and allows logins from both sides. This hacking means that every single time either product updates you have to reinstall the hack.

bbpixel doesn't bridge the template engines - therefore if you want a site to have a unified look and feel you have no choice but to skin the thing TWICE. vJoomla uses vbulletin's template engine and throws away Joomla's master template engine (modules can however still call and use patTemplate to build their content).

bbpixel is more mature than vJoomla having been around for a couple years. I'm working to get most of the same functionality in place as quickly as possible. The main obstacle - getting the bridge itself to work, has been accomplished.

These are the main differences. For the record I purchased bbpixel and was vastly disappointed in their customer service and how they implemented the bridge, so I wrote my own.


Thank you very much for your explination!

It's a good thing the bbpixel bridge only cost $20.

From my research, it seemed as if it was the only viable option out there.

I'll be keeping an eye on this thread religiously!

RedGTiVR6 27 Apr 2007 17:52

Quote:

Originally Posted by mclark2112 (Post 1236170)
Wow, can't wait until this is fully released...

WHat about a module for having new articles create threads in vB?

this would be the pot at the end of the rainbow!

kartik786 27 Apr 2007 18:54

can someone tell me if it works on 3.6.4 , so that i can have the pleasure of using this mod on my board

Michael Morris 27 Apr 2007 19:08

Quote:

Originally Posted by kartik786 (Post 1236544)
can someone tell me if it works on 3.6.4 , so that i can have the pleasure of using this mod on my board

Development of this began on 3.6.4 and I upgraded 3.6.5 midway during development without incident, so I believe it's safe to answer yes to that question.

akulion 27 Apr 2007 19:24

I dont use joomla but just wanted to give a few words of thanks and encouragement :)

Keep up the great work )

JimmDaBimm 27 Apr 2007 19:30

Thaaank you so much for working on this hack! ive ben waiting for a free bridge over month -.- and it was so close that i pay for bbpixel. Now i will watch it growing. I dont test it yet but is it posible to bridge joomla and vb without bridge the template engines?

I will test it later local. I hope this is what i have waiting for ;D.

p.s. sorry for my bad english ^^"

TheHeartSmasher 27 Apr 2007 20:21

Would it be possible to have the option of having this work without having to install joomla into the vbulletin database. So the two can have seperate databases, in case a problem happens with joomla or vb one or the other will still work.

RedGTiVR6 27 Apr 2007 20:54

What he said!

That would be ideal!

Michael Morris 27 Apr 2007 21:12

Quote:

Originally Posted by JimmDaBimm (Post 1236567)
Thaaank you so much for working on this hack! ive ben waiting for a free bridge over month -.- and it was so close that i pay for bbpixel. Now i will watch it growing. I dont test it yet but is it posible to bridge joomla and vb without bridge the template engines?

I will test it later local. I hope this is what i have waiting for ;D.

p.s. sorry for my bad english ^^"

The point of this particular bridge is to append Joomla onto vbulletin, part of which involves replacing it's master template engine. If you want or need full independent templates for both sides bbpixel remains your best bet. Personally I don't want to have to manage two template libraries.

Quote:

Originally Posted by TheHeartSmasher (Post 1236592)
Would it be possible to have the option of having this work without having to install joomla into the vbulletin database. So the two can have seperate databases, in case a problem happens with joomla or vb one or the other will still work.

No - the two are working off a single connection resource. This means each time the database is changed a change database command would have to be sent. Getting this to work correctly would require hacking both vbulletin and joomla's database classes and in my opinion would introduce more problems than it could solve.

Reeve of shinra 27 Apr 2007 22:33

Also, if the user table is in the VB database adn that crashed, you would still be SOL as your joomla db wouldnt be able to find the data it needs to run. Keep backups, plenty of them.

Michael Morris 27 Apr 2007 23:07

Quote:

Originally Posted by Reeve of shinra (Post 1236658)
Also, if the user table is in the VB database adn that crashed, you would still be SOL as your joomla db wouldnt be able to find the data it needs to run. Keep backups, plenty of them.

Reeve is right - in this particular hack the joomla user table does not contain the information necessary for validating the logins. Even though a partial copy is made, the password hash isn't copied over so if the vb user database goes the whole thing goes down anyway.

Joomla Template
by juanchi
28 Apr 2007 11:33

This mod is great, the only thing that I don't like is the way it handles the templates, and please don't get me wrong but I will prefer to use some of the templates available for joomla to skin the CMS. Michael if there could be a possibility to implement this please give it a chance, thanks.

TheBlackPoet 28 Apr 2007 12:04

I am hoping this bridge works out because i want to intergrate joomla into my forum as well.. i am putting this thread on instant notification and wait excitedly for it to come through the other side...

when i loaded it.. it did something funky to my login.php.. but no worries...

good work though..

Luky 28 Apr 2007 16:08

Its very nice for you to release a free bridge, its about time someone ran them people asking for money out of buisness! But may i ask, why not use on a live board? I mean if all you did was change the sql query's and abit of code, not much security issues can arise can it?

TheAllusionist 29 Apr 2007 04:19

Darn, I use Mambo! LOL This has been on a lot of peoples wish list for some time, thank you for taking it on.

Michael Morris 29 Apr 2007 16:43

Quote:

Originally Posted by juanchi (Post 1236926)
This mod is great, the only thing that I don't like is the way it handles the templates, and please don't get me wrong but I will prefer to use some of the templates available for joomla to skin the CMS. Michael if there could be a possibility to implement this please give it a chance, thanks.

I don't have the time to develop two different bridges. I'm undergoing this massive bit of hacking how Joomla displays content because a constant bugbear I've had at work is my clients, several design firms, hate tables as markup with a purple passion. Joomla uses tables extensively in content.html.php and frontend.html.php. Rather than continuing bickering with them I'm branching off Joomla to allow templates to drive the content pages -- the vbulletin template engine in the case of vJoomla and the patTemplate engine in the case of my contract work (The only difference between these two is the line that calls the template). If you want to integrate Joomla and retain the ability to use Joomla templates then I strongly recommend you look into bbpixel's bridge which has that functionality. $20 is not a lot to ask for a piece of software these days.

Quote:

Originally Posted by Luky (Post 1237045)
Its very nice for you to release a free bridge, its about time someone ran them people asking for money out of buisness!

That isn't my intent. By the time it is completed this bridge will be quite different from bbpixel in several notable ways. The reason I am working on it is I need a unified template engine - something that bbpixel's bridge doesn't offer.

Quote:

But may i ask, why not use on a live board? I mean if all you did was change the sql query's and abit of code, not much security issues can arise can it?
I have a live board that will be going up with this in two weeks if all goes well. There will be a vast difference between this early beta and the finished product between now and then.

ams3521 29 Apr 2007 20:46

Hi and thanks for a great mod, would this work with the Joomla component community builder?

pete_brady 29 Apr 2007 23:59

Will this bridge enable joomla / vb search integration?

Michael Morris 30 Apr 2007 00:13

Quote:

Originally Posted by ams3521 (Post 1237735)
Hi and thanks for a great mod, would this work with the Joomla component community builder?

Almost certainly not. Community Builder builds on the Joomla user table, and vJoomla disables that table in favor of using the vbulletin one.

Quote:

Originally Posted by pete_brady (Post 1237832)
Will this bridge enable joomla / vb search integration?

Not initially.

pete_brady 30 Apr 2007 00:19

Quote:

Originally Posted by Michael Morris (Post 1237848)
Not initially.

Sounds promising!

ERuiz 30 Apr 2007 06:16

Quote:

Originally Posted by Michael Morris (Post 1235891)
For the record I purchased bbpixel and was vastly disappointed in their customer service and how they implemented the bridge, so I wrote my own.

I concur 100%. Their support is almost null after you make the purchase. Too bad my current website is so heavily hacked and using the BBpixel solution, because if not, I would be willing to help you out with beta testing on my site.

I will keep an eye on this thread though. It looks extremely promising and probably in the future, I would make the move from BBPixel to this hack. Keep up the excellent work! :up:

Billspaintball 30 Apr 2007 06:20

Im keeping a real close eye on this one.
Ive looked at Joomla several times in the past but couldant find any acceptable way to intergrate it into a vB based site.

Very Interested. :)

aloha 30 Apr 2007 08:10

I love it when there are hacks that I will actually use.

Many thanks to all coders, and all those who continously make these scripts on a day to day basis just to help us unify for something better. :)

Downloading and going to test it out tomorrow.

PATIENTLY WAITING FOR V1... did I shout that?

oopsies...

Luky 30 Apr 2007 09:08

Quote:

Originally Posted by Michael Morris (Post 1237609)
I don't have the time to develop two different bridges. I'm undergoing this massive bit of hacking how Joomla displays content because a constant bugbear I've had at work is my clients, several design firms, hate tables as markup with a purple passion. Joomla uses tables extensively in content.html.php and frontend.html.php. Rather than continuing bickering with them I'm branching off Joomla to allow templates to drive the content pages -- the vbulletin template engine in the case of vJoomla and the patTemplate engine in the case of my contract work (The only difference between these two is the line that calls the template). If you want to integrate Joomla and retain the ability to use Joomla templates then I strongly recommend you look into bbpixel's bridge which has that functionality. $20 is not a lot to ask for a piece of software these days.



That isn't my intent. By the time it is completed this bridge will be quite different from bbpixel in several notable ways. The reason I am working on it is I need a unified template engine - something that bbpixel's bridge doesn't offer.



I have a live board that will be going up with this in two weeks if all goes well. There will be a vast difference between this early beta and the finished product between now and then.

I know its not your intent, but it if works good and is free, it will happen and you will be a hero welded in many hearts <3

Michael Morris 01 May 2007 00:39

There will be an update tonight - I've uncovered two display bugs in the module templating system and am testing the changes now.

b65ran 01 May 2007 04:03

After update to beta-0-0-2 i got this error.

Quote:

Warning: Division by zero in C:\wamp\www\includes\frontend.html.php on line 129

Warning: Division by zero in C:\wamp\www\includes\frontend.html.php on line 129

Warning: Division by zero in C:\wamp\www\includes\frontend.html.php on line 129

Warning: Division by zero in C:\wamp\www\includes\frontend.html.php on line 129

Warning: Division by zero in C:\wamp\www\includes\frontend.html.php on line 129

Warning: Division by zero in C:\wamp\www\includes\frontend.html.php on line 129

Warning: Division by zero in C:\wamp\www\includes\frontend.html.php on line 129

Warning: Division by zero in C:\wamp\www\includes\frontend.html.php on line 129

Michael Morris 01 May 2007 04:49

Got the source of that. The content.html.php is taking longer than I anticipated to rework. It will probably be tomorrow before I can get the next upgrade up (I could put what I have out now - but nightly builds usually aren't worth the hassle to install).

Nevermind again - it seems to be in a stable place so I'll go ahead and release this build. It'll be about a half hour.

EDIT: We are now on Version 0.0.3 beta

Quantnet 01 May 2007 05:21

waiting impatiently for stable version ;)

Ignicoccus 01 May 2007 11:17

Very impressing MOD !!!!

I am playing around with vBulletin and Joomla for quiet some time, but this one really rocks ! I installed it on a test site today and the integration of the template is really cool.

I encounter some errors, each page starts with this error :

Warnung: Wrong parameter count for get_defined_constants() in /kunden/mydomain/vbtest/index.php (Zeile 229)

Root path of Joomla installation

If I want to access joomlas admin panel, I get these :


Warning: chdir(): No such file or directory (errno 2) in /kunden/mydomain/vbtest/globals.php on line 35

Warning: main(global.php): failed to open stream: No such file or directory in /kunden/mydomain/vbtest/globals.php on line 36

Fatal error: main(): Failed opening required 'global.php' (include_path='.:/usr/local/lib/php') in /kunden/mydomain/vbtest/globals.php on line 36

Installation is Joomla 1.0.12, vBulletin 3.6.5, directories made with symlinks.

Any Ideas ?

Ignicoccus 01 May 2007 13:43

Ok, this was an easy one :D

You hardcoded the path to the admincp in globals.php (line 35). My admincp has another path, so I changed this and now everything works fine :up:. Maybe there is a posibility to draw this path from the vbulletin settings table.

Michael Morris 01 May 2007 14:08

Quote:

Originally Posted by Ignicoccus (Post 1238882)
Ok, this was an easy one :D

You hardcoded the path to the admincp in globals.php (line 35). My admincp has another path, so I changed this and now everything works fine :up:. Maybe there is a posibility to draw this path from the vbulletin settings table.

I intend to draw it from the Joomla config file and set it up by creating a custom version of the installer. However, the installer is one of the last things I will be writing.

Ignicoccus 01 May 2007 14:24

But still I get this error on top of every page :

Warnung: Wrong parameter count for get_defined_constants() in /kunden/mysite/vbtest/index.php (Zeile 229)


This is the row that gives the error, any idea ?


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


acegames 01 May 2007 15:45

Quote:

Originally Posted by Ignicoccus (Post 1238909)
But still I get this error on top of every page :

Warnung: Wrong parameter count for get_defined_constants() in /kunden/mysite/vbtest/index.php (Zeile 229)


This is the row that gives the error, any idea ?


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Same error here

Michael Morris 01 May 2007 17:05

PHP version numbers please.

Ignicoccus 01 May 2007 18:18

Quote:

Originally Posted by Michael Morris (Post 1238965)
PHP version numbers please.

PHP 4.4.1

TheMusicMan 01 May 2007 20:38

Michael - is there anywhere we can see this in action...? Am very intrigued...

Michael Morris 01 May 2007 20:53

I hope to have my demo site up within the next week or so. But don't expect to see it until I release the first Release Candidate. The beta is an advanced preview if you will.

acegames 01 May 2007 21:00

Quote:

Originally Posted by Michael Morris (Post 1238965)
PHP version numbers please.

Php 4.4.4

tuanluu 03 May 2007 03:48

looking very promise

cheesegrits 03 May 2007 04:24

Quote:

Originally Posted by Michael Morris (Post 1237609)
Rather than continuing bickering with them I'm branching off Joomla to allow templates to drive the content pages -- the vbulletin template engine in the case of vJoomla and the patTemplate engine in the case of my contract work (The only difference between these two is the line that calls the template).

Fine piece of work. I've been doing a fair amount of vB/Joomla integration and mod writing recently (for other people), and I'm even considering re-adopting Joomla for myself when vJoomla stablizes. I had exactly the same frustrations you did with the two template systems (and lack of support from BBpixel), only I didn't have the patience to do what you are doing!

My only concern is, as you say above, "I'm branching off Joomla". Are you literally working on core Joomla files, or is it plugin based? How likely are you to implement this in 1.5? Much as I like the look of what you are doing, i don't want to paint myself into a corner with an "old" version of Joomla I then can't upgrade. 1.5 seems to address a lot of the XSS vulnerabilities in Joomla, which were another large part of why I abandoned it in the first place.

-- hugh

blackgem 03 May 2007 04:37

This might be a simple question and more related to the Joomla admin side of things, but on my Joomla pages that are using the VB templates, my right hand column is empty [i have unpublished all the modules] but it's still showing, how can I remove it?

Edit: Nevermind, fixed it.

Michael Morris 03 May 2007 06:12

Quote:

Originally Posted by cheesegrits (Post 1240291)
Fine piece of work. I've been doing a fair amount of vB/Joomla integration and mod writing recently (for other people), and I'm even considering re-adopting Joomla for myself when vJoomla stablizes. I had exactly the same frustrations you did with the two template systems (and lack of support from BBpixel), only I didn't have the patience to do what you are doing!

My only concern is, as you say above, "I'm branching off Joomla". Are you literally working on core Joomla files, or is it plugin based? How likely are you to implement this in 1.5? Much as I like the look of what you are doing, i don't want to paint myself into a corner with an "old" version of Joomla I then can't upgrade. 1.5 seems to address a lot of the XSS vulnerabilities in Joomla, which were another large part of why I abandoned it in the first place.

-- hugh

Joomla 1.5 can be bridged in quite a different manner since it is able to directly authenticate off foreign user tables and more fully implements it's native template engine. I've been watching it too - the one thing that has me worried about it is their 'php 5 emulation under php 4' -- this seems to be a severely unnecessary complication to the product.

vJoomla modifies core joomla files - it has to in order to accomplish what it does. I'm trying to keep the changes to a minimum, but they are significant. So far they have not proven significant enough to stop any module I've tried to run on it from working.

BTW, for a XSS attack to work against vJoomla it would first need to defeat vbulletin's xss precautions in addition to Joomla's native ones.

TheMusicMan 03 May 2007 06:18

Hi Michael - am watching this thread and eagerly await the release of your version.

Qn if I may: skinning and templates... does your bridge do anything with these and make it easier to use a Joomla template on vB or a vB template on Joomla...? I appreciate matching the two is way out of scope of a Joomla/vB bridge, but are there any presentation layers considered?

Version .0.4 is now out.
by Michael Morris
03 May 2007 06:27

Beta 0.0.4 is out. The next branch will be 0.1.0 to mark the first milestone - the completion of the default skinning. Code wise version 0.0.4 has this in place already, but it is using the Joomla tables and classes at the moment and they haven't been rewritten to use vbulletin class elements. This is the last step before going to .1

The next component I will be working on is the Installer. This should aid more people into getting this component up and running. The completion of the installer will mark beta .2 completion.

As of now vJoomla has all but completely replaced Joomla's template system. This means Joomla templates *will not work* on it. However, all vbulletin templates will work, though occassionally they'll need minor adjustments or additions.

Quote:

Originally Posted by TheMusicMan (Post 1240349)
Hi Michael - am watching this thread and eagerly await the release of your version.

Qn if I may: skinning and templates... does your bridge do anything with these and make it easier to use a Joomla template on vB or a vB template on Joomla...? I appreciate matching the two is way out of scope of a Joomla/vB bridge, but are there any presentation layers considered?

I'm not sure what you mean by presentation layers. I have ditched the Joomla skinning system (though patTemplate still works within vJoomla for those modules that require it). Modules written for vJoomla will have the option of using patTemplate or vbulletin's template engine at the author's choice.

Quantnet 03 May 2007 06:35

If someone has a test board with some custom style and vjoomla installed for a demo, that would be great. i can't install this on my production board yet....not until this go to .2 at least.
Thanks Michael, you got me intererested in joomla again.

muratmunich 03 May 2007 09:39

Thx for this amazing mod.

Here´s my DEMO.

maxicep 03 May 2007 11:38

Quote:

Originally Posted by muratmunich (Post 1240427)
Thx for this amazing mod.

Here´s my DEMO.

your demo looks great but giving error on your page with this linked:
http://www.s7v7n.com/index.php?optio...&id=1&Itemid=2

Luky 03 May 2007 13:19

I want the opposite, i want vbulletin to use joomla's template xD

pxd 03 May 2007 13:48

Need some help, please. Followed the steps correctly, I think. But getting this error message when trying to access the joomla index:
Quote:

Warning: array_keys() [function.array-keys]: The first argument should be an array in \includes\functions.php on line 4840

Warning: preg_replace() [function.preg-replace]: Empty regular expression in \includes\functions.php on line 4840
Am I doing something wrong?

Using vb 3.6.5 & Joomla 1.0.12

pxd 03 May 2007 17:56

No update? Is there a problem with the latest beta release? Could someone please post older versions which are working so I can compare and possibly fix the issue if no sign from the developer. Are you around, Michael? Standing by, thanks a lot...

Michael Morris 03 May 2007 19:07

I haven't observed that error myself. Try turning off all your plugins and see if it works (vJoomla has no plugins to turn off at this time). The error is coming from a file that I haven't touched and I can't imagine why it would malfunction - so my first guess is there is a compatibility issue with another plugin.

paul_c 03 May 2007 19:32

Can Joomla modules be targeted to individual vBulletin forums? If so, is this handled through the Joomla menu system using link URL?

pxd 03 May 2007 19:37

Quote:

Originally Posted by Michael Morris (Post 1240716)
I haven't observed that error myself. Try turning off all your plugins and see if it works (vJoomla has no plugins to turn off at this time). The error is coming from a file that I haven't touched and I can't imagine why it would malfunction - so my first guess is there is a compatibility issue with another plugin.

That's what I first thought when I got the error so I went ahead and installed a clean joomla + a clean vBulletin on my localhost, same error popping up. What else can I do to help track this down, please?

Michael Morris 03 May 2007 20:43

Quote:

Originally Posted by paul_c (Post 1240730)
Can Joomla modules be targeted to individual vBulletin forums? If so, is this handled through the Joomla menu system using link URL?

I'm not sure what you're asking here. It would depend on the modules - but any module that worked with the vbulletin forums would have to be custom written.

Quote:

Originally Posted by pxd (Post 1240737)
That's what I first thought when I got the error so I went ahead and installed a clean joomla + a clean vBulletin on my localhost, same error popping up. What else can I do to help track this down, please?

At this point I don't know what could be triggering it unless...

Did you remember to install the vJoomla product file? If you don't the joomla templates wouldn't be loaded in and you'd get an error when they are called.

pxd 03 May 2007 20:55

Quote:

Originally Posted by Michael Morris (Post 1240769)
At this point I don't know what could be triggering it unless...

Did you remember to install the vJoomla product file? If you don't the joomla templates wouldn't be loaded in and you'd get an error when they are called.

Yes, I did.
- Installed Joomla 1.0.12
- Installed vBulletin, inside /forum, using the same database, different table prefix though (not sure if that matters)
- Installed the vJoomla plugin using the xml file
- Overwritten the joomla files
- Copied the required vb folders to joomla directory as per your instructions

Anything missing?

Your help is so much appreciated, Michael. I am keen to use this on my production site that will go live soon, and your mod does exactly what I need, too sad I can't get it installed. Hopefully you can help me out, thanks!

P.S. Do you mind putting up an older version of the beta for me to make a quick test? Also, could filepath be an issue here? I'm running the scritpts on XAMPP server locally.

Michael Morris 03 May 2007 21:19

I'll look into it further when I get the chance but it might be a couple days.

imported_hbs 03 May 2007 21:42

I had version 0.0.2 working just great and just updated to 0.0.4 and getting
Quote:

Warning: Wrong parameter count for get_defined_constants() in /home/hbscoi/public_html/new/index.php on line 229
on the top of my pages. was I missing anything?

paul_c 04 May 2007 01:29

Quote:

I'm not sure what you're asking here. It would depend on the modules - but any module that worked with the vbulletin forums would have to be custom written.

Allow me to clarify. I've been using Mambo/Joomla a long time so I'll see if I can explain:

In Joomla you can create modules that can be placed based on their Module Position using code like - <?php mosLoadModules ( 'user7', 'true' ); ?> - placed in a template.

You can then assign a Joomla module to this position and also assign it to show only for certain pages. These pages are determined by the menu structure that is set up. So even though many pages follow the same template that all have the "user7" module position, the only pages that will actually show the module are those that have been selected to display it (this is done when configuring the module).

I assume even though your plugin is using the vBulletin templating system that I will still be able to assign Joomla modules (as noted above). If so, then back to my original question, can I assign Joomla modules to a specfic Forum so that for example in Forum1 I can show a specific Joomla module (e.g., in "user7" position) and in Forum2 not show the module.

blackgem 04 May 2007 02:43

Are you able to place Joomla modules on forum pages at all, even with this bridge?

Michael Morris 04 May 2007 05:00

Not yet - Hadn't actually thought of doing that. Hmmm...

Michael Morris 04 May 2007 06:19

Ok, it only took about 5 minutes to write the plugin to allow joomla modules to be called from vbulletin templates. I agree that this should be part of the final bridge but since it's something I just tossed in and haven't tested I'm keeping the xml plugin separate from the rest of the download for the moment.

To get a module to show up on a forum template with this plugin you'll need to place $module[position] at the spot the module contents should display. I did this to get my joomla main menu to show up on the forum pages.

It appears to work, but again I just tossed this in. I'm currently working on the templates and trying to find the source of the two bugs noted in the thread.

Completing this aspect of the bridge will need to be a little trickier. The approach I'm considering is this - the installer program will read over the list of forums vbulletin has and create a menu that holds all the vbulletin forums. These menu id's will be the keys off which the modules work. This particular menu will need to be updated via plugin any time vbulletin adds or subtracts a module. The advantage of this approach is it will incidentally create a forum menu that can be displayed on joomla pages with a minimum of fuss.

Michael Morris 04 May 2007 07:42

Quote:

Originally Posted by maxicep (Post 1240476)
your demo looks great but giving error on your page with this linked:
http://www.s7v7n.com/index.php?optio...&id=1&Itemid=2

Spotted source of error - will be fixed next version.

Michael Morris 04 May 2007 07:43

Quote:

Originally Posted by imported_hbs (Post 1240810)
I had version 0.0.2 working just great and just updated to 0.0.4 and getting

on the top of my pages. was I missing anything?

Found a workaround. Apparently that function can't take an argument in versions of PHP prior to 4.4.2. Will be fixed next version.


All times are GMT. The time now is 11:17.

Powered by vBulletin® Version 3.8.14
Copyright © 2021, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.