angle Posted July 11, 2011 Report Share Posted July 11, 2011 Hi guys have a look at this for me and tell me if they are in the right area .... .................................................................................... <?php /** * * STOP!!!!!!!! * * Are you editing the crystal skin directly? * DON'T * * Copy and rename the crystal folder. Otherwise it'll get * overwritten in an update. * * Also, READ THE DOCS * * http://www.phpvms.net/docs/skinning * */ ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr"> <head> <meta http-equiv="X-UA-Compatible" content="IE=7"> <title><?php echo $page_title; ?></title> <link rel="stylesheet" media="all" type="text/css" href="<?php echo SITE_URL?>/lib/skins/crystal/styles.css" /> <?php /* This is required, so phpVMS can output the necessary libraries it needs */ echo $page_htmlhead; ?> <?php /*Any custom Javascript should be placed below this line, after the above call */ ?> </head> <body> <?php /* This should be the first thing you place after a <body> tag This is also required by phpVMS */ echo $page_htmlreq; ?> <div id="body"> <div id="innerwrapper"> <div id="topBanner"> <div id="topLogin"> <?php /* Quick example of how to see if they're logged in or not Only show this login form if they're logged in */ if(Auth::LoggedIn() == false) { ?> <form name="loginform" action="<?php echo url('/login'); ?>" method="post"> Sign-in with your pilot id or email, or <a href="<?php echo url('/registration'); ?>">register</a><br /> <input type="text" name="email" value="" onClick="this.value=''" /> <input type="password" name="password" value="" /> <input type="hidden" name="remember" value="on" /> <input type="hidden" name="redir" value="index.php/profile" /> <input type="hidden" name="action" value="login" /> <input type="submit" name="submit" value="Log In" /> </form> <?php } /* End the Auth::LoggedIn() if */ else /* else - they're logged in, so show some info about the pilot, and a few links */ { /* Auth::$userinfo has the information about the user currently logged in We will use this next line - this gets their full pilot id, formatted properly */ $pilotid = PilotData::GetPilotCode(Auth::$userinfo->code, Auth::$userinfo->pilotid); ?> <img align="left" height="50px" width="50px" style="margin-right: 10px;" src="<?php echo PilotData::getPilotAvatar($pilotid);?>" /> <strong>Pilot ID: </strong> <?php echo $pilotid ; ?> <strong>Rank: </strong><?php echo Auth::$userinfo->rank;?><br /> <strong>Total Flights: </strong><?php echo Auth::$userinfo->totalflights?>, <strong>Total Hours: </strong><?php echo Auth::$userinfo->totalhours;?> <br /> <a href="<?php echo url('/pireps/new');?>">File a New PIREP</a> | <a href="<?php echo url('/schedules/bids');?>">View My Bids</a> | <a href="<?php echo url('/profile/');?>">View Pilot Center</a> <?php } /* End the else */ ?> </div> </div> <div id="topNav"> <ul class="nav"> <?php /* You can modify this template into a table or something, by default it's list elements inside of a UL. Here's a link with some info: http://articles.sitepoint.com/article/css-anthology-tips-tricks-4/2 */ Template::Show('core_navigation.tpl'); ?> </ul> </div> <div id="bodytext"> <?php /* This will insert all of the "meat" of the page in there - the template which is generated, depending on which page you're on. To change these templates, check out the docs on the site. They're under the /core/templates folder, and to change them, copy them into the folder of your skin (the folder this file is in right now. */ echo $page_content; ?> <a href="<?php echo url('/Mail'); ?>">AIRMail</a> <?php MainController::Run('Mail', 'checkmail'); ?> <?php PopUpNews::PopUpNewsList(5); ?> </div> </div> <div id="footer"> <p>copyright © 2007 - <?php echo date('Y') ?> - <?php echo SITE_NAME; ?><br /> <!-- Please retain this!! It's part of the phpVMS license. You must display a "powered by phpVMS" somewhere on your page. Thanks! --> <a href="http://www.phpvms.net" target="_blank">powered by phpVMS</a></p> </div> </div> </body> </html> when i go to my page i see Airmail You have no new mail there are no logos that ment to come with it i put the mailimages is the same folder as my skins is that right??? and also when i click airmail i get this come up Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'Mail::index' was given in /var/www/vhosts/royles.eu/httpdocs/core/classes/MainController.class.php on line 218 AIRMail Any help would be great Quote Link to comment Share on other sites More sharing options...
TAV1702 Posted July 11, 2011 Report Share Posted July 11, 2011 Are you trying to create a custom AIRMail page? As is, it works nicely out of the box. It only needs to have some minor css work doe to fit/match your site. You only need to place the mail check where you wish for it to appear on your site I.E. in the header or footer. When you view the page the call is on, you will see if you have mail or not. If you do, simply click your AIRMail link and it should take you to the AIRMail script Inbox. Quote Link to comment Share on other sites More sharing options...
angle Posted July 11, 2011 Author Report Share Posted July 11, 2011 Are you trying to create a custom AIRMail page? As is, it works nicely out of the box. It only needs to have some minor css work doe to fit/match your site. You only need to place the mail check where you wish for it to appear on your site I.E. in the header or footer. When you view the page the call is on, you will see if you have mail or not. If you do, simply click your AIRMail link and it should take you to the AIRMail script Inbox. ok will give it a go Thanks Quote Link to comment Share on other sites More sharing options...
angle Posted July 11, 2011 Author Report Share Posted July 11, 2011 Your Pilot ID: ROA0001 Your Rank: New Hire Total Flights: 0 Total Hours: 1.3 Total Transfer Hours: 0 Total Money: $ 27.75 You have 13.7 hours left until your promotion to First Officer AIRMail <<<< this is all that comes up i click on it and it gos to this Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'Mail::index' was given in /var/www/vhosts/royles.eu/httpdocs/core/classes/MainController.class.php on line 218 i used the <a href="<?php echo url('/Mail'); ?>">AIRMail</a> and placed it were i wanted it but i dont get any icon and it just keeps comming with that error Thanks Quote Link to comment Share on other sites More sharing options...
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.