 | Re: Problem Installing all mods via Easymod |  |
Posted: 03/19/2007 5:32 PM |
|
|
|
|
|
| Site Admin |
| Posts |
30757 |
| Word Cnt. |
2,628,690 |
| BDay |
Jul 28 |
| Sign |
Leo |
| Sex |
 |
|
|
|
Joined: Sep 25, 2004
Local time: 7:09 AM
Location: St Pete, FL
|

|
|
|
|
 |
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
|
 |
|
Last edited by Nightrider on 03/19/2007 9:18 PM; edited 1 time in total |
|
 |
 |
| Back to Top |
|
|
 | Re: Problem Installing all mods via Easymod |  |
Posted: 03/19/2007 6:51 PM |
|
|
|
|
|
| Sparrow |
| Posts |
17 |
| Word Cnt. |
766 |
| BDay |
N/A |
| Sign |
N/A |
|
|
|
|
|
Joined: Mar 19, 2007
Local time: 6:09 AM
|

|
|
|
|
 |
|
|
 |
 |
| Back to Top |
|
|
 | Re: Problem Installing all mods via Easymod |  |
Posted: 03/19/2007 9:14 PM |
|
|
|
|
|
| Site Admin |
| Posts |
30757 |
| Word Cnt. |
2,628,690 |
| BDay |
Jul 28 |
| Sign |
Leo |
| Sex |
 |
|
|
|
Joined: Sep 25, 2004
Local time: 7:09 AM
Location: St Pete, FL
|

|
|
|
|
 |
| 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...
 |
|
|
 |
 |
| Back to Top |
|
|
 | Re: Problem Installing all mods via Easymod |  |
Posted: 03/19/2007 9:19 PM |
|
|
|
|
|
| Site Admin |
| Posts |
30757 |
| Word Cnt. |
2,628,690 |
| BDay |
Jul 28 |
| Sign |
Leo |
| Sex |
 |
|
|
|
Joined: Sep 25, 2004
Local time: 7:09 AM
Location: St Pete, FL
|

|
|
|
|
 |
I really don't know what happened in that last post. It seems to have combined two of my messages and removed your's...
| 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...
 |
|
|
 |
 |
| Back to Top |
|
|
 | Re: Problem Installing all mods via Easymod |  |
Posted: 03/19/2007 9:52 PM |
|
|
|
|
|
| Sparrow |
| Posts |
17 |
| Word Cnt. |
766 |
| BDay |
N/A |
| Sign |
N/A |
|
|
|
|
|
Joined: Mar 19, 2007
Local time: 6:09 AM
|

|
|
|
|
 |
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 |
|
|
 | Re: Problem Installing all mods via Easymod |  |
Posted: 03/19/2007 10:47 PM |
|
|
|
|
|
| Site Admin |
| Posts |
30757 |
| Word Cnt. |
2,628,690 |
| BDay |
Jul 28 |
| Sign |
Leo |
| Sex |
 |
|
|
|
Joined: Sep 25, 2004
Local time: 7:09 AM
Location: St Pete, FL
|

|
|
|
|
 |
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...
 |
|
|
 |
 |
| Back to Top |
|
|
 | Re: Problem Installing all mods via Easymod |  |
Posted: 03/19/2007 11:06 PM |
|
|
|
|
|
| Sparrow |
| Posts |
17 |
| Word Cnt. |
766 |
| BDay |
N/A |
| Sign |
N/A |
|
|
|
|
|
Joined: Mar 19, 2007
Local time: 6:09 AM
|

|
|
|
|
 |
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 |
|
|
 | Re: Problem Installing all mods via Easymod |  |
Posted: 03/19/2007 11:18 PM |
|
|
|
|
|
| Site Admin |
| Posts |
30757 |
| Word Cnt. |
2,628,690 |
| BDay |
Jul 28 |
| Sign |
Leo |
| Sex |
 |
|
|
|
Joined: Sep 25, 2004
Local time: 7:09 AM
Location: St Pete, FL
|

|
|
|
|
 |
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...
 |
|
|
 |
 |
| Back to Top |
|
|
 | Re: Problem Installing all mods via Easymod |  |
Posted: 03/19/2007 11:27 PM |
|
|
|
|
|
| Sparrow |
| Posts |
17 |
| Word Cnt. |
766 |
| BDay |
N/A |
| Sign |
N/A |
|
|
|
|
|
Joined: Mar 19, 2007
Local time: 6:09 AM
|

|
|
|
|
 |
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  |
|
|
 |
 |
| Back to Top |
|
|
 | Re: Problem Installing all mods via Easymod |  |
Posted: 03/19/2007 11:34 PM |
|
|
|
|
|
| Site Admin |
| Posts |
30757 |
| Word Cnt. |
2,628,690 |
| BDay |
Jul 28 |
| Sign |
Leo |
| Sex |
 |
|
|
|
Joined: Sep 25, 2004
Local time: 7:09 AM
Location: St Pete, FL
|

|
|
|
|
 |
I'm going to need to see a text link to your includes/usercp_register.php file next...
 |
|
|
 |
 |
| Back to Top |
|
|
 | Information |  |
|