Jump to content

Fly Global Virtual

Members
  • Posts

    8
  • Joined

  • Last visited

Fly Global Virtual's Achievements

Newbie

Newbie (1/14)

-3

Reputation

  1. I have been trying all day. I wouldnt have asked if i could do it :/
  2. Hello, I am wanting to have my pop up news on the home page but laid out different to how it is default. I would like it like this [HERE] Sebject of news item The bit that says [HERE] must be linked to the news item in question This is the contents of my PopUpNews.php Please can you re-write it with the stuff i would like, thanks James <?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 © 2009-2010, David Clark //@license http://creativecommons.org/licenses/by-nc-sa/3.0/ class PopUpNews extends CodonModule { public function popupnewsitem() { $id = $_GET['itemid']; $result = PopUpNewsData::popupnewsitem($id); Template::Set('item', $result); Template::Show('popupnews_item.tpl'); } public function PopUpNewsList($count=5) { $sql = 'SELECT id, subject, body, postedby, UNIX_TIMESTAMP(postdate) AS postdate FROM ' . TABLE_PREFIX .'news ORDER BY postdate DESC LIMIT '.$count; $res = DB::get_results($sql); if(!$res) return; foreach($res as $row) { Template::Set('id', $row->id); Template::Set('subject', $row->subject); Template::Set('postdate', date('m/d/Y', $row->postdate)); Template::Show('popupnews_list.tpl'); } } }
  3. Joeri, Yes we do. Where is the Layout.tpl file located ? And yes i will do !
  4. Hello guys, I was hoping someone could help me, my PHPvms website is not displaying and of the content on the pages and the footer seems to be gone. Check it out at www.easyjetva.net Thanks guys,
  5. If i do a fresh install i will lose all of the Aircraft that are in the Admin panel ?
  6. Yes i tried this but i hasnt worked, any more suggestions ?
×
×
  • Create New...