[Beta] EasyMOD Add-on

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment! No new topics are allowed in this forum.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: MOD Development Forum rules

On February 1, 2009 this forum will be set to read only as part of retiring of phpBB2.
Saint Shinryu
Registered User
Posts: 30
Joined: Sat May 21, 2005 4:11 am

Post by Saint Shinryu » Sat Jul 23, 2005 6:34 am

This would be a very helpful mod to have. What happened to it? :(

Shinigami-Sama
Registered User
Posts: 4
Joined: Sat Jul 23, 2005 5:52 am

Post by Shinigami-Sama » Sat Jul 23, 2005 6:46 am

I can only find the first un-fixed version of it in the guy that fixed the typo's post...
having this would make helping ryu there fix his problem so much easier, as well as getting rid of spelling cow, I don't quite feel like going though the whole files and reversing the code so it's oposite and hte reciprocal, atleast not yet that is
once I learn how to do all this better I;d have no worries, but being fairly new I;d rather have a tool ot help me out
ok tried ot see if I could take the "coded" copy on hte first page and rebuild it with whats on the thread, using ryu here, but ti;s getting late and I got lost, late nigh+lack of sleep+all links down+helping irc at the same time+frustartion at self-newbness=no idea any more
I hpoe some has a copy somewhere
I can even host if need be

§nake
Registered User
Posts: 91
Joined: Sun Apr 03, 2005 1:45 am
Contact:

Post by §nake » Sat Jul 23, 2005 11:10 pm

Is there still a download of this up anywhere?
This is my website (under-construction!!!) Click Here

Shinigami-Sama
Registered User
Posts: 4
Joined: Sat Jul 23, 2005 5:52 am

Post by Shinigami-Sama » Sat Jul 23, 2005 11:11 pm

§nake wrote: Is there still a download of this up anywhere?

nope
all links are down
I tried to re-create it but it was late and I got confused, being 2am I cna see why, I'll try again a little later, hopefully I don't mess it up lol

Tom65789
Registered User
Posts: 144
Joined: Fri Jul 08, 2005 8:29 pm

Post by Tom65789 » Wed Aug 10, 2005 10:45 pm

if i could get hold of the MOD i could find a Mirror for it

but like all have said the links are down
Visit my *rubbish* Forums here:
http://www.T65789.co.uk/forums/index.php

Shinigami-Sama
Registered User
Posts: 4
Joined: Sat Jul 23, 2005 5:52 am

Post by Shinigami-Sama » Fri Aug 12, 2005 6:53 am

sorry for the late reply I;ve been busy with etting raedy to move and a system reformat
I'll also beable to host the file but we only have the fist version of the files from the first page
and I havn't had the time to re-configure it,
########################################################
## Mod Title: Easy MOD Add-on
## Mod Author: JuniorZ < juniorz@phpbb.com.br > (JuniorZ) http://www.phpbb.com.br
## Mod Description: This MOD adds the uninstall option to your EasyMOD 0.0.9
## Mod Version: 1.1.0
##
## Installation Level: Easy
## Installation Time: 10-15 Minutes
## Included Files: 1
## includes/em_addon_functions.php
## Files To Edit: 3
## admin/admin_easymod.php
## language/lang_english/lang_easymod.php
## templates/subSilver/admin/mod_history.tpl
##############################################################
## This MOD is released under the GPL License.
## Intellectual Property is retained by the MOD Author(s) listed above
##############################################################
## For Security Purposes, Please Check: http://www.phpbb.com/mods/downloads/ for the
## latest version of this MOD. Downloading this MOD from other sites could cause malicious code
## to enter into your phpBB Forum. As such, phpBB will not offer support for MOD's not offered
## in our MOD-Database, located at: http://www.phpbb.com/mods/downloads/
###############################################

#
#-----[ COPY ]------------------------------------------
#
includes/em_addon_functions.php.txt to includes/em_addon_functions.php

#
#-----[ OPEN ]------------------------------------------
#
admin/admin_easymod.php

#
#-----[ FIND ]------------------------------------------
#
($mode != 'update') && ($mode != 'process')

#
#-----[ IN-LINE FIND ]------------------------------------------
#
($mode != 'post_process')

#
#-----[ IN-LINE AFTER, ADD]------------------------------------------
#
&& ($mode != 'uninstall')
#
#-----[ FIND ]------------------------------------------
#
'L_NONE_INSTALLED' =>

#
#-----[ BEFORE, ADD ]------------------------------------------
#
'L_UNINST' => $lang['EM_uninstall'],
'S_ACTION' => append_sid('admin_easymod.'.$phpEx),

#
#-----[ FIND ]------------------------------------------
#
'URL' => $row['mod_author_url'],
'PHPBB_VER' => $row['mod_phpBB_version'],

#
#-----[ AFTER, ADD ]------------------------------------------
#
'MOD_ID' => $row['mod_id'],
'MOD_FILE' => basename($row['mod_file']),
'MOD_PATH' => './mods/' . dirname($row['mod_file']) . '/',

#
#-----[ FIND ]------------------------------------------
#
else if (($mode == 'process' ) ||

#
#-----[ IN-LINE FIND ]------------------------------------------
#
($mode == 'download_file')

#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
#
|| ($mode == 'uninstall')

#
#-----[ FIND ]------------------------------------------
#
// loop
for ($i=0; $i<count($commands); $i++)

#
#-----[ BEFORE, ADD ]------------------------------------------
#
//But Before we generate the uninstall script (if needed)
if ($mode == 'uninstall')
{
include($phpbb_root_path . 'includes/em_addon_functions.'.$phpEx);
$mode = generate_uninstall($commands, $body);
}

#
#-----[ FIND ]------------------------------------------
#
for ($i=0; $i<count( $command_file->afile); $i++)

#
#-----[ BEFORE, ADD ]------------------------------------------
#
$hidden .= ( intval($HTTP_POST_VARS['mod_id']) > 0 ) ? '<input type="hidden"

name="mod_id" value="'.intval($HTTP_POST_VARS['mod_id'])."\">\n" : '';


#
#-----[ FIND ]------------------------------------------
#
for ( $i=0; $i<$num_command_steps; $i++)

#
#-----[ BEFORE, ADD ]------------------------------------------
#
$hidden .= ( intval($HTTP_POST_VARS['mod_id']) > 0 ) ? '<input type="hidden" name="

mod_id" value="'.intval($HTTP_POST_VARS['mod_id'])."\">\n" : '';

#
#-----[ FIND ]------------------------------------------
#
$template->assign_vars(array(
'S_ACTION' =>
'L_STEP' =>
'L_COMPLETE' =>
'L_COMP_DESC' =>

#
#-----[ REPLACE WITH ]------------------------------------------
#
if( intval($HTTP_POST_VARS['mod_id']) > 0 )
{
$compl_msg = $lang['EM_pp_install_comp'];
$compl_msg_desc = $lang['EM_pp_comp_desc'];
}
else
{
$compl_msg = $lang['EM_pp_uninstall_comp'];
$compl_msg_desc = $lang['EM_pp_un_comp_desc'];
}

$template->assign_vars(array(
'S_ACTION' => append_sid('admin_easymod.'.$phpEx),

'L_STEP' => $lang['EM_pp_step3'],
'L_COMPLETE' => $compl_msg,
'L_COMP_DESC' => $compl_msg_desc,

#
#-----[ FIND ]------------------------------------------
#
$sql = 'INSERT INTO ' . EASYMOD_TABLE . "
VALUES ( '" . substr($install_path, 7)

#
#-----[ AFTER, ADD ]------------------------------------------
#
if ( intval($HTTP_POST_VARS['mod_id']) > 0 )
{
$sql = "DELETE FROM " . EASYMOD_TABLE ."
WHERE mod_id = " . intval($HTTP_POST_VARS['mod_id']);

$lang['EM_err_em_info'] = $lang['EM_err_em_unins'];
}

#
#-----[ OPEN ]------------------------------------------
#
language/lang_english/lang_easymod.php

#
#-----[ FIND ]------------------------------------------
#
?>

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

//uninstall
$lang['EM_uninstall'] = 'Uninstall';
$lang['EM_err_em_unins'] = 'Could not delete the MOD entry from EasyMOD table';
$lang['EM_pp_uninstall_comp'] = 'Uninstallation Complete!';
$lang['EM_pp_un_comp_desc'] = 'Uninstallation of this MOD is now complete! You should verify if

the MOD really is not functioning in any installed themes and languages. You should too to remove

all files added to your phpBB by this MOD if you are uninstalling this MOD permanently. Therefore

if you just want to reinstall this MOD, you can ignore this.' ;

#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/admin/mod_history.tpl

#
#-----[ FIND ]------------------------------------------
#
<td width="5%" class="{install.ROW_CLASS}" align="center"><span class="gensmall"

>details</span></td>

#
#-----[ REPLACE WITH ]------------------------------------------
#
<td class="{install.ROW_CLASS}" align="center" valign="bottom">
<form method="post" action="{S_ACTION}">
<input type="hidden" name="mode" value="uninstall">
<input type="hidden" name="mod_id" value="{install.MOD_ID}">
<input type="hidden" name="install_file" value="{install.MOD_FILE}">
<input type="hidden" name="install_path" value="{install.MOD_PATH}">
<input type="submit" name="post" class="mainoption" value="{L_UNINST}" />
</form>
</td>

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


and that currently doesn't seem to work
in the next couple of weeks provided I have time which I don't think I will I'll try and recompile it into a working mod

User avatar
bonelifer
Community Team Member
Community Team Member
Posts: 3476
Joined: Wed Oct 27, 2004 11:35 pm
Name: William
Contact:

Post by bonelifer » Fri Aug 12, 2005 3:28 pm

When posting mods use CODE instead of QUOTE and don't make the font size smaller.

Code: Select all

########################################################
## Mod Title: Easy MOD Add-on
## Mod Author: JuniorZ < juniorz@phpbb.com.br > (JuniorZ) http://www.phpbb.com.br
## Mod Description: This MOD adds the uninstall option to your EasyMOD 0.0.9
## Mod Version: 1.1.0
##
## Installation Level: Easy
## Installation Time: 10-15 Minutes
## Included Files: 1
## includes/em_addon_functions.php
## Files To Edit: 3
## admin/admin_easymod.php
## language/lang_english/lang_easymod.php
## templates/subSilver/admin/mod_history.tpl
##############################################################
## This MOD is released under the GPL License.
## Intellectual Property is retained by the MOD Author(s) listed above
##############################################################
## For Security Purposes, Please Check: http://www.phpbb.com/mods/downloads/ for the
## latest version of this MOD. Downloading this MOD from other sites could cause malicious code
## to enter into your phpBB Forum. As such, phpBB will not offer support for MOD's not offered
## in our MOD-Database, located at: http://www.phpbb.com/mods/downloads/
###############################################

#
#-----[ COPY ]------------------------------------------
#
includes/em_addon_functions.php.txt to includes/em_addon_functions.php

#
#-----[ OPEN ]------------------------------------------
#
admin/admin_easymod.php

#
#-----[ FIND ]------------------------------------------
#
($mode != 'update') && ($mode != 'process')

#
#-----[ IN-LINE FIND ]------------------------------------------
#
($mode != 'post_process')

#
#-----[ IN-LINE AFTER, ADD]------------------------------------------
#
&& ($mode != 'uninstall')
#
#-----[ FIND ]------------------------------------------
#
'L_NONE_INSTALLED' =>

#
#-----[ BEFORE, ADD ]------------------------------------------
#
'L_UNINST' => $lang['EM_uninstall'],
'S_ACTION' => append_sid('admin_easymod.'.$phpEx),

#
#-----[ FIND ]------------------------------------------
#
'URL' => $row['mod_author_url'],
'PHPBB_VER' => $row['mod_phpBB_version'],

#
#-----[ AFTER, ADD ]------------------------------------------
#
'MOD_ID' => $row['mod_id'],
'MOD_FILE' => basename($row['mod_file']),
'MOD_PATH' => './mods/' . dirname($row['mod_file']) . '/',

#
#-----[ FIND ]------------------------------------------
#
else if (($mode == 'process' ) ||

#
#-----[ IN-LINE FIND ]------------------------------------------
#
($mode == 'download_file')

#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
#
|| ($mode == 'uninstall')

#
#-----[ FIND ]------------------------------------------
#
// loop
for ($i=0; $i<count($commands); $i++)

#
#-----[ BEFORE, ADD ]------------------------------------------
#
//But Before we generate the uninstall script (if needed)
if ($mode == 'uninstall')
{
include($phpbb_root_path . 'includes/em_addon_functions.'.$phpEx);
$mode = generate_uninstall($commands, $body);
}

#
#-----[ FIND ]------------------------------------------
#
for ($i=0; $i<count( $command_file->afile); $i++)

#
#-----[ BEFORE, ADD ]------------------------------------------
#
$hidden .= ( intval($HTTP_POST_VARS['mod_id']) > 0 ) ? '<input type="hidden"

name="mod_id" value="'.intval($HTTP_POST_VARS['mod_id'])."\">\n" : '';


#
#-----[ FIND ]------------------------------------------
#
for ( $i=0; $i<$num_command_steps; $i++)

#
#-----[ BEFORE, ADD ]------------------------------------------
#
$hidden .= ( intval($HTTP_POST_VARS['mod_id']) > 0 ) ? '<input type="hidden" name="

mod_id" value="'.intval($HTTP_POST_VARS['mod_id'])."\">\n" : '';

#
#-----[ FIND ]------------------------------------------
#
$template->assign_vars(array(
'S_ACTION' =>
'L_STEP' =>
'L_COMPLETE' =>
'L_COMP_DESC' =>

#
#-----[ REPLACE WITH ]------------------------------------------
#
if( intval($HTTP_POST_VARS['mod_id']) > 0 )
{
$compl_msg = $lang['EM_pp_install_comp'];
$compl_msg_desc = $lang['EM_pp_comp_desc'];
}
else
{
$compl_msg = $lang['EM_pp_uninstall_comp'];
$compl_msg_desc = $lang['EM_pp_un_comp_desc'];
}

$template->assign_vars(array(
'S_ACTION' => append_sid('admin_easymod.'.$phpEx),

'L_STEP' => $lang['EM_pp_step3'],
'L_COMPLETE' => $compl_msg,
'L_COMP_DESC' => $compl_msg_desc,

#
#-----[ FIND ]------------------------------------------
#
$sql = 'INSERT INTO ' . EASYMOD_TABLE . "
VALUES ( '" . substr($install_path, 7)

#
#-----[ AFTER, ADD ]------------------------------------------
#
if ( intval($HTTP_POST_VARS['mod_id']) > 0 )
{
$sql = "DELETE FROM " . EASYMOD_TABLE ."
WHERE mod_id = " . intval($HTTP_POST_VARS['mod_id']);

$lang['EM_err_em_info'] = $lang['EM_err_em_unins'];
}

#
#-----[ OPEN ]------------------------------------------
#
language/lang_english/lang_easymod.php

#
#-----[ FIND ]------------------------------------------
#
?>

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

//uninstall
$lang['EM_uninstall'] = 'Uninstall';
$lang['EM_err_em_unins'] = 'Could not delete the MOD entry from EasyMOD table';
$lang['EM_pp_uninstall_comp'] = 'Uninstallation Complete!';
$lang['EM_pp_un_comp_desc'] = 'Uninstallation of this MOD is now complete! You should verify if

the MOD really is not functioning in any installed themes and languages. You should too to remove

all files added to your phpBB by this MOD if you are uninstalling this MOD permanently. Therefore

if you just want to reinstall this MOD, you can ignore this.' ;

#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/admin/mod_history.tpl

#
#-----[ FIND ]------------------------------------------
#
<td width="5%" class="{install.ROW_CLASS}" align="center"><span class="gensmall"

>details</span></td>

#
#-----[ REPLACE WITH ]------------------------------------------
#
<td class="{install.ROW_CLASS}" align="center" valign="bottom">
<form method="post" action="{S_ACTION}">
<input type="hidden" name="mode" value="uninstall">
<input type="hidden" name="mod_id" value="{install.MOD_ID}">
<input type="hidden" name="install_file" value="{install.MOD_FILE}">
<input type="hidden" name="install_path" value="{install.MOD_PATH}">
<input type="submit" name="post" class="mainoption" value="{L_UNINST}" />
</form>
</td>

#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
Knowledge Base | phpBB Board Rules | Search Customisation Database
Image
Please don't contact me via PM or email for phpBB support .

Deaths Hand
Registered User
Posts: 13
Joined: Thu Aug 11, 2005 3:26 am
Location: My Mind
Contact:

Post by Deaths Hand » Mon Aug 29, 2005 9:15 pm

Does anyone have a downloadable version of this, i cant download it from his site.

User avatar
bonelifer
Community Team Member
Community Team Member
Posts: 3476
Joined: Wed Oct 27, 2004 11:35 pm
Name: William
Contact:

Post by bonelifer » Mon Aug 29, 2005 9:39 pm

Deaths Hand look my post above.
Knowledge Base | phpBB Board Rules | Search Customisation Database
Image
Please don't contact me via PM or email for phpBB support .

gamblecamp.com
Registered User
Posts: 4
Joined: Tue Aug 30, 2005 1:58 am

HELP

Post by gamblecamp.com » Tue Aug 30, 2005 2:03 am

Can someone help me, I am new to using PHPBB and EASY MOD,

How can i uninstall the spell checker i have installed that came with easy mod?

Its driving me nut's.

And is there an uninstall add on i can get to uninstall mod's incase i dont like or want them?????

Thanks

Nosfi2
Registered User
Posts: 107
Joined: Wed Jul 06, 2005 6:51 am

Post by Nosfi2 » Fri Sep 02, 2005 12:12 pm

Sad to hear that the development of this mod has stopped

I still use version 1.20 without major problems.

The installation file itself is identical to version 1.10 only the em_addon_functions.php.txt has been changed.
Here it is:

File:
includes/em_addon_functions.php.txt

Code: Select all

<?php
/***************************************************************************
 *                           em_addon_functions.php
 *                            -------------------
 *   begin                : Monday, Jun 23, 2003
 *   copyright            : (C) 2003 JuniorZ
 *   email                : juniorz@phpbb.com.br
 *
 *   $Id: em_addon_functions.php,v 2.0.0 2003/06/23 00:22:00 JuniorZ Exp $
 *
 *
 ***************************************************************************/

/***************************************************************************
 *
 *   This program is free software; you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation; either version 2 of the License, or
 *   (at your option) any later version.
 *
 ***************************************************************************/
 
function get_original_code($p_file, &$find_array, &$search_array)
{
	$temp_array = array() ;
	$found_complete_match = false ;

	while (! feof($p_file) )
	{
		// read the next line from the current file and add it to the end of our potential match list
		$tmp = fgets( $p_file, 4096) ;

		// if the line contains only whitespace then we won't be matching against it; either add to our
		//    find array (if has some lines) or write it out
		if (trim($tmp) == '')
		{
			// don't continue processing this line; grab the next
			continue ;
		}

		$find_array[] = $tmp ;
		$array_count = count($find_array) ;
				
		// if this new line fits in the correct order of the search array, then things are looking
		//   more like this could be a match
		if (strstr($find_array[$array_count-1], trim($search_array[$array_count-1])))
		{
			// all the lines in both arrays match, we're done!!!
			if ($array_count == count($search_array))
			{
				// bust out of this loop!
				$found_complete_match = true ;
				break ;
			}
		}

		// this new line does fit in with our search array, but it is possible that the find_array
		//   does contain a sequence of the search_array, so we can't through out the find_array yet
		else
		{
			// keep popping the head of the find_array until we find something that matches
			//   or until it's empty;  unmatched lines are written to the reproduction file
			while ($array_count > 0)
			{
				// had been using array_shift but that is not supported in PHP3 :(
				$find_array = em_array_shift( $find_array ) ;

				$matched = true ;
				$looper = 0 ;
				// see if there is anything we can salvage something from the remaining
				//  contents of the find_array; if the remaining contents matchup, then we'll
				//  start popping the headoff and we'll allow the outer loop to add more lines
				//  to the find find_array - although this is confusing, it is necessary for sure
				while ( $looper > $array_count)
				{
					// hrmm.... we've got a match, so keep the dream alive
					if (strstr($find_array[$looper], $search_array[$looper]))
					{
						$looper++ ;
					}

					// blah, no match so we'll be returning to our head popping ways shortly
					else
					{
						$matched = false ;
						break ;
					}
				}

				// if we get this far and everything has matched up, then that means we have
				//   found a sequence of X lines in the find_array matching the first X lines 
				//   of the search_array; get out of this loop so we can append more lines to the
				//   find_array and potentially match the search_array from here forward
				if ($matched)
				{
					break ;
				}
			}
		}
	}

	return $found_complete_match;
}

function generate_uninstall(&$commands, &$body)
{
	global $phpbb_root_path, $install_path;
	global $lang, $db;
	
	$uns_commands = array();
	$uns_body = array();
	$installed_mods = array();
	$p_file = '';

	$next_command = '';
	$prev_command = '';


	// Get installed MODs list
	$sql = "SELECT mod_id, mod_file
		FROM " . EASYMOD_TABLE . " 
		ORDER BY mod_id DESC" ;
	if( !$result = $db->sql_query($sql) )
	{
	   message_die(GENERAL_ERROR, $lang['EM_err_em_info'], '', __LINE__, __FILE__, $sql);
	}
	$installed_mods = $db->sql_fetchrowset($result);

	if ( count($installed_mods) == 0 )
	{
	   message_die(GENERAL_ERROR, $lang['EM_none_installed'], '', __LINE__, __FILE__, $sql);
	}

	// loop through the command and knock 'em out ;-)
	for ($i=0; $i<count($commands); $i++)
	{
		$next_command = $commands[($i + 1)];
		$prev_command = $commands[($i - 1)];

		// Begin verification
		if ($commands[$i]['command'] == 'OPEN')
		{
			//Repass the OPEN command to new $commands
			$uns_commands[] = $commands[$i];
			$uns_body[] = $body[$i];
			
			// Set the empty-line replace
			// If REPLACE action allows replace by empty line this could be removed :(
			$f_ext = substr($body[$i][0], -3, 3);
			if( $f_ext == 'tpl' )
			{
				$empty_line = '<!-- A MOD was here -->';
			}
			else
			{
				$empty_line = '/* A MOD was here */';
			}
			
			// strip the body of whitespace down and down to a single line
			$body[$i] = strip_whitespace($body[$i], true) ;

			// strip off the path and get the file name
			$splitarray = explode('/', trim($body[$i][0])) ;
			$filename = $splitarray[count($splitarray)-1] ;
			$filename = $filename.'.txt';

			// now get the path
			$path = '' ;
			for ($k=0; $k<count($splitarray)-1; $k++)
			{
				$path .= $splitarray[$k] . '/' ;
			}

			// Get the last backup of this file...
			while( list($j, $mod_info) = @each($installed_mods) )
			{
				// strip off the path and get the file name
				$file_ary = explode('/', trim($mod_info['mod_file'])) ;

				// now get the path
				$root_path = '' ;
				for ($k=0; $k<count($file_ary)-1; $k++)
				{
					$root_path .= $file_ary[$k] . '/' ;
				}
				$root_path = $phpbb_root_path.'admin/mods/'.$root_path.'backups/';

				//Check if has the required file in the last backup dir
				if ( file_exists($root_path.$path.$filename) )
				{
					break;
				}
				else
				{
					$root_path = '';
					continue;
				}
			}

			//Set the correct path
			$path = (! empty($root_path) ) ? $root_path.$path : $phpbb_root_path.'admin/'.substr($install_path, 2).'backups/'.$path;

			//Close the poiter (if exists)
			if( !empty($p_file) )
			{
				fclose($p_file);
			}

			// Open the file else sohw an error (the only I think) :D
			if(! (file_exists($path.$filename) && $p_file = fopen($path.$filename, 'r')) )
			{
				display_error( '<b>' . $lang['EM_err_critical_error'] . "</b><br><br>\n" . sprintf( $lang['EM_modio_open_read'], $path . trim($filename)) . "<br>\n" . $lang['EM_line_num'] . $commands[$i]['line']) ;
				break ;
			}

		}

		else if ($commands[$i]['command'] == 'FIND')
		{
			// reinit key vars
			$find_array = array() ;
			$search_fragment = '' ;

			//Get the original code to generate the 'UN'-REPLACE action
			if( ($next_command['command'] == 'REPLACE') )
			{
				// make sure we have something to search for; throw a warning if not
				$search_array = strip_whitespace( $body[$i], false);
				
				if (! (get_original_code( $p_file, &$find_array, &$search_array)) )
				{
					display_error( '<b>' . $lang['EM_err_critical_error'] . "</b><br><br>\n" . $lang['EM_err_comm_find'] . "<br>\n" . $lang['EM_line_num'] . $next_command['line']) ;
					break ;
				}		
			}

			if ( ($next_command['command'] == 'AFTERADD') || ($next_command['command'] == 'BEFOREADD') || ($next_command['command'] == 'REPLACE') )
			{
				$uns_commands[] = array('command' => 'FIND', 'line' => $next_command['line']);
				$uns_body[] = $body[($i + 1)];

				$uns_commands[] = array('command' => 'REPLACE', 'line' => $commands[$i]['line']);	
				$uns_body[] = ($next_command['command'] == 'REPLACE') ? $find_array : array($empty_line);
			}
		}

		//
		// IN-LINE commands; perform precision operations on a single line
		//
		if ($commands[$i]['command'] == 'IN-LINE FIND')
		{
			if ( ($next_command['command'] == 'IN-LINE AFTERADD') || ($next_command['command'] == 'IN-LINE BEFOREADD') || ($next_command['command'] == 'IN-LINE REPLACE') )
			{
				//Take the previous the previous FIND command
				$uns_commands[] = array('command' => 'FIND', 'line' => $prev_command['line']);
				$uns_body[] = $body[($i - 1)];

				//Perform a inline find with the next in-line command body 
				$uns_commands[] = array('command' => 'IN-LINE FIND', 'line' => $next_command['line']);
				$uns_body[] = $body[($i + 1)];

				//Replaces the in-line command with the apropiates code
				$uns_commands[] = array('command' => 'IN-LINE REPLACE', 'line' => $commands[$i]['line']);
				$uns_body[] = ($next_command['command'] == 'IN-LINE REPLACE') ? $body[($i + 1)] : array($empty_line);
			}
		}
	
		//
		// setup the copying of files from the mod directory to core directories
		//
		else if ($commands[$i]['command'] == 'COPY')
		{
			//We need to standartionalize the UNCOPY method
		}

		//
		// we are done!  close up shop and stop processing
		//
		else if ($commands[$i]['command'] == 'CLOSE')
		{
				$uns_commands[] = $commands[$i];
				$uns_body[] = $body[$i];
		}
	}
	
	$commands = $uns_commands;
	$body = $uns_body;

	return 'process';

}

?>
If someone has a stable webspace and wants to host this mod, PM me and I'll send you the original EM_addon_1_2_0.zip file
Would be fine too if someone could upload GPHemsley's inoffical 1.21 Version!!

User avatar
Xaori
Registered User
Posts: 21
Joined: Sat Aug 20, 2005 2:13 am
Location: England, UK

Post by Xaori » Tue Sep 06, 2005 4:46 pm

Hey,

I have the EM Add On, and have uploaded it to my server.

You can download it here:

Edit - 06/06/05 - Added Freewebs mirror
Sly.PCriot.com: http://sly.pcriot.com/phpbb/EM_addon_1_2_0.zip
Freewebs: http://www.freewebs.com/phpbbmods/EM_addon_1_2_0.zip

You'll need a program like WinRAR to extract the Zip file.

Sorry if you're having problems downloading it, my server has been a bit up and down lately. I'm going to changing servers to a more stable one.

I'll get it hosted other places too, for various mirrors. ;)

Enjoy.

- Xaori

mastermosley
Registered User
Posts: 24
Joined: Tue Aug 16, 2005 12:27 am

Post by mastermosley » Wed Sep 14, 2005 12:35 am

Wheres the link? Its not there?

bongo13
Registered User
Posts: 2
Joined: Wed Sep 28, 2005 12:14 pm

Post by bongo13 » Thu Sep 29, 2005 6:54 pm

where is the new link?

esserdk
Registered User
Posts: 85
Joined: Sat Mar 26, 2005 11:27 am
Location: EU,Denmark,Kokkedal
Contact:

well none of the links works?

Post by esserdk » Wed Oct 12, 2005 1:01 pm

well none of the links works... can someone please send me it over MSN (my id: esserdk14@hotmail.com ) so i can make it aviable for download at my website ( http://wowzorz.net/ ) so EVERYONE can download it without getting a 404 - page is not found error.

Locked

Return to “[2.0.x] MODs in Development”