Ignore User module
Posted by arlo
Re: Ignore User module November 11, 2005 04:33AM |
Registered: 19 years ago Posts: 68 |
Re: Ignore User module November 22, 2005 05:46PM |
Registered: 19 years ago Posts: 14 |
Re: Ignore User module November 22, 2005 06:24PM |
Registered: 19 years ago Posts: 14 |
Re: Ignore User module December 08, 2005 09:51AM |
Registered: 19 years ago Posts: 97 |
Nice module, thnx.
But I have some proposiotions:
1. IMHO it's not right that users can ignore moderators msgs. I think we should check if this user is moderators and forbid to ignore his msgs
2. It will be cool to report to the user that his messages was ignored by such user :) That we can made a rating of ignored users :)
Edited 1 time(s). Last edit at 12/08/2005 09:53AM by Avdoshyn.
But I have some proposiotions:
1. IMHO it's not right that users can ignore moderators msgs. I think we should check if this user is moderators and forbid to ignore his msgs
2. It will be cool to report to the user that his messages was ignored by such user :) That we can made a rating of ignored users :)
Edited 1 time(s). Last edit at 12/08/2005 09:53AM by Avdoshyn.
Re: Ignore User module December 08, 2005 10:24AM |
Admin Registered: 23 years ago Posts: 4,495 |
Quote
Avdoshyn
Nice module, thnx.
But I have some proposiotions:
1. IMHO it's not right that users can ignore moderators msgs. I think we should check if this user is moderators and forbid to ignore his msgs
2. It will be cool to report to the user that his messages was ignored by such user :) That we can made a rating of ignored users :)
I agree with #1. I do not agree with #2. If you are being ignored, there is a reason. letting the peson know will just stir up more trouble.
Re: Ignore User module March 30, 2006 03:36PM |
Admin Registered: 23 years ago Posts: 4,495 |
I wanted to shade messages in the list page if they were started by ignored users. Here is what I did.
I replaced this in list.tpl:
I added these to my css:
I replaced this in list.tpl:
<?php if($rclass=="Alt") $rclass=""; else $rclass="Alt"; ?>with this:
<?php if(substr($rclass, 0, 3)=="Alt") $rclass=""; else $rclass="Alt"; if(isset($PHORUM["user"]["mod_ignore"]) && is_array($PHORUM["user"]["mod_ignore"])){ if (in_array ($PHORUM["TMP"]["ROWS"]["user_id"], $PHORUM["user"]["mod_ignore"])) { $rclass.= " user-ignored"; $PHORUM["TMP"]["ROWS"]["linked_author"].= " (ignored)"; } } ?>
I added these to my css:
td.user-ignored { color: Gray; } td.user-ignored a { color: Gray; }
Brian - Cowboy Ninja Coder - Personal Blog - Twitter
Re: Ignore User module June 16, 2007 05:31PM |
Registered: 18 years ago Posts: 16 |
I have installed the module and would love to use it but am having a problem.
When I click on 'Hide msgs from this user' I get the error,
Fatal error: [] operator not supported for strings in /home/tomzap2/public_html/ph5/mods/ignore/ignore.php on line 31
The code on line 31 is
$userdata["mod_ignore"][]=$PHORUM["args"][ignoreuser];
I am using Phorum v5.1.22.
Any ideas how I can fix this?
When I click on 'Hide msgs from this user' I get the error,
Fatal error: [] operator not supported for strings in /home/tomzap2/public_html/ph5/mods/ignore/ignore.php on line 31
The code on line 31 is
$userdata["mod_ignore"][]=$PHORUM["args"][ignoreuser];
I am using Phorum v5.1.22.
Any ideas how I can fix this?
Re: Ignore User module June 16, 2007 06:37PM |
Admin Registered: 19 years ago Posts: 8,532 |
I don't know this module from the inside, but I think a quick fix would be to add some code in front of this line (green code is added):
Further, check if you have allowed HTML for the custom profile field "mod_ignore". If you do not allow HTML for the field, then the field data might become broken.
Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
if (!isset($userdata["mod_ignore"]) || !is_array($userdata["mod_ignore"])) { $userdata["mod_ignore"] = array(); } $userdata["mod_ignore"][]=$PHORUM["args"][[color=#009900]"[/color]ignoreuser"];
Further, check if you have allowed HTML for the custom profile field "mod_ignore". If you do not allow HTML for the field, then the field data might become broken.
Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Re: Ignore User module June 16, 2007 08:22PM |
Registered: 18 years ago Posts: 16 |
The problem was the html being disabled in the "mod_ignore" custom profile.
It's working now. Thanks for your help.
[www.tomzap.com]
It's working now. Thanks for your help.
[www.tomzap.com]
Re: Ignore User module November 20, 2009 01:40PM |
Registered: 16 years ago Posts: 54 |
Sorry, only registered users may post in this forum.