Gossamer Forum
Home : Products : Gossamer Links : Version 1.x :

Some Very Important Questions. Please Help?

Quote Reply
Some Very Important Questions. Please Help?
Hi,
I need a bit of help for the following Smile

1. How do I make it a limit to 10 results per page?

2. How do I edit the way the search results appear? Where it says what category the link is in.

3. Order the links so the highest rating is first down to the lowest?

4. Add Form fields on the add link form. Keywords (used for actual keywords), Multiple category selection (the user can select up to any amount of categorys to be in), and additional comments (for me to view, nothing for the DB)

Your help is very important and thanked very much.

A Beaton
www.nobags.com/pages

Quote Reply
Re: Some Very Important Questions. Please Help? In reply to
1. Edit Links.pm

# Turn on span mode. This will create new pages if a category has more
# then build_links_per_page links in it. It will break up the what's new listing
# into per day pages.
$LINKS{build_span_pages} = 1;
$LINKS{build_links_per_page} = 10;


2. Edit the template search_results.html in the directory templates

3. Edit Links.pm

# The default sort orders for links.
$LINKS{build_sort_order_category} = "isNew,isPopular,Title";

to $LINKS{build_sort_order_category} = "Ratings DESC";

4. Add these fields to your links.db using Table maintenance and then just use html to add these in your add template.

Kevin
Quote Reply
Re: Some Very Important Questions. Please Help? In reply to
# The default sort orders for links.
$LINKS{build_sort_order_category} = "isNew,isPopular,Title";

Sorry, should be
to $LINKS{build_sort_order_category} = "Rating DESC";

to span pages you need to make sure your Links.pm has

# Turn on span mode. This will create new pages if a category has more
# then build_links_per_page links in it. It will break up the what's new listing
# into per day pages.
$LINKS{build_span_pages} = 1;
$LINKS{build_links_per_page} = 10;

Then in your category pages, you need to add <%next_span%> to make the page toolbar to span pages.

<%if next_span%>
<small>Pages: <%next_span%></small>
<%endif%>

To get rid of title linked in search, just delete, <%title_linked%> in search_results.html in templates.

You should read the instructions in admin to get a better idea of how Links works. It may take a while if you aren't a PERL programmer. I'm not really but it's easy to pick up easily in a month or so.

Good luck,

Kevin

Quote Reply
Re: Some Very Important Questions. Please Help? In reply to
Thanks

I haven't got any readme. Do you think you could mail it to me?

Alex
Quote Reply
Re: Some Very Important Questions. Please Help? In reply to
The readme txt isn't very useful. I meant to read the instructions that are displayed when you access admin.cgi

Kevin
Quote Reply
Re: Some Very Important Questions. Please Help? In reply to
The search results are a problem. It was discussed in:


http://www.gossamer-threads.com/scripts/forum/resources/Forum9/HTML/000432.html



------------------
POSTCARDS.COM -- Everything Postcards on the Internet www.postcards.com
LinkSQL FAQ: www.postcards.com/FAQ/LinkSQL/







Quote Reply
Re: Some Very Important Questions. Please Help? In reply to
Kevin,

I have done this, but the rating order is still the same, the listings now have 10 results per page, but no link to the next page.

Could you guide me further?