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->auction->fetch_featured_auctions('service', 3, 1, 0, '', true);<br />
}<br />
if ($ilconfig['globalauctionsettings_productauctionsenabled'])<br />
{<br />
$featuredproductauctions = $ilance->auction->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!

One Response to “Featured Auctions Displayed”