Advertisement:

Author Topic: SJSB new version...  (Read 79015 times)

Offline ilwoody

  • Semi-Newbie
  • *
  • Posts: 49
  • Sleeping most of the time
    • Simple Joomla! 1.5.x / SMF 2.x bridge
SJSB new version...
« on: January 02, 2009, 08:18:07 AM »
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

  • Guest
Re: SJSB new version...
« Reply #1 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.

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". ;)
« Last Edit: January 04, 2009, 03:53:48 PM by Orstio »

Offline ilwoody

  • Semi-Newbie
  • *
  • Posts: 49
  • Sleeping most of the time
    • Simple Joomla! 1.5.x / SMF 2.x bridge
Re: SJSB new version...
« Reply #2 on: January 05, 2009, 09:16:53 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

  • Guest
Re: SJSB new version...
« Reply #3 on: January 05, 2009, 09:37:54 PM »
Just noticed one more:

Code: [Select]
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:

Code: [Select]
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?
« Last Edit: January 05, 2009, 09:40:28 PM by Orstio »

Offline ilwoody

  • Semi-Newbie
  • *
  • Posts: 49
  • Sleeping most of the time
    • Simple Joomla! 1.5.x / SMF 2.x bridge
Re: SJSB new version...
« Reply #4 on: January 05, 2009, 10:49:31 PM »
Just noticed one more:

Code: [Select]
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:

Code: [Select]
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

  • Guest
Re: SJSB new version...
« Reply #5 on: January 05, 2009, 11:41:23 PM »
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.

Offline ilwoody

  • Semi-Newbie
  • *
  • Posts: 49
  • Sleeping most of the time
    • Simple Joomla! 1.5.x / SMF 2.x bridge
Re: SJSB new version...
« Reply #6 on: January 28, 2009, 01:35:27 AM »
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/

Offline ahrasis

  • SMF Hero
  • ******
  • Posts: 4,921
  • Gender: Male
  • Busy mode is on.
    • ahrasis on GitHub
    • ahrasis on LinkedIn
    • ElkArte Malaysia
Re: SJSB new version...
« Reply #7 on: February 03, 2009, 11:47:24 AM »
It's great man. You've done it. Congrats bro.

Offline FidelGonzales

  • Semi-Newbie
  • *
  • Posts: 66
  • Gender: Male
    • @FidelGonzales on Twitter
    • http://ActionArmory.co
Re: SJSB new version...
« Reply #8 on: February 03, 2009, 04:05:03 PM »
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
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.

Offline FidelGonzales

  • Semi-Newbie
  • *
  • Posts: 66
  • Gender: Male
    • @FidelGonzales on Twitter
    • http://ActionArmory.co
Re: SJSB new version...
« Reply #9 on: February 03, 2009, 04:09:34 PM »
By the way, what qualifies as an SJSB Charter Member?

http://code.google.com/p/sjsb/
Quote
Since 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 :-)

Offline blouogies20

  • Jr. Member
  • **
  • Posts: 209
  • Gender: Female
  • Carpe Diem: Seize the Day
    • Teen Generation
Re: SJSB new version...
« Reply #10 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?

Offline FidelGonzales

  • Semi-Newbie
  • *
  • Posts: 66
  • Gender: Male
    • @FidelGonzales on Twitter
    • http://ActionArmory.co
Re: SJSB new version...
« Reply #11 on: February 05, 2009, 01:18:03 PM »
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.

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

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

Offline cbpm

  • Semi-Newbie
  • *
  • Posts: 12
Re: SJSB new version...
« Reply #12 on: February 06, 2009, 02:15:24 PM »
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!!!

Offline dextrous

  • Semi-Newbie
  • *
  • Posts: 98
  • Gender: Male
    • Cricketvoice
Re: SJSB new version...
« Reply #13 on: April 08, 2009, 05:21:20 AM »
Cool, will try this out. Anything on SMF 2.0 and Joomla 1.0 series?

Offline CapadY

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,151
  • Gender: Male
Re: SJSB new version...
« Reply #14 on: May 04, 2009, 04:34:21 PM »
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.

Offline FidelGonzales

  • Semi-Newbie
  • *
  • Posts: 66
  • Gender: Male
    • @FidelGonzales on Twitter
    • http://ActionArmory.co
Re: SJSB new version...
« Reply #15 on: May 04, 2009, 06:11:51 PM »
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.

Offline Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 57,098
  • Gender: Male
    • Kindred-999 on GitHub
Re: SJSB new version...
« Reply #16 on: May 04, 2009, 09:59:58 PM »
"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.
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

Offline CapadY

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,151
  • Gender: Male
Re: SJSB new version...
« Reply #17 on: May 05, 2009, 03:36:14 AM »
"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.

Offline Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 57,098
  • Gender: Male
    • Kindred-999 on GitHub
Re: SJSB new version...
« Reply #18 on: May 05, 2009, 07:39:55 AM »
no...   not "from outside".

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


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

Offline FidelGonzales

  • Semi-Newbie
  • *
  • Posts: 66
  • Gender: Male
    • @FidelGonzales on Twitter
    • http://ActionArmory.co
Re: SJSB new version...
« Reply #19 on: May 05, 2009, 01:22:27 PM »
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;