-
Posts
1307 -
Joined
-
Last visited
-
Days Won
1
Content Type
Profiles
Forums
phpVMS Resources
Downloads
Everything posted by Jeff
-
To show you how it works, let's try it on your Pilots page. follow these steps: 1. Open your File Manager (cPanel or FTP program) 2. Go to: core/templates/pilots_list.tpl 3. Once you have it open, place this code at the very top: <?php if(Auth::LoggedIn() == false) { echo 'You must be logged in to view this page!'; return; } ?> 4. Save the changes you made. 5. Log out of your website. 6. Go to your Pilots page by using the link www.yoursite.com/index.php/pilots (change www.yoursite.com to your website name) 7. Your Pilots page should say "You must be logged in to view this page!" Now that you see how to do it, and how it works, repeat the process fro every page that you don't want non-members to see.
-
Sorry, I forgot to add the posts from Tom. I edited the above post.
-
If you are wanting to get a template from a free template website. Download and install the one you want, edit it to suit your needs, upload it into the skins folder, and read these posts from Tom to give you an idea on how to be able to use it on your website. You need to convert the .html to .tpl so phpVMS can recognize the skin. To change skins (or add a skin) you need to change it from your Admin Center/Settings page. A link you can try is: Free css Templates
-
Just place this code on every page you don't want anyone (who is not logged in) to see. <?php if(Auth::LoggedIn() == false) { echo 'You must be logged in to view this page!'; return; } ?> Then all they will see on the page is your template and the text "'You must be logged in to view this page!". No other content will be visible.
-
Thanks Eddie. I figured that would be the way to do it. Maybe this can be something Nabeel can tackle on his next update.
-
First off, welcome to our community. Secondly, you can change your skin however you like. If you use a skin from the internet, you must meet all requirements in order to keep from copyright infringements. There are several free skins you can use for your website in the Skinning threads. You can modify each of these skins to your hearts intent. If you use any of these skins, and require any help/support, all we ask from you is to keep the "Powered by phpVMS" somewhere on your front page. You can also find out how to skin your site on your own by visiting the Documentation pages.
-
Thank you Mark, I really appreciate it.
-
It looks okay from my end...
-
Dave, When you are reading a new message, you are given two (2) options; "Reply" and "Move to Folder". Is there a way to add a Delete in there as well so we don't have to go back to the Inbox to delete the message. Also, maybe a function that will allow us to view "Previous" and "Next" messages from the message pane?
-
You could try to see if this is what is located in your PilotData.class.php to see if it is missing something. /** * This generates the forum signature of a pilot which * can be used wherever. It's dynamic, and adjusts it's * size, etc based on the background image. * * Each image is output into the /lib/signatures directory, * and is named by the pilot code+number (ie, VMA0001.png) * * This is called whenever a PIREP is accepted by an admin, * as not to burden a server with image generation * * Also requires GD to be installed on the server * * @param int The pilot ID for which to generate a signature for * @return bool Success */ public function generateSignature($pilotid) { $pilot = self::getPilotData($pilotid); $last_location = PIREPData::getLastReports($pilotid, 1, PIREP_ACCEPTED); $pilotcode = self::getPilotCode($pilot->code, $pilot->pilotid); if(Config::Get('TRANSFER_HOURS_IN_RANKS') === true) { $totalhours = $pilot->totalhours + $pilot->transferhours; } else { $totalhours = $pilot->totalhours; } # Configure what we want to show on each line $output = array(); $output[] = $pilotcode.' '. $pilot->firstname.' '.$pilot->lastname; $output[] = $pilot->rank.', '.$pilot->hub; $output[] = 'Total Flights: ' . $pilot->totalflights; $output[] = 'Total Hours: ' . $totalhours; $output[] = 'Current Location: ' . $last_location->arricao; if(Config::Get('SIGNATURE_SHOW_EARNINGS') == true) { $output[] = 'Total Earnings: ' . $pilot->totalpay; } # Load up our image # Get the background image the pilot selected if(empty($pilot->bgimage)) $bgimage = SITE_ROOT.'/lib/signatures/background/background.png'; else $bgimage = SITE_ROOT.'/lib/signatures/background/'.$pilot->bgimage; if(!file_exists($bgimage)) { # Doesn't exist so use the default $bgimage = SITE_ROOT.'/lib/signatures/background/background.png'; if(!file_exists($bgimage)) { return false; } } $img = @imagecreatefrompng($bgimage); if(!$img) { $img = imagecreatetruecolor(300, 50); } $height = imagesy($img); $width = imagesx($img); $txtcolor = str_replace('#', '', Config::Get('SIGNATURE_TEXT_COLOR')); $color = sscanf($txtcolor, '%2x%2x%2x'); $textcolor = imagecolorallocate($img, $color[0], $color[1], $color[2]); $font = 3; // Set the font-size $xoffset = Config::Get('SIGNATURE_X_OFFSET'); # How many pixels, from left, to start $yoffset = Config::Get('SIGNATURE_Y_OFFSET'); # How many pixels, from top, to start $font = Config::Get('SIGNATURE_FONT_PATH'); $font_size = Config::Get('SIGNATURE_FONT_SIZE'); if(function_exists('imageantialias')) { imageantialias($img, true); } /* Font stuff */ if(!function_exists('imagettftext')) { Config::Set('SIGNATURE_USE_CUSTOM_FONT', false); } # The line height of each item to fit nicely, dynamic if(Config::Get('SIGNATURE_USE_CUSTOM_FONT') == false) { $stepsize = imagefontheight($font); $fontwidth = imagefontwidth($font); } else { // get the font width and step size $bb = imagettfbbox ( $font_size, 0, $font, 'A'); $stepsize = $bb[3] - $bb[5] + Config::Get('SIGNATURE_FONT_PADDING'); $fontwidth = $bb[2] - $bb[0]; } $currline = $yoffset; $total = count($output); for($i=0;$i<$total;$i++) { if(Config::Get('SIGNATURE_USE_CUSTOM_FONT') == false) { imagestring($img, $font, $xoffset, $currline, $output[$i], $textcolor); } else { // Use TTF $tmp = imagettftext($img, $font_size, 0, $xoffset, $currline, $textcolor, $font, $output[$i]); // Flag is placed at the end of of the first line, so have that bounding box there if($i==0) { $flag_bb = $tmp; } } $currline+=$stepsize; } # Add the country flag, line it up with the first line, which is the # pilot code/name $country = strtolower($pilot->location); if(file_exists(SITE_ROOT.'/lib/images/countries/'.$country.'.png')) { $flagimg = imagecreatefrompng(SITE_ROOT.'/lib/images/countries/'.$country.'.png'); if(Config::Get('SIGNATURE_USE_CUSTOM_FONT') == false) { $ret = imagecopy($img, $flagimg, strlen($output[0])*$fontwidth, ($yoffset+($stepsize/2)-5.5), 0, 0, 16, 11); } else { # figure out where it would go $ret = imagecopy($img, $flagimg, $flag_bb[4]+5, $flag_bb[5]+2, 0, 0, 16, 11); } } # Add the Rank image if(Config::Get('SIGNATURE_SHOW_RANK_IMAGE') == true && $pilot->rankimage!='' && file_exists($pilot->rankimage)) { $ext = substr($pilot->rankimage, strlen($pilot->rankimage)-3, 3); # Get the rank image type, just jpg, gif or png if($ext == 'png') $rankimg = @imagecreatefrompng($pilot->rankimage); elseif($ext == 'gif') $rankimg = @imagecreatefromgif($pilot->rankimage); else $rankimg = @imagecreatefromjpg($pilot->rankimage); if(!$rankimg) { echo '';} else { $r_width = imagesx($rankimg); $r_height = imagesy($rankimg); imagecopy($img, $rankimg, $width-$r_width-$xoffset, $yoffset, 0, 0, $r_width, $r_height); } } if(Config::Get('SIGNATURE_SHOW_COPYRIGHT') == true) { # # DO NOT remove this, as per the phpVMS license $font = 1; $text = 'powered by phpvms, '. SITE_NAME.' '; imagestring($img, $font, $width-(strlen($text)*imagefontwidth($font)), $height-imagefontheight($font), $text, $textcolor); } imagepng($img, SITE_ROOT.SIGNATURE_PATH.'/'.$pilotcode.'.png', 1); imagedestroy($img); } } It may also be in the way the path is written. You can see if the signature is supposed to be written after the CPC/ or the CPC. If it is after the CPC/ then you might want to remove the / or just route it to the full URL.
-
I'm trying to add an airport, but every time I try, I get a message stating that I need to insert the 4-digit ICAO code. How do you add an airport with a 3-digit ICAO code? Is it needed to be entered manually instead? EXAMPLE: http://flightaware.com/live/flight/FIV428/history/20111104/2030Z/KMKC/T82 By the way, I am on the standard Version 2.1.934 Build.
-
Customizing a page to your liking is not a hard task to do on your own. I have customized my whole site to my liking; including the profile_main.tpl file. 99% of all the pages in your site involves tables, which are easy to do in HTML. I cannot (or will not) do it for you, but can give you a few helpful hints and ideas so you can learn to do it yourself. In the past, I have helped PIAS Virtual NUMEROUS times, and every few days they change the work that was done, so I refuse to do anything for you for free.
-
No problem Bruce, enjoy it. (BTW, it looks great on your site).
-
<td><center><img src="<?php echo $award->image?>" alt="<?php echo $award->descrip?>" /></center></td> Try this. You should be able to have it show then.
-
Your internet browser is caching the image to load the page faster each time you visit the page. You are going to have to clear the cache (F5) in order for the image to change to the one you have. If you re-name the image it should take effect immediately (without having to clear cache).
-
You're welcome, and it looks pretty good. One suggestion...change the font color on your navigation menu to something else (maybe white) you cannot see the links on that light blue background image.
-
[SOLVED] How to add the pilots money to the pilot list
Jeff replied to Gotcha_Buccs's topic in Support Forum
The correct code is (this has been tested): <?php echo FinanceData::FormatMoney($pilot->totalpay) ?> It goes in /core/templates/pilots_list.tpl -
It's Christmas! (Well, we're a bit early)
Jeff replied to Connor1994's topic in Virtual Airlines Discussion
Tell that to Walmart. The put their Christmas stuff out last month. -
Give a link, and I can see what exactly is happening. I'm sure it is an easy fix.
-
[bump] please
-
First, you need to create a database. A: Create database B: Create user for database C: Create a secure password (best if you use 10+ characters with a combination of letters and numbers, while using upper and lower case) Second, grab an ftp program (I like to use FileZilla) Third, setup your ftp program to connect to your database (info can be found in the "Documentation" link above) Fourth, upload the complete phpVMS to your database (indeed, it does go into the File Manager) Fifth, run the install.php file using your website plus the file itself (Ex: www.mysite.freehost.com/install/install.php) If you are given any errors during the installation process, please write down EXACTLY what the errors were and the location of where it is. You can then get faster response times if you have a full explanation of your errors. The General Discussion/Off Topic thread is not for support, please post your problems in the Support thread.
-
The first time I opened my previous website "One World Virtual", I was using 000webhost, and it worked fine. Now I am using Fivedev (hosted by the creator of phpVMS) for more stability and easy tech support. If you click on the link I posted above, you can get it installed in less than 10 minutes. Not to be rude, but it is going to be real hard to have someone completely do something for you because of your age. Past experiences have proved to be more of a waste of time to give full attention to someone your age. If you look real hard through the forums here, you will find everything you need to know on how to set up and tweak your Virtual Airline. If you run into a snag during your installation, you can then ask in the Support thread. Don't ask to have someone do it for you, that takes away from the learning ability of figuring out how the system operates. Once you learn to do things yourself, the possibilities are endless.
-
http://forum.phpvms.net/page/index.html?category=1