hello im working at the moment on one elegant solution
to connect vbulletin with any CMS or other application
this hack (for vbulletin) can be used to exchange/synchronize
users of different applications, makes common logins an other nice stuf
this hack is not primary for connect joomla and vbulletin
but i will make some connectors for joomla
where no connection to vbulletin-database needed
vbulletin can be on other end of the internet, on different servers and different domains*
at the moments where following functions compleated:
Login on Vbulletin ( you will get all needed cookies from vbulletin )
last X posts ( if the user logged in, you will became posts with users rights )
get userinfomation ( AIM/homepage/signature.....)
get postinformation ( get compleatly formated post from vbulletin, bbcode, smilies are formated and as HTML )
save/create user
planed functions:
get compleate thread
create post, create thread
the following joomla modules are allready done
login on vbulletin
x last posts
* (different domains ) cookie can only be set if forum and CMS are on same domain (forum.domain.com and cms.domain.com
or domain.com/forum and domain.com/cms )
if they are on different domains you will get valid session ID, if the user goes to the forum with this session ID, it would be logged in
example for X last posts:
http://c4u.to/index.php?option=com_frontpage&Itemid=1example for common login:
http://www.c4u.toon this page you can test the login
the solution is:
by the login, joomla checks normaly is the user exists in joomla database or not
if not, the bridge try to login on vbulletin, if is true
the bridge create an user on joomla and automaticaly log the user in
so that you dont need to synchronize the users, the bridge makes this on login ( only if username and password are same )
at the moment there only posible to login on joomla and by logged in on vbulletin, not in other side ( vbulletin->joomla, i hope anyone can create same API for joomla )
the thread of the project on vbulletin.org
http://www.vbulletin.org/forum/showthread.php?t=100559or on vbhacks-germany.com ( in german )
http://www.vbhacks-germany.com/forum/sh ... php?t=2239Advantage of this solution is, that you can easy update vbulletin ( because no files must be changed, this hack is an addon )
and you can easy update joomla, you must only add come code on one place at the login function
it is posible to makes common logins with more that one forum ( you must only walk all forums and shows if user exists, and then log the user in and get cookie information )
how does this works
i have make an SOAP API on vbulletin side
you does not needs to make DB connections to vbulletin, parse options/bbcode or other stuff,all it will be compleated by vbulletin self with this API
if you wants to get last 10 threads you must only make an call to vbulletin ( $threads=$connect->getLastPosts($limit); )
and you have an array with the data of the threads as result )
if joomla and vbulletin are on same server, the perfomance is the same as by actual bridge
this hack is written ( at the moment ) in php5 and soap extension
but it is posible to make an server in php4/5 an PEAR_SOAP class or nuSOAP
if many people are used php4 and dont plan to update it, i will try to make this hack in php4
look at the post on vbulletin-forums you will find some examples to show how does it works
client can be written in any language which supports SOAP
(ASP,PHP,Java..... )
i'm using SOAP and not XML-RPC because SOAP is an W3C standard and suported by many applications