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: "Current auctions listed"   Previous Topic | Next Topic
nonePrinter-friendly copy    
Conferences MakeBid Auction users addons and fixes Topic #352
Reading page 1 of 1 pages
jennica1
Member since May-28-09
36 posts, Rate this user
Jun-08-10, 07:08 PM (CST)
Click to add this user to your buddy list  
"Current auctions listed"
 
   Current auctions listed,I lost the link to tell how to add on ,anyone have it,thx


  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-09-10, 02:45 PM (CST)
Click to view user profileClick to add this user to your buddy list  
3. "RE: Current auctions listed"
 
   The best way would be to look at one of the other dispcatX.pl files and from one of them get the coding lines you deleted from your dispcat8.pl file

these are the lines that count the total items listed:

opendir THEDIR, "$config{'basepath'}$key" or &oops("Category directory $key could not be opened.");
readdir THEDIR;
readdir THEDIR;
$totalfiles = scalar @{[readdir THEDIR]};
$totalfiles2 = $totalfiles2 + $totalfiles;
closedir THEDIR;

These are the lines that display the total items and total users

######## Auction Statistics ##################
print "<p>";
print "<TABLE BORDER=\"0\" CELLSPACING=\"0\" CELLPADDING=\"0\" WIDTH=\"100%\">";
print "<TR><TD ALIGN=\"CENTER\" BGCOLOR=\"$config{'colortablehead'}\"><b>Auction Statistics</b></TD></TR>";

print "<TR><TD BGCOLOR=\"$config{'colortablebody'}\">Current Auctions Listed</b><font Color=\"red\"> ($totalfiles2)</FONT></TD></TR>";

print "<TR><TD BGCOLOR=\"$config{'colortablebody'}\">Total Registered Users</b><font Color=\"red\"> ($numusers)</FONT></TD></TR>";

print "</TABLE>";


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


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