Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: live627 on December 15, 2009, 07:45:28 PM

Title: Ignore User Button
Post by: live627 on December 15, 2009, 07:45:28 PM
Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=2299)

Adds a link for "Ignore" / "Unignore" (to ignore or unignore users) next to the 'report to moderator' link to add the author of a post to your ignore list. Does not show for guests, nor yourself, but does for admins (since you can actually ignore admins' posts in SMF)
Title: Re: Ignore User Button
Post by: jrstark on December 22, 2009, 10:55:48 PM
Says it installed, but I don't see it when signed in to my two test user accounts.
Title: Re: Ignore User Button
Post by: Arantor on December 23, 2009, 02:16:59 AM
Are you using a custom theme? Did you ask it to install on said custom theme?
Title: Re: Ignore User Button
Post by: jrstark on December 23, 2009, 02:22:11 AM
I updated a copy of 1.1.11 to 2 RC2.  Installed and uninstalled one other mod.  Everything is default, have not started working on the theme yet.
Title: Re: Ignore User Button
Post by: Arantor on December 23, 2009, 02:23:56 AM
Right, but what theme are you using?
Title: Re: Ignore User Button
Post by: jrstark on December 23, 2009, 02:40:57 AM
Default, I have not changed the theme.
Title: Re: Ignore User Button
Post by: Arantor on December 23, 2009, 02:59:19 AM
And the mod was installed after the upgrade?
Title: Re: Ignore User Button
Post by: jrstark on December 23, 2009, 10:07:33 AM
Quote from: The Grinch on December 23, 2009, 02:59:19 AM
And the mod was installed after the upgrade?

Yes, after the upgrade.  Before the upgrade I was using the Ignore User mod, but that one has not been upgraded for 2.0.
Title: Re: Ignore User Button
Post by: Arantor on December 23, 2009, 10:20:36 AM
Do you get any errors in the error log?
Title: Re: Ignore User Button
Post by: jrstark on December 23, 2009, 10:51:31 AM
I've tried uninstalling and re-installing several times, downloaded fresh a couple of times.  Finally got some errors last night:

The package you are attempting to install is missing the package-info.xml that must be in the root package directory.

8: Undefined index: package

There were two errors of the above, both in Sources/PackageGet.php, on Line: 607 and Line: 585

Just now I uninstalled, deleted and downloaded again.  This time I checked to install to Classic YaBB SE and Babylon as well.  Went in and viewed a thread using a regular user account, still no link.  Only had one error:

8: Undefined index: theme

This was in Sources/Packages.php on Line: 935

For some reason I am not able to install by URL, I have to browse to do it.  All folders are writeable 777 when I check permissions.

I am running apache, mysql and PHP on my WinXP laptop, so no FTP info.

Title: Re: Ignore User Button
Post by: Arantor on December 23, 2009, 11:18:56 AM
Well, I develop on an XP desktop with Apache, MySQL and PHP too, so I think we can rule that part out.

What interests me is the errors you're getting. Can you install other mods?
Title: Re: Ignore User Button
Post by: jrstark on December 23, 2009, 11:28:14 AM
Quote from: The Grinch on December 23, 2009, 11:18:56 AM
Well, I develop on an XP desktop with Apache, MySQL and PHP too, so I think we can rule that part out.

What interests me is the errors you're getting. Can you install other mods?

The only other one I've tried so far is global headers and footers.  That installed fine and worked, except the header isn't at the top of the page so I uninstalled it.  I had tried including my existing header and footer but it broke everything, that's why I tried the mod.  Been meaning to try the stop forum spam one, so I'll try that next.
Title: Re: Ignore User Button
Post by: Arantor on December 23, 2009, 11:30:10 AM
I wonder if there's something awry on your system's configuration of SMF, since it seems nothing is installing correctly.
Title: Re: Ignore User Button
Post by: jrstark on December 23, 2009, 11:39:53 AM
The first time I tried upgrading it didn't work, had to re-download and setup 1.1.11 and changed to default theme, then it did work.  Doesn't look like any of the spam mods are updated for 2.0.  The global headers one worked, the header just wasn't in the right place which seems to be how it is designed.

Can you suggest an easy mod to use for testing?  I've tried to keep my install as simple as possible, my existing custom theme is just header and footer to look like the rest of the site and changing colors in the css.

I do have a ton of old packages still showing in the browse list, because I started with the 1.0 series.  Should I delete those?


Title: Re: Ignore User Button
Post by: Arantor on December 23, 2009, 11:41:22 AM
I'd actually say this mod, to be honest, because it's pretty straightforward, but I can see you're getting errors.

/me has to go out for a bit now, will see if he can reproduce this on his machine.
Title: Re: Ignore User Button
Post by: Arantor on December 29, 2009, 08:49:43 AM
Well, I haven't been able to reproduce this; it installs fine on both my local and remove setups, so I'm not sure what to say, really :(
Title: Re: Ignore User Button
Post by: rufen on February 28, 2010, 01:19:09 PM
where are the settings?
Title: Re: Ignore User Button
Post by: live627 on March 01, 2010, 04:33:11 PM
I don't think this mod has any settings
Title: Re: Ignore User Button
Post by: rufen on March 02, 2010, 08:35:55 AM
well then it's not working on my forum..
Title: Re: Ignore User Button
Post by: live627 on March 02, 2010, 08:12:51 PM
Assuming you have SMF 2.0 RC2

Any errors while installing? Do you have a custom theme active?
Title: Re: Ignore User Button
Post by: Eclipse16V on March 15, 2010, 02:20:51 AM
Nice Mod

Please update it for SMF 2.0RC3  ;)

Thanks
Title: Re: Ignore User Button
Post by: robg2251 on April 27, 2010, 11:35:18 AM
Quote from: Eclipse16V on March 15, 2010, 02:20:51 AM
Nice Mod

Please update it for SMF 2.0RC3  ;)

Thanks


Will this be updated for SMF 2.0RC3 soon?  I saw in the manual installation drop down, an RC3 option - does this mean it's now compatible, maybe the page wasn't updated?     Thanks. 
Title: Re: Ignore User Button
Post by: Arantor on April 27, 2010, 11:37:04 AM
No, because it tells you it'll fail the version check.

That said I see no reason why version emulation shouldn't work, see Admin > Packages > Browse Packages > Advanced, and enter SMF 2.0 RC2 before trying to install it.
Title: Re: Ignore User Button
Post by: wrinkle on May 03, 2010, 10:31:47 PM
Quote from: Arantor on April 27, 2010, 11:37:04 AM
No, because it tells you it'll fail the version check.

That said I see no reason why version emulation shouldn't work, see Admin > Packages > Browse Packages > Advanced, and enter SMF 2.0 RC2 before trying to install it.

I did this.  Emulated 2.0 RC2 and the mod installs.  But doesn't show up on the posts in the forums. 
Title: Re: Ignore User Button
Post by: Arantor on May 04, 2010, 03:29:30 AM
Did you install it on your custom theme? You may need to use the Install On Other Themes option in the package manager.

/me is a little annoyed that hasn't been updated because it's trivial to do.
Title: Re: Ignore User Button
Post by: wrinkle on July 20, 2010, 12:31:33 PM
Quote from: Arantor on May 04, 2010, 03:29:30 AM
Did you install it on your custom theme? You may need to use the Install On Other Themes option in the package manager.

/me is a little annoyed that hasn't been updated because it's trivial to do.

I am not using a customer theme.  Just the Default 2.0 RC3 theme.  It would be great if it would work.  I have it working on a another forum that is 1.1.11 and all my users love it. 
Title: Re: Ignore User Button
Post by: effex on July 25, 2010, 08:25:58 PM
Quote from: wrinkle on July 20, 2010, 12:31:33 PM
Quote from: Arantor on May 04, 2010, 03:29:30 AM
Did you install it on your custom theme? You may need to use the Install On Other Themes option in the package manager.

/me is a little annoyed that hasn't been updated because it's trivial to do.

I am not using a customer theme.  Just the Default 2.0 RC3 theme.  It would be great if it would work.  I have it working on a another forum that is 1.1.11 and all my users love it.

You got it working on 1.1.11 you say?

I did all the manual installs several times on a custom theme and the link just isn't showing up next the the report to moderator link.

Did you do anything special on 1.1.11 to make it work?
Title: Re: Ignore User Button
Post by: wrinkle on July 26, 2010, 08:42:30 AM
Quote from: effex on July 25, 2010, 08:25:58 PM
Quote from: wrinkle on July 20, 2010, 12:31:33 PM
Quote from: Arantor on May 04, 2010, 03:29:30 AM
Did you install it on your custom theme? You may need to use the Install On Other Themes option in the package manager.

/me is a little annoyed that hasn't been updated because it's trivial to do.

I am not using a customer theme.  Just the Default 2.0 RC3 theme.  It would be great if it would work.  I have it working on a another forum that is 1.1.11 and all my users love it.

You got it working on 1.1.11 you say?

I did all the manual installs several times on a custom theme and the link just isn't showing up next the the report to moderator link.

Did you do anything special on 1.1.11 to make it work?

I didn't do anything special to get it working with 1.1.11.  It just installed and worked fine.  However it was a default theme with minimal mods. 
Title: Re: Ignore User Button
Post by: effex on July 27, 2010, 12:12:06 AM
Quote from: wrinkle on July 26, 2010, 08:42:30 AM
Quote from: effex on July 25, 2010, 08:25:58 PM
Quote from: wrinkle on July 20, 2010, 12:31:33 PM
Quote from: Arantor on May 04, 2010, 03:29:30 AM
Did you install it on your custom theme? You may need to use the Install On Other Themes option in the package manager.

/me is a little annoyed that hasn't been updated because it's trivial to do.

I am not using a customer theme.  Just the Default 2.0 RC3 theme.  It would be great if it would work.  I have it working on a another forum that is 1.1.11 and all my users love it.

You got it working on 1.1.11 you say?

I did all the manual installs several times on a custom theme and the link just isn't showing up next the the report to moderator link.

Did you do anything special on 1.1.11 to make it work?

I didn't do anything special to get it working with 1.1.11.  It just installed and worked fine.  However it was a default theme with minimal mods.

That's strange, because when I go to install it on 1.1.11 it says...

"The package you are trying to download or install is either corrupt or not compatible with this version of SMF."

I've done the manual installation about 3 times now too and it's not showing the button for some reason. I was wondering if you had modified the code to make it work with that version of SMF, but apparently you didn't.

I can't figure out what I could be doing wrong.
Title: Re: Ignore User Button
Post by: live627 on August 06, 2010, 01:33:50 AM
Switch to default theme. Does the button show?
Title: Re: Ignore User Button
Post by: SN on November 28, 2010, 07:34:47 AM
Live, will this ever been updated for RC4?
Title: Re: Ignore User Button
Post by: CDM on December 02, 2010, 11:54:41 PM
Quote from: effex on July 27, 2010, 12:12:06 AM
That's strange, because when I go to install it on 1.1.11 it says...

"The package you are trying to download or install is either corrupt or not compatible with this version of SMF."

I've done the manual installation about 3 times now too and it's not showing the button for some reason. I was wondering if you had modified the code to make it work with that version of SMF, but apparently you didn't.

I can't figure out what I could be doing wrong.

I am also getting the above message. I don't think I know how to manually install anything. How can I use this mod? Is there a way I can get it to work in my forum? I am using 1.1.11.
Title: Re: Ignore User Button
Post by: CDM on December 03, 2010, 12:27:19 AM
I think I found one that works on 1.1.11. It's "Ignore another user" by Arantor. But let me know if this mod (Ignore User Button) works in 1.1.11. Thanks! :)
Title: Re: Ignore User Button
Post by: Eclipse16V on July 07, 2011, 04:01:26 PM
Update for 2.0 please
Title: Re: Ignore User Button
Post by: live627 on July 08, 2011, 01:23:01 AM
That isn't enough to motivate me to do it. Install it. Use emulation.
Title: Re: Ignore User Button
Post by: Eclipse16V on December 30, 2011, 03:49:50 PM
Doesn´t work on 2.0.2
Title: Re: Ignore User Button
Post by: live627 on January 01, 2012, 06:16:05 PM
?
Title: Re: Ignore User Button
Post by: tjb on February 11, 2012, 01:26:55 PM
I'd like to request an update please for this mod for 2.02.  While the feature is built in, it is too convoluted for my users to easily access. This button would be great, and I used the mod for the previous (1.x) version of SMF.
Title: Re: Ignore User Button
Post by: ArrayInteractive on February 15, 2012, 12:41:16 PM
Has anyone had any luck getting this mod to work on 2.02?

Being able to easily ignore a user is a key feature for my forum, but currently it's quite convoluted to get at. Unless there is something I'm missing... Ideally I would have an ignore user button that appears on the left side of a post, right under the users Karma rating. I guess I'll get hacking and see what I can do.

Title: Re: Ignore User Button
Post by: smldmr on May 29, 2012, 11:16:32 AM
if you emulate SMF 2.0 RC2, you can install it. On my 2.0.2 forum, it functioning perfectly.
Title: Re: Ignore User Button
Post by: samborabora on July 09, 2014, 01:20:22 PM
I know I'm years late to the party, but if I may quote myself from a a post earlier today:

Sorry for the necrobump, but I've just installed the Ignore User Button on RC 2.0.5, and I'm just trying to fiddle with the code to make it appear on the profile. The problem is it has a few ways of checking if the current post is not by the author, and this appears to be throwing it off if I just cut and paste the code from Display.template into Profile.template. I also had a look at the include php file and the Sources file, and everything appears to be really simple, but I'm not quite sure how to adjust it to display on the profile page?

What kind of work would be required to place an ignore link on the profile page?
Title: Re: Ignore User Button
Post by: live627 on July 09, 2014, 08:35:03 PM
Just adding a HTML link to the profile template.
Title: Re: Ignore User Button
Post by: samborabora on July 10, 2014, 05:02:24 AM
Quote from: live627 on July 09, 2014, 08:35:03 PM
Just adding a HTML link to the profile template.

Okay, this works:

<a href="', $scripturl, '?action=ignoreuser;u=', $context['id_member'], '">Ignore User</a>

But, I'd like it to say 'Unignore' on the profile page like it does on the posts, whats the easiest check for this?
Title: Re: Ignore User Button
Post by: samborabora on July 11, 2014, 01:16:02 AM
Quote from: live627 on July 09, 2014, 08:35:03 PM
Just adding a HTML link to the profile template.

Is there a way to check if the user already is on ignore, and to change the link to unignore if so?