OK, I have searched and I have looked for the priority logo in the resources section (file not found error). I found this thread and I am trying to make it work, but....
So far I added the priority line to links.def
I also added VickieB's code with Alex's changes. When I went to my admin panel I had the blank block for the priority section. What do I need to enter into the block to make it sort to the top of a list. Itried to enter priority, but it was to big. I entered "Yes" ,but it seemed to not get the site to the top either. The only thing I have succeded in doing is loosing my cool links sort and gain a random sort.
I replaced this
($priority{$b} and !$priority{$a}) and return 1;
($priority{$a} and !$priority{$b}) and return -1;
($isnew{$b} and !$isnew{$a}) and return 1;
($isnew{$a} and !$isnew{$b}) and return -1;
($priority{$a} and $priority{$b}) and return (rand > 0.5) ? 1 : -1;
($isnew{$a} and $isnew{$b}) and return (rand > 0.5) ? 1 : -1;
return (rand > 0.5) ? 1 : -1;
with this
($priority{$b} and !$priority{$a}) and return 1;
($priority{$a} and !$priority{$b}) and return -1;
($isnew{$b} and !$isnew{$a}) and return 1;
($isnew{$a} and !$isnew{$b}) and return -1;
($iscool{$b} and !$iscool{$a}) and return 1;
($iscool{$a} and !$iscool{$b}) and return -1;
($priority{$a} and $priority{$b}) and return (rand > 0.5) ? 1 : -1;
($isnew{$a} and $isnew{$b}) and return (rand > 0.5) ? 1 : -1;
($iscool{$a} and $iscool{$b}) and return (rand > 0.5) ? 1 : -1;
return (rand > 0.5) ? 1 : -1;
Any Help would be appreciated.
Dale
So far I added the priority line to links.def
I also added VickieB's code with Alex's changes. When I went to my admin panel I had the blank block for the priority section. What do I need to enter into the block to make it sort to the top of a list. Itried to enter priority, but it was to big. I entered "Yes" ,but it seemed to not get the site to the top either. The only thing I have succeded in doing is loosing my cool links sort and gain a random sort.
I replaced this
($priority{$b} and !$priority{$a}) and return 1;
($priority{$a} and !$priority{$b}) and return -1;
($isnew{$b} and !$isnew{$a}) and return 1;
($isnew{$a} and !$isnew{$b}) and return -1;
($priority{$a} and $priority{$b}) and return (rand > 0.5) ? 1 : -1;
($isnew{$a} and $isnew{$b}) and return (rand > 0.5) ? 1 : -1;
return (rand > 0.5) ? 1 : -1;
with this
($priority{$b} and !$priority{$a}) and return 1;
($priority{$a} and !$priority{$b}) and return -1;
($isnew{$b} and !$isnew{$a}) and return 1;
($isnew{$a} and !$isnew{$b}) and return -1;
($iscool{$b} and !$iscool{$a}) and return 1;
($iscool{$a} and !$iscool{$b}) and return -1;
($priority{$a} and $priority{$b}) and return (rand > 0.5) ? 1 : -1;
($isnew{$a} and $isnew{$b}) and return (rand > 0.5) ? 1 : -1;
($iscool{$a} and $iscool{$b}) and return (rand > 0.5) ? 1 : -1;
return (rand > 0.5) ? 1 : -1;
Any Help would be appreciated.
Dale