Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: vbgamer45 on August 22, 2013, 02:27:28 AM

Title: Invert Triggers
Post by: vbgamer45 on August 22, 2013, 02:27:28 AM
Link to Mod (https://custom.simplemachines.org/mods/index.php?mod=3769)

Invert Triggers


Thanks To: hadesflames
SMF Version: 2.0.X
Mod Version: 1.0

Description:

This mod adds some code to ban triggers to give option to select all so you don't have to check each individual trigger separately.

Saving time and nerves.

Mod is released under the 2 clause BSD license.

http://www.smfhacks.com (http://www.smfhacks.com)
Title: Re: Invert Triggers
Post by: br360 on August 22, 2013, 03:29:14 AM
Cool mod, but tried the uninstall (on two different forums), and it fails.

Looks like this code was added twice maybe?

<input type="checkbox" onclick="invertAll(this, this.form, \'ban_suggestion\');" class="input_check">
Title: Re: Invert Triggers
Post by: Shambles on August 22, 2013, 03:46:23 AM
^-- yep. The edit is being applied twice to the first occurrence of $txt['ban_triggers']


Always good to see that testing has been thorough  :o
Title: Re: Invert Triggers
Post by: Deaks on August 22, 2013, 07:45:44 AM
there are 2 different instantaces of that text so indeed its there twice.  Its been rectified though.
Title: Re: Invert Triggers
Post by: hadesflames on August 23, 2013, 09:12:05 AM
Quote from: Shambles on August 22, 2013, 03:46:23 AM
Always good to see that testing has been thorough  :o

I've had this mod since before it was released on here, and it works just fine on uninstall, and that's also having a bunch of other mods on my forum installed.

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi.imgur.com%2FaVP1btb.png&hash=5ea1cee9df4748feec72d10b95c2df3678a5bf4e)

The reason it does the edit twice is because it HAS to, since there are two different areas that present the boxes for you.

Always nice to see a member of the community act so grateful for getting free software though! =)
Title: Re: Invert Triggers
Post by: Shambles on August 23, 2013, 09:19:45 AM
My point was that it failed to uninstall on an unmodded forum, mostly due to it failing to install correctly.

If it works just fine for you, why did the author feel the need to "rectify" it ?
Title: Re: Invert Triggers
Post by: Deaks on August 23, 2013, 09:24:56 AM
actually hades was the one behind it and told me to release it if I wished, my way worked fine on the tests and installed, i rectified it as I was shown a way that will stop more people complaining.
Title: Re: Invert Triggers
Post by: Arantor on August 23, 2013, 09:27:05 AM
Quote from: Μπράιαν "Poύνικ" Ντίκεν on August 23, 2013, 09:24:56 AMthat will stop more people complaining.

Hah.
Title: Re: Invert Triggers
Post by: Deaks on August 23, 2013, 11:20:33 AM
yay someone got the joke in my comment :*)
Title: Re: Invert Triggers
Post by: DarkAngel612 on September 08, 2013, 01:34:19 PM
 ::)

well guys this is not a complaint of the mod just the installation. I just tried to install by using the link provided in package manager advertiseing above my list of mods....it said:

  An Error Has Occurred!    Although the package was downloaded to the server it appears to be empty. Please check the Packages directory, and the "temp" sub-directory are both writable. If you continue to experience this problem you should try extracting the package on your PC and uploading the extracted files into a subdirectory in your Packages directory and try again. For example, if the package was called shout.tar.gz you should:
1) Download the package to your local PC and extract it into files.
2) Using an FTP client create a new directory in your "Packages" folder, in this example you may call it "shout".
3) Upload all the files from the extracted package to this directory.
4) Go back to the package manager browse page and the package will be automatically found by SMF.

I did

I just tried installing it and it claims that it has errors -- see image -- is that the two instances you are referring to? Is it safe to continue or should i manually edit the file.

Title: Re: Invert Triggers
Post by: Deaks on September 08, 2013, 01:36:17 PM
you will need to manually add that edit, you must have another mod installed that modifies that section
Title: Re: Invert Triggers
Post by: DarkAngel612 on September 08, 2013, 01:57:38 PM
ok, jus wanted to make sure, thanks