tags:

views:

57

answers:

1

I have a site that can be published and has SSO. The SSO works with an iframe, the user's details are given in the querystring, and one of the details has to be hashed (MD5). E.g: http://www.come2play.com/channel_auth.asp?channel_id=9000&uid=123456&nick_name=The+Man&auth_sig=dc952e4371e04551684afbcbf12cf14c

One of my publishers uses joomla and wants to use the SSO. He's not a programmer and gave me access to his joomla system as an administrator. All I have to do is add the iframe with the user's details, but I have no idea where to begin.

I saw how to get the user's details here: http:// docs.joomla.org/Accessing_the_current_user_object

Am I supposed to create a php page? A joomla artice? Extension? Module? Component? I'm not sure what is what, and my goal is quite simple. After I create the thing, where do I put it? (I have access to the web server).

Please help!

A: 

If you need to pass details to something in an iframe, create a new folder in templates/YOURTEMPLATE/html/ so that we can override the default behaviour.

wrapper --tmpl ----default.php

You then need to copy the files from components/com_wrapper/views/wrapper

If you look at the file, you will see the following code:

<iframe <?php echo $this->wrapper->load; ?>
id="blockrandom"
name="iframe"
src="<?php echo $this->wrapper->url."?username=".$user->username."&email=".$user->email; ?>"
width="<?php echo $this->params->get( 'width' ); ?>"
height="<?php echo $this->params->get( 'height' ); ?>"
scrolling="<?php echo $this->params->get( 'scrolling' ); ?>"
align="top"
frameborder="0"
class="wrapper<?php echo $this->escape($this->params->get('pageclass_sfx')); ?>">
<?php echo JText::_( 'NO_IFRAMES' ); ?>
</iframe>

If you look at the src attribute, you can see that I'm passing in the username and email. You should be able to do the same for other parameters

Jeepstone