eAuction
  Not just another Perl script
Google
Welcome, Guest. Please Login or Register


If you use eAuction a lot and like it or if you make money from eAuction or from eAuction-related activities ...
then the project asks you for a donation in favor of the further development.



The forums are protected by
AccessControl
(written by Dieter Werner)
Click here if you want to check your IP against the most important RBLs of the net.
Click here in order to visite the AccessControl forums.


<< Visit the international e Auction Marketplace >>
Buy and sell PC and Consumer Electronic components






  HomeHelpSearchLoginRegister
 



Pages: 1
Order of Categories (Read 385 times)
Good2cu
eAuction User
**
Offline



Posts: 7

Order of Categories
08/19/05 at 13:24:52
 
I can not see how to sort order that categories are shown.
I understand why items are not sorted (big arrays - previous answer) but I would like categories to appear as entered. At present there does not appear to be any order, alphabetical, as entered or anything.
Any advice gratefully received.
Back to top
 
 


Advertising
View Profile   IP Logged
Dieter Werner
Administrator
*****
Offline

Dipl. Paranoiac ®

Posts: 1162
Germany
Gender: male
Re: Order of Categories
Reply #1 - 08/19/05 at 14:07:31
 
Peter   wrote on 08/19/05 at 13:24:52:
I can not see how to sort order that categories are shown.
I understand why items are not sorted (big arrays - previous answer) but I would like categories to appear as entered. At present there does not appear to be any order, alphabetical, as entered or anything.
Any advice gratefully received.

The table of categories is a simple hash.
That means:
it is a list of
key => value
pairs.

Code:
#-#############################################
# Edit your Auction-Categories
#-#############################################
                       # English            #German
%category = (    
   yourcat05            => ['Your Categorie 5',      'Kategorie 5',      ],
   yourcat06            => ['Your Categorie 6',      'Kategorie 6',      ],
   yourcat07            => ['Your Categorie 7',      'Kategorie 7',      ],
   yourcat08            => ['And so on ...',      'Und So Weiter ...',      ],
); 



The sorting order is 'by key' (see sub disp_cat).
Back to top
 
 

Multimedia file viewing and clickable links are available for registered members only!!  You need to Login or Register!!


Greetings from Germany
Dieter Werner




Advertising
View Profile | WWW   IP Logged
Good2cu
eAuction User
**
Offline



Posts: 7

Re: Order of Categories
Reply #2 - 08/19/05 at 20:03:56
 
Thanks
Back to top
 
 


Advertising
View Profile   IP Logged
Pages: 1


If you like eAuction, please Rate it.
If you don't like eAuction, please Rate it too.


1 is being poor and 10 is being excellent


EveryScript

ip-location


AccessControl - Members Only