Gossamer Forum
Home : Products : Links 2.0 : Customization :

Christian Links Return Sender Error

(Page 1 of 2)
> >
Quote Reply
Christian Links Return Sender Error
When I post a search from the outside search box I get a HTTP 404 page with the following in the address field up top;http://www.whycertainly.net/Search/Newspapers/<http://www.homewithgod.com/cgi-homewithgod/links/search.cgi/?asite_url=http%3A%2F%2Fww w.whycertainly.net&asite_title=&query=newspapers.
I have added the following to my sub_html_search_resultsin the site_html_templates.pl
Code:
sub site_html_search_results {
# --------------------------------------------------------
# This routine displays the search results.
#
my $term = &urlencode ($in{'query'});
&html_print_headers;
print &load_template ('search_results.html', {
term => $term,
link_results => $link_results,
category_results => $category_results,
next => $next,
cat_hits => $cat_hits,
link_hits => $link_hits,
asite_url => $asite_url,
asite_title => $asite_title,
%in,
%globals
});
}
and put the following code in my search box form
Code:
<form action="<http://www.homewithgod.com/cgi-homewithgod/links/search.cgi/" method="GET">
<INPUT type="hidden" name="asite_url" value="http://www.whycertainly.net">
<INPUT type="hidden" name="asite_title" vaue="WhyCertainly.net">
<h2>Search</h2>
<div class="margin">
<table border="0" cellspacing="0" cellpadding="0">
<tr><td><input type="text" size=15 name="query"> <input type=submit value="Search!"></td></tr>
</table>
</div>
</form>
and the following in my search_results.html
Code:
<%if asite_url%>
Return to <a href="<%asite_url%>"><%asite_title%></a>
<%endif%>
What am I overlooking?


------------------
Jimmy Crow
http://www.homewithgod.com
webmaster@homewithgod.net
Quote Reply
Re: Christian Links Return Sender Error In reply to
You have a syntax error in your form line:

Code:
<form action="<http://www.homewithgod.com/cgi-homewithgod/links/search.cgi/" method="GET">

You have < before the http:// in the action attribute of the form.

Replace the above codes with the following:

Code:
<form action="http://www.homewithgod.com/cgi-homewithgod/links/search.cgi" method="GET">

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
* Check Resource Center
* Search Forums


[This message has been edited by AnthroRules (edited February 26, 2000).]
Quote Reply
Re: Christian Links Return Sender Error In reply to
Thank you Eliot, that fixed that probleb but when my search result are diplayed the return link is not there.. When I look at the source code of the results page, I see that links has failed to insert the code

<%if asite_url%>
Return to <a href="<%asite_url%>"><%asite_title%></a>
<%endif%>

on the built page.



------------------
Jimmy Crow
http://www.homewithgod.com
webmaster@homewithgod.net
Quote Reply
Re: Christian Links Return Sender Error In reply to
Have you installed the Enhanced Template.pm module? If not, then you need to have tags on separate lines, like the following:

Code:
<%if asite_url%>
Return to <a href="<%asite_url%>">
<%asite_title%></a>
<%endif%>

The Enhanced Template.pm codes are located in the Modification section of LINKS 2.0 in the Resource Center.

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
* Check Resource Center
* Search Forums
Quote Reply
Re: Christian Links Return Sender Error In reply to
I do not have the enhanced templates installed. I put the tags on seperate lines but when it built the search results it failed to build the return link. I put the code of your last reply on the search_results.html, that is where it goes isn't it. When I was readiding the mod instructions I felt like it was telling me to add it to the sub site_html_search_results in the site_html_templates.pl but every way that I tried to add it produced an error, so I put it in the search_results.html where I want it to appear. Is this where I went wrong?
Or would the best approach be to stop what I am doing and install the Enhanced Template.pm module?

------------------
Jimmy Crow
http://www.homewithgod.com
webmaster@homewithgod.net
Quote Reply
Re: Christian Links Return Sender Error In reply to
YOU NEED TO PUT THE CODES IN THE SEARCH_RESULTS.HTML FILE! YOU NEED to D E F I N E the TAGS in the site_html_search_results sub-routine as you've already done!

The only reason I asked about the Enhanced Template.pm file is that you can put more than one tag on the same line. Without the Enhanced Template.pm, you have to put tags on separate lines!

Does this make better sense???

Wink

Best of luck!

BTW: Are you even using template files in your other web pages? If not, then you need to edit the site_html.pl file and forget about the site_html_templates.pl and the search_results.html template file.

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
* Check Resource Center
* Search Forums


[This message has been edited by AnthroRules (edited February 25, 2000).]

[This message has been edited by AnthroRules (edited February 25, 2000).]
Quote Reply
Re: Christian Links Return Sender Error In reply to
yes I am using templates on the other pages, I dont know what is wrong, I've been trying to figure this out for two days now. I have only been working with perl for a couple of months now so I am still new to this. I guess I need to keep trying different things to try and solve the problem.

------------------
Jimmy Crow
http://www.homewithgod.com
webmaster@homewithgod.net
Quote Reply
Re: Christian Links Return Sender Error In reply to
this is the code that I have in thetable on my search_results.html. Does it look right?

Code:
<div align="center"><center>

<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td align="center" width="20%"><img src="http://www.homewithgod.com/Images/hwglogo130x130.gif" width="130" height="130"></td>
<td align="center" width="80%"><br>
<!-- BEGIN CYBERGRACE BANNER EXCHANGE 2000 CODE --><a
href="http://cgx2000.com/cgi-local/bpwork2.cgi?advert=NonSSI&page=01"><img
src="http://cgx2000.com/cgi-local/bpwork2.cgi?ID=bp575&page=01"
border="0" width="468" height="60"></a> <br>
<a href="http://cgx2000.com"><font size="2">Cybergrace
Banner Exchange 2000</font></a><font size="2"> </font><!-- END CYBERGRACE BANNER EXCHANGE 2000 CODE --><br>
<br>
<font color="#006799" size="2" face="Arial"><strong>For
reservations at "Our Father's House"
Please enter: John 3 :16</strong></font><br>
<br>
<br>
<%if asite_url%>
Return to <a href="<%asite_url%>">
<%asite_title%></a>
<%endif%>
</td>
</tr>
</table>
</center></div>

------------------
Jimmy Crow
http://www.homewithgod.com
webmaster@homewithgod.net
Quote Reply
Re: Christian Links Return Sender Error In reply to
Well, the codes you have I am using, which are taken straight from the Mod Instruction Page...For an example....

Go here:

http://vlib.anthrotech.com/bin/search.cgi?asite_url=http://www.anthrotech.com/&asite_title=Test&query=anthropology&bool=or&format=full

See the link at the bottom of the Page?

Return to Test

And I am using templates.

Wink

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
* Check Resource Center
* Search Forums


[This message has been edited by AnthroRules (edited February 25, 2000).]

[This message has been edited by AnthroRules (edited February 25, 2000).]

[This message has been edited by AnthroRules (edited February 25, 2000).]

[This message has been edited by AnthroRules (edited February 25, 2000).]
Quote Reply
Re: Christian Links Return Sender Error In reply to
Well leave it to me to get in a jam like this. Would there be some other part of the script (i.e) another file that could be stopping this from building the return link? I looked at your page and code and it appears that I am after the same output and layout as you have with the return link.

------------------
Jimmy Crow
http://www.homewithgod.com
webmaster@homewithgod.net
Quote Reply
Re: Christian Links Return Sender Error In reply to
Nope.

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
* Check Resource Center
* Search Forums
Quote Reply
Re: Christian Links Return Sender Error In reply to
Okay, I am now getting a Return to printed out on my page if there is an asite_url but it is not printing out the link itself. I'm not sure what I did to get the Return to part working because I've been playing around with it so mu much trying to figure it out. Any suggestions now?

------------------
Jimmy Crow
http://www.homewithgod.com
webmaster@homewithgod.net
Quote Reply
Re: Christian Links Return Sender Error In reply to
I tried accessing your site, which is slower than molasses in the summer time to access, and I could not pull up your search script.

So, for now...no suggestions.

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
* Check Resource Center
* Search Forums
Quote Reply
Re: Christian Links Return Sender Error In reply to
Thanks for letting me know, I just checked and the site is down and of course my web host's phone number has a constant busy signal. I will let you know as soon as it is back up.

------------------
Jimmy Crow
http://www.homewithgod.com
webmaster@homewithgod.net
Quote Reply
Re: Christian Links Return Sender Error In reply to
Okay, they have my site back up. I do not have Links 2.0 linked anywhere on my main site until I get everything working okay, but you can access it at http://www.homewithgod.com/links/pages/ I also have the following three pages in a local file if you would like to look at them;
http://www.homewithgod.com/...e_html_templates.txt
http://www.homewithgod.com/.../search_results.html
http://www.homewithgod.com/test/ext_search.htm

Thanks

------------------
Jimmy Crow
http://www.homewithgod.com
webmaster@homewithgod.net
Quote Reply
Re: Christian Links Return Sender Error In reply to
Okay... I think I know what the problem could be...I noticed that I do NOT have the asite_url and asite_title defined in my sub site_html_search_results.

Take the tag definitions out of that sub-routine and see if it works.

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
* Check Resource Center
* Search Forums
Quote Reply
Re: Christian Links Return Sender Error In reply to
Nope, I get the Return to but link is not built.

------------------
Jimmy Crow
www.homewithgod.com
webmaster@homewithgod.net


[This message has been edited by jcrow (edited February 26, 2000).]
Quote Reply
Re: Christian Links Return Sender Error In reply to
Welp, then I do NOT know what your problem is.

Sorry...

Best of luck!

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
* Check Resource Center
* Search Forums
Quote Reply
Re: Christian Links Return Sender Error In reply to
I just noticed the url in the top of my browser is http://www.homewithgod.com/cgi-homewithgod/links/search.cgi/?asite_url=http%3A%2F%2Fwww.whycertainly.net&asite_title=&query=poems It is putting http%3A%2F%2F instead of http:// Would this stop it from building the link?

------------------
Jimmy Crow
http://www.homewithgod.com
webmaster@homewithgod.net
Quote Reply
Re: Christian Links Return Sender Error In reply to
No. Those special characters are replacing the ://. That is how browsers interpret special characters like ://.

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
* Check Resource Center
* Search Forums
Quote Reply
Re: Christian Links Return Sender Error In reply to
Well I don't know what to do next? I did a complete new install of Links 2.0 without any mods. I installed the Return Link Mod and I am getting the same results. It only prints out "Return to" with no link. The only thing that I see that I did not follow the directions on is on the very first part of the instructions it says to add
asite_url => $asite_url,
asite_title => $asite_title,
to the sub_html_search_results. I added it to the sub site_html_search_results because I did not have the part Dan was referring to and assumed that he meant sub site. Other than that I followed directions to the tee.
Would this problem be better off posted in the Perl and CGI Forum?
p.s. I have uploaded a new copy of
http://www.homewithgod.com/...e_html_templates.txt
http://www.homewithgod.com/.../search_results.html
http://www.homewithgod.com/test/ext_search.htm
if anyone would like to try again at figuring this one out.
Thanks!



------------------
Jimmy Crow
http://www.homewithgod.com
webmaster@homewithgod.net
Quote Reply
Re: Christian Links Return Sender Error In reply to
As I mentioned in one of my previous Replies,

D e l e t e the following codes from the sub site_html_search_results routine in the site_html_templates.pl file:

Code:
asite_url => $asite_url,
asite_title => $asite_title,

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
* Check Resource Center
* Search Forums
Quote Reply
Re: Christian Links Return Sender Error In reply to
I had deleted it in the other copy of Links, but it gave me the same result. I have deleted it from this copy, but it is still giving the same results. "Return to" with no link. I have posted the revised copy of site_html_templates.pl at site_html_templates.txt

------------------
Jimmy Crow
http://www.homewithgod.com
webmaster@homewithgod.net
Quote Reply
Re: Christian Links Return Sender Error In reply to
Uh...Jimmy, IT IS WORKING!

The problem with the form that you have for people to test this...is that you have the following for the asite_title hidden field:

Code:
<input type="hidden" name="asite_title" value>

OF COURSE it is NOT going to print the asite_title with the above hidden field.

But if you use:

Code:
<input type="hidden" name="asite_title" value="test">

IT WILL print the ASITE_TITLE....

Don't believe me...

Go here:

http://www.homewithgod.com/...=test&query=test

It works....

Now as a suggestion you should put the same codes you have for the Affliate codes in your search_results.html in your search_error.html file, so that if no matches are found, the link and site title will appear in the error page.

*S I G H*

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
* Check Resource Center
* Search Forums
Quote Reply
Re: Christian Links Return Sender Error In reply to
Thank You, Thank You!
Hopefully one day I will be able to contribute to this forum, instead of just taking. You all have helped me a lot. It is much appreciated!

------------------
Jimmy Crow
http://www.homewithgod.com
webmaster@homewithgod.net
> >