
Kreu
Members-
Posts
23 -
Joined
-
Last visited
Never
Profile Information
-
Gender
Not Telling
Kreu's Achievements
Newbie (1/14)
0
Reputation
-
Brilliant! phpBB is working fine with this code! Thanks!
-
Website won't even show up! This error is diplayed though: Fatal error: Call to undefined method CodonModule::construct() in /home1/flymelit/public_html/core/modules/ForumRegister/ForumRegister.php on line 7
-
and how can i correct that? ???
-
This is what I get upon registering a new account: Confirmation Sent Thanks for registering for Fly Melita, you will be notified via email of your registration status. Warning: mysql_query() [function.mysql-query]: Access denied for user 'flymelit'@'localhost' (using password: NO) in /home1/flymelit/public_html/core/modules/ForumRegister/ForumRegister.php on line 26 Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in /home1/flymelit/public_html/core/modules/ForumRegister/ForumRegister.php on line 26 Result Select: Access denied for user 'flymelit'@'localhost' (using password: NO) Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home1/flymelit/public_html/core/modules/ForumRegister/ForumRegister.php on line 28 PilotID: Warning: mysql_query() [function.mysql-query]: Access denied for user 'flymelit'@'localhost' (using password: NO) in /home1/flymelit/public_html/core/modules/ForumRegister/ForumRegister.php on line 43 Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in /home1/flymelit/public_html/core/modules/ForumRegister/ForumRegister.php on line 43 And this is the code I used: <?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']; //mysql_query("INSERT INTO phpbb_users (username, user_password, group_id, user_timezone, user_dst, user_lang, user_type, user_actkey, user_dateformat, user_style, user_regdate) VALUES ($userr, $pass, '2','1.0', '0','en','0','','d M Y H:i', '1', time())"); $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 ); //echo "Uinfo: ".$uinfo['pilotid']; $str = $uinfo['pilotid']; $pilot_id = str_pad ($str,4,"0",STR_PAD_LEFT); $pilot_id = $fname.$lname.$code.$pilot_id; $pilot_id_klein = strtolower($pilot_id); //echo "Pass: ".$pass."<br>"; $passMD5 = md5($pass); //echo "Pass MD5: ".$passMD5."<br>"; echo "PilotID: ".$str."<br>"; $tm = time(); mysql_query("INSERT INTO phpbb_users (username, username_clean, user_password, user_email, group_id, user_timezone, user_dst, user_rank, user_lang, user_colour, user_type, user_actkey, user_dateformat, user_style, user_regdate) VALUES ('".$pilot_id."', '".$pilot_id_klein."', '".$passMD5."', '".$email."', '9','0.0', '0', '2','en','0099FF','1','5BN4938HB2','D M d, Y g:i a', '2', '".$tm."')"); //mysql_query("INSERT INTO phpbb_users (username, user_password) VALUES ('".$pilot_id."', '".md5($userinfo['password'])."')"); //echo "Result: ".mysql_error()."<br>"; //print_r($userinfo); } } } ?>
-
Could anyone be so kind as to paste a fully working phpBB script for the ForumRegsiter module? I tried using the phpBB listed codes but only got a series of errors back...
-
I'll have the solution posted if I do find the solution.... oh well, hands on then!
-
Hi, I've been getting a bit of a nuisance on my schedule details page - contrary to the other pages, it seems to ignore the CSS I have specified and rather than staying within the assigned div it shifts to the left dragging everything else with it. I tried fixing the coding from the core/templates but no results whatsoever were obtained. Is there any way I could go around this problem? P.S. Nabeel if you'd like to have a look at it in detail, pls PM me. Thanks
-
Ok, I updated to the latest version. However, I'm still not able to see the pictures assigned to awards in the profile(s)
-
Right, so I deleted the phpvms_test bit which after checking with my database, no such folder existed and that got the update installation working fine. But, the admin glitch still persists. Somehow, the Admin links were removed - I just hope that I can overcome that by manually readdressing the links to the files that they should link to...
-
I'm getting the following upon running the install/update.zip: There was an error, with the following message: "INSERT command denied to user 'flymelit_keith'@'localhost' for table 'phpvms_settings' (1142)" On the following query: -- Add total hours INSERT INTO `phpvms_test`.`phpvms_settings` (`id` ,`friendlyname` ,`name` , `value` ,`descrip` ,`core`) VALUES (NULL , 'Total VA Hours', 'TOTAL_HOURS', '0', 'Your VA''s Total Hours', '0'); Try running it manually Also, when I go to the Admin Center, upon clicking the previously expandable menu, nothing happens... Seems like they've become dead links after the update....
-
Hmmm.... that's odd. I downloaded what was stated as the latest release. I'll do my homework on that! In fact I have phpvms.update installed. Isn't that the latest release?
-
Hi, I got the same issue. I just removed the award altogether as it was looking rather silly. I had issued an award only for those who were present at launch on June 1st. Problem is, the award started appearing all over the place in that both non-present members and even our latest recruits have been getting that award assigned automatically. Was a fix found in the meantime?
-
Ok, thanks for the heads up
-
Hi, I just noted that when scheduling flights, a minor glitch manifests itself in that Thursday is shown as R i.e. the weekdays get abbreviated as follows: Monday (M) Tuesday (T), Wednesday (W) Thursday ® Friday (F) Saturday (S) Sunday (Su). I have been browsing through the files and cannot seem to find where the abbreviations are located. Any help as to where I could find that file so I could modify Thursday to start showing up as Th?? Thanks