By Dave Beeston on Wednesday, 15 February 2017
Posted in General Issues
Replies 1
Likes 0
Views 215
Votes 0
I am using EasyBlog as an internal blog site for my organization. I intend on it being the "Splash" page for my Custom build applications portal site. As such I have encapsulated the site onto the landing page of the Applications Site within an I-Frame. All works well with one very frustrating exception. I am unable to "log-in" to edit, submit etc... blogs. If I log in to a direct link site outside of the I-Frame then load the site within the I-Frame, I am logged in and all appears to work, however I would really rather that we can log into the blog site within the I-Frame on the application site... Note this is an internal site and not directly available from the internet, however I am able to allow remote login to the server if it would help... The Applications/I-Frame site and the Joomla Site are on DIFFERENT Windows 2008 R2 Servers...

Here is what I think is happening.,..

Problem: Go to http://itdev03/itapps/apps/home/index.php click on cao page link and press the login button. The login silently fails.

Info: I have tried updating the source file found at:
itdev03:C:\inetpub\wwwroot\itapps\apps\home
I think the solution is to set the target to _parent:

<script type="text/javascript">
function onLoadIF(frame)
{
var elements = frame.contentDocument.getElementsByTagName("*"), //*******************************
len = elements.length;
while( len-- ) {
elements[len].target = "_parent";
}
}
</script>

<iframe
src="http://intranetdev.islandstrust.bc.ca/index.php/cao"
target='_parent'
onload="onLoadIF(this)"
align="left"
width="<?php echo $iframe_width; ?>"
height="<?php echo $iframe_height; ?>"
style="border:none">
Error: Your browswer is not including the iframe
</iframe>

However, contentDocument on the line with the //******* gives an access denied error.
Hello Dave,

When you login to the site, you are actually logging into Joomla and not EasyBlog. When you login using the form in EasyBlog, all it does is submits the login credentials to Joomla and Joomla would then authenticate the user.

Perhaps what you should do is to try logging in via Joomla. Having said that, I am not entirely sure how would this work because you are going to have an iframe rendering in an iframe and it's going to be really tricky.
·
Wednesday, 15 February 2017 02:20
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post