Gossamer Forum
Home : Products : Links 2.0 : Customization :

order of links, # of cool links

Quote Reply
order of links, # of cool links
Hi,

in links.cfg I set the no. of popular links to 30:

# Setting for popular cutoff, can either be a percent (i.e. top 3%), or
# a fixed value (i.e. top 10). Enter 0.03 or 10 respectively.
$db_popular_cutoff = 30; # Top 30

Nevertheless I have between 31 to 33 cool links (changing).

Another thing is the order of my links. Are they ordered alphabetically? My links are ordered chaotically. I couldn't find out an order scheme.

Phil.



Quote Reply
Re: order of links, # of cool links In reply to
In Reply To:
Are they ordered alphabetically? My links are ordered chaotically. I couldn't find out an order scheme.
Do you mean in your Category pages??? They are sorted by the following:

Code:

* New => isNew field
* Popular = isPopular field
* Alphabetical


Look in your sub build_sorthit routine...you will see what I am taking about.

In Reply To:
Nevertheless I have between 31 to 33 cool links (changing).
Try setting the variable to 28 to account for extra links being added.

Regards,

Eliot Lee
Quote Reply
Re: order of links, # of cool links In reply to
I mean the Category / New / Cool / Lastlink pages. Just look at this site: http://www.auktionsservice.de/links/pages/Cool/

I also made this change in links.cfg:

# Build Options
# --------------------------------------------------------
# Setting for popular cutoff, can either be a percent (i.e. top 3%), or
# a fixed value (i.e. top 10). Enter 0.03 or 10 respectively.
$db_popular_cutoff = 10; # Top 30

As you can see under the posted link, there are 32 cool pages. Also I set the number to 10!!!

Phil.

Quote Reply
Re: order of links, # of cool links In reply to
I know what you mean...And I provided the best solution and suggestions I have.

I don't know what the problem is with your LINKS script.

Good luck!

Regards,

Eliot Lee
Quote Reply
Re: order of links, # of cool links In reply to
Hi,

I changed my sorthit routine in db_utils.pl, because I have installed a mod. Here it is:

# ***************************************** 3 Shestopalov modification - begin **************
my (%sortby, %priority, %isnew, %iscool, %isbest, $hit, $i, @sorted, $column, $type);
# ***************************************** 3 Shestopalov modification - end ****************

What can I do so that all links are ordered alphabetically?

Answers are kindly welcomed :-)

Phil.