-
Posts
2283 -
Joined
-
Last visited
-
Days Won
2
Content Type
Profiles
Forums
phpVMS Resources
Downloads
Posts posted by mark1million
-
-
Did you put the files in your root directory or are they still in a folder of your root?
-
Right i have a date in there now but its 1969, this is the format i used, have i missed something?
<?php echo date(DATE_FORMAT, $report->submitdate); ?>
-
No worries ill have a look at where the latest pireps get the info from
-
Go to php my admin and create a database "name is in docs" and a user with all permissions, then go to your directory site and put in where the folder is ie, www.yoururl.com/install/install.php thats if you placed in the root, the rest is just following steps.
You seem to have not created a database yet by your description above.
-
Hi, im trying to list on the pilots page the last date that a pilot flew, i have been playing with the
<?php echo PilotData::GetFieldValue($pilot->pilotid, '*********'); ?> but not sure if that can work. Any sugestions please.
Thanks
-
I could have a look if your really stuck, i use team viewer for remote desktop sharing session, so you can also see whats going on.
-
still not magaged to get it to work with phpbb3, this is a good feature so if we can get this working on A forum then that would be good, i suppose add to the list lol. can someone ask for more hours in the day....
-
Thats what im using bb3, here is the code for phpbb3. as you are taking the data from a sanitised source all of the safe guards have been removed, valid email etc.... This code takes the data from the existing redistration page and puts it directly in to bb3 db. I have not had chance to check fully but will be testing tonight.
<?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]
?>
Let me know if you get it working ;D hopefully find the time tonight fingers crossed.....
-
No prob! Lemme know if you need any other help/if that worked. Kinda just banged it out, didn't really test it
You make it seem so easy
Thanks for that will give it a try later when i finish work.
-
WOW! Christmas comes early!
Thank you.
-
Hi guys, i feel a bit cheeky asking this but i have been trying to get this to work and i keep hitting a brick wall, im no coder but i have the code that works to directly create accounts i just need the code to pass it the details from the registration data ie firstname lastname and pilotid passwird and email.
If anyone has the time to explain to an old man who should have learnt coding years ago i would be grateful.
Thanks
-
Has anyone requested an exam system for joining pilots?
-
In the cruise field is that speed or altitude? the reason im asking is i have listed the recommended efficient cruise altitude in mine but looking at this i may be wrong.
Thanks
-
Hi, See the skinning tutorials below,
-
ie is a real pain especially 6. ie doesn't handle java very well, its processing engine is c**p.
-
Ha Fantastic works a treat. was wondering why that stopped working
-
Nice one cheers!
-
Hey John let us know the files then?
Thanks
-
Ah thank you.
-
Hi guys, im having trouble locating the settings when a pilot logs in they are redirected to their main profile.
I have this setup before but after some changes and updating its gone back to when you log in you go back to the main index.
Thanks.
-
Yes, thats it Thanks will have a play with that.
-
Nabeel what im trying to do is once a pilot is approved then a forum account is created, I have the creation script i just need to put it in to the trigger which i want to be the approve button, or thinking on further maybe when you click the pilots name i could add a button to create a forum account as well.
The easiest option would be to get the script to fire reading the profile name email etc when the approve pilot button is hit, so i suppose the question is what happens now when you double click the accept pilot.
Hope i make some kind of sence,
Thanks
- 1
-
Hi, not sure if its just me or not but when a pilot registers he gets a mail saying he will be informed when his account is active, that works fine but when you approve the registration no mail is sent out confirming his status.
-
You could use external settings to restrict pages with a password from your server if you know how. That would be the easiest with out having to create user levels and assign them permissions.
Last flight date
in Support Forum
Posted
Changed to
<?php echo date(d.m.Y, $report->submitdate); ?>
Still get 31 12 1969, will try logging another flight see what happens