Error in the Add on MAP MOD for this MOD!!!

Forum_easyUCP_Desc

Error in the Add on MAP MOD for this MOD!!!

Beitragvon mariocaz » 31. Jan 2006 10:30

Hi again my friend Amigalink!!1 8)

Well i just installed your EasyUCP MOD for my phpbbPlus 1.52 2.0.19

And I have an error when I clicked any botton like Information, Preferences, Avatar, etc. :cry:

This is the error that appears in my forum:

Bild

I also Installed the Add on "Map MOD" and I think I missed some SQL instruction for this MOD but I did'nt saw anything of that in the instructions. :?

What Can I do for fix it ?? :)

And another thing I don't see the letters in all the buttons of my User Control Panel, so what can I do for change this?? :(

I put here an image.

Bild

Please my friend help me because any people can register in my forum for that problem and also I want to install the easyUCP extension - Second Profilpage MOD. :)

Regards and I will wait your help my friend! :wink:
mariocaz
User
 
Beiträge: 148
Registriert: 9. Jun 2005 07:35

Beitragvon AmigaLink » 31. Jan 2006 11:05

  1. The table definitions for the Map MOD are missing in the constants.php
  2. The language entrys are missing.
    Either this
    Code: Alles auswählen
    // <!-- BEGIN easyUCP -->
       'L_PROFILE_ADMIN' => sprintf($lang['Profile_Admin'], $profiledata['username']),
       'L_REGISTRATION_INFO' => $lang['Registration_info'],
       'L_PROFILE_INFO' => $lang['Profile_info'],
       'L_PREFERENCES' => $lang['Preferences'],
       'L_SIGNATURE' => $lang['Signature'],
       'L_PROFILE' => strtok($lang['Viewing_user_profile'], ":"),
       'L_USER' => $profiledata['username'],
       'L_USERGROUPS' => $lang['Usergroups'],
       'L_LAST_VISIT' => $lang['last_visit'],
       'L_LAST_POST' => $lang['Last_Post'],
    // <!-- END easyUCP -->
    in the usercp_viewprofile.php

    or this
    Code: Alles auswählen
    // <!-- BEGIN easyUCP -->
    $lang['easyUCP'] = '<font color="red">easy</font> User Control Panel';
    $lang['easyUCP_profil_control'] = 'Profil preferences';
    $lang['easyUCP_extension_control'] = 'Control panel';
    $lang['Profile_Admin'] = 'User Administration for %s'; // %s is username
    $lang['Hide_profile'] = 'Allow Profileview for Guests';
    $lang['last_visit'] = 'Last visit';
    $lang['never_visited'] = 'Never loged in!';
    $lang['no_post'] = 'no postings';

    //signature editor
    $lang['sig_description'] = "Edit Signature (<b>Preview included</b>)";
    $lang['sig_edit'] = "Edit Signature";
    $lang['sig_current'] = "Current Signature";
    $lang['sig_none'] = '<font color = "red">No Signature available</font>';
    $lang['sig_save'] = "Save";
    $lang['sig_save_message'] = "Signature saved successful !";
    // <!-- END easyUCP -->
    in your lang_main.php
Die deutsche Sprache ist Freeware, du kannst sie benutzen, ohne dafür zu bezahlen. Sie ist aber nicht Open Source, also darfst du sie nicht verändern, wie es dir gerade passt.
Benutzeravatar
AmigaLink
Administrator
 
Beiträge: 3987
Registriert: 11. Aug 2004 01:06
Wohnort: NRW

Beitragvon mariocaz » 31. Jan 2006 18:33

Thanx amigalink!!!

Well I don't have all of that in my lang_main.php files because in the instructions of the Mod only say this:

Code: Alles auswählen
#
#-----[ OPEN ]--------------------------------------------------
#

language/lang_english/lang_main.php

#
#-----[ FIND ]--------------------------------------------------
#

//
// That's all, Folks!
// -------------------------------------------------

#
#-----[ BEFORE, ADD ]--------------------------------------------------
#

// <!-- BEGIN easyUCP -->
$lang['easyUCP'] = '<font color="red">easy</font> User Control Panel';
$lang['Profile_Admin'] = 'User Administration for %s'; // %s is username
$lang['Hide_profile'] = 'Allow Profileview for Guests';
// <!-- END easyUCP -->

#
#-----[ OPEN ]--------------------------------------------------
#

language/lang_german/lang_main.php

#
#-----[ FIND ]--------------------------------------------------
#

?>

#
#-----[ BEFORE, ADD ]--------------------------------------------------
#

// <!-- BEGIN easyUCP -->
$lang['easyUCP'] = '<font color="red">easy</font> User Control Panel';
$lang['Profile_Admin'] = 'Benutzer Administration für %s'; // %s ist der Benutzername
$lang['Hide_profile'] = 'Profilansicht für Gäste erlauben';
// <!-- END easyUCP -->

#
#-----[ SAVE AND CLOSE ALL FILES ]--------------------------------------------------
#
# EoM


So what I have to do ?? :?

The usercp_viewprofile.php is ok. :)

In all the instructions of the MOD I don't see anything about the tables of the MAP Mod. :?

And also didn't see any modification to the constant.php file.

I remeber you that I am installing the easyUCP for my phpbbPlus and using this instructions of the MOD..."This installation Guide is vor phpBB plus 1.5x only". :wink:

And I put here the MOD that i downloaded from here to take a look please. :o

Thanx again!

Added after 33 minutes:

Well my friend I erased all of the MAP MOD instructions and now everything is working pretty well, thanx a lot. 8)

One more thing what can I do for fix the letter of the buttons because in my template can't read it. :?

[center][ Attachment gelöscht am 31.01.2006, 21:44 von AmigaLink ][/center]
mariocaz
User
 
Beiträge: 148
Registriert: 9. Jun 2005 07:35

Beitragvon AmigaLink » 31. Jan 2006 21:48

That is Version 1.1.1 of the easyUCP
The newest Version is 1.2.0
Please install this update without the part vor the Visual Confirmation Code.
Zuletzt geändert von AmigaLink am 31. Jan 2006 22:53, insgesamt 1-mal geändert.
Die deutsche Sprache ist Freeware, du kannst sie benutzen, ohne dafür zu bezahlen. Sie ist aber nicht Open Source, also darfst du sie nicht verändern, wie es dir gerade passt.
Benutzeravatar
AmigaLink
Administrator
 
Beiträge: 3987
Registriert: 11. Aug 2004 01:06
Wohnort: NRW

Beitragvon mariocaz » 31. Jan 2006 22:15

Okis without all the Visual Confirmations parts ????
mariocaz
User
 
Beiträge: 148
Registriert: 9. Jun 2005 07:35

Beitragvon AmigaLink » 31. Jan 2006 22:52

Yes.
This
Code: Alles auswählen
#
#----------[ FIND ]-------------------------------------
#

   // Visual Confirmation
   $confirm_image = '';
   if (!empty($board_config['enable_confirm']) && $mode == 'register')
   {
      $sql = 'SELECT session_id
         FROM ' . SESSIONS_TABLE;
      if (!($result = $db->sql_query($sql)))
      {
         message_die(GENERAL_ERROR, 'Could not select session data', '', __LINE__, __FILE__, $sql);
      }

      if ($row = $db->sql_fetchrow($result))
      {
         $confirm_sql = '';
         do
         {
            $confirm_sql .= (($confirm_sql != '') ? ', ' : '') . "'" . $row['session_id'] . "'";
         }
         while ($row = $db->sql_fetchrow($result));
       
         $sql = 'DELETE FROM ' .  CONFIRM_TABLE . "
            WHERE session_id NOT IN ($confirm_sql)";
         if (!$db->sql_query($sql))
         {
            message_die(GENERAL_ERROR, 'Could not delete stale confirm data', '', __LINE__, __FILE__, $sql);
         }
      }
      $db->sql_freeresult($result);

      $sql = 'SELECT COUNT(session_id) AS attempts
         FROM ' . CONFIRM_TABLE . "
         WHERE session_id = '" . $userdata['session_id'] . "'";
      if (!($result = $db->sql_query($sql)))
      {
         message_die(GENERAL_ERROR, 'Could not obtain confirm code count', '', __LINE__, __FILE__, $sql);
      }

      if ($row = $db->sql_fetchrow($result))
      {
         if ($row['attempts'] > 3)
         {
            message_die(GENERAL_MESSAGE, $lang['Too_many_registers']);
         }
      }
      $db->sql_freeresult($result);
       
      $confirm_chars = array('A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J',  'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T',  'U', 'V', 'W', 'X', 'Y', 'Z', '1', '2', '3', '4', '5', '6', '7', '8', '9');

      list($usec, $sec) = explode(' ', microtime());
      mt_srand($sec * $usec);

      $max_chars = count($confirm_chars) - 1;
      $code = '';
      for ($i = 0; $i < 6; $i++)
      {
         $code .= $confirm_chars[mt_rand(0, $max_chars)];
      }

      $confirm_id = md5(uniqid($user_ip));

      $sql = 'INSERT INTO ' . CONFIRM_TABLE . " (confirm_id, session_id, code)
         VALUES ('$confirm_id', '". $userdata['session_id'] . "', '$code')";
      if (!$db->sql_query($sql))
      {
         message_die(GENERAL_ERROR, 'Could not insert new confirm code information', '', __LINE__, __FILE__, $sql);
      }

      unset($code);
       
      $confirm_image = (@extension_loaded('zlib')) ? '<img src="' . append_sid("profile.$phpEx?mode=confirm&amp;id=$confirm_id") . '" alt="" title="" />' : '<img src="' . append_sid("profile.$phpEx?mode=confirm&amp;id=$confirm_id&amp;c=1") . '" alt="" title="" /><img src="' . append_sid("profile.$phpEx?mode=confirm&amp;id=$confirm_id&amp;c=2") . '" alt="" title="" /><img src="' . append_sid("profile.$phpEx?mode=confirm&amp;id=$confirm_id&amp;c=3") . '" alt="" title="" /><img src="' . append_sid("profile.$phpEx?mode=confirm&amp;id=$confirm_id&amp;c=4") . '" alt="" title="" /><img src="' . append_sid("profile.$phpEx?mode=confirm&amp;id=$confirm_id&amp;c=5") . '" alt="" title="" /><img src="' . append_sid("profile.$phpEx?mode=confirm&amp;id=$confirm_id&amp;c=6") . '" alt="" title="" />';
      $s_hidden_fields .= '<input type="hidden" name="confirm_id" value="' . $confirm_id . '" />';

      $template->assign_block_vars('switch_confirm', array());
   }

#
#----------[ REPLACE WITH ]-----------------------------
#

/*
   // Visual Confirmation
   $confirm_image = '';
   if (!empty($board_config['enable_confirm']) && $mode == 'register')
   {
      $sql = 'SELECT session_id
         FROM ' . SESSIONS_TABLE;
      if (!($result = $db->sql_query($sql)))
      {
         message_die(GENERAL_ERROR, 'Could not select session data', '', __LINE__, __FILE__, $sql);
      }

      if ($row = $db->sql_fetchrow($result))
      {
         $confirm_sql = '';
         do
         {
            $confirm_sql .= (($confirm_sql != '') ? ', ' : '') . "'" . $row['session_id'] . "'";
         }
         while ($row = $db->sql_fetchrow($result));
       
         $sql = 'DELETE FROM ' .  CONFIRM_TABLE . "
            WHERE session_id NOT IN ($confirm_sql)";
         if (!$db->sql_query($sql))
         {
            message_die(GENERAL_ERROR, 'Could not delete stale confirm data', '', __LINE__, __FILE__, $sql);
         }
      }
      $db->sql_freeresult($result);

      $sql = 'SELECT COUNT(session_id) AS attempts
         FROM ' . CONFIRM_TABLE . "
         WHERE session_id = '" . $userdata['session_id'] . "'";
      if (!($result = $db->sql_query($sql)))
      {
         message_die(GENERAL_ERROR, 'Could not obtain confirm code count', '', __LINE__, __FILE__, $sql);
      }

      if ($row = $db->sql_fetchrow($result))
      {
         if ($row['attempts'] > 3)
         {
            message_die(GENERAL_MESSAGE, $lang['Too_many_registers']);
         }
      }
      $db->sql_freeresult($result);
       
      $confirm_chars = array('A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J',  'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T',  'U', 'V', 'W', 'X', 'Y', 'Z', '1', '2', '3', '4', '5', '6', '7', '8', '9');

      list($usec, $sec) = explode(' ', microtime());
      mt_srand($sec * $usec);

      $max_chars = count($confirm_chars) - 1;
      $code = '';
      for ($i = 0; $i < 6; $i++)
      {
         $code .= $confirm_chars[mt_rand(0, $max_chars)];
      }

      $confirm_id = md5(uniqid($user_ip));

      $sql = 'INSERT INTO ' . CONFIRM_TABLE . " (confirm_id, session_id, code)
         VALUES ('$confirm_id', '". $userdata['session_id'] . "', '$code')";
      if (!$db->sql_query($sql))
      {
         message_die(GENERAL_ERROR, 'Could not insert new confirm code information', '', __LINE__, __FILE__, $sql);
      }

      unset($code);
       
      $confirm_image = (@extension_loaded('zlib')) ? '<img src="' . append_sid("profile.$phpEx?mode=confirm&amp;id=$confirm_id") . '" alt="" title="" />' : '<img src="' . append_sid("profile.$phpEx?mode=confirm&amp;id=$confirm_id&amp;c=1") . '" alt="" title="" /><img src="' . append_sid("profile.$phpEx?mode=confirm&amp;id=$confirm_id&amp;c=2") . '" alt="" title="" /><img src="' . append_sid("profile.$phpEx?mode=confirm&amp;id=$confirm_id&amp;c=3") . '" alt="" title="" /><img src="' . append_sid("profile.$phpEx?mode=confirm&amp;id=$confirm_id&amp;c=4") . '" alt="" title="" /><img src="' . append_sid("profile.$phpEx?mode=confirm&amp;id=$confirm_id&amp;c=5") . '" alt="" title="" /><img src="' . append_sid("profile.$phpEx?mode=confirm&amp;id=$confirm_id&amp;c=6") . '" alt="" title="" />';
      $s_hidden_fields .= '<input type="hidden" name="confirm_id" value="' . $confirm_id . '" />';

      $template->assign_block_vars('switch_confirm', array());
   }
*/
and this
Code: Alles auswählen
#
#----------[ FIND ]-------------------------------------
#

      if ( ($mode == 'register') || ($board_config['allow_namechange']) )
      {
         $template->assign_block_vars('switch_ucp_require.switch_namechange_allowed', array());
      }
      else
      {
         $template->assign_block_vars('switch_ucp_require.switch_namechange_disallowed', array());
      }

#
#----------[ AFTER, ADD ]-------------------------------
#

         // Visual Confirmation
         $confirm_image = '';
         if (!empty($board_config['enable_confirm']) && $mode == 'register')
         {
            $sql = 'SELECT session_id
               FROM ' . SESSIONS_TABLE;
            if (!($result = $db->sql_query($sql)))
            {
               message_die(GENERAL_ERROR, 'Could not select session data', '', __LINE__, __FILE__, $sql);
            }

            if ($row = $db->sql_fetchrow($result))
            {
               $confirm_sql = '';
               do
               {
                  $confirm_sql .= (($confirm_sql != '') ? ', ' : '') . "'" . $row['session_id'] . "'";
               }
               while ($row = $db->sql_fetchrow($result));
             
               $sql = 'DELETE FROM ' .  CONFIRM_TABLE . "
                  WHERE session_id NOT IN ($confirm_sql)";
               if (!$db->sql_query($sql))
               {
                  message_die(GENERAL_ERROR, 'Could not delete stale confirm data', '', __LINE__, __FILE__, $sql);
               }
            }
            $db->sql_freeresult($result);

            $sql = 'SELECT COUNT(session_id) AS attempts
               FROM ' . CONFIRM_TABLE . "
               WHERE session_id = '" . $userdata['session_id'] . "'";
            if (!($result = $db->sql_query($sql)))
            {
               message_die(GENERAL_ERROR, 'Could not obtain confirm code count', '', __LINE__, __FILE__, $sql);
            }

            if ($row = $db->sql_fetchrow($result))
            {
               if ($row['attempts'] > 3)
               {
                  message_die(GENERAL_MESSAGE, $lang['Too_many_registers']);
               }
            }
            $db->sql_freeresult($result);
             
            $confirm_chars = array('A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J',  'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T',  'U', 'V', 'W', 'X', 'Y', 'Z', '1', '2', '3', '4', '5', '6', '7', '8', '9');

            list($usec, $sec) = explode(' ', microtime());
            mt_srand($sec * $usec);

            $max_chars = count($confirm_chars) - 1;
            $code = '';
            for ($i = 0; $i < 6; $i++)
            {
               $code .= $confirm_chars[mt_rand(0, $max_chars)];
            }

            $confirm_id = md5(uniqid($user_ip));

            $sql = 'INSERT INTO ' . CONFIRM_TABLE . " (confirm_id, session_id, code)
               VALUES ('$confirm_id', '". $userdata['session_id'] . "', '$code')";
            if (!$db->sql_query($sql))
            {
               message_die(GENERAL_ERROR, 'Could not insert new confirm code information', '', __LINE__, __FILE__, $sql);
            }

            unset($code);
             
            $confirm_image = (@extension_loaded('zlib')) ? '<img src="' . append_sid("profile.$phpEx?mode=confirm&amp;id=$confirm_id") . '" alt="" title="" />' : '<img src="' . append_sid("profile.$phpEx?mode=confirm&amp;id=$confirm_id&amp;c=1") . '" alt="" title="" /><img src="' . append_sid("profile.$phpEx?mode=confirm&amp;id=$confirm_id&amp;c=2") . '" alt="" title="" /><img src="' . append_sid("profile.$phpEx?mode=confirm&amp;id=$confirm_id&amp;c=3") . '" alt="" title="" /><img src="' . append_sid("profile.$phpEx?mode=confirm&amp;id=$confirm_id&amp;c=4") . '" alt="" title="" /><img src="' . append_sid("profile.$phpEx?mode=confirm&amp;id=$confirm_id&amp;c=5") . '" alt="" title="" /><img src="' . append_sid("profile.$phpEx?mode=confirm&amp;id=$confirm_id&amp;c=6") . '" alt="" title="" />';
            $s_hidden_fields .= '<input type="hidden" name="confirm_id" value="' . $confirm_id . '" />';

            $template->assign_block_vars('switch_ucp_require.switch_confirm', array());
         }
are not for plus boards.
Die deutsche Sprache ist Freeware, du kannst sie benutzen, ohne dafür zu bezahlen. Sie ist aber nicht Open Source, also darfst du sie nicht verändern, wie es dir gerade passt.
Benutzeravatar
AmigaLink
Administrator
 
Beiträge: 3987
Registriert: 11. Aug 2004 01:06
Wohnort: NRW

Beitragvon mariocaz » 1. Feb 2006 00:34

Okis now I have my easyUCP updated. :wink:

And I want the second profilepage for this great Mod, Can I do this in my phpbbPlus 1.52 2.0.19 ????? :?
mariocaz
User
 
Beiträge: 148
Registriert: 9. Jun 2005 07:35

Beitragvon AmigaLink » 1. Feb 2006 01:06

I did not test ist but the Second Profilepage extension should be run on phpBBplus. :)
Die deutsche Sprache ist Freeware, du kannst sie benutzen, ohne dafür zu bezahlen. Sie ist aber nicht Open Source, also darfst du sie nicht verändern, wie es dir gerade passt.
Benutzeravatar
AmigaLink
Administrator
 
Beiträge: 3987
Registriert: 11. Aug 2004 01:06
Wohnort: NRW

Beitragvon mariocaz » 1. Feb 2006 01:12

Ok my friend, I am installing it, any problem I tell you jejeje :P
mariocaz
User
 
Beiträge: 148
Registriert: 9. Jun 2005 07:35

Beitragvon AmigaLink » 1. Feb 2006 01:15

Ok, but in a new topic please. :)
Die deutsche Sprache ist Freeware, du kannst sie benutzen, ohne dafür zu bezahlen. Sie ist aber nicht Open Source, also darfst du sie nicht verändern, wie es dir gerade passt.
Benutzeravatar
AmigaLink
Administrator
 
Beiträge: 3987
Registriert: 11. Aug 2004 01:06
Wohnort: NRW


Zurück zu easy UCP



Wer ist online?

Mitglieder in diesem Forum: Google [Bot] und 4 Gäste

cron