News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

SJSB new version...

Started by ilwoody, January 02, 2009, 08:18:07 AM

Previous topic - Next topic

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 :)
Simple Joomla! 1.5.x / SMF 2.x bridge - ver 1.0.14 alpha 26/03/2009
http://code.google.com/p/sjsb/
--
Support: http://groups.google.com/group/sjsb
Bugs:  http://code.google.com/p/sjsb/issues/list
Live: http://www.youpokeme.com/sjsb/

Orstio

#1
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.

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 &amps; 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?

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". ;)

arrg, didn't notice both of them .. thanks again !


Simple Joomla! 1.5.x / SMF 2.x bridge - ver 1.0.14 alpha 26/03/2009
http://code.google.com/p/sjsb/
--
Support: http://groups.google.com/group/sjsb
Bugs:  http://code.google.com/p/sjsb/issues/list
Live: http://www.youpokeme.com/sjsb/

Orstio

#3
Just noticed one more:

var smf_scripturl = "/sjsb/index.php?option=com_smf&view=forum&Itemid=2";

Javascript can't contain HTML entities, so that actually needs to read like this:

var smf_scripturl = "/sjsb/index.php?option=com_smf&view=forum&Itemid=2";

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:

var smf_scripturl = "/sjsb/index.php?option=com_smf&view=forum&Itemid=2";

Javascript can't contain HTML entities, so that actually needs to read like this:

var smf_scripturl = "/sjsb/index.php?option=com_smf&view=forum&Itemid=2";

It's a pain, but a lot of the ajax elements won't work unless it's fixed.

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?

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 ?
Simple Joomla! 1.5.x / SMF 2.x bridge - ver 1.0.14 alpha 26/03/2009
http://code.google.com/p/sjsb/
--
Support: http://groups.google.com/group/sjsb
Bugs:  http://code.google.com/p/sjsb/issues/list
Live: http://www.youpokeme.com/sjsb/

Orstio

If you check the Mambo bridge, you'll notice that not one, but two output buffers are started, one embedded in the other.

This is because some pages will kick the output to the buffer and flush before you're done.  In this case, the second buffer catches the flush, and you treat it just like the first buffer.

ilwoody

Just released a new version which comes with dual login from both Joomla! and SMF. You can test a live installation with demo accounts here

http://www.youpokeme.com/sjsb/index.php?option=com_smf&view=forum&Itemid=2

thanks for your time
Simple Joomla! 1.5.x / SMF 2.x bridge - ver 1.0.14 alpha 26/03/2009
http://code.google.com/p/sjsb/
--
Support: http://groups.google.com/group/sjsb
Bugs:  http://code.google.com/p/sjsb/issues/list
Live: http://www.youpokeme.com/sjsb/

Hj Ahmad Rasyid Hj Ismail

It's great man. You've done it. Congrats bro.

FidelGonzales

Quote
No hassles from the other side about licensing?
Quote from: ilwoody on January 05, 2009, 10:49:31 PM
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
Ilwoody: SJSB is the best Joomla forum bridge on the market. SMF 2.0 is certainly the best forum. Thank you for the outstanding work.

And, thanks for the insight on your experience with the Joomla GPL issue. I happen to agree with what seems to be your attitude and am not surprised by the response you received.

FidelGonzales

By the way, what qualifies as an SJSB Charter Member?

http://code.google.com/p/sjsb/
QuoteSince SMF 2.0 rc1 has been released (Charter Members only atm) there is no point to wait more to start working on SJSB seriously. Let's if we can get our beta ready for their final :-)

blouogies20

Okay guys I'm totally confused....

You said earlier that the bridge is past tense.  So what do you say about SJSB can we use it in joomla?  Is it legal?

FidelGonzales

Quote from: blouogies20 on February 05, 2009, 06:58:44 AM
Okay guys I'm totally confused.... You said earlier that the bridge is past tense.  So what do you say about SJSB can we use it in joomla?  Is it legal?

This bridge is present tense, as in functioning and improving under continual development for Joomla 1.5. You may be referring to older Joomla 1.0 bridges, which were supposedly affected by the changes to and interpretations of Joomla licensing.

Quoteno 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

These seems to illustrate the ineptitude and overall confusion surrounding Joomla licensing.

cbpm

SJSB now is the ONLY working bridge for joomla 1.5 and smf 2.0 . Need also many improvements, but the SSI modules for joomla are so fantastic, the code clean and fast,  and the support is growing up.  (there are many challenges to fight)

If someone more can join this project, the results will be fantastic.

Thanks!

Keep the nice work!!!

dextrous

Cool, will try this out. Anything on SMF 2.0 and Joomla 1.0 series?

CapadY

Maybe this topic is the right place to get my problem solved too :)

I am running Joomla 1.5.10 bridged via SJSB-bridge with SMF2RC1

The Forum is wrapped.

When I click a link on the forum there is (i.e.) the next link:

http://www.midlife-info.nl/SMF/index.php?topic=252.0

When I try to reach the same link via the latest post Mod in Joomla there is (i.e.) the next link:

Quote
http://www.midlife-info.nl/index.php?option=com_smf&Itemid=86&topic=252.msg5912;
topicseen#new

The first link will show the forum properly, the second link makes rubish from the forum page.
I suppose it's because of the com_smf option.
How can I solve this ? I don't have problems with code editting but how and where ?

Thanks in advance,

John
Please, don't PM me for support unless invited.
If you don't understand this, you will be blacklisted.

FidelGonzales

I'm not completely clear what you're asking, but you're running the forum through the Joomla wrapper component and not through the SJSB SMF / Joomla bridge component.

Anyhow, for your forum pages, I'd recommend removing the left column link menu, so your forum members can easily navigate your page. This seems to be the partial reason why your page appears as it does when viewed through the SJSB forum component. The other is conflicting CSS. I can give you my CSS modifications, since I use the same template, if you'd like, but my CSS is slightly different than the look you have.

Kindred

"makes rubbish from the forum page" is not at all descriptive or useful.

However, it looks like a conflict between layouts and CSS.   I'd suggest trying with the default smf template.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

CapadY

Quote from: Kindred on May 04, 2009, 09:59:58 PM
"makes rubbish from the forum page" is not at all descriptive or useful.

The site-link is in my message so you can have a look at it yourself :)

But it keep a strange situation the layout and css are working properly fromout the forum and don't work from the outside.
I'll have a look at it.
Please, don't PM me for support unless invited.
If you don't understand this, you will be blacklisted.

Kindred

no...   not "from outside".

The forum works fine stand-alone.
The forum layout looks "squished" when wrapped.


Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

FidelGonzales

Here are some descriptions of the various options you are running your forum as. I have included some clarifications as well as some suggestions. We are more than willing to help, but please take the time to be more descriptive in describing the issues and reading our answers. Thanks.=




SMF
- Looks good and functions properly. Once you get the SMF and Joomla working through the SJSB bridge, you ought to remove direct access via a mod/hack available on the SJSB Google support page.
http://www.midlife-info.nl/SMF/index.php?topic=252.0

SMF INSIDE JOOMLA WRAPPER COMPONENT - This is not a good way of running your forum, as it does not do well for functionality, including search engine optimization. You ought to remove this link, which is located in the left column menu module.
http://www.midlife-info.nl/index.php?option=com_wrapper&view=wrapper&Itemid=86

SJSB JOOMLA / SMF BRIDGE COMPONENT - Unpublish left column menu module on SJSB forum. This is causing some of the problems with your forum not displaying correctly. As was referenced recommend previously by Kindred and myself, I recommend reverting to the original files of the template you are using. Even better, I will give you the template I have, which is the original template template by Crip. I have modified it to function with SMF, and it works pretty well.
http://www.midlife-info.nl/index.php?option=com_smf&Itemid=86&topic=252.msg5912;

Advertisement: