Umbrella Development

iLance Reverse Auction Specialists

Subscribe to Umbrella Development

Featured Auctions Displayed

Posted by Umbrella On March - 25 - 2010

It’s a common question. How do we make the front page show more than just 3 featured product or service Auctions? And it’s not as hard as you think!

Open your main.php file in your favorite editor and then find the following code

<br />
        // #### FEATURE AUCTIONS ###############################################<br />
        $show['featuredserviceauctions'] = $show['featuredproductauctions'] = false;<br />
        $featuredserviceauctions = $featuredproductauctions = array();</p>
<p>        if ($ilconfig['globalauctionsettings_serviceauctionsenabled'])<br />
        {<br />
                $featuredserviceauctions = $ilance-&gt;auction-&gt;fetch_featured_auctions('service', 3, 1, 0, '', true);<br />
        }<br />
        if ($ilconfig['globalauctionsettings_productauctionsenabled'])<br />
        {<br />
                $featuredproductauctions = $ilance-&gt;auction-&gt;fetch_featured_auctions('product', 3, 2, 0, '', true);<br />
        }<br />

You will note line 1471 and 1475 are highlighted in the code above. These are the two lines we need to edit to change the number of auctions we are displaying. You will note that in each line there is a 3. This is the number of featured auctions that will be returned. Just change that number to equal how many you want to have appear on your main page.

 Thats it.

See I told you it was easy!

About the Author

I'll write something soon.

One Response to “Featured Auctions Displayed”

Leave a Reply

About Us

Founded in 2005, our primary goal is to provide efficient custom solutions to its clients. Your satisfaction is our primary goal here, so come in from the rain and hire Umbrella Today!

On Twitter