Changing $urlroot

Post Reply
martin107
Posts: 8
Joined: Mon Feb 25, 2008 8:07 am

Changing $urlroot

Post by martin107 »

Hi,

I am attempting to set up Webinator 5 so that the search
form is displayed inside of an <iframe> element. This is so that I can manage the look and feel using the existing site structure without having to copy the Top and Bottom HTML each time a change is made, and also to obscure the search URL with "friendlier" one.

So, my assumption is that I need to change the urlroot variable so that the search forms generated by webinator will submit to my outer page instead of to itself. But the documentation implies that the urlroot variable should not be changed. If this is true, then how can I go about accomplishing this ? If not, then where can I change this variable.

Thanks.

Martin
User avatar
mark
Site Admin
Posts: 5519
Joined: Tue Apr 25, 2000 6:56 pm

Changing $urlroot

Post by mark »

When the form is submitted all of the query information would have to be passed through your iframe generating page to the new iframe. I don't know how you'd do that unless you're using some scripting language for those pages. If that's the case change all $url and $urlroot to the url of your outer page and have your script pass the entire query string into the webinator iframe.
martin107
Posts: 8
Joined: Mon Feb 25, 2008 8:07 am

Changing $urlroot

Post by martin107 »

Right, I can have the outer page pass through all
of the parameters.

So the question is, how/where do I go about changing $url and $urlroot ?

Thanks.
User avatar
mark
Site Admin
Posts: 5519
Joined: Tue Apr 25, 2000 6:56 pm

Changing $urlroot

Post by mark »

Use your favorite ascii editor and do a search and replace.

Also be prepared to handle cases where functions within the script are called, such as
$url/redir.html$urlq
$url/mlt$UrlExt$urlq
martin107
Posts: 8
Joined: Mon Feb 25, 2008 8:07 am

Changing $urlroot

Post by martin107 »

Thanks, but what file am I editing ? I found the search script where $urlroot is referenced, but I'm assuming I need to change it where it is actually defined.
i.e. I'm assuming there is a file somewhere that has a line that looks like:

urlroot = "/cgi-bin/texis"

or something similar. Either that or it's in a database somewhere.

Is this a valid assumption or are you suggesting I replace all occurrences of the term $urlroot in my search script with the hard-coded path ?

Thanks again for your help.
User avatar
mark
Site Admin
Posts: 5519
Joined: Tue Apr 25, 2000 6:56 pm

Changing $urlroot

Post by mark »

Yes, you need to replace $url and $urlroot in the script called "search". $url and $urlroot are constructed dynamically by vortex and can't be set as such.
martin107
Posts: 8
Joined: Mon Feb 25, 2008 8:07 am

Changing $urlroot

Post by martin107 »

Gotcha, thanks !
martin107
Posts: 8
Joined: Mon Feb 25, 2008 8:07 am

Changing $urlroot

Post by martin107 »

ok, so now that I have the frames interface set up, I need to have the HREF on the results links specify a target (target="_top") to break out of the frames.

Is there a way to do this ?

Putting the target tag on the form itself won't work, it needs to be on each individual link in the result set.

Thanks.
User avatar
mark
Site Admin
Posts: 5519
Joined: Tue Apr 25, 2000 6:56 pm

Changing $urlroot

Post by mark »

Modify the href generated in the result_title function of the search script.
martin107
Posts: 8
Joined: Mon Feb 25, 2008 8:07 am

Changing $urlroot

Post by martin107 »

Perfect, thanks !!
Post Reply