News:

Wondering if this will always be free?  See why free is better.

Main Menu

Mambo Open Source

Started by Sreya, February 24, 2004, 01:40:26 AM

Previous topic - Next topic

andrea

Quote from: Orstio on September 21, 2004, 11:29:08 PM
Here it is:

http://www.everything-science.com/uploadfiles/com_smf.zip

(Again, could somebody attach that for me?)

Follow the instructions in the readme file.  Please note that this bridge will not work with WhiteRabbit's modified files.  You must have the original SMF files to make this work.

Suggestion: work together with WhiteRabbit.

Andrea Hubacher
Ex Lead Support Specialist
www.simplemachines.org

Personal Signature:
Most recent work:
10 Aqua Themes for SMF



[Unknown]

#121
Next version (RC2), this will work:

<?php/** This is an SMF bridge component for Mambo Open Source.* Based on component created by Theodore Hildebrandt, September 20, 2004*/// First let's load the configuration.  This should give us $smf_path.require("components/com_simplemachinesforum/config.smf.php");// Now, let's set up the correct URL to this component.$myurl = $_SERVER['PHP_SELF'] . '?option=com_simplemachinesforum&amp;Itemid=' . $Itemid . '&amp;';// Start rewriting URLs and links.ob_start('smf_mosrewrite');// This is sorta a hack; disable output compression.  We take it off later.echo ' ';// Now load index.php as normal.require($smf_path . '/index.php');// Flush the buffer - if we don't, Mambo won't do it for us :(.ob_end_flush();ob_end_flush();// Back to Mambo's database we go!!mysql_select_db($GLOBALS['mosConfig_db']);$db_prefix = '`' . $db_name . '`.' . $db_prefix;// Rewrite any links in SMF's format to Mambo's format.  May require PHP 4.2.0+.function smf_mosrewrite($buffer){	global $scripturl, $Itemid, $myurl;	// Replace index.php? with $myurl, and index.php with $myurl.	$buffer = preg_replace('/"' . preg_quote($scripturl, '/') . '\?/', '"' . $myurl, $buffer);	$buffer = preg_replace('/"' . preg_quote($scripturl, '/') . '(?=[^&?])/', '"' . $myurl, $buffer);	// Take off that wee little space we put on before ;).	return ltrim($buffer);}?>


Tested and working ;).  Thanks for giving me the idea ;).

(still a few things might need to be redone *a little* though...)

-[Unknown]

Orstio

QuoteSuggestion: work together with WhiteRabbit.

Sorry, it's not that I made an effort to make sure that WhiteRabbit's files worked or didn't work.  The changes he has made to SMF did not seem necessary to me, and when I started on this bridge, it became apparent that I couldn't make both the original SMF and WhiteRabbit's modified files work.  That note is more of a caveat, that if you already have those modified files, this will not work for you.  It was not meant in spite, and I do appreciate all the work he has put into his integrated component.

QuoteNext version (RC2), this will work:

Does this work with SMF RC1?  If so, I'd rather use it;  Your code is a lot cleaner.

[Unknown]

I'm afraid it doesn't, but it accomplishes the same thing a lot cleaner with a few little changes to SMF here and there ;).

-[Unknown]

packman

Are the 'few little changes' things that can be made to the distributed SMF so that it works with the bridge(s). It would be fantastic to use an out-of-the-box SMF with an out-of-the-box Mambo just by adding a standard bridge component into Mambo.
Chris

NEMINI

caution here comes a noob question:

Not being familiar with 'bridging' components at all, what does this accomplish?  Is it just making smf appear inside mambo? Does one still have to log into mambo then into smf?  or is the login bridged as well?
signatures are boring.

[Unknown]

Quote from: GMINI03 on September 22, 2004, 01:30:41 PM
caution here comes a noob question:

Not being familiar with 'bridging' components at all, what does this accomplish?  Is it just making smf appear inside mambo? Does one still have to log into mambo then into smf?  or is the login bridged as well?

No, you're correct.  User authentication will have to be solved elsewhere, but at least it is shown within Mambo (you'll want to edit your template too, because this will produce two <html>s...)

There are a few problems with this still; access denied errors, like "you don't have permission to do x" will not be shown inside Mambo.  Does anyone know if Mambo has a shutdown function?  Forcing everything to just "fall through" the included file to show the layout is a bit too much; perhaps there's a "mos_show_footer"?  Anyone?

Orstio also made a component that handles duplicating registration information.  I don't know exactly what work Whiterabbit has done here, but this methodology can still simplify integration efforts, I think.  I asked both parties to tell me what needed to be done, and no one would - turns out it just needs to "fall through" index.php and everything will work, mostly.

Though, again, that really isn't ideal for error messages.

-[Unknown]

[Unknown]

Notes:

It should use setPageTitle or something, if possible.  Perhaps some other functions like that to affect html output.  Mambo really needs to make the end of index.php/index2.php a function, such that it can be called by components.  SMF would integrate like 50% better at the least.

-[Unknown]

Vhexor

Quote from: Orstio on September 13, 2004, 07:35:41 PM
I made a mod to Mambo's registration, so that it automatically writes the username and password to the SMF members table.  New users should be able to register, and use their username and password immediately without the confirmation form on entry to SMF.

If you have SMF RC1, Mambo Open Source 4.5 and WhiteRabbit's integrated component, this should work for you.

You can download the modified Mambo registration file here:

http://www.everything-science.com/uploadfiles/registration.zip

(Could somebody who is able to attach files do that for me?)

Unzip and upload to your com_registration folder.

Note that this will not synchronize existing users.  It will only synchronize new registrations.


Edit: file attached to this post as requested

Will this work if I have SMF set to send users an activation email?
Everyday I try to fail and succeed...
Merklo - Your source for vital information

Orstio

QuoteWill this work if I have SMF set to send users an activation email?

Yes, it works.

[Unknown]

Quote from: [Unknown] on September 23, 2004, 01:29:31 AM
<ambo really needs to make the end of index.php/index2.php a function, such that it can be called by components.  SMF would integrate like 50% better at the least.

http://forum.mamboserver.com/showthread.php?t=16466

There's also redirectexit... that can be fixed... and a template (sans html, etc.) needs to be written to maximize possible width, etc.

-[Unknown]

Tony Reid

Just so you all know....

Mambo4.51 has been released from RC status today is now a Final Release..

http://www.mamboportal.com/content/view/1643/2/

For anyone wishing to integrate it with SMF you can download it here as they dont seem to have updated the mamboserver.com site yet ....
http://mamboforge.net/

Tony Reid

packman

If my experience is typical I suspect uptake of 4.51 will be slow. I don't use a lot of extra components. but I found  most of the ones I have installed didn't work when I tested an upgrade using RC4. Unfortunately there aren't a lot of 4.5.1 compatible components around.
Chris

[Unknown]

Hmm... I was testing with 4.5.1.  I couldn't even get the link on the menu with previous.

Looks like they're ignoring my suggestion.  That's gonna mean minor modifications to both Mambo and SMF.

-[Unknown]

packman

Starting out with 4.5.1 is OK, as long as you don't want masses of components/modules. The problem is for users with sites based on earlier versions. Despite only being a 0.0.1 version upgrade there appear to have been some fairly significant structural changes. I found whole directory structures seem to have disappeared or moved.

Can you point us at where you've asked for the change to make SMF integration easier? Perhaps some other Mambo users could add their weight to the suggestion if we knew where to look?
Chris

[Unknown]

#135
Quote from: [Unknown] on September 23, 2004, 05:45:48 PM
Quote from: [Unknown] on September 23, 2004, 01:29:31 AM
Mambo really needs to make the end of index.php/index2.php a function, such that it can be called by components.  SMF would integrate like 50% better at the least.

http://forum.mamboserver.com/showthread.php?t=16466

There's also redirectexit... that can be fixed... and a template (sans html, etc.) needs to be written to maximize possible width, etc.

-[Unknown]

The link I gave above is where I made my suggestion.

-[Unknown]

Orstio

Hey [Unknown], I got approval at MamboForge to create a Mambo-SMF bridge component project.  Do you think the changes to Mambo you suggest can fall under that project?  If so, all bridge component files can be distributed from there.  This would probably get a few Mambo users converting to SMF.

I guess the biggest concern about this change would be to ensure that it doesn't keep other components from working properly.

I have to agree with Packman that MOS 4.5.1 is not yet fully supported.  There are only a few components and templates that have been updated for it.

Kris

So far, the bridge from Orstio works fine in my dev-site.
Just some little changes I made to the css file from SMF.
Mambo had some problems with font sizes like "small" and so. Really had to put 9pt.

Beside that I'm gonna make some mods for displaying some SSI stuff.
That way you can put some announcements and so on the frontpage.

I'm also thinking about a stripped down version of the forum layout like omitting the header with user and date. That one you already see in the portal.

Slack

Orstio, what version of Mambo are you building the bridge for? (I'd like to start looking at that version)

Thanks,
John


Slack

Kris, can we see you Development site?

Thanks,

Advertisement: