News:

Want to get involved in developing SMF? Why not lend a hand on our GitHub!

Main Menu

Ignore User

Started by Rudolf, September 12, 2005, 01:00:12 PM

Previous topic - Next topic

Vinspire

Quote from: Rudolf on October 04, 2006, 04:46:09 AM
Anythign in the error logs?
Can you give a link to the forum?

No error related to this issue.

Forum : http://forum.kokorobox.net

Account detail :

user : test
password : test

Rudolf

Are you sure you applied all the modifications to your Display.template.php? I see that you have a heavily modded forum.
The javascript function is a tricky one, you can't just copy paste from the modification file.
Replace the line:

// ]]>]]<![CDATA[></script>

with:

// ]]></script>


Check the rest of the Display template, for the remaining modifications.
I will update all my mods in the next few weeks. Thanks for your patience.

SVG-Collapse (you need an SVG compliant browser)

Vinspire

Quote from: Rudolf on October 04, 2006, 05:05:21 AM
Are you sure you applied all the modifications to your Display.template.php? I see that you have a heavily modded forum.
The javascript function is a tricky one, you can't just copy paste from the modification file.
Replace the line:

// ]]>]]<![CDATA[></script>

with:

// ]]></script>


Check the rest of the Display template, for the remaining modifications.

Rudolf, is it possible if i email you my display.template.php file and you have a look at it as i am pretty sure that i did not miss any of the codes  :o

Rudolf

Yes, you should aslo email the Display.template.php before the modifications. I hope you have a backup.
You can find me on Yahoo, my nick is 'rudiksz'.
I will update all my mods in the next few weeks. Thanks for your patience.

SVG-Collapse (you need an SVG compliant browser)

Chad

Quote from: Rudolf on September 24, 2006, 05:25:46 AM
I'm working on it right now.
I have a couple of new features I'd like to add, all based on requests and feedback from here.

Here's the list:

  • Add a setting to enable/disable this feature for administrators and moderators (they won't be able to ignore members)
  • In the Profile summary show the number of users ignoring the viewed user.
  • In the Profile a separate page for administrators and moderators to view two lists: Ignored and Ignored by (the members this member is ignoring and the members this member is ignored by)
  • Remove/hide the posts from the topic summary
  • Try to hide posts from various index pages - on Main index the last posts of boards and the recent posts, on board index the last post of topics (these are optional, it will make in the mod if it's not too complicated)
  • Other technical adjustments, code optimization

It should be ready today, or if not the next weekend.


If I ignore someone, they can still send me PM's.  I'd like to let my users completely ignore someone including PMs.  Is this possible?

Rudolf

There's already an existing feature in the SMF. You can use that one.
I will update all my mods in the next few weeks. Thanks for your patience.

SVG-Collapse (you need an SVG compliant browser)

Vinspire

Quote from: Chad on October 04, 2006, 02:44:08 PM
If I ignore someone, they can still send me PM's.  I'd like to let my users completely ignore someone including PMs.  Is this possible?

To ignore someone's PM

Profile -> Personal Message Options -> Ignorelist :)

geezmo

Is there an existing SMF feature that ignores all posts and not just the PMs of a poster?

geezmo


ms_ukyankee

Not that I've seen, the only feature that SMF comes with is the ability to ignore PMs. If it did, there wouldn't be a point to this mod.
SMF since 2004 <3

unrelenting

Anyone know the code to change the "0 member" to "0 members"  and only say "member" when 1 member has them on ignore?

Rudolf

#211
In Profile.template.php search for:

//-Ignore MOD- Start
echo '
<tr>
<td><b>', $txt['ignored_by'] ,':</b></td>
<td>', $context['member']['ignored_by_num'], ($context['member']['ignored_by_num']>1 ? $txt['members'] : $txt['member']),'</td>
</tr>';
//-Ignore MOD- End

Replace with:

//-Ignore MOD- Start
echo '
<tr>
<td><b>', $txt['ignored_by'] ,':</b></td>
<td>', $context['member']['ignored_by_num'], ($context['member']['ignored_by_num']!=1 ? $txt['members'] : $txt['member']),'</td>
</tr>';
//-Ignore MOD- End


If you do this change the modification will give a failure when uninstalling. You will have to manually remove this part after uninstalling.
Or you can uninstall, make the change in the package (themes.xml) and reinstall the mod.
I will update all my mods in the next few weeks. Thanks for your patience.

SVG-Collapse (you need an SVG compliant browser)

unrelenting

Rudolf,

Do you know the code to add to the display.template.php to display under the ignore button something like this:


IGNOREBUTTON

Ignored by 1 user





or





IGNOREBUTTON

Ignored by 3 users



Meaning it will use the term "user" for 1 and "user" for everything else?


I have tried adding the code in the Profile.template.php to no avail. I tried modifying it all sorts of ways. It just won't pull up the # ignoring them. It's making my brain ache.  :-\

Rudolf

That #ignoring value is available only in the profile, not globally.
It is calculated by a query that is run in the profile summary.
To find out the #number in the topic display you would have to run the query for every user. That's too much, imo.
I guess I could add a column in the members table to store that number, but I'm not too much eager to put it in.
I'll see what can I do as soon as I get home.
I will update all my mods in the next few weeks. Thanks for your patience.

SVG-Collapse (you need an SVG compliant browser)

unrelenting

Quote from: Rudolf on November 06, 2006, 04:47:53 AM
That #ignoring value is available only in the profile, not globally.
It is calculated by a query that is run in the profile summary.
To find out the #number in the topic display you would have to run the query for every user. That's too much, imo.
I guess I could add a column in the members table to store that number, but I'm not too much eager to put it in.
I'll see what can I do as soon as I get home.


Thanks, I appreciate it. I'd love to add that feature as a replacement for karma.

Fatherguido

#215
I have this error displaying across the top of my screen after installation

QuoteNotice: Undefined index: is_admin in /home/phinzman/public_html/forum/Sources/Security.php on line 708

Notice: Undefined index: permissions in /home/phinzman/public_html/forum/Sources/Security.php on line 715

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/phinzman/public_html/forum/Sources/Security.php on line 715

Here is security 707 - 719
// Administrators are supermen :P.
if ($user_info['is_admin'])
return true;

// Are we checking the _current_ board, or some other boards?
if ($boards === null)
{
// Check if they can do it.
if (!is_array($permission) && in_array($permission, $user_info['permissions']))
return true;
// Search for any of a list of permissions.
elseif (is_array($permission) && count(array_intersect($permission, $user_info['permissions'])) != 0)
return true;

Fatherguido

Another issue that I see is I can no longer see the IP when I view "Who's Online" I see  0.0.0.0

Fatherguido

The code that is causing the issue is in Load.php

'ignore_list' => !empty($user_settings['ign_ignore_list']) ? explode(',', $user_settings['ign_ignore_list']) : array(), //-Ignore MOD-
'can_ignore' => (empty($modSettings['ign_adminuse']) && !allowedTo('moderate_board')) ? false : (empty($modSettings['ign_disallowgroups1']) ? true : !count(array_intersect(explode(',',$modSettings['ign_disallowgroups1']),$user_info['groups'])) ? true : false), //-Ignore MOD-

MYP

I have to say that it really sucks that with the rewrite of this mod, to accomdate 1.1, that admins can no longer put a user on ignore.  :(

unrelenting

Quote from: MYP on December 05, 2006, 08:49:30 PM
I have to say that it really sucks that with the rewrite of this mod, to accomdate 1.1, that admins can no longer put a user on ignore.  :(

Shouldn't admins be keeping an eye on what people are posting?

Advertisement: