News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

SSI and other domain

Started by djmentos, May 05, 2009, 06:10:55 AM

Previous topic - Next topic

djmentos

Hi.
Id like to login and logout user on my other site with other domain.

SSI is working in forum domain area and subdomains (krolnet.pl, krolnet.pl/forum/, mp3.krolnet.pl),
but id like to use it on ucode.pl too and its not workind.

djmentos

i think its something with cookies?

Aleksi "Lex" Kilpinen

I would think the SMF Coding discussion might be a better place to ask this,
would you want this to be moved over there?
Slava
Ukraini!
"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

How you can help SMF

djmentos

#3
If u think so , it's all right with me.

@down: thx ;)

Aleksi "Lex" Kilpinen

I hope someone here can help you :)
Slava
Ukraini!
"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

How you can help SMF

Kermit

<iframe src="http://yourdomain.com/SSI.php?ssi_function=recentTopics" width="xx" height="yy" frameborder="0"></iframe>


You can use iframe tags for calling SSI.php from outside of your domain

You should just adjust recentTopics width="xx" height="yy"

PS: yourdomain.com should be the domain,which includes SSI.php

PS-2: SSI.php would NOT allow accessing SSI.php file by URL directly
My Mods
Please don't PM/mail me for support,unless i invite you
Formerly known as Duncan85
Quote
"Two things are infinite: the universe and human stupidity; and I'm not sure about the the universe."

A. Einstein

niko

I happen to have mod for this under development. Feel free to test.

Quote from: Niko on March 31, 2009, 04:32:36 PM
This mod is for making user logged into multiple domains.

For example, having forum in www.forum.com and site in www.site.com, user is automatically logged into both domains (or multiple forums sharing userbase).

In theory unlimited domains are supported but reality isn't the same as theory.

Need someone to test this!

Currently uses javascript but plan is to make it just hidden images. Also it doesn't support logout atm.

Can be tested by adding ";doGlobalLogin" to url. Logout can be done by calling loginHelper.php without parameters.

Based on code posted on:

http://www.simplemachines.org/community/index.php?topic=298932.0

Contains two parts:

Mod - Calls urls based on settings, giving info to loginHelper.php to log user in.

loginHelper.php - Handles call for mod, uses SSI.php. Works directly if forum directory can be called from other domain(s). Otherwise needs editing

Basically you need to make loginHelper.php available at every domain and add urls to settings of this mod (including loginHelper.php part)
Websites: Madjoki || (2 links retracted by team, links out of date and taken over.)
Mods: SMF Arcade, Related topics, SMF Project Tools, Post History

WIP Mods: Bittorrent Tracker || SMF Wiki

djmentos

My Lords... it works! :D

   
In case of problems ill write here, but now its all right.

thx ;*

djmentos

It's problem with redirecting.
im using <?php print ssi_login3('url'); ?>
and after login this URL is not loading.

djmentos

Hi again.

why it's not working on SMF rc 1-1 ?

Advertisement: