#1 (permalink)  
Old 01-27-2008, 08:33 PM
FSGDAG's Avatar
Moderator
 
Join Date: May 2007
Location: NJ, United States
Posts: 977
FSGDAG is on a distinguished road
Default Top 10 Bidding Block

I'd like to create a Top 10 Bidding Block. The block would be located on the main page ( index ) and would be in the body of the site, not in a left or right sidebar.

I'm imaging that the block would be similar to Hot Listings or something similar, but I'm not really sure where to start with it. I know Hot Listing is based upon how many hits a link gets, but this will need to be based on the highest amount of bids.

Can someone point me in the right place to get it started?
__________________
FSGDAG | IndexU Hosting | Owner
Website | NiceCoder Script Hosting and More! | Blog
General Directory | Deep Links Directory | Bidding Directory
Reply With Quote
  #2 (permalink)  
Old 01-27-2008, 10:10 PM
Bruceper's Avatar
Nicecoder Team
 
Join Date: Jun 2002
Location: Winnipeg Canada
Posts: 4,008
Bruceper is on a distinguished road
Default

This was done previously by someone. I just have to remember where it was.
Reply With Quote
  #3 (permalink)  
Old 01-27-2008, 10:16 PM
Bruceper's Avatar
Nicecoder Team
 
Join Date: Jun 2002
Location: Winnipeg Canada
Posts: 4,008
Bruceper is on a distinguished road
Default

<%block_random_listing title="Highest Bids" max_item="10" listing_type="bid"%> <- perhaps that's it?
Reply With Quote
  #4 (permalink)  
Old 01-27-2008, 10:19 PM
FSGDAG's Avatar
Moderator
 
Join Date: May 2007
Location: NJ, United States
Posts: 977
FSGDAG is on a distinguished road
Default

Thanks for digging that up Bruce! I'll report back soon to let you know
__________________
FSGDAG | IndexU Hosting | Owner
Website | NiceCoder Script Hosting and More! | Blog
General Directory | Deep Links Directory | Bidding Directory
Reply With Quote
  #5 (permalink)  
Old 01-27-2008, 10:30 PM
FSGDAG's Avatar
Moderator
 
Join Date: May 2007
Location: NJ, United States
Posts: 977
FSGDAG is on a distinguished road
Default

Bruce...

I haven't tried it yet ( and maybe I should be before even posting it )... BUT

I just looked in block.random_listing.php :

Code:
Content visible to License Owner only.
It would seem to me that there would need to be an additional " elseif " statement with a listing type of =='bidding' in order for it to work.

If that is the case... I'll need help building that... I think it should be like this:

Code:
Content visible to License Owner only.
If this is correct... I dont want the order to be random... I want the order to be from highest first, and smallest bid last. Unfortunately, I'm not sure how that would be written.
__________________
FSGDAG | IndexU Hosting | Owner
Website | NiceCoder Script Hosting and More! | Blog
General Directory | Deep Links Directory | Bidding Directory
Reply With Quote
  #6 (permalink)  
Old 01-27-2008, 10:38 PM
Bruceper's Avatar
Nicecoder Team
 
Join Date: Jun 2002
Location: Winnipeg Canada
Posts: 4,008
Bruceper is on a distinguished road
Default

I don't have the bidding mod installed or setup on any site. But you'd look in the database and would set order by VALUE

VALUE would be however the bid is set or called in the database, if that's just by the BID field then you would order by bid
Reply With Quote
  #7 (permalink)  
Old 01-27-2008, 11:25 PM
FSGDAG's Avatar
Moderator
 
Join Date: May 2007
Location: NJ, United States
Posts: 977
FSGDAG is on a distinguished road
Default

Well, I tried adding this :

Code:
Content visible to License Owner only.
and I'm getting this :

Code:
Content visible to License Owner only.
I'm assuming thats because "order by bid()" isn't correct. Bruce, I did look in the DB and saw that "bid" is the value being used for bids.

Anyone have any suggestions???
__________________
FSGDAG | IndexU Hosting | Owner
Website | NiceCoder Script Hosting and More! | Blog
General Directory | Deep Links Directory | Bidding Directory
Reply With Quote
  #8 (permalink)  
Old 01-29-2008, 03:47 AM
dody's Avatar
Nicecoder Team
 
Join Date: Aug 2001
Location: Indonesia
Posts: 3,292
dody is a name known to alldody is a name known to alldody is a name known to alldody is a name known to alldody is a name known to alldody is a name known to all
Default

I have one in dodyweb.com, see the left side menu, it's top bidders.
Actually it's a top listing block with modification on query.

Code:
Content visible to License Owner only.
Are you looking for something like this?
Reply With Quote
  #9 (permalink)  
Old 01-29-2008, 09:33 AM
FSGDAG's Avatar
Moderator
 
Join Date: May 2007
Location: NJ, United States
Posts: 977
FSGDAG is on a distinguished road
Default

Yep... Thats it Dody!!!

Would you be able to help me with something else too?? I noticed on your block you have a ">>" next to each listing. Do you know how I could number the listings 1 through 10?? I'm not sure what the equation would be?!?!?!
__________________
FSGDAG | IndexU Hosting | Owner
Website | NiceCoder Script Hosting and More! | Blog
General Directory | Deep Links Directory | Bidding Directory
Reply With Quote
  #10 (permalink)  
Old 01-29-2008, 01:54 PM
Active Member
 
Join Date: Nov 2004
Posts: 1,828
inspireme is on a distinguished road
Default

just use

<ol>
<!-- here is the template loop -->
<li> item </li>
<!-- end of loop -->
</ol>

in the template.
__________________
Some interesting INDEXU bits :http://www.indexu.co.uk
Main IndexU sites : | Campsite Directory | Tourist Guide | Places2B | AfterDirectory <-- Half price submission using coupon DP50 (from just $11 premium, and $10 basic permanent )
Reply With Quote
  #11 (permalink)  
Old 01-29-2008, 04:51 PM
FSGDAG's Avatar
Moderator
 
Join Date: May 2007
Location: NJ, United States
Posts: 977
FSGDAG is on a distinguished road
Default

Ok... Here's how I'm calling the block :

Code:
Content visible to License Owner only.
Here is block.bid_listing_details.html:


Code:
Content visible to License Owner only.
I've tried using:

<%$item%> and just "item" and neither work... How do I need to set this?
__________________
FSGDAG | IndexU Hosting | Owner
Website | NiceCoder Script Hosting and More! | Blog
General Directory | Deep Links Directory | Bidding Directory
Reply With Quote
  #12 (permalink)  
Old 01-29-2008, 10:00 PM
FSGDAG's Avatar
Moderator
 
Join Date: May 2007
Location: NJ, United States
Posts: 977
FSGDAG is on a distinguished road
Default

Anyone got an idea on this???
__________________
FSGDAG | IndexU Hosting | Owner
Website | NiceCoder Script Hosting and More! | Blog
General Directory | Deep Links Directory | Bidding Directory
Reply With Quote
  #13 (permalink)  
Old 01-30-2008, 02:02 AM
dody's Avatar
Nicecoder Team
 
Join Date: Aug 2001
Location: Indonesia
Posts: 3,292
dody is a name known to alldody is a name known to alldody is a name known to alldody is a name known to alldody is a name known to alldody is a name known to all
Default

i agree with inspireme, just use <ol> instead of <ul>
Reply With Quote
  #14 (permalink)  
Old 01-30-2008, 09:11 AM
FSGDAG's Avatar
Moderator
 
Join Date: May 2007
Location: NJ, United States
Posts: 977
FSGDAG is on a distinguished road
Default

Instead of using <%$item%> in the code above, I changed it to <%$number%> and that worked!

Thanks for the help guys!
__________________
FSGDAG | IndexU Hosting | Owner
Website | NiceCoder Script Hosting and More! | Blog
General Directory | Deep Links Directory | Bidding Directory
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Bidding using Nightly Build FSGDAG v5.x 7 01-27-2008 10:06 PM
Bidding directory mod dody Blocks and Modification 26 01-18-2008 05:54 PM
I'm working on bidding directory mod dody Blocks and Modification 5 06-21-2007 08:45 PM
Trying to set up a new block angie v5.x 7 09-25-2006 08:36 AM
Bidding doesn't work Geert81 v5.x 3 09-03-2004 07:04 AM

HACKER SAFE certified sites prevent over 99.9% of hacker crime.

All times are GMT -5. The time now is 03:34 PM.


Powered by vBulletin®
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO
SSL Certificate