Jump to content

selwynorren

Members
  • Posts

    170
  • Joined

  • Last visited

Everything posted by selwynorren

  1. I presume so. Its teh beta install that I cannot create the groups in. Honestly I have not tried in teh full release. I will test it out on a local sever quick.
  2. ha ha ha I hear you. I checked teh local.config file and there is no refernce to teh zoom level. I put one in calling it MAP_ZOOM_LEVEL, but no I could not get it to work. Its definatloy there in teh js file but it just does nothing when I change that oom level. very wierd. Its no train smash at all, At least it shows South Africa. That's a whole lot better than what teh default fsacars world map was ;D
  3. Hey Nabeel I am sorry but I just cannot get it right at all. Again I only a one side result, it either show me nothing or somthng I.e. If there are no reports it will result "No Reports" If there are report then it does not show any results. I am just not undertsanding this thing This is what I am looking for (On the profile_main.tpl file) if there are no pireps then it shoud read: Current Location: FAGC - Grand Central (As an example - this would default to the hub selected) If there are pireps filed the the same line should read Current Location: FAMB - Middleburg (Again just using an example) The idea is to only have a 1 line entry, but to show either state. I kinda understand what you are saying, but I just cannot get it to work at all ???. I am used to a normal sql and php code, but this I just cannot seem to clear my head on. I really am sorry if I am wasting your time on this
  4. Hi Nabeel Yeah the JS file I left in place, it did not seem right to move it over (even though I did try that too Here is what I want to do http://www.orrencharters.co.za/index.php/acars This will show central and south africa, not bad looking, but my VA runs only in one of the provinces. Now I dont need such a zoom, all I want is that map window to fill up with South Africa. When I tested this with a friend of mine, using normal google API I get it right, wel he did I didn't ;D I was wondering if teh doctype would make any difference, I see that page is transitional, maybe it shoud be strict?
  5. ok Thanks Nabeel, I just Checked and I have teh BETA release installed. Is that ok?
  6. Hi Guys I changed it slight to look like the following: <?php $lastreport = PIREPData::GetLastReports($pilotid, 1); $lastreport->arricao; // This is the airport they arrived at if($lastreport->arricao<>'') { ?> <li><strong>Current Location: </strong>You have not submitted a Pirep yet"</li> <?php } else { ?> <li><strong>Current Location: </strong><?php echo $report->arricao; ?></li> <?php } ?> Now that seems to kinda work. What happens now is it either shows teh Icao code of teh arrival airport or it will show nothing. Nabeel, is it possible to rather show the airport name instead of the ICAO code? In the current code format in this post will eitehr show teh icao code or show nothing. If I put an Excalmation mark there in teh begining: if(!$lastreport->arricao<>'') The it either shows me the "You have not submitted a Pirep yet" or it shows me black. So I can see that the if / else statement is kinda working, but its not showing the else part I hope that makes any sense ;D
  7. This is a fantastic Idea. Nabeel would I be correct with teh following statement <li><strong>Total Money: </strong><?php echo FinanceData::FormatMoney($userinfo->totalpay) ?></li> <?php $lastreport = PIREPData::GetLastReports($pilotid, 1); $lastreport->arricao; // This is the airport they arrived at if(!$lastreport) { ?> <li><strong>Current Location: </strong>You have not submitted a Pirep yet</li> <?php } else { ?> <li><strong>Current Location: </strong><?php echo $report->arricao; ?></li> <?php } ?> The Idea here is for new pilots. so If they have not flown yet, it will say that no pirep has been flown yet. Would it be possible to do a check that if a pirep has been submitted, it will then take the data from the selected hub they registered for? All this brings me to my next question, probably more aimed at a feture request i guess, but its directly related to this topic. On the live map, is there a possiblity to show an icon of the current location of a pilot. It does this already when flying, but I am talking about when they are not? Thanks for all the help
  8. Hey All I definately need that fuctionality, but it does not matter what zoom level I select its stays the same. I copied teh appropriate js file to my skin nothing works. I even editied the original js file and that also does not work. Does everyone else have teh same issue as well?
  9. Hi all I created a pilot group in the admin panel. Put all teh specs in gavce it a name and saved. Alittle green box shows that the pilot group had been added, but the groups I created do not show up at all in the list. I double checked the database and its not entered there either. Thanks
  10. Hi Guys I am fairly new here, only discovered this software this week, and i have been frustrated and amazed ;D pure brilliance. Anyway, I am still porting information into this new databse, but I have focused on designing a skin. This skin is not based on anything I know of, so its still needs a tweak here and there. Let me know what you think, and be gentle ;D http://www.orrencharters.co.za Any advise comments, etc is always appreciated Cheers
  11. Hi Nabeel Great I will definateloy have a look at it. All the advice has paid off and I have just finished uploading the result. Complete custom skin. with phpBB 2 forum intergration as well as custom confirmation email all thatnks to you and nege. I am pretty happy with it. Now I just need to add content :
  12. ;D ;D I would have said cheesy grin, if I could. I was so close yet so far. Nabeel would the list of variables used be under the development documentation? Admittedly I have not ready that very well.
  13. Hi Nabeel Thanks for your kind words. That code did the trick perfectly. It seems so simple when you know how ;D
  14. http://www.orrencharters.co.za
  15. Wow guys thanks very very much. It become painfully obvious that I still dont readyy understand this code at all ??? ;D Nige Thanks that work like a charm except that it remove the zero's i.e the result would be OCC2, etc I have used you code as is and hacked it slightly to give me the zero's that I am looking for. Nige Nabeel, would you mind showing me if tehre is a simpler and cleaner way to do it. <?php $newpilots = PilotData::GetLatestPilots(1); foreach($newpilots as $newpilot) { echo 'Pilot ID: ' . $_POST['code'],$newpilot->pilotid; ?> Dear <?php echo $firstname .' '. $lastname; ?>,<br /><br /> Your account have been made at <?php echo SITE_NAME?>, but your account has not yet been activated. You will receive an email when your registration has been activated by someone on our staff.<br /><br /> Pilot Name: <?php echo Vars::POST('firstname'); ?> <?php echo Vars::POST('lastname'); ?><br/> Email Address: <?php echo Vars::POST('email'); ?><br/> Login Pilot ID: <?php echo $_POST['code'],PilotData::GetPilotCode($pilot->code,$pilot->pilotid),$newpilot->pilotid; ?><br /> Login Pilot ID: <?php echo PilotData::GetPilotCode($pilot->code,$pilot->pilotid)?><br/> Selected Hub: <?php echo Vars::POST('hub'); ?><br/> <br /><br /> Thanks!<br /><br /> <?php echo SITE_NAME?> Staff <?php } ?> Again I apologise for the repeated mistackes and lack of understanding. Ill get better I promise ;D Cheers
  16. Hi All please help ;D here is my code: Dear <?php echo $firstname .' '. $lastname; ?>,<br /><br /> Your account have been made at <?php echo SITE_NAME?>, but your account has not yet been activated. You will receive an email when your registration has been activated by someone on our staff.<br /><br /> Pilot Name: <?php echo Vars::POST('firstname'); ?> <?php echo Vars::POST('lastname'); ?><br/> Email Address: <?php echo Vars::POST('email'); ?><br/> Login Pilot ID: <?php echo $code; ?><br/> Login Pilot ID: <?php echo PilotData::GetPilotCode($pilot->code,$pilot->pilotid)?><br/> Login Password: As specified during registration<br/> <br /><br /> Thanks!<br /><br /> <?php echo SITE_NAME?> Staff As you can see I have tried getting teh pilot code in two different ways and both give me undesired results. The for teh login pilot ID I either get teh company code (OCC) or I get three zero's. I set my config to only use three zero's instead of teh default 4. Any help would be appreciated Cheers
  17. Hi everyone I have followed all the posts and have implemented the forum registration and it all work perfectly. I am using phpBB 2 and here is my problem. I want to be able to send the country name to the forum databse, I can get the country code in easy enough, but just not the actual country name here is my code completed (without teh country thingy as I cannot get it to work) <?php class ForumRegister extends CodonModule { public function __construct() { CodonEvent::addListener('ForumRegister'); } public function EventListener($eventinfo) { if($eventinfo[0] == 'registration_complete') { $userinfo = $eventinfo[2]; $fname = $userinfo['firstname']; $lname = $userinfo['lastname']; $pass = $userinfo['password1']; $email = $userinfo['email']; $code = $userinfo['code']; $countries = $userinfo['countries']; $get_uinfo = mysql_query("SELECT * FROM phpvms_pilots WHERE firstname='".$fname."' AND lastname='".$lname."' AND email='".$email."'"); //echo "Result Select: ".mysql_error()."<br>"; $uinfo = mysql_fetch_array( $get_uinfo ); $str = $uinfo['pilotid']; $pilot_id = str_pad ($str,3,"0",STR_PAD_LEFT); $pilot_id = $code.$pilot_id; $pilot_id_klein = strtolower($pilot_id); $passMD5 = md5($pass); $tm = time(); $query = ("INSERT INTO phpbb_users ( user_id, user_active, username, user_password, user_session_time, user_lastvisit, user_regdate, user_timezone, user_style, user_lang, user_dateformat, user_attachsig, user_allowbbcode, user_allowsmile, user_allowavatar, user_allow_pm, user_allow_viewonline, user_notify_pm, user_popup_pm, user_email, user_from) VALUES($str, 1, '$pilot_id', '$passMD5', '$tm', '$tm', '$tm', 0.00, 2, 'english', 'D M d, Y g:i a', 1, 1, 1, 1, 1, 1, 1, 1, '$email', '$countries')"); $result = mysql_query($query) or die(mysql_error()); $query = ("INSERT INTO phpbb_groups (group_type, group_description, group_moderator, group_single_user) VALUES(1, 'Personal User', 0, 1)"); $result = mysql_query($query) or die(mysql_error()); $group_user_id = mysql_insert_id(); $query = ("INSERT INTO phpbb_user_group (group_id, user_id, user_pending) VALUES('$group_user_id', '$str', 0)"); $result = mysql_query($query) or die(mysql_error()); //echo "Result: ".mysql_error()."<br>"; //print_r($userinfo); } } } Any help is greatly appreciated.
  18. Hi Nabeel ok Thats great, thanks so much for your quick reply. Now just to get the google maps sorted out ;-)
  19. Hi Nabeel I have just discovered your software two day again, and I love it. A job really well done. I wanted to create a script that woudl automatically register a user on the phpBB forum system when teh registration was approved by VA management. This is when I cam accross thsi post. I dont want teh user's email address as the username, as this leads to spamming, etc. so I thought if I could ratehr create a username or use pilot number it woudl be fantastic. Here is where I noticed a major possible security breach While testing out this post I found that there are multiple confirgurations of the login possible I can use 1, 01, 001, 0001, OCC1, OCC01, OCC001, OCC0001, tester1, sdfsdfsdf1, basically as long as the username starts with a 1 or end with a 1 (1 meaning teh very forst user) if there are multiple users then whatever their pilot ID is Here is what I want to do. rather that make use of an email address I would prefer to use pilot number and/or a username created on registration. I am still learning teh code so at thsi stage I have absolutely no idea how to go about this I have Version 1.2.700 of phpVMS installed Thanks and keep up this fantastic project, Im clicking as many ads as possible ;-)
  20. orrenCharters - http://www.orrencharters.co.za
×
×
  • Create New...