Firefox PHP

Ignore User module

Posted by arlo 
wnd
Re: Ignore User module
November 11, 2005 04:33AM
Big Thanks!

One more question.
Is it possible to hide tipics from ignored users?

Regards,
wnd
Re: Ignore User module
November 22, 2005 05:46PM
Followed the instructions but all I get is the brackets [] shown on the forum after the posted by & IP address. There is no link. Any suggestions?

Thanks
Re: Ignore User module
November 22, 2005 06:24PM
I placed some text inside the [ ] link and can toggle via this link to show/hide posts. But many users ID's show as "ignoreuser=0" and the function does not work. Ideas?



Edited 1 time(s). Last edit at 11/22/2005 06:24PM by Grayson.
Re: Ignore User module
December 08, 2005 09:51AM
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.
Re: Ignore User module
December 08, 2005 10:24AM
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
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:
<?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
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?
Re: Ignore User module
June 16, 2007 06:37PM
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):
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
The problem was the html being disabled in the "mod_ignore" custom profile.

It's working now. Thanks for your help.

[www.tomzap.com]
Re: Ignore User module
November 20, 2009 01:40PM
Hi,

I made this change (changing MESSAGES to MESSAGE) in read.tpl, but the mod still does not work in threaded view. Works in flat view, though. Any ideas?

TIA
Sorry, only registered users may post in this forum.

Click here to login