USANet Creations
Users Support and Discussion Areas

NOTE: Always state the software package you have
when asking questions so you will get the correct answer,
as it does make a big difference in the answers you'll get!

| Main Site Home Page | Forums Home Page |

Subject: "Auction Categories"   Previous Topic | Next Topic
nonePrinter-friendly copy    
Conferences MakeBid Auction users addons and fixes Topic #354
Reading page 1 of 1 pages
jennica1
Member since May-28-09
36 posts, Rate this user
Jun-29-10, 08:32 AM (CST)
Click to add this user to your buddy list  
"Auction Categories"
 
   Is there any way in auction categories to take away the 0 items listed away from the Categories.


  Alert | IP Printer-friendly page | Edit | Reply | Reply With Quote
Richardadmin click here to view user rating
Charter Member
1987 posts, 10 feedbacks, 19 points
Jun-29-10, 12:15 PM (CST)
Click to view user profileClick to add this user to your buddy list  
1. "RE: Auction Categories"
 
   In the dispcatX.pl file that you using as you site main page (I think your using dispcat8.pl ) find this line:

print "<TR><TD>$config{'categoryfont'}<A HREF=\"$ENV{'SCRIPT_NAME'}?category=$key&listtype=current\">$mycategory{$key}</A> \($numfiles{$key}\)</FONT></TD></TR></B>";

now replace it with this new line:

print "<TR><TD>$config{'categoryfont'}<A HREF=\"$ENV{'SCRIPT_NAME'}?category=$key&listtype=current\">$mycategory{$key}</A> </FONT></TD></TR></B>";


  Alert | IP Printer-friendly page | Edit | Reply | Reply With Quote
Homermoderator
Member since Jan-10-08
207 posts, Rate this user
Jul-02-10, 10:10 AM (CST)
Click to view user profileClick to add this user to your buddy list  
2. "RE: Auction Categories"
 
   if I understud your question correctly, you may look for a way only display categories, if they contain active items for sale. If so, you may test one of the below options.

Option 1 would display all cats, but empty cats cannot be accessed because hyperlink to such section is not enabled.

Option 2 would display Category Names only, if the Cat contains at least 1 active item for sale.

Quote this line with a "#" like:

#print "<TR><TD>$config{'categoryfont'}<A HREF=\"$ENV{'SCRIPT_NAME'}?category=$key&listtype=current\">$mycategory{$key}</A> \($numfiles{$key}\)</FONT></TD></TR></B>";

and paste one of the 2 sections below after the quoted line.

Good luck

Homer

--------------
Option 1
--------------

# Option activate Hyperlink

if ($numfiles{$key} > 0){

print "<TR><TD>$config{'categoryfont'}<A HREF=\"$ENV{'SCRIPT_NAME'}?category=$key&listtype=current\">$mycategory{$key}</A> \($numfiles{$key}\)</FONT></TD></TR></B>";
}

if ($numfiles{$key} < 1){

print "<TR><TD>$config{'categoryfont'}<A HREF=\"$ENV{'SCRIPT_NAME'}?category=$key&listtype=current\">$mycategory{$key}</A> \($numfiles{$key}\)</FONT></TD></TR></B>";
}

--------------
Option 2
--------------

# Hide empty cat display

if ($numfiles{$key} > 0){

print "<TR><TD>$config{'categoryfont'}<A HREF=\"$ENV{'SCRIPT_NAME'}?category=$key&listtype=current\">$mycategory{$key}</A> \($numfiles{$key}\)</FONT></TD></TR></B>";
}

if ($numfiles{$key} < 1){
# no content here
}

--------------

If you don't know where you're going, any road will get you there.


  Alert | IP Printer-friendly page | Edit | Reply | Reply With Quote
Homermoderator
Member since Jan-10-08
207 posts, Rate this user
Jul-02-10, 10:13 AM (CST)
Click to view user profileClick to add this user to your buddy list  
3. "RE: Auction Categories"
 
   Screwed up !!

# Option activate Hyperlink

if ($numfiles{$key} > 0){

print "<TR><TD>$config{'categoryfont'}<A HREF=\"$ENV{'SCRIPT_NAME'}?category=$key&listtype=current\">$mycategory{$key}</A> \($numfiles{$key}\)</FONT></TD></TR></B>";
}

if ($numfiles{$key} < 1){

print "<TR><TD>$config{'categoryfont'}$mycategory{$key} \($numfiles{$key}\)</FONT></TD></TR></B>";
}

Sorry

homer

If you don't know where you're going, any road will get you there.


  Alert | IP Printer-friendly page | Edit | Reply | Reply With Quote


Conferences | Topics | Previous Topic | Next Topic
Rate this topic Rate this topic