Not many changes, I only use one template for the regular page, and error page, and i don't think mines is like Eliots usage wise, though it could be. Mines like i said uses a template and doesn't print the page from the cgi.
Bmxer's script is nicer because it works with one template file. My script includes many sub-routines for the different error messages. Not very pretty to say the least.
Regards,
------------------
Eliot Lee
Anthro TECH,L.L.C
www.anthrotech.com
----------------------
Regards,
------------------
Eliot Lee
Anthro TECH,L.L.C
www.anthrotech.com
----------------------
Dec 3, 1999, 11:04 AM
Veteran (1311 posts)
Dec 3, 1999, 11:04 AM
Post #79 of 102
Views: 7382
Hey, sorry for not replying sooner, I've been busy with a History project. I changed it to use one template, which also has an <%if error%> <%error%> <%endif%> thing, to process errors. I added the Spanish to English, Italian to English, and so on... , and i added the other types of errors Altavista has so it now doesn't leave my site with an error. AKA, Frame Error, and Fetch Error which in the script is written as Fetch error. I put the template code up by tomorrow, and also the cgi code.
Dec 4, 1999, 5:20 PM
Veteran (1311 posts)
Dec 4, 1999, 5:20 PM
Post #81 of 102
Views: 7390
Ok, its up at my mod site -
Remember, the original code is Widgetz, I just have some modifications.
http://lookhard.hypermart.net/links-mods/
Remember, the original code is Widgetz, I just have some modifications.
http://lookhard.hypermart.net/links-mods/
Dec 4, 1999, 5:48 PM
Veteran (2260 posts)
Dec 4, 1999, 5:48 PM
Post #82 of 102
Views: 7363
i deleted my /sql directory today because i no longer need those scripts in there.. (links 2.0 modded to SQL).. since i HAVE links sql..
so you'll have to find another source for translate.cgi.. please keep in mind though i have a new version of translate.cgi coming.. it includes all the fixes of the previous version that HAS NOT been fixed yet..
jerry
so you'll have to find another source for translate.cgi.. please keep in mind though i have a new version of translate.cgi coming.. it includes all the fixes of the previous version that HAS NOT been fixed yet..
jerry
Dec 4, 1999, 9:06 PM
Enthusiast (504 posts)
Dec 4, 1999, 9:06 PM
Post #83 of 102
Views: 7316
Greetings All!
Works for me ! Only thing is I get the same issue as theguy!
------------------
www.nzcid.godzone.net.nz
New Zealand Christian Internet Directory
Works for me ! Only thing is I get the same issue as theguy!
Quote:
Content-type: text/html------------------
www.nzcid.godzone.net.nz
New Zealand Christian Internet Directory
Okay...I am getting somewhere. I changed $in{'url'} to $in{'URL'} and NOW the only thing that prints in the input blank is http://.
Any ideas?
Regards,
------------------
Eliot Lee
Anthro TECH,L.L.C
www.anthrotech.com
----------------------
Any ideas?
Regards,
------------------
Eliot Lee
Anthro TECH,L.L.C
www.anthrotech.com
----------------------
Bmxer,
I can't get the form to work properly. Is your URL field case sensitive (url) in your links.def file? I tried using both value="<%url%>" and value="<%URL%>" for the input blank (although I changed it to a text box). And I keep getting a fetch error and the URL does not appear in the text box.
Here is the complete codes I am using for the text box:
Any ideas or suggestions?
Also, about linking it from the link.html template file, I am using the following codes:
Regards,
------------------
Eliot Lee
Anthro TECH,L.L.C
www.anthrotech.com
----------------------
[This message has been edited by Eliot (edited December 05, 1999).]
I can't get the form to work properly. Is your URL field case sensitive (url) in your links.def file? I tried using both value="<%url%>" and value="<%URL%>" for the input blank (although I changed it to a text box). And I keep getting a fetch error and the URL does not appear in the text box.
Here is the complete codes I am using for the text box:
Code:
<textarea name="url" value="<%URL%>" rows="6" wrap=virtual cols="56"></textarea>Any ideas or suggestions?
Also, about linking it from the link.html template file, I am using the following codes:
Code:
<a href="<%db_cgi_url%>/translate.cgi?url=<%URL%>">Translate Link</a>Regards,
------------------
Eliot Lee
Anthro TECH,L.L.C
www.anthrotech.com
----------------------
[This message has been edited by Eliot (edited December 05, 1999).]
Dec 5, 1999, 10:26 AM
Veteran (2260 posts)
Dec 5, 1999, 10:26 AM
Post #88 of 102
Views: 7377
translate.cgi v2 allows what global.cgi does.. yes.. it's written in strict so it's better (links 2.0 users will need to comment that line)
also.. i remade from scratch that spider.cgi and this time i know i'm going to redistribute it.. it's much better..
plus it works with SQL so it's fast..
and i am no longer using LWP to do all this stuff.. i am able to retrieve the last modified time, content-type, document length, and the language of the file..
right now i have it working on flatfile using grep and it's more stable than the original one.. I don't want to put in on SQL for demo cause I will probably go over my 35 mb limit
jerry
also.. i remade from scratch that spider.cgi and this time i know i'm going to redistribute it.. it's much better..
plus it works with SQL so it's fast..
and i am no longer using LWP to do all this stuff.. i am able to retrieve the last modified time, content-type, document length, and the language of the file..
right now i have it working on flatfile using grep and it's more stable than the original one.. I don't want to put in on SQL for demo cause I will probably go over my 35 mb limit
jerry
Dec 5, 1999, 12:34 PM
Veteran (1311 posts)
Dec 5, 1999, 12:34 PM
Post #89 of 102
Views: 7314
Content-type: text/html isn't a problem, it only prints what the file is, and i don't know how i would get rid of it without making the cgi download, because the browser won't know what kind of File it is. I'll check into it more.
Eliot,
Where you changed $in{'url'} to $in{'URL'}
Change it back, in trans.html
should be this
<textarea name="url" value="<%url%>" rows="6" wrap=virtual cols="56"></textarea>
The reason its lowercase is because i have it like you,
<a href="<%db_cgi_url%>/translate.cgi?url=<%URL%>">Translate Link</a>
so $in{'url'} would equal $in{'URL'}.
Widgetz,
I'm looking forward to the global.cgi part of the translator, I have alot of Spanish 3 presentations i would like to translate with a click. Also spider.cgi, mostly the being able to get the language of a document. I assume you parse it against certain characters, or maybe clone it on your cgi, then use $ENV{'HTTP_ACCEPT_LANGUAGE'}. Whatever, anyway, can't wait.
Eliot,
Where you changed $in{'url'} to $in{'URL'}
Change it back, in trans.html
should be this
<textarea name="url" value="<%url%>" rows="6" wrap=virtual cols="56"></textarea>
The reason its lowercase is because i have it like you,
<a href="<%db_cgi_url%>/translate.cgi?url=<%URL%>">Translate Link</a>
so $in{'url'} would equal $in{'URL'}.
Widgetz,
I'm looking forward to the global.cgi part of the translator, I have alot of Spanish 3 presentations i would like to translate with a click. Also spider.cgi, mostly the being able to get the language of a document. I assume you parse it against certain characters, or maybe clone it on your cgi, then use $ENV{'HTTP_ACCEPT_LANGUAGE'}. Whatever, anyway, can't wait.
Still no go....
Oh well. The only reason I want to use your script is that it reduces codes in the site_html_templates.pl and translate.cgi and integrates the error codes into one template file.
Oh well.
Mine still works fine.
Regards,
------------------
Eliot Lee
Anthro TECH,L.L.C
www.anthrotech.com
----------------------
Oh well. The only reason I want to use your script is that it reduces codes in the site_html_templates.pl and translate.cgi and integrates the error codes into one template file.
Oh well.
Mine still works fine.
Regards,
------------------
Eliot Lee
Anthro TECH,L.L.C
www.anthrotech.com
----------------------
Dec 5, 1999, 1:34 PM
Veteran (2260 posts)
Dec 5, 1999, 1:34 PM
Post #91 of 102
Views: 7377
if you remove the first print "Content-type: text/html\n\n";
in translate.cgi it will fix that problem.. bmxer prints it again in the subroutine which is causing the problem..
bmxer.. the language of the document is not parsed with the content of the file.. the way your saying with the cloning using UA (guess) wouldn't work either.. as it would always be english.. ACCEPT language is something you set with your browser.. doesn't have to do with the page.. i made my own perl module to retrieve the page and all it's information
jerry
in translate.cgi it will fix that problem.. bmxer prints it again in the subroutine which is causing the problem..
bmxer.. the language of the document is not parsed with the content of the file.. the way your saying with the cloning using UA (guess) wouldn't work either.. as it would always be english.. ACCEPT language is something you set with your browser.. doesn't have to do with the page.. i made my own perl module to retrieve the page and all it's information
jerry
Dec 5, 1999, 1:59 PM
Veteran (2260 posts)
Dec 5, 1999, 1:59 PM
Post #92 of 102
Views: 7377
see..
edit your languages in netscape of internet explorer.. in netscape it's in
edit->preference->navigator->languages
in ie it's in
view->internet options->languages (at bottom)
put any one of these languages in any order
ANY french
ANY portuguese
ANY spanish
ANY german
italian
english
and go here:
http://www.pdamania.com/languages.cgi
that's what http_accept_languages is for.. nothing much really.. you can just send the user to a spanish page if he wants a spanish page.. not many sites do it..
jerry
edit your languages in netscape of internet explorer.. in netscape it's in
edit->preference->navigator->languages
in ie it's in
view->internet options->languages (at bottom)
put any one of these languages in any order
ANY french
ANY portuguese
ANY spanish
ANY german
italian
english
and go here:
http://www.pdamania.com/languages.cgi
that's what http_accept_languages is for.. nothing much really.. you can just send the user to a spanish page if he wants a spanish page.. not many sites do it..
jerry
Dec 5, 1999, 3:17 PM
Enthusiast (504 posts)
Dec 5, 1999, 3:17 PM
Post #95 of 102
Views: 7346
Greetings All!
By removing:
It gets rid of printing context text/html on the page but comes up with the above error.
------------------
www.nzcid.godzone.net.nz
New Zealand Christian Internet Directory
By removing:
Code:
malformed header from script. Bad header=Soul Seeker</TITLE><STYLE TYPE: /home/nzcid/cgi-bin/links2/translate.cgiIt gets rid of printing context text/html on the page but comes up with the above error.
------------------
www.nzcid.godzone.net.nz
New Zealand Christian Internet Directory
Dec 5, 1999, 3:29 PM
Enthusiast (504 posts)
Dec 5, 1999, 3:29 PM
Post #96 of 102
Views: 7349
Greetings All!
If I remove the part out of the header in trans.html and leave it with in translate.cgi it translates, but it still prints the above code on the html page.
------------------
www.nzcid.godzone.net.nz
New Zealand Christian Internet Directory
If I remove the part out of the header in trans.html and leave it with
Code:
print "Content-type: text/html\n\n";------------------
www.nzcid.godzone.net.nz
New Zealand Christian Internet Directory
May 8, 2000, 9:14 AM
Veteran (17240 posts)
May 8, 2000, 9:14 AM
Post #99 of 102
Views: 7433
The new link to this Mod is located in the Resource Center and also at the following URL:
hypermart.lookhard.net/links-mods/
Regards,
------------------
Eliot Lee....
Former Handle: Eliot
Anthro TECH, L.L.C
anthrotech.com
* Check Resource Center
* Search Forums
* Thinking out of the box (codes) is not only fun, but effective.
hypermart.lookhard.net/links-mods/
Regards,
------------------
Eliot Lee....
Former Handle: Eliot
Anthro TECH, L.L.C
anthrotech.com
* Check Resource Center
* Search Forums
* Thinking out of the box (codes) is not only fun, but effective.