Topic: [Request] Is there Ignore user extension

I need some kind of personalized 'Ignore user' feature when some members may put 'Ignore' on some other members so their posts will not appear on the website when they are logged in.

Re: [Request] Is there Ignore user extension

I was just pm'ed about this code I had on my website (published end of 2011)
seems it doesn't work
if someone could get it to work please feel free to publish!

<extension engine="1.0">
<id>ignore_user</id>
<title>Ignore User</title>
<version>0.2</version>
−
<description>
Allows users to ignore posts of other users.  Links are added to the post header to ignore and to ignored posts for un-ignore.
        Changes for v0.2 - removed user information for ignored users.
</description>
<author>eliot</author>
<minversion>1.3 Beta</minversion>
<maxtestedon>1.3 Beta</maxtestedon>
−
<install>

    

    if (!$forum_db->table_exists($forum_db->prefix.'ignore_users'))
    {
                $sql = 'CREATE TABLE '.$forum_db->prefix.'ignore_users (
                      user_id INT(10) UNSIGNED NOT NULL,
                      ignore_user_id INT(10) UNSIGNED NOT NULL ,
                      PRIMARY KEY (user_id,ignore_user_id)
                    )' ;

        $forum_db->query($sql) or error(__FILE__, __LINE__);
    }


  
</install>
−
<uninstall>

    // Uninstall code here

    $forum_db->query('DROP TABLE '.$forum_db->prefix.'ignore_users');
  
</uninstall>
−
<hooks>
−
<hook id="vt_qr_get_posts">

        // Hook code here
    $query['SELECT'] .= ',iu.ignore_user_id as ignore_user_id';
    $query['JOINS'][] =array(
            'LEFT JOIN'        => 'ignore_users AS iu',
            'ON'            => 'p.poster_id = iu.ignore_user_id AND iu.user_id ='.$forum_user['id']);



    
</hook>
−
<hook id="vt_start">

    if (file_exists($ext_info['path'].'/lang/'.$forum_user['language'].'.php'))
            require $ext_info['path'].'/lang/'.$forum_user['language'].'.php';
        else
            require $ext_info['path'].'/lang/English.php';

    
</hook>
−
<hook id="vt_row_pre_display">

        // Hook code here
    if(!$forum_user['is_guest'])
        

        {
            
            if($cur_post['ignore_user_id'])
            {
                $forum_page['message']['message']= '<span id="ignore_msg">'.$lang_ignore['ignore_message'].'<a href="'.$ext_info['path'].'/ignore_funcs.php?type=unignore&id='.$cur_post['poster_id'].'&redir='.forum_link($forum_url['post'], $cur_post['id']).'" >'.$lang_ignore['ignore_click'].'</a>'.$lang_ignore['ignore_click_end'].'</span>';
                $forum_page['message']['edited'] = '';
                $forum_page['message']['signature']= '';
                $forum_page['user_ident']['avatar']='';
                $forum_page['user_ident']['usertitle']='';
                $forum_page['user_ident']['status']='';
                $forum_page['user_status']='';
                if ($cur_post['location'] != '')
                    $forum_page['user_info']['from'] ='';
                $forum_page['user_info']['registered']='';
                $forum_page['user_info']['posts']='';
                $forum_page['user_info']['ignore'] = '<li><span><a href="'.$ext_info['path'].'/ignore_funcs.php?type=unignore&id='.$cur_post['poster_id'].'&redir='.forum_link($forum_url['post'], $cur_post['id']).'" >'.$lang_ignore['un-ignore_message'].'</a></span></li>';

            }
            else
            {
                $forum_page['user_info']['ignore'] = '<li><span><a href="'.$ext_info['path'].'/ignore_funcs.php?type=ignore&id='.$cur_post['poster_id'].'&redir='.forum_link($forum_url['post'], $cur_post['id']).'" >'.$lang_ignore['ignore_user'].'</a></span></li>';

            }
        }



    
</hook>
</hooks>
</extension>

Re: [Request] Is there Ignore user extension

BUMP