Jump to content

mark1million

Moderators
  • Posts

    2283
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by mark1million

  1. Hi, i would like to add more information displayed to the last reports, ie departure destination etc can i edit the module directly? What i would like is to list on the front page a bit like fspassengers flight logs.
  2. I had this, how mant tables have you dot in your db? should be 22
  3. what i done was do an import of all the routes from the csv file. you may get timeouts but i was lucky i didnt. I added 500 airports a go, the csv can be downloaded from the admin panel import routes.
  4. Hi Guys sorry to keep banging on about this thread but i have managed to get this to work for SMF forums, the only problem i have is i want to put a space in the username of the forum, currently when someone registers it registers the following, flrstnamelastnamegtsxxx what i want is firstname lastname gtsxxx but im unsure how to put a space between the code i have to get the values, $pilot_id = $fname.$lname.$code.$pilot_id; Hope you know what im trying to say. Thanks
  5. While the offer maybe good, nothing is ever free. To base your site on a 3rs party's network is not really a sound way to proceed, don't get me wrong im sure you will get some takers but not for the serious VA they would pay for their own space, its not that expensive now any more anyway.
  6. Nabeel if you want some space give me a shout
  7. Right i have made a couple of changes, so now the code will register firstname lastname and pilot number, however for some reason it inserts in to the table ok but doesn't correctly register the new account as type 2 even though its in the script, users can log in but they are not registered properly for some reason. Im looking for you other code now, will post here when i find it.
  8. I remember seeing the code for this on the forums in phpbb3 mods, when you login to say phpvms you are logged in at the same time to the forum, its there somewhere because i came across it looking for the code above.
  9. Hi Matthias, i have tried your code above and its not working for some reason, any ideas?
  10. Yes it does thats because as Nabeel siad there's a conflict with class names in using their routine. I think its a bit unfair to ask for support here on this matter, Nabeel has done a fantastic job in creation of this VA admin software which is ongoing and you have to agree its fantastic. Im sure its possible but i dont have the answers and im sure Nabeel hasn't got the time to develop this at the moment as well, but if he has a chance then im sure he will but its not a priority.
  11. Ha, found it. Google is your best friend lol. Mine is going to a page displaying the captcha value.
  12. Hi Nabeel, i would like to also capture the ip address of someone who sends a mail from the contact us page on the site, I have added the hidden field, <input type="hidden" name="IP Address" value= is it just the case of some code there to complete like <?php echo (ipaddr ?>" /> Also once a mail has been sent it redirects to a blank page where is this so i can make it a but more friendly. Thanks.
  13. Have a look on the phpbb3 forums, it is possible but not easy, you have to use their routine because its links to all other settings and stuff, if you fill in a username and email in this template code it does work the password files is the tricky one however you can register new users without password and they can use the forgot / reset password to set a new one. <?php /** * Created on 22-nov-2008 17:10:39 * * Phpbb3 -- register_extern.php * @author Ramon Fincken http://www.ramonfincken.com/permalink/topic82.html * @author Mr Kirkland http://www.mrkirkland.com/adding-a-user-to-phpbb3-from-an-external-script/ */ define('IN_PHPBB', true); $phpbb_root_path = ''; // Your path here $phpEx = substr(strrchr(__FILE__, '.'), 1); include($phpbb_root_path . 'common.php'); // Start session management $user->session_begin(); $auth->acl($user->data); $user->setup(); require($phpbb_root_path .'includes/functions_user.php'); $username = ''; $password = ''; // Do NOT encrypt ! $email = ''; // Please validate this email yourself ! Phpbb will accept non-valid emails. // Do a check if username is allready there, same for email, otherwhise a nasty error will occur $user_row = array( 'username' => $username, 'user_password' => md5($password), 'user_email' => $email, 'group_id' => 2, #Registered users group 'user_timezone' => '1.00', 'user_dst' => 0, 'user_lang' => 'en', 'user_type' => '0', 'user_actkey' => '', 'user_dateformat' => 'd M Y H:i', 'user_style' => 1, 'user_regdate' => time(), ); $phpbb_user_id = user_add($user_row); echo "New user id = ".$phpbb_user_id; /code] ?> So you can see above that all that needs to be filled in is the, $username = ''; $password = ''; // Do NOT encrypt ! $email = ''; // Please validate this email yourself ! Phpbb will accept non-valid emails. Presto new account created, so if you manually typed in $username = 'username'; $password = ''; // Do NOT encrypt ! $email = 'you@yourdomain.com'; // Please validate this email yourself ! Phpbb will accept non-valid emails. That would be enough to create the new account
  14. Hi is this normal, Captcha showing in top left and middle?
  15. Try to re upload all your files again and run the install/update.php
  16. OK i have tried and tried and i have no hair left. So i have switched to SMF, i had the thing working as a test but then i tried messing about and wrecked it lol.... Here is what i started with so it will give you some idea if you know what your doing unlike me lol..... Good luck <?php include "forum/SSI.php"; //your forum path include "forum/Sources/Subs-Members.php"; ?> <script language="JavaScript" type="text/javascript" src="/forum/Themes/default/script.js?fin11"></script> <script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[ function verifyAgree() { if (document.forms.registrationForm.passwrd1.value != document.forms.registrationForm.passwrd2.value) { alert("The two passwords you entered are not the same!"); return false; } if (!document.forms.registrationForm.regagree.checked) { alert("Please read and accept the agreement before registering."); return false; } return true; } function checkAgree() { document.forms.registrationForm.regSubmit.disabled = isEmptyText(document.forms.registrationForm.user) || isEmptyText(document.forms.registrationForm.email) || isEmptyText(document.forms.registrationForm.passwrd1) || !document.forms.registrationForm.regagree.checked; setTimeout("checkAgree();", 1000); } setTimeout("checkAgree();", 1000); // ]]></script> <?php if (!isset($_POST['regSubmit'])) { ?> <table cellspacing="0" cellpadding="0" border="0"> <tr> <td style="width: 600px;"> <form action="<?php echo $PHP_SELF; ?>" method="post" accept-charset="ISO-8859-1" name="registrationForm" onsubmit="return verifyAgree();"> <table cellspacing="0" cellpadding="5" border="0"> <tr> <td> <b>Choose username:</b> </td> <td> <input type="text" name="user" size="20" tabindex="1" maxlength="25" /> </td> </tr> <tr> <td> <b>Email:</b> </td> <td> <input type="text" name="email" size="30" tabindex="2" /> <label for="hideEmail"> <input type="checkbox" name="hideEmail" id="hideEmail" class="check" /> Hide email address from public? </label> </td> </tr> <tr> <td> <b>Choose password:</b> </td> <td> <input type="password" name="passwrd1" size="30" tabindex="3" /> </td> </tr> <tr> <td> <b>Verify password:</b> </td> <td> <input type="password" name="passwrd2" size="30" tabindex="4" /> </td> </tr> <tr> <td colspan="2"><?php $agreement = fopen("forum/agreement.txt", "r"); while(!feof($agreement)) { $line = fgets($agreement); echo $line; } fclose($agreement); ?> </td> </tr> <tr> <td colspan="2" align="center"> <label for="regagree"> <input type="checkbox" name="regagree" onclick="checkAgree();" id="regagree" class="check" /> <b>I Agree</b> </label> </td> </tr> <tr> <td colspan="2"> <div align="center"> <input type="submit" name="regSubmit" value="Register" /> </div> </td> </tr> </table> </form> <script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[ document.forms.registrationForm.regagree.checked = false; document.forms.registrationForm.regSubmit.disabled = !document.forms.registrationForm.regagree.checked; // ]]></script> </td> </tr> </table> <?php } else { $password = sha1(strtolower($_POST['user']) . $_POST['passwrd1']); $password2 = sha1(strtolower($_POST['user']) . $_POST['passwrd2']); $regOptions = array( 'interface' => 'guest', 'username' => $_POST['user'], 'password' => $password, 'password_check' => $password2, 'email' => $_POST['email'], 'check_reserved_name' => true, 'check_email_ban' => true, 'send_welcome_email' => false, 'require' => 'nothing', 'auth_method' => 'password', ); registerMember($regOptions); } ?>
  17. The current version im using remembers login details although that may be browser specific (chrome) Hi with your second question are you able to do a export from your existing db and import in to phpvms?
  18. Thanks, will give that a try now.
  19. Hi when a pilot joins and is approved i want to send them a mail with instructions etc in, i have been looking for the tpl but cant seem to find it, every other one apart from the approved tpl, can someone point me in the right direction, Thanks..
  20. Forget the money dave lol, its a great update even if you leave the settings at 0. Lots of new features youll love it...
  21. Tried that one first, it didn't seem to work.
  22. <?php $report = PIREPData::GetLastReports($pilot->pilotid, 1); echo date('d.M.Y', strtotime($report->submitdate)); ?> That works Thank you
  23. Still cant get to work I will have another play later on.
  24. mark1million

    Templates

    I have had a mess about with different ideas, have a look at my attempt if you want, im still developing the site and ideas so its a work in progress. http://grantsva.com
  25. It also tells you what version you have in the bottom right.
×
×
  • Create New...