Customizing SMF > Joomla Bridge Support
SJSB new version...
ilwoody:
Hi,
I hope its something I can share here without annoying the moderators .. I just released a new alpha version (6 month later) of SJSB (Simple Joomla! 1.5.x / SMF 2.x bridge).
Its a very simple bridge, not aiming to be a complete integration solution like JFusion but still has its own use.
If you don't care too much about user sync and you just want to wrap SMF inside Joomla then it works pretty well.
It also comes with a proper MVC system so its easy to make Joomla! menu pointing to action of the forum (ie members, stats, login, logout, moderate .. ) a module to wrap the SSI functions in a way easy to customize their output (see the frontpage of the demo site; its just the SSI board news) and a "container module" to show different modules to different SMF users (ie admin, moderators, guest, logged) which is handy to have different menu.
Demo site:
http://www.youpokeme.com/sjsb/
Guide:
http://code.google.com/p/sjsb/wiki/Installation?tm=6
I decided to release a new version because I got asked a lot of time if the project was DEAD, no its not, its just sleeping most of the time :)
Orstio:
Nice work. I like that you tackled the headers and footers (I'm assuming you used the integrate_load_theme hook in 2.0 for that?) and the RSS links right away. Those were some of the last things to get done in the Mambo bridge, I don't think they were even available at the time of release of the last Joomla bridge.
No hassles from the other side about licensing?
One thing you'll want to clean up yet: The jumpto functionality returns a URL like this:
http://www.youpokeme.com/sjsb/index.php?option=com_smf&view=forum&Itemid=2?board=1.0
Which doesn't work so well with the question mark where there should be an ampersand. Looking at the page output, it looks like this has been moved to a theme file.
EDIT: You also have a typo in bridge.php. THe function "entegrate_outgoing_email" should probably be named "integrate_outgoing_email". ;)
ilwoody:
--- Quote from: Orstio on January 04, 2009, 03:37:11 PM ---Nice work. I like that you tackled the headers and footers (I'm assuming you used the integrate_load_theme hook in 2.0 for that?) and the RSS links right away. Those were some of the last things to get done in the Mambo bridge, I don't think they were even available at the time of release of the last Joomla bridge.
--- End quote ---
thank you! Im following your way to bridge things, like an adept :)
The headers are just grabbed from the generated output, removed from there and sent as headers using joomla functions .. I didn't notice there was an ad hoc integration hook for that too .. the rss required a bit more work because I had to append joomla commands to the url to poin them to a "raw" view, and also because I was assuming that "integrate_fix_url" was always called for links without &s; which was not true, expecially for RSS (they would never got validated by a css validator).
--- Quote ---No hassles from the other side about licensing?
--- End quote ---
no one contacted me, but of course I may expect to be removed from the extensions directory the day they will clean up it from non GPL compatible licenses.
It was almost 6 months ago last time I tried to contact Joomla "copyright holders" to grant me the permission to write a component using a non GPL compatible "framework" (aka SMF) ; I got a reply that was not possible because there were too many copyright holders to ask too .. and to be honest, I don't really care :P
--- Quote ---One thing you'll want to clean up yet: The jumpto functionality returns a URL like this:
http://www.youpokeme.com/sjsb/index.php?option=com_smf&view=forum&Itemid=2?board=1.0
Which doesn't work so well with the question mark where there should be an ampersand. Looking at the page output, it looks like this has been moved to a theme file.
EDIT: You also have a typo in bridge.php. THe function "entegrate_outgoing_email" should probably be named "integrate_outgoing_email". ;)
--- End quote ---
arrg, didn't notice both of them .. thanks again !
Orstio:
Just noticed one more:
--- Code: ---var smf_scripturl = "/sjsb/index.php?option=com_smf&view=forum&Itemid=2";
--- End code ---
Javascript can't contain HTML entities, so that actually needs to read like this:
--- Code: ---var smf_scripturl = "/sjsb/index.php?option=com_smf&view=forum&Itemid=2";
--- End code ---
It's a pain, but a lot of the ajax elements won't work unless it's fixed.
Are you also double-buffering to avoid the admin panel fall-out?
ilwoody:
--- Quote from: Orstio on January 05, 2009, 09:37:54 PM ---Just noticed one more:
--- Code: ---var smf_scripturl = "/sjsb/index.php?option=com_smf&view=forum&Itemid=2";
--- End code ---
Javascript can't contain HTML entities, so that actually needs to read like this:
--- Code: ---var smf_scripturl = "/sjsb/index.php?option=com_smf&view=forum&Itemid=2";
--- End code ---
It's a pain, but a lot of the ajax elements won't work unless it's fixed.
--- End quote ---
nice spot, I also have a bad keepalive url action which seems to work because it gets cleaned by smf itself .. but I really need to put more attention at how I rewrite the URLs (btw .. integrate_fix_url are not called for those link, are them ?) I had a bug opened about ajax .. at least now I know where to look at
--- Quote ---Are you also double-buffering to avoid the admin panel fall-out?
--- End quote ---
mine is a "try and catch" approach using exceptions, this way the admin panel works fine (also the live informations are) .. I don't know what a double buffering technique would be in this context, could you explain it to me please ?
Navigation
[0] Message Index
[#] Next page
Go to full version