Fly Global Virtual
-
Posts
8 -
Joined
-
Last visited
Content Type
Profiles
Forums
phpVMS Resources
Downloads
Posts posted by Fly Global Virtual
-
-
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');
}
}
}
- 1
-
Joeri, Yes we do. Where is the Layout.tpl file located ?
And yes i will do !
-
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,
-
fresh install en then copie off the database and stuff
If i do a fresh install i will lose all of the Aircraft that are in the Admin panel ?
-
i would reupload the hearder file
Yes i tried this but i hasnt worked, any more suggestions ?
-
Let me re-phrase that a bit...
"mod Snipped"
That sounds more like it
No need for that !
-
[REMOVED POST]
- 1
Help with POP UP NEWS
in Support Forum
Posted
I have been trying all day. I wouldnt have asked if i could do it :/