Jump to content

Tom

Members
  • Posts

    1517
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by Tom

  1. Set up domain DNS records to hosting provided DNS entries. Edit local.config.php to reflect change.
  2. You know there's a setting to keep the sim going when you minimise, right?
  3. Yes, "airlines" You can get the logos from Google...
  4. A more effective solution is to check BOTH email and IP: // Check email & IP for known spammer $url = 'http://www.stopforumspam.com/api?email='.$data['email'].'&ip='.$_SERVER['REMOTE_ADDR']; $file = new CodonWebService(); $contents = $file->get($url); $response = simplexml_load_string($contents); $spammer = false; foreach($response->appears as $appears){ if($appears == 'yes'){ $spammer = true; } } if($spammer){ $this->set('message', 'Your email address or IP appears on our spam database, we therefore assume you are a spammer and are rejecting your registration request. If you feel this is incorrect please contact us.'); $this->render('core_error.tpl'); return false; } (Not tested)
  5. If you were being use limited it would return a 403... that's what the problem was before ^^^ It's purely down to whether the person has been reported as a spammer yet or not. Obviously you're getting them before they've been added...
  6. Find: #body { width: 970px; margin: 0 auto; padding: 0 0 0 0; background: #ffffff; font-size: 12px; border-top: none; border-bottom: none; padding-bottom: 10px; } h1 { color: #FF6633; } h3 { background: url(images/h3.jpg) no-repeat left; height: 25px; font-size: 18px; padding-left: 28px; padding-bottom: 0px; margin-top: 10px; color: #FF6633; } hr{ margin-top: 15px; height: 1px; border: none; border-bottom: solid 1px #999; } #innerwrapper { width: 970px; background: #fff; float: right; } Replace: #body { width: 970px; margin: 0 auto; padding: 0 0 0 0; font-size: 12px; border-top: none; border-bottom: none; padding-bottom: 10px; } h1 { color: #FF6633; } h3 { background: url(images/h3.jpg) no-repeat left; height: 25px; font-size: 18px; padding-left: 28px; padding-bottom: 0px; margin-top: 10px; color: #FF6633; } hr{ margin-top: 15px; height: 1px; border: none; border-bottom: solid 1px #999; } #innerwrapper { width: 970px; float: right; }
  7. Probably should just delete his posts rather than messing about with his sig and then getting into an argument...
  8. Remove background:white; from #body and #innerwrapper
  9. PilotData public function GetVatsimId($pilotid) { $vatsimid = "SELECT vatsimid FROM phpvms_pilots WHERE pilotid='$pilotid'"; return DB::get_results($vatsimid); } public function GetIvaoId($pilotid) { $ivaoid = "SELECT ivaoid FROM phpvms_pilots WHERE pilotid='$pilotid'"; return DB::get_results($ivaoid); echo DB::$error; } ^ Get rid of all that you don't need it, use PilotData::getFieldValue() as follows profile_edit.tpl (so far) <?php $checked = false; if (PilotData::getFieldValue($pilotid, 'vatsimid')) { $checked = true; } ?> <tr><td>Are you a VATSIM Member: *</td> <td><input type="radio" name="vatsim" id="VY" value="Y" onclick="VATSIMID()" <?php if($checked){ echo 'checked'; ?>>Yes <input type="radio" name="vatsim" id="VN" value="N" onclick="VATSIMID()" <?php if(!$checked){ echo 'checked'; ?>>No</td> </tr>
  10. Tom

    Radial Buttons

    <tr><td>Are you a VATSIM Member: *</td> <td><input type="radio" name="vatsim" id="VY"/>Yes</td> </tr> <tr><td>VATSIM ID:</td> <td><input type='text' id='vatsimid' name='vatsimid' value='' disabled='disabled' style='background-color: #E6E6E6;'/> </td></tr> <tr><td>Are you an IVAO Member: *</td> <td><input type="radio" name="ivao" id="IY"/>Yes</td> </tr> <tr><td>IVAO ID:</td> <td><input type='text' id='ivaoid' name='ivaoid' value='' disabled='disabled' style='background-color: #E6E6E6;'/> </td></tr> (Added IDs and changed to checkboxes because it's easier) The use some jQuery because it's cleaner and a lot shorter. $('#VY').change(function(){ if($(this).is(':checked')){ $('#vatsimid').attr('disabled', true); } else { $('#vatsimid').removeAttr('disabled'); } }); $('#IY').change(function(){ if($(this).is(':checked')){ $('#ivaoid').attr('disabled', true); } else { $('#ivaoid').removeAttr('disabled'); } }); Should work.
  11. Tom

    Radial Buttons

    No AJAX required. Also you can't use javascript to write php onto the page, and also php can't tell whether something is checked live on the page. Use a checkbox rather than radio buttons, then get rid of the php, wrap your vatsim ID field + label in a div and set display:none; on it. With jQuery, when the checkbox is changed (onChange maybe?) check for true/false and show/hide the div accordingly (slideUp slideDown perhaps).
  12. Yeah, this is the point where you ask Xenforo
  13. Probably better off going to speak to the people at Xenforo. I would assume that you can check the JS console in your browser for the error it returned (In Chrome, right click > Inspect Element and click the Console tab - the error will be near the bottom in bright red text).
  14. In local.config.php add date_default_timezone_set('UTC'); at the top.
  15. The things I notice first are: 1. whitespace! Add some padding or margins and give everything a little more space. 2. The fonts are mismatched, and the font you seem to have chosen as your main font is somewhat difficult to read (as well as not available on a large portion of machines). 3. Could do with a spelling & grammar check, for example: "a hour" and "powerd".
  16. http://forum.phpvms.net/topic/5110-prevent-known-spammers/ This is pretty effective... I don't get any at all now.
  17. <?php # This will only show this message if it's not a popup window # Ends on line 13-15 if(!isset($_GET['newwindow'])) { ?> <h3>Requirements for Online Checkin</h3> <p>To proceed through Security Checkpoint, you will need a government-issued photo ID and either a Boarding Pass or Security Document. Customers under 18 years of age are not required to show government-issued photo ID.</p> <p><a href="#" onclick="window.open('<?php echo actionurl('/schedules/boardingpass/'.$schedule->id.'?newwindow');?>'); return false;">Open in new window for printing</a></p> <?php } ?> <style> /* Some integrated styles here, for the popup */ .boardingpass { font-family: Tahoma, Verdana; font-size: 14px; } .boardingpass h3 { background: none; padding-left: 3px; padding-bottom: 2px; } .boardingpass .thickline { background: #333; height: 2px; } </style> <table width="90%" class="boardingpass"> <tr> <td width="1%"><img src="<?php echo SITE_URL?>/lib/images/barcode.png" /></td> <td align="left"><h3><?php echo SITE_NAME;?></h3></td> </tr> <tr> <td colspan="2"><h3>Boarding Pass</h3></td> </tr> <tr class="thickline"> <td colspan="2"></td> </tr> <tr> <td valign="top"> <table class="boardingpass"> <tr> <td> <strong>Date:</strong> <br /> <strong>Name: </strong> <br /> <strong>Frequent Flier Number: </strong> <br /> <strong>Boarding Pass Number:</strong> </td> <td> <?php echo date('Y-m-d'); ?><br /> <?php echo Auth::$userinfo->firstname.' '.Auth::$userinfo->lastname?><br /> <?php echo Auth::$userinfo->code.strtoupper(substr(md5(Auth::$userinfo->pilotid), 0, 6))?><br /> <?php echo $schedule->bidid; ?><br /> </td> </tr> </td> <td valign="top"> <strong>Gate:</strong> <?php # We are gonna get a random gate if($schedule->depicao == 'PHOG'){ echo chr(rand(45, 45)); // No gate letter just a dash echo rand(9, 16); // Random gate letter between 9 and 16 } elseif($schedule->depicao == 'PHNY'){ echo chr(rand(45, 45)); // No gate letter echo rand(1, 4); // Random gate letter between 1 to 4 } elseif($schedule->depicao == 'PHNL'){ echo chr(rand(45, 45)); // No gate letter echo rand(71, 80); // Random gate letter between 71 and 80 } elseif($schedule->depicao == 'PHKO'){ echo chr(rand(45, 45)); // No gate letter echo rand(6, 10); // Random gate letter between 6 to 10 } elseif($schedule->depicao == 'PHJH'){ // There was an opening brace missing here echo chr(rand(45, 45)); // No gate letter echo rand(1, 3); // Random gate letter between 1 to 3 } elseif($schedule->depicao == 'PHMK'){ echo chr(rand(45, 45)); // No gate letter echo rand(1, 3); // Random gate letter between 1 to 3 } # Generate a hash from the bid id, and get the first 6 characters # That'll be used for our confirmation number, and upper-case them echo strtoupper(substr(md5($schedule->bidid), 0, 6)); ?> </td> <tr class="thickline"> <td colspan="2"></td> </tr> <tr> <td valign="top"> <strong>Flight: </strong><?php echo $schedule->code.$schedule->flightnum?><br /> <strong>Depart: </strong><?php echo $schedule->deptime; ?><br /> <strong>Arrive: </strong><?php echo $schedule->arrtime;?><br /> </td> <td valign="top"> <strong>Aircraft: </strong><?php echo $schedule->aircraft?> <br /> <?php echo "$schedule->depname ($schedule->depicao)";?><br /> <?php echo "$schedule->arrname ($schedule->arricao)"; ?><br /> </td> </tr> </table> That should work. A better way: <?php # This will only show this message if it's not a popup window # Ends on line 13-15 if(!isset($_GET['newwindow'])) { ?> <h3>Requirements for Online Checkin</h3> <p>To proceed through Security Checkpoint, you will need a government-issued photo ID and either a Boarding Pass or Security Document. Customers under 18 years of age are not required to show government-issued photo ID.</p> <p><a href="#" onclick="window.open('<?php echo actionurl('/schedules/boardingpass/'.$schedule->id.'?newwindow');?>'); return false;">Open in new window for printing</a></p> <?php } ?> <style> /* Some integrated styles here, for the popup */ .boardingpass { font-family: Tahoma, Verdana; font-size: 14px; } .boardingpass h3 { background: none; padding-left: 3px; padding-bottom: 2px; } .boardingpass .thickline { background: #333; height: 2px; } </style> <table width="90%" class="boardingpass"> <tr> <td width="1%"><img src="<?php echo SITE_URL?>/lib/images/barcode.png" /></td> <td align="left"><h3><?php echo SITE_NAME;?></h3></td> </tr> <tr> <td colspan="2"><h3>Boarding Pass</h3></td> </tr> <tr class="thickline"> <td colspan="2"></td> </tr> <tr> <td valign="top"> <table class="boardingpass"> <tr> <td> <strong>Date:</strong> <br /> <strong>Name: </strong> <br /> <strong>Frequent Flier Number: </strong> <br /> <strong>Boarding Pass Number:</strong> </td> <td> <?php echo date('Y-m-d'); ?><br /> <?php echo Auth::$userinfo->firstname.' '.Auth::$userinfo->lastname?><br /> <?php echo Auth::$userinfo->code.strtoupper(substr(md5(Auth::$userinfo->pilotid), 0, 6))?><br /> <?php echo $schedule->bidid; ?><br /> </td> </tr> </td> <td valign="top"> <strong>Gate:</strong> <?php # We are gonna get a random gate switch($schedule->depicao){ case 'PHOG': echo chr(rand(45, 45)); // No gate letter just a dash echo rand(9, 16); // Random gate letter between 9 and 16 break; case 'PHNY': echo chr(rand(45, 45)); // No gate letter echo rand(1, 4); // Random gate letter between 1 to 4 break; case 'PHNL': echo chr(rand(45, 45)); // No gate letter echo rand(71, 80); // Random gate letter between 71 and 80 break; case 'PHKO': echo chr(rand(45, 45)); // No gate letter echo rand(6, 10); // Random gate letter between 6 to 10 break; case 'PHJH': echo chr(rand(45, 45)); // No gate letter echo rand(1, 3); // Random gate letter between 1 to 3 break; case 'PHMK': echo chr(rand(45, 45)); // No gate letter echo rand(1, 3); // Random gate letter between 1 to 3 break; default: // Optionally include another set of echos just in case it's none of the above. if not remove these lines } # Generate a hash from the bid id, and get the first 6 characters # That'll be used for our confirmation number, and upper-case them echo strtoupper(substr(md5($schedule->bidid), 0, 6)); ?> </td> <tr class="thickline"> <td colspan="2"></td> </tr> <tr> <td valign="top"> <strong>Flight: </strong><?php echo $schedule->code.$schedule->flightnum?><br /> <strong>Depart: </strong><?php echo $schedule->deptime; ?><br /> <strong>Arrive: </strong><?php echo $schedule->arrtime;?><br /> </td> <td valign="top"> <strong>Aircraft: </strong><?php echo $schedule->aircraft?> <br /> <?php echo "$schedule->depname ($schedule->depicao)";?><br /> <?php echo "$schedule->arrname ($schedule->arricao)"; ?><br /> </td> </tr> </table>
  18. You use div id="wrapper" multiple times on one page. Fix this first.
  19. Upload "/home/ver210/public_html/new//lib/skins/VER/header.tpl"
  20. Most/all paid hosts, and if you really need a free host I never had any problems with phpVMS on 000webhost.
  21. Oh I mis-read it... It already IS a standalone page? index.php/login
  22. Same as joeri, I have browsed around your website a little and still have no idea how much your hosting costs. That's information that needs to be on the homepage, first thing I see. To respond to a couple of joeri's points as well, I'm not sure where you see a warning but I didn't get any and also reverse IP checks aren't very reliable in my experience. Being annoying here, there's something I want to pick up on (aside from the fact you put a full stop after an exclamation mark which is unnecessary): UI & UX: although I know what they mean, most people won't; could do with explaining that. With such experience one should know that light grey font on a light grey background is horribly difficult to read.
  23. Tom

    Bluesky

    Alternatively, we need more info than that What site? What's bluesky? Are sure you're in the right place?
  24. It's html5... perfectly valid for the doctype he's used.
×
×
  • Create New...