IN-LINE REMOVE

Want to share what MODs you've gotten to work with EM? Happy about all the time your're saving? Want to say "thanks"? Here's the place.
Forum rules
DO NOT give out any FTP passwords to anyone! There is no reason to do so! If you need help badly enough, create a temporary FTP account that is restricted to only the files that you need help with and give the information for that. Giving out FTP information can be very dangerous!
Locked
Wicher
Registered User
Posts: 12
Joined: Sun Jun 06, 2004 10:35 pm

IN-LINE REMOVE

Post by Wicher »

Hello, i was looking at the mod actions that are available.
I am missing one:

IN-LINE REMOVE

I think this could be a very handy action to use here and there.

For example:

Code: Select all

# 
#-----[ FIND ]------------------------------------------ 
# 
		<td colspan="7" class="row2"><input class="post" type="text" name="{catrow.S_ADD_FORUM_NAME}" /> <input type="submit" class="liteoption"  name="{catrow.S_ADD_FORUM_SUBMIT}" value="{L_CREATE_FORUM}" /></td>
# 
#-----[ IN-LINE REMOVE ]------------------------------------------ 
# 
class="row2"
# 
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------ 
# 
# EoM 

Greetzz Wicher.

Nightrider
Registered User
Posts: 7219
Joined: Tue Nov 16, 2004 8:54 pm
Location: Florida, US
Contact:

Re: IN-LINE REMOVE

Post by Nightrider »

Yes, I agree. That would be a nice addition. A simple REMOVE command would be nice too...

Image

Wicher
Registered User
Posts: 12
Joined: Sun Jun 06, 2004 10:35 pm

Re: IN-LINE REMOVE

Post by Wicher »

In addition to that it would be very nice to have a "delete" command for removing files when writing a update_MOD.txt for any kind of mod.
At this date in time there is only the copy command.

Nightrider
Registered User
Posts: 7219
Joined: Tue Nov 16, 2004 8:54 pm
Location: Florida, US
Contact:

Re: IN-LINE REMOVE

Post by Nightrider »

It would also be nice to include backups of files overwritten by included files provided by the MOD author. There are several MODs where the MOD author overwrites standard phpBB files with his own versions. So if you decide that you don't like the MOD but failed to create a backup of the overwritten file before installing the MOD, you are screwed...

EM only creates backups of files that it modifies. If the MOD author is dumb enough to overwrite standard phpBB files with his own, EM is willing to allow them to do it without creating a backup that can be restored...

Image

Wicher
Registered User
Posts: 12
Joined: Sun Jun 06, 2004 10:35 pm

Re: IN-LINE REMOVE

Post by Wicher »

Not making backups before installing a mod would be dumb of the installer to ofcourse.

Nightrider
Registered User
Posts: 7219
Joined: Tue Nov 16, 2004 8:54 pm
Location: Florida, US
Contact:

Re: IN-LINE REMOVE

Post by Nightrider »

EM creates backups of all files that it modifies, which is exactly what a person should do if they manually modify their files. The problem comes when an included MOD file overwrites an existing phpBB file. Chances are even if you manually modify your files, you might not think about making a backup of a file that you did not modify, and then you would be equally screwed if you decide to remove the MOD...

Image

Wicher
Registered User
Posts: 12
Joined: Sun Jun 06, 2004 10:35 pm

Re: IN-LINE REMOVE

Post by Wicher »

So there should be a warning system when easymod has to overwrite an existing phpbb file.
Do you want to overwrite yes or no.

Nightrider
Registered User
Posts: 7219
Joined: Tue Nov 16, 2004 8:54 pm
Location: Florida, US
Contact:

Re: IN-LINE REMOVE

Post by Nightrider »

Yes, that would be a nice addition in a future upgrade. Still, you would want a backup of the old file just in case you decide not to keep the MOD installed on the site...

For now, you have to review the MOD to make sure that the MOD author is not overwiting standard phpBB files with his/her own. There really is never any good reason to do that, so IMO, it is sloppiness and/or laziness on the MOD author's part to use the same phpBB filename for an included MOD file. There is no good reason for a MOD author to overwrite a standard phpBB file with a copy of their own...

Image

Wicher
Registered User
Posts: 12
Joined: Sun Jun 06, 2004 10:35 pm

Re: IN-LINE REMOVE

Post by Wicher »

Well, lets hope someone will read this writings here and take action on it.

Nightrider
Registered User
Posts: 7219
Joined: Tue Nov 16, 2004 8:54 pm
Location: Florida, US
Contact:

Re: IN-LINE REMOVE

Post by Nightrider »

I agree. This might be a good topic to keep alive and add known EM bugs and wishlist enhancements. That way wGEric can have everything he needs for creating the next version all in one topic...

Image

Locked