Log in Register FAQ Memberlist Search Welcome to RCF - WHF Forum Index
alt : test.swf
Welcome to RCF - WHF
4fx3.gif 
calendar_open_closeCalendar 
Problem Installing all mods via Easymod
Post new topic   Reply to topic View previous topic :: View next topic
Goto page: Previous  1, 2, 3, 4  Next
Welcome to RCF - WHF Forum Index -> Area 51 - phpBB & Easymod Tech Support Add To Bookmarks
Re: Problem Installing all mods via Easymod
PostPosted: 03/19/2007 5:32 PM Reply with quote
Site Admin
Nightrider
Site Admin
Posts 30757
Word Cnt. 2,628,690
BDay Jul 28
Sign Leo
Sex Sex:Male
Joined: Sep 25, 2004
Local time: 7:09 AM
Location: St Pete, FL
peace.gif
Could you please provide a text link to your admin/admin_users.php file???

Usually with EM, less is best.  Many MOD authors provide far too much detail in their FIND statements, limiting the number of boards that the MOD can install cleanly without any conflicts or need for modification.  Once I see the MOD's script, I will be able to tell you how to modify the MOD script to work on your board...

Creating text Links for phpBB files

First create a duplicate of the phpBB file on your PC, then rename the file by adding .txt to the end of the file name.  Next upload the file to a location on your FTP Server accessible to the public and provide a link back here for us to analyze it...

The path to your file could look something like this now:

Code:
http://yourdomain.com/downloads_folder/admin_users.txt

headbang


Last edited by Nightrider on 03/19/2007 9:18 PM; edited 1 time in total
Back to Top
View all pictures posted by this userView user's profile Find all posts by Nightrider Send private message   AIM Address Yahoo Messenger Phoogle Map ICQ Number
Re: Problem Installing all mods via Easymod
PostPosted: 03/19/2007 6:51 PM Reply with quote
Sparrow
Emp
Sparrow
Posts 17
Word Cnt. 766
BDay N/A
Sign N/A
Joined: Mar 19, 2007
Local time: 6:09 AM
blank.gif
http://putstuff.putfile.com/60049/7861847 you can find a copy of my file Smile
Back to Top
View user's profile Find all posts by Emp Send private message  
Re: Problem Installing all mods via Easymod
PostPosted: 03/19/2007 9:14 PM Reply with quote
Site Admin
Nightrider
Site Admin
Posts 30757
Word Cnt. 2,628,690
BDay Jul 28
Sign Leo
Sex Sex:Male
Joined: Sep 25, 2004
Local time: 7:09 AM
Location: St Pete, FL
peace.gif
Emp wrote:
I just want to install acp anti-spam as my site has some issues with spammers :/

Ok, try this:

OPEN
Anti-Spam_ACP.mod

FIND
Code:
#
#-----[ FIND ]------------------------------------------
#

         $message = $lang['User_deleted'] . '<br /><br />' . sprintf($lang['Click_return_useradmin'], '<a href="' . append_sid("admin_users.$phpEx") . '">', '</a>') . '<br /><br />' . sprintf($lang['Click_return_admin_index'], '<a href="' . append_sid("index.$phpEx?pane=right") . '">', '</a>');

         message_die(GENERAL_MESSAGE, $message);

REPLACE WITH
Code:
#
#-----[ FIND ]------------------------------------------
#
$message = $lang['User_deleted']

message_die(

Save, upload, and try again using EM...

If you don't understand why my suggestion above will work, please ask. Once you understand the basics of how to get these MODs to install cleanly, you should be able to install even the most difficult MODs using EM...

headbang
Back to Top
View all pictures posted by this userView user's profile Find all posts by Nightrider Send private message   AIM Address Yahoo Messenger Phoogle Map ICQ Number
Re: Problem Installing all mods via Easymod
PostPosted: 03/19/2007 9:19 PM Reply with quote
Site Admin
Nightrider
Site Admin
Posts 30757
Word Cnt. 2,628,690
BDay Jul 28
Sign Leo
Sex Sex:Male
Joined: Sep 25, 2004
Local time: 7:09 AM
Location: St Pete, FL
peace.gif
I really don't know what happened in that last post.  It seems to have combined two of my messages and removed your's...   dontknow

Emp wrote:
I just want to install acp anti-spam as my site has some issues with spammers

Ok, try this:

OPEN
Anti-Spam_ACP.mod

FIND
Code:
#
#-----[ FIND ]------------------------------------------
#

         $message = $lang['User_deleted'] . '<br /><br />' . sprintf($lang['Click_return_useradmin'], '<a href="' . append_sid("admin_users.$phpEx") . '">', '</a>') . '<br /><br />' . sprintf($lang['Click_return_admin_index'], '<a href="' . append_sid("index.$phpEx?pane=right") . '">', '</a>');

         message_die(GENERAL_MESSAGE, $message);

REPLACE WITH
Code:
#
#-----[ FIND ]------------------------------------------
#
$message = $lang['User_deleted']

message_die(

Save, upload, and try again using EM...

If you don't understand why my suggestion above will work, please ask. Once you understand the basics of how to get these MODs to install cleanly, you should be able to install even the most difficult MODs using EM...

headbang
Back to Top
View all pictures posted by this userView user's profile Find all posts by Nightrider Send private message   AIM Address Yahoo Messenger Phoogle Map ICQ Number
Re: Problem Installing all mods via Easymod
PostPosted: 03/19/2007 9:52 PM Reply with quote
Sparrow
Emp
Sparrow
Posts 17
Word Cnt. 766
BDay N/A
Sign N/A
Joined: Mar 19, 2007
Local time: 6:09 AM
blank.gif
In case you missed it the first time you can find my file at http://putstuff.putfile.com/60049/7861847


I just tried that change you told me to make and the following error popped up instead:


Critical Error

FIND FAILED: In file [admin/admin_users.php] could not find:

$message = $lang['User_deleted']
message_die(

MOD script line #193[/url]
Back to Top
View user's profile Find all posts by Emp Send private message  
Re: Problem Installing all mods via Easymod
PostPosted: 03/19/2007 10:47 PM Reply with quote
Site Admin
Nightrider
Site Admin
Posts 30757
Word Cnt. 2,628,690
BDay Jul 28
Sign Leo
Sex Sex:Male
Joined: Sep 25, 2004
Local time: 7:09 AM
Location: St Pete, FL
peace.gif
Ok, I can tell you how to correct this.  Apparently a lot of the phpBB code has been rearranged in the admin_users.php file since phpBB 2.0.2.  Since EM works from the top down, once it is past the code it is told to find, it can't see it.  We need to rearrange the order of the MOD commands to get this to work.  So try this:

OPEN
Anti-Spam_ACP.mod

FIND
Code:
#
#-----[ FIND ]------------------------------------------
#

require($phpbb_root_path . 'includes/functions_validate.'.$phpEx);

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

// Start Anti-Spam ACP MOD
$language = ($userdata['user_lang'] != '') ? $userdata['user_lang'] : $board_config['default_lang'];

if (!file_exists($phpbb_root_path . 'language/lang_' . $language . '/lang_anti_spam_acp.' . $phpEx))
{
   message_die(GENERAL_MESSAGE, 'Anti-Spam ACP Mod language file does not exist: language/lang_' . $language . '/lang_anti_spam_acp.' . $phpEx);
}
include_once($phpbb_root_path . 'language/lang_' . $language . '/lang_anti_spam_acp.' . $phpEx);

require($phpbb_root_path . 'includes/functions_anti_spam_acp.' . $phpEx);
// End Anti-Spam ACP MOD

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

      $user_id = intval($HTTP_POST_VARS['id']);

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

// Start Anti-Spam ACP MOD
      $message = '';
// End Anti-Spam ACP MOD

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

         $message = $lang['User_deleted'] . '<br /><br />' . sprintf($lang['Click_return_useradmin'], '<a href="' . append_sid("admin_users.$phpEx") . '">', '</a>') . '<br /><br />' . sprintf($lang['Click_return_admin_index'], '<a href="' . append_sid("index.$phpEx?pane=right") . '">', '</a>');

         message_die(GENERAL_MESSAGE, $message);

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

// Start Anti-Spam ACP MOD
         $message .= $lang['User_deleted'] . '<br />';
// End Anti-Spam ACP MOD

#
#-----[ FIND ]------------------------------------------
# Note: This is not the full line

phpbb_clean_username($HTTP_POST_VARS['username'])

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

// Start Anti-Spam ACP MOD
      if( $HTTP_POST_VARS['deletetopics'] )
      {
         delete_topics($user_id);
         $message .= $lang['User_Topics_Deleted'] . '<br/>';
      }

      if( $HTTP_POST_VARS['deleteposts'] )
      {
         delete_posts($user_id);
         $message .= $lang['User_Posts_Deleted'] . '<br/>';
      }

      if ( ($HTTP_POST_VARS['deleteuser']) || ($HTTP_POST_VARS['deletetopics']) || ($HTTP_POST_VARS['deleteposts']) )
      {
         $message .= '<br />' . sprintf($lang['Click_return_useradmin'], '<a href="' . append_sid("admin_users.$phpEx") . '">', '</a>') . '<br /><br />' . sprintf($lang['Click_return_admin_index'], '<a href="' . append_sid("index.$phpEx?pane=right") . '">', '</a>');
         message_die(GENERAL_MESSAGE, $message);
      }
// End Anti-Spam ACP MOD

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

         'L_DELETE_USER_EXPLAIN' => $lang['User_delete_explain'],

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

// Start Anti-Spam ACP MOD
         'L_DELETE_USER_TOPICS' => $lang['User_delete_topics'],
         'L_DELETE_USER_TOPICS_EXPLAIN' => $lang['User_delete_topics_explain'],
         'L_DELETE_USER_POSTS' => $lang['User_delete_posts'],
         'L_DELETE_USER_POSTS_EXPLAIN' => $lang['User_delete_posts_explain'],
// End Anti-Spam ACP MOD

REPLACE WITH
Code:
#
#-----[ FIND ]------------------------------------------
#
require($phpbb_root_path . 'includes/functions_validate.'.$phpEx);
#
#-----[ AFTER, ADD ]------------------------------------
#
// Start Anti-Spam ACP MOD
$language = ($userdata['user_lang'] != '') ? $userdata['user_lang'] : $board_config['default_lang'];

if (!file_exists($phpbb_root_path . 'language/lang_' . $language . '/lang_anti_spam_acp.' . $phpEx))
{
   message_die(GENERAL_MESSAGE, 'Anti-Spam ACP Mod language file does not exist: language/lang_' . $language . '/lang_anti_spam_acp.' . $phpEx);
}
include_once($phpbb_root_path . 'language/lang_' . $language . '/lang_anti_spam_acp.' . $phpEx);

require($phpbb_root_path . 'includes/functions_anti_spam_acp.' . $phpEx);
// End Anti-Spam ACP MOD
#
#-----[ FIND ]------------------------------------------
#
$message = $lang['User_deleted']

message_die(
#
#-----[ REPLACE WITH ]----------------------------------
#
// Start Anti-Spam ACP MOD
         $message .= $lang['User_deleted'] . '<br />';
// End Anti-Spam ACP MOD
#
#-----[ FIND ]------------------------------------------
# Note: This is not the full line
$username = (
#
#-----[ BEFORE, ADD ]-----------------------------------
#
// Start Anti-Spam ACP MOD
      if( $HTTP_POST_VARS['deletetopics'] )
      {
         delete_topics($user_id);
         $message .= $lang['User_Topics_Deleted'] . '<br/>';
      }

      if( $HTTP_POST_VARS['deleteposts'] )
      {
         delete_posts($user_id);
         $message .= $lang['User_Posts_Deleted'] . '<br/>';
      }

      if ( ($HTTP_POST_VARS['deleteuser']) || ($HTTP_POST_VARS['deletetopics']) || ($HTTP_POST_VARS['deleteposts']) )
      {
         $message .= '<br />' . sprintf($lang['Click_return_useradmin'], '<a href="' . append_sid("admin_users.$phpEx") . '">', '</a>') . '<br /><br />' . sprintf($lang['Click_return_admin_index'], '<a href="' . append_sid("index.$phpEx?pane=right") . '">', '</a>');
         message_die(GENERAL_MESSAGE, $message);
      }
// End Anti-Spam ACP MOD
#
#-----[ FIND ]------------------------------------------
#
$user_id = intval($HTTP_POST_VARS['id']);
#
#-----[ AFTER, ADD ]------------------------------------
#
// Start Anti-Spam ACP MOD
      $message = '';
// End Anti-Spam ACP MOD
#
#-----[ FIND ]------------------------------------------
#
'L_DELETE_USER_EXPLAIN' => $lang['User_delete_explain'],
#
#-----[ AFTER, ADD ]------------------------------------
#
// Start Anti-Spam ACP MOD
         'L_DELETE_USER_TOPICS' => $lang['User_delete_topics'],
         'L_DELETE_USER_TOPICS_EXPLAIN' => $lang['User_delete_topics_explain'],
         'L_DELETE_USER_POSTS' => $lang['User_delete_posts'],
         'L_DELETE_USER_POSTS_EXPLAIN' => $lang['User_delete_posts_explain'],
// End Anti-Spam ACP MOD

Save, upload, and try again using EM...

munky2
Back to Top
View all pictures posted by this userView user's profile Find all posts by Nightrider Send private message   AIM Address Yahoo Messenger Phoogle Map ICQ Number
Re: Problem Installing all mods via Easymod
PostPosted: 03/19/2007 11:06 PM Reply with quote
Sparrow
Emp
Sparrow
Posts 17
Word Cnt. 766
BDay N/A
Sign N/A
Joined: Mar 19, 2007
Local time: 6:09 AM
blank.gif
ok, i did that and then it spit out a different error:

FIND FAILED: In file [includes/usercp_register.php] could not find:

$error_msg = '';

MOD script line #368
Back to Top
View user's profile Find all posts by Emp Send private message  
Re: Problem Installing all mods via Easymod
PostPosted: 03/19/2007 11:18 PM Reply with quote
Site Admin
Nightrider
Site Admin
Posts 30757
Word Cnt. 2,628,690
BDay Jul 28
Sign Leo
Sex Sex:Male
Joined: Sep 25, 2004
Local time: 7:09 AM
Location: St Pete, FL
peace.gif
That's progress...

Ok, try this:

OPEN
Anti-Spam_ACP.mod

FIND
Code:
#
#-----[ FIND ]------------------------------------------
#

$error_msg = '';

REPLACE WITH
Code:
#
#-----[ FIND ]------------------------------------------
#
$error = FALSE;

Save, upload, and try again using EM...

munky2
Back to Top
View all pictures posted by this userView user's profile Find all posts by Nightrider Send private message   AIM Address Yahoo Messenger Phoogle Map ICQ Number
Re: Problem Installing all mods via Easymod
PostPosted: 03/19/2007 11:27 PM Reply with quote
Sparrow
Emp
Sparrow
Posts 17
Word Cnt. 766
BDay N/A
Sign N/A
Joined: Mar 19, 2007
Local time: 6:09 AM
blank.gif
ok, after that modification this popped up.

Critical Error

FIND FAILED: In file [includes/usercp_register.php] could not find:

if ($row['code'] != $confirm_code)
{

MOD script line #381

thanks again for the help btw Very Happy
Back to Top
View user's profile Find all posts by Emp Send private message  
Re: Problem Installing all mods via Easymod
PostPosted: 03/19/2007 11:34 PM Reply with quote
Site Admin
Nightrider
Site Admin
Posts 30757
Word Cnt. 2,628,690
BDay Jul 28
Sign Leo
Sex Sex:Male
Joined: Sep 25, 2004
Local time: 7:09 AM
Location: St Pete, FL
peace.gif
I'm going to need to see a text link to your includes/usercp_register.php file next...

munky2
Back to Top
View all pictures posted by this userView user's profile Find all posts by Nightrider Send private message   AIM Address Yahoo Messenger Phoogle Map ICQ Number
 Post new topic  Reply to topic
Information
Welcome to RCF - WHF Forum Index -> Area 51 - phpBB & Easymod Tech Support

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum
All times are GMT - 5 Hours
Goto page: Previous  1, 2, 3, 4  Next
Page 2 of 4


Add To Bookmarks

 
  
  


  Google

Powered by phpBB © 2001, 2005 phpBB Group

Page generation time: 0.131s (PHP: 59% - SQL: 41%) - SQL queries: 57 - GZIP disabled - Debug on