Gossamer Forum
Home : Products : Links 2.0 : Customization :

Read this (search)

Quote Reply
Read this (search)
when I have search my pages it gives me this kind of out
but didn't have links. why is that and tell me how can I get this. I am using yahoo mod.

Search Results
Your search for test returned 1 categories and 2 Links.

Quote Reply
Re: Read this (search) In reply to
So, what you are saying is that no search results print out, right? It is most likely a problem with your <%link_results%> tags, which should be printed like the following in the search_results.html file:

Code:

<%if link_results%>
<%link_results%>
<%endif%>


BTW: There is a FAQ in the Resource Center in the Links section that addresses Tag Problems!

Wink

Regards,

Eliot Lee
Quote Reply
Re: Read this (search) In reply to
 
No I have the tages in my search result template here they are
---------------------------------------------------


<FONT face="Verdana, Helvetica, Arial" size="2">Your
search for <B>
<%query%>
</B> returned <STRONG>
<Ęt_hits%>
</STRONG> categories and <STRONG>
<%link_hits%>
</STRONG> Links.</FONT>
<%if next%>


<p><%if next%>



Pages: <%next%> </p>
<%endif%> <%if category_results%>
<h3>Categories:</h3>
<ul>
<Ętegory_results%>
</ul>
<%endif%> <%if link_results%>
<h3>Links</h3>
<%link_results%> <%endif%> <%if next%>
<p>Pages: <%next%></p>
<%endif%>


Quote Reply
Re: Read this (search) In reply to
Is that how the tags look in your search results template? If so, if you do not have the Enhanced Template Mod installed, you need to put all <% if...%> and <%endif%> tags on lines by themselves.

I hope this helps.

- Bobsie
bobsie@orphanage.com
http://goodstuff.orphanage.com/
Quote Reply
Re: Read this (search) In reply to
Sorry for duplicate message,
I don't understand what you are telling, (put all <% if...%> and <%endif%> tags on lines ).Before this I have Enhanced Template Mod installed, then it does not show anything,
No categories, No links on my results page. After that I have removed Enhanced Template Mod. Then it show category field, but links are not showing. that is my problem? Any suggestions please.
======================================================

This is my search results page codes
======================================================
<TR bgcolor="#FFFF98">
<TD>
<DIV align="center"><B><FONT face="Verdana" size="2"><B>Search
Results </B></FONT></B></DIV>
</TD>
</TR>
</TABLE>


<FONT face="Verdana, Helvetica, Arial" size="2">Your
search for <B>
test
</B> returned <STRONG>
2
</STRONG> categories and <STRONG>
3
</STRONG> Links.</FONT>
<h3>Categories:</h3>
<ul>
<li><A HREF="http://www.main.com/search/Arts_&_Entertainment/">Arts & Entertainment</A>:<A HREF="http://www.main.com/search/Arts_&_Entertainment/test/"><STRONG>test</STRONG></A>
<li><A HREF="http://www.main.com/search/Computer/">Computer</A>:<A HREF="http://www.main.com/search/Computer/internet test/">internet <STRONG>test</STRONG></A>

</ul>
<h3>Links</h3>
<p>Pages: </p>

======================================================

here's my result html template catagory and links parts...

======================================================



<p><%if next%> <font face="verdana,arial,helvetica" size="2">Priority</font> Pages: <%next%> </p>
<%endif%> <%if category_results%>
<h3>Categories:</h3>
<ul>
<%category_results%>
</ul>
<%endif%> <%if link_results%>
<h3>Links</h3>
<%link_results%> <%endif%> <%if next%>
<p>Pages: <%next%></p>
<%endif%>
<p><FONT size="2"><B>Try your search on other Search Engines</B><BR>

======================================================
Please tel me what's wrong.

please give me some examples.
Thanks.




Quote Reply
Re: Read this (search) In reply to
See the following codes:

Code:

<%if link_results%>
<h3>Links</h3>
<%link_results%> <%endif%> <%if next%>
<p>Pages: <%next%></p>
<%endif%>


You have tags jumpled all over the place! The tags need to be on separate, different, distinct, by themselves on DIFFERENT lines, like the following:

Code:

<%if link_results%>
<h3>Links</h3>
<%link_results%>
<%endif%>
<%if next%>
<p>Pages: <%next%></p>
<%endif%>


OR if you use the Enhanced Template.pm codes, you can have tags on the same lines like you have them.

Got it?

Wink

Regards,

Eliot Lee
Quote Reply
Re: Read this (search) In reply to
Before this I have Enhanced Template Mod installed, then it does not show up anything,
No categories, No links on my results page.

Now again I have instaled that one but same thing, Nothing in my search result page. And I dont understand these notes

.Note: This parse() includes the changes for
<%include filename%>
<%ifnot variable%> text <%endif%>
<%if variable eq 'string'%> text <%endif%>
You can use the following operators for comparision: eq, =, lt, gt, >, <.
------------------------------------------------------------

So if U could posible please publish the code for my search result page,I want to see getting this mod worked.
Thanks.


Quote Reply
Re: Read this (search) In reply to
I just did provide you the codes that you should use in my previous Reply.

QUESTION:

Do you have the Enhanced Template.pm codes installed? I am confused with all your posts!

Regards,

Eliot Lee
Quote Reply
Re: Read this (search) In reply to
I started with that saying
Yes,Yes

Quote Reply
Re: Read this (search) In reply to
Welp...I really don't know what to tell ya...Using either the codes I provided or the codes you have should work!

Have you edited search.cgi at all?

Regards,

Eliot Lee
Quote Reply
Re: Read this (search) In reply to
No problem Now it is right.
Thanks.

Quote Reply
Re: Read this (search) In reply to
Good...and HOW did you solve the problem???

Regards,

Eliot Lee
Quote Reply
Re: Read this (search) In reply to
I replaced new copy of search result file. and I have removed Enhanced Template. I think the problem is in Enhanced Template. But I don't know why ,some times I have lot of MOD's I installed (about 20) that will be the case.
That's all now it is working.

Thanks for your support.

Quote Reply
Re: Read this (search) In reply to
In Reply To:
I think the problem is in Enhanced Template.
Shouldn't be...since I and a lot of other LINKS users have it installed and it doesn't seem to have caused me or other Links users the amount of problems you've experienced.

Wink

Regards,

Eliot Lee
Quote Reply
Re: Read this (search) In reply to
I think the problem is in Enhanced Template.

Yes This is for me not for others(don't mind that)
thanks.