Topics

User Functions

Events

There are no upcoming events

What's New

Stories

No new stories

Comments last 2 weeks


Trackbacks last 2 weeks

No new trackback comments

Links last 2 weeks

No recent new links

NEW FILES last 14 days

No new files

Welcome to Geeklog Tuesday, June 18 2013 @ 09:01 PM EDT


 Forum Index > Extensions > Plugins New Topic Post Reply
 External page plugin prob
   
alinford
 02/04/03 11:16PM (Read 1697 times)  
++++-
Regular Poster

Status: offline


Registered: 01/06/03
Posts: 96
I have everything worrking, however, in the External Plugin admin area, there is a spot that gets filled in with a link. This link is showing up like this:
http://www.linford.net/gl/gl/genealogy/search.php

It should be like this:
http://www.linford.net/gl/genealogy/search.php

This is what is automatically filling in the first time I go to a page.

How do I fix this?

 
Profile Email Website
 Quote
tomw
 02/05/03 08:50AM  
+++++
Full Member

Status: offline


Registered: 08/12/02
Posts: 300
The default templates take the file name from the variable $SCRIPT_NAME. As I said in the documentation, its best to fill this in with the actual name url of the page because the $SCRIPT_NAME variable sometimes does not get set correctly. I do not know whos problem this is PHPs or Apaches.

The simple answer to your question is to fill in the correct url in place of substr($SCRIPT_NAME,1) in the file. You can then either edit the url so that is correct in the admin area or delete the entry and let it get created automagically.

TomW

 
Profile Email Website
 Quote
Anonymous: Anonymous
 02/09/03 03:10PM  



Tom,
that did not fix the prblem as it is still generating the same bad url.

Where in the script is this url being generated? I am assuming that it is adding multiple variables together to create it. So I am wondering what the variables are and where they are stored.

 
 Quote
Anonymous: Anonymous
 02/10/03 08:03AM  



The url is generated from whatever you put in place of the variable. All the magic is done in the simple routine SEC_externalAccess in functions.inc. And that just takes the url that is passed to it.

What does not work? Does it record hits and limit access? Where is the doubled url? You should not even have a complete url unless you are evaluating php pages for search.

In other words, I am stumped, because urls are never created by the external access plugin.

TomW

 
 Quote
alinford
 02/10/03 09:11AM  
++++-
Regular Poster

Status: offline


Registered: 01/06/03
Posts: 96
Sorry for the confusion.
When I click on the External Pages link in the Admin Only block, it show a list of the external pages. An example URL from there is:
gl/genealogy/search.php
This link, when clicked, goes here:
http://linford.net/gl/gl/genealogy/search.php

For some reason there is one gl too many.

Since no one ever uses these links, who cares that they are a little screwed up.

The problem is that, although hits are counted correctly, I can't limit access to the pages.

The problems may be unrelated, but I was hooping that if I could fix the URL/Link issue, the acces issue would be solved as well.

I have tried putting the file names into the variable area, but this has not helped so far.

 
Profile Email Website
 Quote
Content generated in: 0.37 seconds
New Topic Post Reply

Normal Topic Normal Topic
Sticky Topic Sticky Topic
Locked Topic Locked Topic
New Post New Post
Sticky Topic W/ New Post Sticky Topic W/ New Post
Locked Topic W/ New Post Locked Topic W/ New Post
View Anonymous Posts 
Able to post 
Filtered HTML Allowed 
Censored Content