Access dialog

For general issues related to PWB v2.

Moderators: Tyler, Scott, PWB v2 Moderator

Post Reply
MasseyRob
Contributor
Contributor
Posts: 32
Joined: Sun Nov 11, 2007 3:10 pm

Access dialog

Post by MasseyRob »

Hi.

I have a small problem with the access dialog and the catalog that we are in the midst of developing. When we are testing the catalog in PWB, we try to access a site that is not alowed, and it pops up with the dialog box. When the box times out, or the user presses OK, PWB will not allow you to use the page where the link was clicked, forcing the user to press the Back button (which many of the students here may overlook).

Is there a way I can replace the dialog boxes with HTML pages (this being so I can set a script to go back 1 or 2 history instances automatically)?

Thanks for your time

Rob

Scott
Site Admin
Site Admin
Posts: 2539
Joined: Mon Dec 16, 2002 12:31 pm
Location: Rochester, MN
Contact:

Post by Scott »

It may better to allow PWB access to the catalog. You can see the URL PWB is blocking by setting the following in the INI file.

[Security]
...
DebugAccessString=True
...

You can also use the Filter Check utility available on our download page to check a given URL against the URL filter file.

http://www.teamsoftwaresolutions.com/fi ... rCheck.zip

Otherswise, you can have PWB redirect to another URL when a URL is denied using the following setting in the INI file.

[Dialogs]
...
AccessURLRedirect=
...

--Scott

MasseyRob
Contributor
Contributor
Posts: 32
Joined: Sun Nov 11, 2007 3:10 pm

Post by MasseyRob »

Hi Scott

Thanks for that. The first (debug....) we are using PWB 2.0.5.1, and does not appear to be in this version (and at this stage, we are not in a position to go to a later version). Is this feature available on 2.0.5.1 or do we need to update? [EDIT] I have just installed the latest pwb on a virtual machine and set the debug string to True, and it did a good job of telling me what the URL was that I was clicking, but still the same issue :-(

The second (FilterCheck) - what is the filter file (URL.txt?)?

The Third (accessurlredirect) - we have tried this in numerous ways, we have created HTML files with an automatic back script to go past the dialog box, we made a html with a "Click Here toi return" to go back past the dialog (from -1 to -4 to try and get past), but it allways ends up stopping at the history instance for the dialog box and then we end up back at the "Click Here...) page. For now we have this set to go back to the initial search page, but unfortunately this is annoying people who are (either intentionally or unintentionally) clicking external links.

Any other sugestions are greatly apreciated.

Thanks

Rob

Scott
Site Admin
Site Admin
Posts: 2539
Joined: Mon Dec 16, 2002 12:31 pm
Location: Rochester, MN
Contact:

Post by Scott »

I guess it would be better if we could see what you are experiencing. Is the URL available on the Internet and can you send the steps to re-create the problem?

The filter files are specified in the INI file, are you using the URL, or IP filter? The FilterCheck is used to check any URL filter file used with PWB against a given URL.

--Scott

MasseyRob
Contributor
Contributor
Posts: 32
Joined: Sun Nov 11, 2007 3:10 pm

Post by MasseyRob »

Hi Scott

The url is http://kea.massey.ac.nz/ I don't know if you can replicate the issue as we are running this off the domain and with no access to the internet.

The way we have PWB set up on our in-house catalog computers that anyone can use look for books, and is set so that the only site that can be visited is kea.massey.ac.nz and no others. The problem is most likely directly related to our site as we have just done some major changes to it, and it maybe a java script that is causing the problem on the page (when you try to access outside links for articles and such). When the user clicks on a external link, the dialog box pops up, and when it times out or OK is clicked the page locks up (only the bottom part of the frame). As I was saying, this feature used to work fine till we changed our site (so absolutely no fault of PWB).

Basically what we are after is the ability to replace the Access dialog with a htm page in the browser so we can put a wee script into the page that will send the user back 2 history instences so they can continue using the page they were on. This would be a (ideal) temporary solution until we can sort the issue with the website.

Thanks for your help with this, and if you need any more info, please let me know.

Cheers

Rob

Scott
Site Admin
Site Admin
Posts: 2539
Joined: Mon Dec 16, 2002 12:31 pm
Location: Rochester, MN
Contact:

Post by Scott »

What do I need to do on the web page (http://kea.massey.ac.nz/) to get to an outside link to get the access dialog?

Please also send a copy of your INI, URL filter, and IP filter, files to support@teamsoftwaresolutions.com. This will allow us to duplicate your configuration and hopefully suggest a fix.

--Scott

Scott
Site Admin
Site Admin
Posts: 2539
Joined: Mon Dec 16, 2002 12:31 pm
Location: Rochester, MN
Contact:

Post by Scott »

Here is your current URL filter file.

-all
+kea.massey.ac.nz


You are missing a few things that may be needed such as +JavaScript and +About:Blank.

http://teamsoftwaresolutions.com/phpBB2 ... c.php?t=13

Anyway, using the PWB History and Tracking features and following your instructions, the following URL was being blocked.

http://ezproxy.massey.ac.nz/login?url=http://openurl.in...

If you want to allow this you will need to add the following.

+ezproxy.massey.ac.nz

In the case of the access redirect, I changed you URL filter file to the following.

-all
+JavaScript
+About:Blank
+kea.massey.ac.nz
+teamsoftwaresolutions.com


I then created a web page to take the user back in the history 2 pages. You can see the source on this page.

AccessURLRedirect=http://www.teamsoftwaresolutions.com/other/goback.htm

http://www.teamsoftwaresolutions.com/other/goback.htm

Which seems to give the desired functionality. Although allowing the other blacked URL would seem to make more sense to me.

--Scott

MasseyRob
Contributor
Contributor
Posts: 32
Joined: Sun Nov 11, 2007 3:10 pm

Post by MasseyRob »

Hi Scott

That's magnificent, thank you for this, with the help of the Go Back button it is working like a charm.

Cheers

Rob

Post Reply