freshJet Posted October 28, 2011 Report Posted October 28, 2011 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... Quote
flyalaska Posted October 28, 2011 Report Posted October 28, 2011 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); ?> Quote
freshJet Posted October 28, 2011 Author Report Posted October 28, 2011 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... Quote
freshJet Posted October 29, 2011 Author Report Posted October 29, 2011 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 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.