Read Me: How To Help Integrate SMF With Your Favorite System

Started by Oldiesmann, May 21, 2004, 02:28:32 PM

Previous topic - Next topic

Daniel15

QuoteIs the bridge what would make it possible for my members to have one "log in" that will work for both the front page Mamabo (for leaving comments on blogs) and Log In to the SMF Forum?
Yes, that's exactly what a bridge is - It "bridges" the two scripts, allowing them to share the same userbase.
As far as I know, there's an official bridge for Mambo available in the downloads section on this site :).
Daniel15, former Customisation team member, resigned due to lack of time. I still love everyone here :D.
Go to smfshop.com for SMFshop support, do NOT email or PM me!

tigra

Hi, I recently bridged SMF and Efiction, but when i log in it takes me to the forum, i would like to redirect it back to my Efiction page as this is my homepage, can anyone help me?

I have searched everywhere, found solutions for others such as mambo, xoops etc but not Efiction.

Can someone please help me its driving me crazy trying to figure it out  :(

tigra

Is no one answering because this can't be done??

:(

If it can't be done could someone please please let me know so I stop spending so much time trying to figure it out,  and I will then just have to scrap SMF from my website altogether.

Orstio

Quote from: arya on February 19, 2007, 02:50:38 AM
I use a cms which allows integration with smf. following is the code which checks smf table for and validates the user. However this code doesnt log in the user. The login form is contained within the cms. I do not have more details on how it works. It is part of some protected code which the developer has been kind enough to give me.

if ($user_system == "smf") {

$username = $_POST[username];
$password = $_POST[password];

$username_fixed = mysql_real_escape_string($username);
$password_fixed = mysql_real_escape_string($password);

$fullmd5 = sha1(strtolower($username_fixed) . $password_fixed);

$sql = mysql_query("SELECT * FROM $user_system_usertable WHERE memberName='$username_fixed' AND passwd='$fullmd5'");
$logincheck = mysql_num_rows($sql);

while ($row = mysql_fetch_assoc($sql)) {

**LOGIN USER TO CMS **
**SET CMS COOKIES**

}
}


Is it possible in some way to write the smf cookie writing procedure along with cms login code?  

You can use SMF's setLoginCookie() function.

singh_rocky


Oldiesmann

Search the wordpress site. I believe someone already made a wordpress bridge. However, there won't be an official bridge from us because of licensing conflicts (similar to Joomla - GPL with on exceptions)

TheRenegade

I have been looking for a SMF/phpnuke bridge. I DO not want to have to use SMF-nuke, as it limits you to only SMF themes. I know that there have been MANY questions about this all over the place, but no one seems to have one. Any help guys??

Oldiesmann

I'd recommend staying away from PHP-Nuke altogether. It's bloated and has a history of security problems.

MrPhil

I'm looking to do something with SMF that I guess falls under the heading of a "portal". I am building a site with a password-controlled access, whose Home Page will then link to SMF (for discussions), a Wiki (for "fixed" information reference), and (future) possibly a gallery. I want 1) to keep outsiders off of all parts of the site, and 2) to have a single account name and password to sign on with. I'm not particularly looking (at this point), to seamlessly integrate the applications (such as SMF) into a common "look and feel". Maybe later with that, but for now, all the applications can have their own look and feel.

At the moment, the choice is either a password-protected directory tree or a homebrew sign-in form. I'm assuming that SMF can be adequately locked down so that "guests" can't see or post anything without being logged in (and I'll have to see about the Wiki and gallery). The question is how to get the account name (and password, if needed) from the initial sign-on to SMF and other applications. In other words, to tell SMF that "this is user X, they're already signed on so don't ask them for a name and password". Does user X also exist in the SMF user database? If so, can they be added by bridge or portal function calls? Presumably I can directly update the SMF (and Wiki) user databases to add and delete users, but it would be nicer if there's an official way to do it.

Is there portal code that already handles all this? TinyPortal? Does it easily let me pull in non-SMF applications? For another site, I'm thinking about SMF and a shopping cart, and would like a sign-on to either one to also sign on to the other. This is a bit different than a "portal" (?) where you enter through sign-on to a common parent page -- this is more "peer-to-peer". Can this also be handled by the same mechanism? Thanks for any info and suggestions!

Vik_R

Here's a question.  My app has its own registration system, and I plan to set it to validate new registrations via email. Of course, I'll have SMF validate registrations via email also.  So let's say someone registers via my app, and my app sends out an email, and the user clicks the link and validates the registration. At that point, I can register the user with SMF using SMF_api.  Is there a way to tell SMF not to send out a second email to validate the person?

Oldiesmann

#30
MrPhil - There are lots of possibilities for you. I'm using Sphinx, Gallery2 and Mediawiki on my site, but there are several other portals, galleries and wikis that can be used as well.

MrPhil

Thanks, Michael. Are Sphinx, Gallery2, and Mediawiki all peer applications, or is one of them a portal? Is there a mechanism to share sign-ins among the three of them? I want to (site 1) have a portal or gateway that forces a visitor to sign in, and then permits them into the peer applications (SMF and a Wiki, hidden from outside view); and (site 2) have a sign-in from any peer application (SMF and eStore) work for any other application (guests are free to browse, but only members can post or buy).

WillyP

Howdy! I have SMF and WikkaWiki on a site, I am going to try to integrate them so as to use the SMF user registration, login and user managment.

There is a page on the wikka site, Wikka with Simple Machines, but it is old and only addresses logging in to both. I tried it but it does not seem to do even that, I believe it was for an older Wikka version.

Ideally I could just change Wikka to look at the DB existing for SMF, and redirecting users to the SMF reg/login page... but Wikka requires usernames in CamelCase, so I don't know if that will be a problem.

TonyG

Quote from: MrPhil on December 23, 2007, 01:12:43 PMIs there a mechanism to share sign-ins among the three of them? I want to (site 1) have a portal or gateway that forces a visitor to sign in, and then permits them into the peer applications (SMF and a Wiki, hidden from outside view); and (site 2) have a sign-in from any peer application (SMF and eStore) work for any other application (guests are free to browse, but only members can post or buy).
I'm looking for exactly the same thing. It's a shame that at this point in the evolution of so many tools that more hasn't been done to create a simple universal login where all of these packages just call to one common routine to authenticate against one common database. As it is, every package does the exact same thing some completely different way with data stored in different places.

Personal integration aspirations: SMF, WordPress, MediaWiki, Mantis Bug Tracker.
I can probably use Joomla, some Ecommerce package like ZenCart, and Gallery.

Troy Wingate


Kindred

no...  phpbb and smf use completely different coding and database structure...

Сл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."

QueenTiye

Is there a list of successful (and reuseable) integration methods? I'm doing a search for a WordPress integration, and all I'm seeing is complaints about the integration not working - that's on page 1 of 82 search results.  There's got to be a better way to collect portal info that that!

QT

eclipsenow

Here's another way of looking at it, that I may have asked awkwardly on another site, but what if I asked the "portal" question backwards? Rather than "How do I integrate this with XYZ CMS thingy" what if I asked the new question:

"I make SMF my new 'religion' and let them tell me which blog to use?"
Is there an SMF recommended, developed and supported plug-in PORTAL that at least gives me a blog as a home page?  8)
* Please don't PM me for help, I DON'T KNOW ANYTHING ANYWAY!
* Please tick your thread as "resolved" when after you have implemented solutions to your problem

Eclipse Now predicts...
2015: Airlines bankrupt, freight routes collapse, agricultural crisis and the "Greater Depression" begins. Welcome to the end of the oil age!  (We had better leave oil before it leaves us!)

Kindred

no...

there are several blog plugins (felBlog, zCommuntity and maybe some others)
There are several portal plugins (FelPortal, EZPortal, TinyPortal)

there are also several bridges to CMS system like mambo, and a few others which have their own links to blogs and other systems.
Сл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."

eclipsenow

It's funny how much one's perspective can change in a short period of time. One of the main reasons I wanted "integration" was to save managing another software package, and then the "bridge" between the 2. I just wanted the whole thing to be easy and "plug-in" and I can understand that there's a place for that.

But then another thought occurred. Once integrated, are the 2 databases completely mixed up so that converting either of them to other software in the future would be impossible?

I'm not just making a personal preference choice here, but am thinking of the future of what could become a very large activist group that might even "Associate" in the future. So if the 2 databases of blog/web files and forum files became inseparable and "locked in" to whatever SMF + TP combination I came up with, they might regret it later on? Is that how the databases work? Sorry, I know nothing about databases really except that you need to know their names when installing.  ;D
* Please don't PM me for help, I DON'T KNOW ANYTHING ANYWAY!
* Please tick your thread as "resolved" when after you have implemented solutions to your problem

Eclipse Now predicts...
2015: Airlines bankrupt, freight routes collapse, agricultural crisis and the "Greater Depression" begins. Welcome to the end of the oil age!  (We had better leave oil before it leaves us!)

Advertisement: