close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

shadowbox login page

Thread began 3/15/2011 1:21 pm by markhaynes75235 | Last modified 9/11/2012 7:31 am by Dennis | 7211 views | 6 replies |

markhaynes75235

shadowbox login page

I've set up my login page to appear in a shadowbox using the shadowbox.js code at www.shadowbox-js.com/. Everything is working fine in the user login area of the site, but in directing users to the user login page on a restricted page using the SecurityAssist Restrict Access to Page server behavior, I'd like the user login page to appear in a shadowbox. Is there a way to define the rel= value in the

WA_Auth_RestrictAccess("<url to login page>");

code?

Thanks for your creative help!

enthusiastically...

Sign in to reply to this post

Jason ByrnesWebAssist

no, the restrict access redirect cannot apss the rel attribute, you would need to find a way to open the login form onload.

from their usage page:
usage.html


it looks like you can set a welcome message on the on;load function:


<link rel="stylesheet" type="text/css" href="shadowbox.css">
<script type="text/javascript" src="shadowbox.js"></script>
<script type="text/javascript">
Shadowbox.init({
// let's skip the automatic setup because we don't have any
// properly configured link elements on the page
skipSetup: true
});

window.onload = function() {

// open a welcome message as soon as the window loads
Shadowbox.open({
content: '<div id="welcome-msg">Welcome to my website!</div>',
player: "html",
title: "Welcome",
height: 350,
width: 350
});

};
</script>



it looks like the content argument can take a url:
content The actual content of the object (e.g. URL, HTML code, etc.)


so set the restriction redirect to go to a blank page, and set the shadowbox.open content argument to the url of the login page

Sign in to reply to this post

markhaynes75235

shadowbox login page

That's a workaround - I was able to get it to work by setting the Shadowbox player attribute to iframe. When it was set to HTML all I got was the URL displayed in the shadowbox.

I wonder if the onload could be put in a conditional script on the pages that check user login so that we can open the login page in a shadowbox without having to be sent to the login_loader page (that's what I call it).

Meanwhile, after I log in, I'm taken to the user Profile page as designed but then when I navigate back to the protected page via a link I put on the login_loader, it bounces me back to the login_loader page. Apparently I'm not being logged in even though the user profile page shows up after I click the Login button. Could this have to do with the login occurring in a child page instead of a parent page?

Thanks!

Sign in to reply to this post

Jason ByrnesWebAssist

I'm sure you could make the shadowbox.open function conditional, but is will require hand coding of the shadow box API that I cannot offer support for.

if you put the same link on another page besides the login loader page, does it work?

it could be that the login loader page is killing the session variable somehow.

Sign in to reply to this post

markhaynes75235

shadowbox login page

Thanks, I understand what you are able to support.

When accessing member login from the home page I get the login page in a shadowbox and am able to log in, then I'm taken to the profile page, indicating that the login was successful. When I close the shadowbox and attempt to access another page on the site which I've protected and set to redirect to the registration page. It redirects to the registration page, so perhaps there's an issue with the relationship between the parent page and the child page that does not allow the session to be retained in the parent page. I'll do some tests and see what I can turn up.

Thanks for your help as always!

Sign in to reply to this post

Jason ByrnesWebAssist

to help see whats going on, you could add this code to the registration and profile page, after the body tag:

php:
<?php var_dump($_SESSION); ?>




can you send a link to the login loader page so i can take a look at how this is set up

Sign in to reply to this post

Dennis

Did you get it to work?

Mark, did you ever get this to work?

I am interested in doing the same thing, however my preference is fancyBox 2 from fancyApps fancybox/

Dennis

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...