Problem with profiles after upgrade to 1.4.4 ??

Makes it posble for admin to specify witch type of users may mass PM any usergroup
Also PM users can be a list of usernames, so PM can be sendt to any number of users

Moderator: Moderators

Forum rules
The content in this forum is dated Dec. 21 2005 and can be used as Archive only. This Forum is LOCKED and READ ONLY !

Problem with profiles after upgrade to 1.4.4 ??

Postby zoombini on Wed 03. Dec, 2003 01:10

Hello, I did the upgrade to 1.4.4 with
Code: Select all

#
#-----[ OPEN ]------------------------------------------------
#
includes/functions_validate.php

#
#-----[ FIND ]------------------------------------------------
#
// Don't allow
if (strstr(

#
#-----[ IN-LINE FIND ]----------------------------------------
#
, chr(160))

#
#-----[ IN-LINE AFTER, ADD ]----------------------------------------
#
|| strstr($username, ';')

And now I notice that on trying to save a profile I get
Code: Select all
Parse error: parse error in /home/ukthunde/public_html/forum/includes/functions_validate.php
on line 107

Fatal error: Call to undefined function: validate_optional_fields() in
/home/ukthunde/public_html/forum/includes/usercp_register.php on line 133


I have looked at functions_validate.php and around line 107 is
Code: Select all
{
      if ($row = $db->sql_fetchrow($result))
      {
         do
         {
            if (preg_match("#\b(" . str_replace("\*", ".*?", phpbb_preg_quote($row['word'], '#')) . ")\b#i", $username))
            {
               $db->sql_freeresult($result);
               return array('error' => true, 'error_msg' => $lang['Username_disallowed']);
            }
         }
         while ($row = $db->sql_fetchrow($result));
      }
   }
   $db->sql_freeresult($result);

   // Don't allow " and ALT-255 in username.

Line 107 is
Code: Select all
while ($row = $db->sql_fetchrow($result));


Around line 133 in usercp_register.php I get
Code: Select all
// Start add - Custom mass PM MOD
$allow_mass_pm = ( isset($HTTP_POST_VARS['allow_mass_pm']) ) ? intval ($HTTP_POST_VARS['allow_mass_pm']) : 2;
// End add - Custom mass PM MOD


So it appears that when either doing the update I also did something wrong.

Any suggestions as to what & how I should go about fixing this?
Should I be able to put a default functions_validate.php back or would one of other mods perhaps use it?

Zoombini?
zoombini
Poster
Poster
 
Posts: 32
Joined: Sun 14. Sep, 2003 13:25

Postby zoombini on Wed 03. Dec, 2003 01:39

Ok, I have replaced functions_validate.php with one from a default board.
And then done the upgrade again, but this time I think I maybe got a ")" too few as there were 3 to start with after the" , chr(160)) " and maybe I deleted one when doing the mod.

And upon proving that it was that, I have now put the problem file back again with the extra ")" back in and it apopears to work fine.

So I'm rambling to myself here & if a mod wants to he/she can delete the whole thread.

Zoombini
zoombini
Poster
Poster
 
Posts: 32
Joined: Sun 14. Sep, 2003 13:25


Return to Custom mass PM [2.0.6/EM]

Who is online

Users browsing this forum: No registered users and 1 guest

cron