Cheers Dave your a star, just the one question in the pilots profile i have their latest screen shot displayed using,
<?php Screenshots::get_pilots_newscreenshot($userinfo->pilotid); ?>
Its now complaining about the get method undefined but its been so long since i have looked at this i cant remember.
exact error is,
Fatal error: Call to undefined method Screenshots::get_pilots_newscreenshot() in /file location/profile_main.tpl on line 68, which is that code above. Any pointers would be appreciated,
That file is,
<?php
//simpilotgroup addon module for phpVMS virtual airline system
//
//simpilotgroup addon modules are licenced under the following license:
//Creative Commons Attribution Non-commercial Share Alike (by-nc-sa)
//To view full icense text visit http://creativecommons.org/licenses/by-nc-sa/3.0/
//
//@author David Clark (simpilot)
//@copyright Copyright (c) 2009-2010, David Clark
//@license http://creativecommons.org/licenses/by-nc-sa/3.0/
if (!$screenshot)
{echo 'You Have Not Submitted<br />Any Screenshots'; }
else
{
echo '<b>Your Latest Submission</b><br />
<img src="'.SITE_URL.'/pics/'.$screenshot->file_name.'" height="125px" width="180px" alt="Your Latest Screenshot" />
<br />Submitted On - '.$date;
}
?>
Cheers.