Jump to content

Recommended Posts

Posted

What one does everyone use just now? For the default one, I get the 'no bids have been made' message, despite there being 10-15 bids in the Admin Panel. I donwloaded Roger's and that other guy's, but they're both 2 years old. Don't know what to do...

Posted

Here is what I use, titled frontpage_recentbids.tpl

<?php
if(!$lastbids)
{
  echo 'None';
  return;

}


foreach($lastbids as $lastbid)
{
     echo '';


 $pilot_info = PilotData::GetPilotData($lastbid->pilotid);
     echo $lastbid->firstname;	echo ' - ';
     echo $lastbid->depicao.' - '.$lastbid->arricao; echo ' - ';
     echo $lastbid->aircraft;
     echo '<br />';
}

?>
<br />

To display it

<?php MainController::Run('FrontBids', 'RecentFrontPage', 5); ?>

Posted

Ah that's what's wrong. I was using php include, because I'm incorporating it as part of something else. I still get errors via freshjetvirtual.com/index.php/FrontBids though...

Posted

Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'FrontBids::index' was given in /home/freshje1/public_html/core/classes/MainController.class.php on line 218

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...