Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: Rudolf on September 12, 2005, 01:00:12 PM

Title: Ignore User
Post by: Rudolf on September 12, 2005, 01:00:12 PM
Link to Mod (http://mods.simplemachines.org/index.php?mod=185)
Alternative Link to Mod (http://digilander.libero.it/rudoka/smfmods/ignore/Ignore_user_1.3.zip)

  This mod allows users to hide messages (the posts in the topics) from users you chose to ignore. Settings are based per user, every user has an ignore list of his/her own that doesn't affects other users.
You can see the documentation here (http://digilander.libero.it/rudoka/smfmods/ignore/readme.html)

Other languages: upload the language file in the "Themes/default/languages" directory
    Russian (http://digilander.libero.it/rudoka/smfmods/ignore/Ignore_russian.zip)


Button PSD's: Button templates (http://digilander.libero.it/rudoka/smfmods/ignore/Ibuttons_psd.zip)

    Default buttons: (http://digilander.libero.it/rudoka/smfmods/ignore/buttonsets/babylon/ignore.gif)(http://digilander.libero.it/rudoka/smfmods/ignore/buttonsets/babylon/unignore.gif)(http://digilander.libero.it/rudoka/smfmods/ignore/buttonsets/babylon/ignshow.gif)(http://digilander.libero.it/rudoka/smfmods/ignore/buttonsets/babylon/ignhide.gif) The Full Set (http://digilander.libero.it/rudoka/smfmods/ignore/buttonsets/babylon/babylon.zip) - Thanks to Tanya
     
    Shomazta: (http://digilander.libero.it/rudoka/smfmods/ignore/buttonsets/shomazta1/ignore.gif)(http://digilander.libero.it/rudoka/smfmods/ignore/buttonsets/shomazta1/unignore.gif)(http://digilander.libero.it/rudoka/smfmods/ignore/buttonsets/shomazta1/ignshow.gif)(http://digilander.libero.it/rudoka/smfmods/ignore/buttonsets/shomazta1/ignhide.gif)    The Full Set (http://digilander.libero.it/rudoka/smfmods/ignore/buttonsets/shomazta1/shomazta1.zip) - Thanks to Shomazta (http://www.simplemachines.org/community/index.php?action=profile;u=96346)



Rudolf
Title: Re: Ignore User
Post by: Rudolf on September 13, 2005, 02:56:11 PM
@gri:

The 1.1 means the version of the mod, not the SMF. It works for all the versions you see checked on the download page.

I'll update the readme file, thanks for pointing it out.

About the ~Upper Head~ topic I don't know what to say, it wasn't me who created that topic.
Rudolf

Title: Re: Ignore User
Post by: Rudolf on September 13, 2005, 03:01:31 PM
@mohoganybrwn:

The theme changes are made in the themes.xml.
It gives a failure proably because you have modified the default theme.

You can edit the package-info.xml and remove the
<modification>themes.xml</modification>
<modification reverse="true">themes.xml</modification>

But you will have to apply the modifications in your Display.template manually!
Let me know if you need help with that.

Rudolf
Title: Re: Ignore User
Post by: gri on September 13, 2005, 06:19:19 PM
Quote from: gri on September 13, 2005, 06:01:36 AM
   As far as I can imagine
   the correct scheme of work management around the mod..

    the ~Upper Head~ topic of the Author of the Mod
     should be Locked from others' posts

Quote from: rudiksz on September 13, 2005, 02:56:11 PM
@gri:
About the ~Upper Head~ topic I don't know what to say,
it wasn't me who created that topic.
Rudolf

Quote from: rudiksz on September 13, 2005, 02:53:46 PM
You can find the answers here:
http://www.simplemachines.org/community/index.php?topic=49149.0

rudiksz,
do you really want _this_ topic filled by others' questions ?

Hmm..
Title: Re: Ignore User
Post by: gri on September 13, 2005, 06:19:53 PM
rudiksz,

1. For the Ignored User
   View Profile-, E-mail-, PM- icons
   and other attributes of mini-profile
   can be also hidden. I suppose. Why not ?
   The single nickname instead of full set of user's attributes
    plus the "Unignore button" are quite enough
     to not use the additional reminder of that
      "This user is currently ignored".

2. Subtitle of the post (together with the time/date)
    is also the subject to be ignored.

3. Then Ignore button can be moved to the line
    of other post buttons.
   Well let it be just left adjusted.

4. Can the refresh of the topic screen
   return to the display of that post
    where the Ignore (Unignore) button was clicked ? -
   Similar to as the usual topic display
    when we come into the topic through the post link .

5. Is it possible to Ignore separate posts,
    indifferently to its Author,
   assuming the msg-number of a post
    as a key for the Ignore list ?

6. It is also usefull to have a possibility
    to remember Shown posts of Ignored user.

7. In general it is convenient to be empowered
   to Hide(/Show) any post of not Ignored Poster,
   at least for the topics which a User is subscribed to.
   And to remember the status.

8. The better alternative :
   the posts should have checkboxes
    "check_post_to_be_ignored"
    (and "check_user_to_be_ignored")
   beside the common button "Save all checked boxes"
    which would once refresh the screen and remember
     the checked (unchecked) objects as ignored (unignored).
   The checked (unchecked) posts could also be saved
    when any of other buttons is clicked
     which require an inevitable screen refresh.

   In order to better understand the problem of saving
   imagine the User
   who needs a continuos period of time
     to translate, analise posts, search arguments, etc.
    prior to come to a conclusion of ignoring the post..
   and also who read posts in offline.
Title: Re: Ignore User
Post by: gri on September 13, 2005, 06:20:32 PM
Still not locked..

?
Title: Re: Ignore User
Post by: mohoganybrwn on September 13, 2005, 06:47:48 PM
Quote from: rudiksz on September 13, 2005, 03:01:31 PM
@mohoganybrwn:

The theme changes are made in the themes.xml.
It gives a failure proably because you have modified the default theme.

You can edit the package-info.xml and remove the
<modification>themes.xml</modification>
<modification reverse="true">themes.xml</modification>

But you will have to apply the modifications in your Display.template manually!
Let me know if you need help with that.

Rudolf

Thank you Rudolf!  Yes, I will def. need help with that.  I'm new to SMF. 
Title: Re: Ignore User
Post by: gri on September 13, 2005, 08:29:11 PM
Quote from: rudiksz on September 13, 2005, 02:56:11 PM
About the ~Upper Head~ topic I don't know what to say,
it wasn't me who created that topic.

rudiksz,
you are right to create your own topic.

There should be (as a minimum minimorum) two topics:

"Ignore User Mod Description" and
"Ignore User Mod Discussion"
(both of the Author of the mod).

Mod download page has the link (as a fact) to the single
"Ignore User Mod Description" topic
and that topic should be locked. It is the Head.

It is clear that the Description
will have an indefinite number of separate posts of the Author
 for the sake of linking to separate description section
  from outside of the Solar System.

For example, one of the description sections
is the list of various ~Ignore User Mod Discussion~ topics
 throughout the Universe.

Another section example is the list
of national language translations of the Mod Description.

The next usefull section is the list of forums
with the Mod installed.

Announcements and post modification notices
(after some improvements of SMF)
could also be realised on the basis of
~Any Mod Description~ topic.

It can include open guides, historical references
and God knows what else.

If you could dispatch all the directions
inside the only one first (Head) post of this topic
and combine both Description and Discussion in a one
(I doubt it)
then.. just Ignore this post.

Attention: A User should be awared
          about his posts Ignored by the Author of a topic.

So.. unhide again.
Title: Re: Ignore User
Post by: Rudolf on September 13, 2005, 10:26:43 PM
Quote from: gri on September 13, 2005, 06:19:19 PM
do you really want _this_ topic filled by others' questions ?

That's what this topic is for.
Anyone who has questions, problems, ideas, maybe the language file or the few buttons in other languages is welcome to post it here. I'll be more then happy to host those files, and make it available to others.

  Unfortunately (for the others), I'm happy with the mod as it is now, and don't really plan to develop it further. I won't be adding new features anymore, unless they are really cool and needed.
  Nevertheless, I will fully support the current version and provide help to those who need (or are lazy to read the detailed readme I included in the package  :P). As my time permits, of course.

Rudolf
Title: Re: Ignore User
Post by: Rudolf on September 13, 2005, 10:30:45 PM
   By the way, it's not my responsbility to warn the user that they might be "ignored".
That's totally the job of the forum owners/administrators who decide to install this mod on their forum.
   Note that the mod gives the same functionality to every user without no discrimination. So they have the possibility to ignroe others too. From here only one logical step is needed to realise that one can be ignored to by others the same way.

   Rudolf
Title: Re: Ignore User
Post by: Rudolf on September 13, 2005, 10:56:49 PM
Quote from: mohoganybrwn on September 13, 2005, 06:47:48 PM
Thank you Rudolf!  Yes, I will def. need help with that.  I'm new to SMF. 

  I'm curious to know what mods you have installed, or what other modification you made to that file. Unless you deleted the comments from the file the installation should be ok. I'm really perplex.
  Take a look at the Display file in the first post, and see if that helps. Basically you have to add the sections between the //IGNORE comments before or after the original SMF's comments are.
  I made this way on purpose to avoid conflicting with other mods.  :-\

Rudolf
Title: Re: Ignore User
Post by: zmobie on September 13, 2005, 11:52:44 PM
Okay, one more from me, then I'll leave you be. :)

I've tweaked Display.template.php a little more.  Feel free to add it, or ignore (pun!) it.  What I realized is that some themes to not modify Display.template.php, thus using the one in default.  This results in those themes not having buttons for all the cool features.  I added some code to check and make sure the theme has the buttons on the server, if so, it enables use of the buttons.  If not, it displays text controls.  (Aside: I'm lazy, so rather than creating images for all of the themes loaded on my server, I tweaked them to use text controls, rather than buttons.)  The text controls are as defined in Ignore.english.php.

The changes are pretty simple, so here goes.  This goes after the 'global' in function template_main() and function theme_show_mod_buttons():
if ((file_exists($settings['theme_dir'] . '/images/' . $context['user']['language'] . '/ignore.gif')) and
(file_exists($settings['theme_dir'] . '/images/' . $context['user']['language'] . '/unignore.gif')) and
(file_exists($settings['theme_dir'] . '/images/' . $context['user']['language'] . '/ignshow.gif')) and
(file_exists($settings['theme_dir'] . '/images/' . $context['user']['language'] . '/ignhide.gif')))
        {
$txt['ignore_show_images'] = 1;
}
else {
$txt['ignore_show_images'] = 0;
        }


Then we have a couple changes.  On lines 378 and 379, change (leading whitespace removed):
<br /><a href="', $scripturl, '?action=ignore;u=' , $message['member']['id'], ';topic=', $context['current_topic'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/ignore.gif" alt="' . $txt['ignore'] . '" border="0" />' : $txt['ignore']), '</a>';
else if ($message['is_ignored']!=2) echo '<br /><a href="', $scripturl, '?action=unignore;u=' , $message['member']['id'], ';topic=', $context['current_topic'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/unignore.gif" alt="' . $txt['unignore'] . '" border="0" />' : $txt['unignore']), '</a>';

to:
<br /><a href="', $scripturl, '?action=ignore;u=' , $message['member']['id'], ';topic=', $context['current_topic'], '">', ($txt['ignore_show_images'] ? ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/ignore.gif" alt="' . $txt['ignore'] . '" border="0" />' : $txt['ignore']) : $txt['ignore']), '</a>';
else if ($message['is_ignored']!=2) echo '<br /><a href="', $scripturl, '?action=unignore;u=' , $message['member']['id'], ';topic=', $context['current_topic'], '">', ($txt['ignore_show_images'] ? ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/unignore.gif" alt="' . $txt['unignore'] . '" border="0" />' : $txt['unignore']) : $txt['unignore']), '</a>';


And finally, change line 436:
    echo '<a href="#" onclick="showhide(' , $message['counter']+1 , '); return false;">' . ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/ignshow.gif" alt="' . $txt['ignore_show'] . '" border="0" id="showhide' . ($message['counter']+1) . '" />' : $txt['show_hide']) . '</a>';
to:
    echo '<a href="#" onclick="showhide(' , $message['counter']+1 , '); return false;">' . ($txt['ignore_show_images'] ? ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/ignshow.gif" alt="' . $txt['ignore_show'] . '" border="0" id="showhide' . ($message['counter']+1) . '" />' : $txt['show_hide']) : $txt['show_hide']) . '</a>';

This feels like a hack to me, and it is something I threw together, but it works for me.

If I could attach, I would...
Title: Re: Ignore User
Post by: Rudolf on September 14, 2005, 12:23:49 AM
For someone who says to be lazy you did quite some work there.
It would be way easier to copy the images into your theme's images folder. Like "yourtheme/images/english". What, it would take like 20 seconds?  ;)
If you have 100 themes that would take around half an hour. You have so many themes?

  The problem is that the images probably won't show up in every custom theme. That's just how the themes work I think. The template files are rolled back to the default but the images files no. I don't know why is that.
 
   Also the images have an alt attribute defined, so they should show up when the image is not available. They should, and if they don't that's not my fault. In Firefox I see the alternate text when there is no image.  ;)

Rudolf
Title: Re: Ignore User
Post by: zmobie on September 14, 2005, 12:32:57 AM
Well, the images usually wouldn't fit the buttons of the other themes.

And I hear ya on the alt tags (-I- see them), but we have IE users.  Need I say more?  :(
Title: Re: Ignore User
Post by: Rudolf on September 14, 2005, 01:01:41 AM
  You mean the IE doesn't shows the alt text?? Well, I tested and you're rigth. Geez.
  Sometimes I really wonder what's wrong with the people.

  Well, in this case it's good to have this hack of yours around. Though I don't think I will put it in the full mod. It's just too much, I won't do extra work because of the stupidity of other browsers (and people).
  I'm working on a webpage, and I spent 75% of the development time with making it IE compatible. I know I am sick and tired of doing it.


  lol, but don't worry, my rant is not directed to you  ;)
  It's good to have this trick around in case people want to use it. Thanks a lot for contributing.

Rudolf
Title: Re: Ignore User
Post by: gri on September 14, 2005, 05:35:07 AM
Quote from: rudiksz on September 14, 2005, 12:23:49 AM
What, it would take like 20 seconds?  ;)
If you have 100 themes that would take around half an hour.
You have so many themes?

rudiksz,
you are wrong here.
You should multiply each of delays
on millions of installing copies of the Software.
Title: Re: Ignore User
Post by: gri on September 14, 2005, 06:45:39 AM
Quote from: rudiksz on September 13, 2005, 10:26:43 PM
  Nevertheless, I will fully support the current version
and provide help to those who need
(or are lazy to read the detailed readme I included in the package  :P).
As my time permits, of course.

rudiksz,
as I see you are present in the several topics "Ignore User"
if not to say about other forums of the planet.

{
+ (of rudiksz) http://www.simplemachines.org/community/index.php?topic=49149.0
  (of rosy ) http://www.simplemachines.org/community/index.php?topic=8885.msg82909#msg82909
  (of NukeWorker) http://www.simplemachines.org/community/index.php?topic=13764.msg116989#msg116989
}

I suppose that for the convenience of new Users
who come to your Head topic to discuss the Ignore Mod
  through the link included into your package of files..
Your Head topic should contain links
to the recommended other topics with their Authors mentioned
  with the defined priority.

Simultaneously neither rosy nor Nukeworker
should not Lock their topics in favour of your topic
  (not only) because posts inside the locked topics of SMF 1.1
   still not accessible for the post authors.

{
Beside these links
I would also suggested to mention the links
in (one of) the head post on behalf of the topic Author
which allow Users to subscribe to the closely oriented set
of topics.
Otherwise, without full notifications
the Users though interested
  may still remain in the restricted
   and not mutually intersected thematic space.

ps.
Unfortunately there is a separate obstacle
for such service of subscription -
  "sesc=" session identifier in the Notify link.
It should be somehow overcome.
}
Title: Re: Ignore User
Post by: gri on September 14, 2005, 09:09:11 AM
Quote from: gri on March 05, 2005, 07:00:34 AM
In many cases Ignoring posts is a compromise
which may allow _process of making problems go away_
to be continued in a mild way.

The _known fact_ of the Ignored post by the Author of the topic
is a good reason for the poster
either to modify or delete his original post
or to move the scene of the original post
to his own topic or to another topic
with all links and quotes to it being preserved.

Quote from: rudiksz on September 13, 2005, 10:30:45 PM
By the way, it's not my responsibility to warn the user
that they might be "ignored".
That's totally the job of the forum owners/administrators
who decide to install this mod on their forum.
Note that the mod gives the same functionality to every user
without no discrimination.
So they have the possibility to ignore others too.
From here only one logical step is needed to realise
that one can be ignored to by others the same way.

rudiksz,
It is absolutely not enough.
The forum owners/administrators
especially those who have installed the Ignore mod on their forum
are off-topic here at all.
We speak about the relations between Users only
and only one of which has the formal priority
  of the topic Author.

It is an axiom that only the author of the topic
has a presentation concerning what he wants from his topic.

Originally if the topic is not locked for discussion
there can appear annoying Posters similar to me..
  who look like trolls on any users opinion,
   as andrea has said in her post which I can not ignore.
But there exist the conditions when an annoying poster
can easily agree with the Author's opinion
  to stop posting to his topic being ignored by the Author.

And the only way to notice the annoying poster
without the annoying (public) comments of the topic Author
  is not just only to ignore a User
   but also to provide to a User the possibility
    to look at the topic(s) by the Author's (Authors') eyes,
i.e. to observe how Authors' Ignore List works
both for the topic Author and for the Users which are using
  the Ignore Mod Option ~Accept Author's glance~.

Thus even prior to replying for the first time to any topic
a User can know whether there is any sense to post.
Maybe he would rather open _his_ new topic
and will annoy only those readers
  who ~want to be annoyed~ by him.
   Nobody else.

Additionally this would mean that Users obtain as an option
the possibility to use the accumulated experience
of mutual relations not only between each other
  but also between the second (i.e. author)
  and third (i.e. other posters) persons.

It will make humans forums more clear
because the discussions will be held
  in more congenial groups.. around the spiritual leaders.
Title: Re: Ignore User
Post by: gri on September 14, 2005, 09:25:24 AM
Quote from: gri on September 14, 2005, 09:09:11 AM
Thus even prior to replying for the first time to any topic
a User can know whether there is any sense to post.
Quote

Both Quick and Full Reply boxes
should remind that
  "You are ignored by the Author of the topic. [Author's Nickname]"
Title: Re: Ignore User
Post by: mohoganybrwn on September 14, 2005, 11:16:03 AM
Quote from: rudiksz on September 13, 2005, 10:56:49 PM
Quote from: mohoganybrwn on September 13, 2005, 06:47:48 PM
Thank you Rudolf!  Yes, I will def. need help with that.  I'm new to SMF. 

  I'm curious to know what mods you have installed, or what other modification you made to that file. Unless you deleted the comments from the file the installation should be ok. I'm really perplex.
  Take a look at the Display file in the first post, and see if that helps. Basically you have to add the sections between the //IGNORE comments before or after the original SMF's comments are.
  I made this way on purpose to avoid conflicting with other mods.  :-\

Rudolf

1. PHP 4.4.0 Compatibility Update 1.0   [ List Files ] [ Delete ] 
2. Donations_Mod 1.1   [ Uninstall ] [ List Files ] [ Delete ] 
3. G&S_Sticky 1.1   [ Uninstall ] [ List Files ] [ Delete ] 
4. SMF Arcade 1.1.3  [ Apply Mod ] [ List Files ] [ Delete ] 
5. SimplePortal 1.0  [ Apply Mod ] [ List Files ] [ Delete ] 
6. Report PM to Administrator 0.2   [ Uninstall ] [ List Files ] [ Delete ] 
7. Zodiac Signs 1.0   [ Uninstall ] [ List Files ] [ Delete ] 
8. Integrated Chat 2.3   [ Uninstall ] [ List Files ] [ Delete ] 
9. Ignore user 1.1  [ Apply Mod ] [ List Files ] [ Delete ] 
10. Streaming 4.2

This are the Mods I have installed, and I've modified the disply file to show my users Location and something else under their Avatar.
Title: Re: Ignore User
Post by: Rudolf on September 14, 2005, 01:22:06 PM
Well, that's not too much. You have only 5 mods installed.
Though, I can't understand for the life of me, why a mod wounld want to remove the SMF comments. Or maybe you deleted them?

  Anyway, if you send me your Display file I might take a look at it, ad thell you where to put the things.

Rudolf
Title: Re: Ignore User
Post by: mohoganybrwn on September 15, 2005, 02:32:28 AM
Email sent!  :D
Title: Re: Ignore User
Post by: gri on September 16, 2005, 02:06:53 AM
Quote from: gri on September 13, 2005, 06:01:36 AM
2. What does "[1][1]" mean in the file name ?

Quote from: rudiksz on September 13, 2005, 02:56:11 PM
@gri:

The 1.1 means the version of the mod, not the SMF.
It works for all the versions you see checked on the download page.

"Ignore_1[1][1].1.zip"

rudiksz,
I meant symbols "1" in square brackets. Why ?

ps.
Please use quotes of the questions in your answers.
Title: Re: Ignore User
Post by: gri on September 16, 2005, 11:21:49 AM
rudiksz,
What about to update your "readme.txt" file
to such a text readme-ignore.txt (http://agreetogri.newmail.ru/readme-ignore.txt) ?

I also think that the file "readme.txt" is extra
if readme.html file exists

and the Head post of the Head topic could be something
like readme.html file.. or the same.
Title: Re: Ignore User
Post by: gri on September 16, 2005, 11:22:16 AM
rudiksz,
Taking in account the small size of Ignore packet
I think that including small national files of the mod
  (for the main languages)
to the original package _being_ distributed
  is much better than to support additional
   national ignore mod packets
    _having been_ distributed separately.

Would you like to add the russian-language set of files
http://agreetogri.newmail.ru/rus-adds-to-ignore.zip
  to your packet ?
Title: Re: Ignore User
Post by: Rudolf on September 17, 2005, 12:03:09 AM
Quote from: gri on September 16, 2005, 11:21:49 AM
rudiksz,
What about to update your "readme.txt" file
to such a text readme-ignore.txt (http://agreetogri.newmail.ru/readme-ignore.txt) ?

I also think that the file "readme.txt" is extra
if readme.html file exists

  The readme.txt is used by the Package Manager. There's no point in putting there the "manual"o fthe mod. The reason why there are readme.txt and readme.html is because there is some strange bug in SMF1.1, and the Package Manager seemes to ignore inline readmes. I don't see why it would bother anyone having the manual there.
   I see no point in copy in here either. If someone can't or it's lazy to oopen that file, why would he read it here??
   I included that file in hope that someone will find it useful. Everything I can say is here to repeat what is written in the readme.

   About the language files being included in the package, i really don't think it's a good idea. If it will be would be translated in 10 languages, most of the people would get 9 completely useless extra files. It would complicate things, and it would make the package file larger. Not much, but I see no reason for doing it. What's wrong with a small file size?
   I updated the first post, with the link to the Russian language files. If other people translate it in other languages I'll put those too.
   You can also translate the buttons if you wish, I'll make sure to be available to download.

   I don't know what should I do more then this.


   Rudolf
Title: Re: Ignore User
Post by: gri on September 17, 2005, 02:59:16 AM
Quote from: rudiksz on September 17, 2005, 12:03:09 AM
  You can also translate the buttons if you wish,
I'll make sure to be available to download.
  I don't know what should I do more than this.

rudiksz,
couldn't you link me (and other national translators)
to the program which is intended and most appropriate
  for button drawing ?

Quote from: rudiksz on September 17, 2005, 12:03:09 AM
The reason why there are readme.txt and readme.html
is because there is some strange bug in SMF1.1,
and the Package Manager seemes to ignore inline readmes.
Ignore ? Without Ignore Mod being installed ??  :)
Title: Re: Ignore User
Post by: Rudolf on September 17, 2005, 10:01:46 PM
Gri,

I used the Photoshop to make them.
In the first post you can find the PSD files for the buttons.

Though I think I can get you the russian version, if you want.

Rudolf
Title: Re: Ignore User
Post by: gri on September 18, 2005, 01:04:49 PM
Quote from: rudiksz on September 17, 2005, 10:01:46 PM
Gri,
I used the Photoshop to make them.
In the first post you can find the PSD files for the buttons.

rudiksz,
I have updated http://agreetogri.newmail.ru/rus-adds-to-ignore.zip file
with the translated Ignore mod russian buttons.

I have arranged the files in the subdirectory structure.

Do you think the original Ignore mod files
should also be structured
  according to the Software subdirectories ? -

for somebody who will install the mod manually.
Title: Re: Ignore User
Post by: jerm on September 18, 2005, 02:26:20 PM
nice mod.. but one thing
as administrator, it would be nice to go into someones profile and see who they currently have on ignore.
at the moment that is not possible.. think you can do it?
Title: Re: Ignore User
Post by: Rudolf on September 18, 2005, 02:37:43 PM
I don't see why an admin should see who is ignoring whom. It's none of their bussiness. Ignoring someone is between the user and another user, it's a personal matter between the two of them.
Title: Re: Ignore User
Post by: gri on September 19, 2005, 01:04:18 AM
Quote from: electrohome88 on September 18, 2005, 02:26:20 PM
nice mod.. but one thing
as administrator, it would be nice to go into someones profile
and see who they currently have on ignore.
at the moment that is not possible.. think you can do it?
Quote from: rudiksz on September 18, 2005, 02:37:43 PM
I don't see why an admin should see who is ignoring whom.
It's none of their bussiness.
Ignoring someone is between the user and another user,
it's a personal matter between the two of them.

rudiksz,
electrohome88 surely have said:
~it would be nice for a User to go into someones' another profile
and see whom another Users have currently in ignore list..
as if a User have had the administrators rights~.

Of course these are just natural _User's_ rights
to be awared. And User's necessity.

For example:
The User [Unknown] has advised.. (seems to all readers of that topic):
Quote from: [Unknown] on May 09, 2005, 05:00:46 PM
Just ignore gri.
He's trying to be a problem and stealing other people's topics;
this will surely lead to a temporary ban if he keeps it up.

-[Unknown]
.

So up to now I don't know whether the User [Unknown]
still Ignores Gri or not. The same uncertainty with Ben_S..
and ~any other reader of that topic (/forum)~.

rudiksz,
imagine, is there any sense for me
to comment [Unknown]'s quotes ? Or of any other Users ?

A User surely should be awared about his Ignore status
in other Users' ignore lists..
  not to steal other people's topics.
Title: Re: Ignore User
Post by: gri on September 19, 2005, 01:07:55 AM
rudiksz,
in the first post change places the lines

"Link to Mod (SMF)
Alternate Link to Mod (Author)"

to

"Link to Mod from the Author's download
Alternate Link to Mod at SMF download".

And also mention that

~SMF download files are usually late with new updates
in comparison with the Author's download files~.

I.e. the Author's downloads has the priority
for those enthusiasts who overtakes the updates.
Title: Re: Ignore User
Post by: [Unknown] on September 19, 2005, 02:15:24 AM
(I ignore you because I can't understand you anyway; actually, the above post is the most clarity I've ever seen from you!)

-[Unknown]
Title: Re: Ignore User
Post by: gri on September 19, 2005, 12:03:03 PM
Quote from: [Unknown] on September 19, 2005, 02:15:24 AM
(
  I ignore you because I can't understand you anyway;
  actually, the above post is the most clarity
  I've ever seen from you!
)

(
  Hi, [Unknown].
  Thank you for high estimation of my post above.

  Have you already began tracking me ?
<< http://www.simplemachines.org/community/index.php?topic=49503.msg354045#msg354045

  And clarify please why have you posted in the brackets ?

  -[gri]
)
Title: Re: Ignore User
Post by: gri on September 24, 2005, 01:09:26 AM
Quote from: gri on September 24, 2005, 12:54:08 AM
Quote from: Ivan Minic on September 23, 2005, 04:23:54 PM
Why do people tolerate this?

Because, I think, Lewis Media
has not yet a written consent of rudiksz
  to install the Ignore Mod at simplemachines forum..

but surely will.

rudiksz,
please post me a written consent
with the permission to redistribute your mod.
Title: Re: Ignore User
Post by: Rudolf on September 24, 2005, 01:42:36 AM
gri,

everything you need to know is in the package.
No one needs my written permission to install the mod. They can download from the mods page and install on how many forums they like. If the SMF people wants to install here they are free to do so. THAT'S THE PURPOSE OF A FREE MOD.

  If they want to include this feature in some future version, they certainly don't need my permission. They can even use my code, modified or not, if they want. I don't care.

sheesh
Rudolf
Title: Re: Ignore User
Post by: gri on September 28, 2005, 03:03:16 PM
rudiksz,
have you managed to install the mod in SMF 1.1 RC1 ?
I have not.

The single universal mod version is needed.
Title: Re: Ignore User
Post by: golthar on October 09, 2005, 12:02:09 PM
I can second the request for a 1.1 RC version of this mod
Title: Re: Ignore User
Post by: Rudolf on October 09, 2005, 01:33:50 PM
I just tried to install the mod on RC11.
For some reason all the files were created with 0 size. It's a local test forum so I'm not sure what caused it. I'm 99% sure it's some bug in SMF, because the folder permissions are ok here and the changes in the SMF files are executed.
  You'll have to manually copy the image files and the three "Ignore" file in their locations.
   The Ignore.php in the Sources dir, the Ignore.template.php into the Themes/default dir, and the Ignore.english.php into the Themes/default/languages dir. The images go in the Themes/default/images/english dir

   I don't know what else to say or do. After this the mod works just fine on the RC1 version too. It's some bug in the SMF, complain to them. Unfortunately I don't have time to follow what's going on. I will update the mod only on major releases, and if it's needed. Right now seems that it works just fine.

Rudolf
Title: Re: Ignore User
Post by: golthar on October 09, 2005, 02:48:46 PM
Hey, I'm not complaining :)
Was just trying and coming up dry and since I was attending something else I could not toy with the code until it worked.
Thanks a lot for the instructions it works fine for me  :D
Title: Re: Ignore User
Post by: Rudolf on October 09, 2005, 02:53:38 PM
I didn't meant to say that you were complaining.  ;) It was justa  figure of speech. I'm glad it works for you. Hope this will be fixed in the final version.
  It would be good if you could confirm this bug, or something. You too got 0 sized files, with permissions being ok? Because if yes, then it's obvious that it's a bug in SMF, and should report it (if it wasn't done already).

Rudolf
Title: Re: Ignore User
Post by: golthar on October 09, 2005, 02:58:22 PM
To be honest the whole package system has been crippled (but got that fixed following instructions in here)
I'm just going to install the mods that I need manually, since I don't need that much (SMF is very complete right out of the box)
Title: Re: Ignore User
Post by: snork13 on October 11, 2005, 05:21:41 PM
Quote from: golthar on October 09, 2005, 12:02:09 PM
I can second the request for a 1.1 RC version of this mod

this mod works with 1.1rc1 demo below:

www.phantasyposters.net/community (http://www.phantasyposters.net/community)
Title: Re: Ignore User
Post by: J. Williams on October 12, 2005, 09:35:40 AM
SMF RC 1 Includes a ignore option already

Profile - Personal Message Options

Its a waste of time as that in the next version maybe restyled like the buddy list maybe with those options
Title: Re: Ignore User
Post by: Rudolf on October 12, 2005, 10:15:17 AM
You said it yourself: Personal Message Options
This means that it applies to Personal Messages and *not* posts.
If you go to read some of the discussions on the subject you can learn very quickly that the SMF development team was not to much cooperative on this. Don't expect it to be included in the close future.
Title: Re: Ignore User
Post by: gri on October 13, 2005, 07:03:17 PM
Quote from: rudiksz on October 09, 2005, 02:53:38 PM
  It would be good if you could confirm this bug, or something.
You too got 0 sized files, with permissions being ok?
Because if yes, then it's obvious that it's a bug in SMF,
and should report it (if it wasn't done already).

Rudolf

rudiksz,
I confirm 0-sized files in result of mod installation in 1.1 RC1.
Title: Re: Ignore User
Post by: snork13 on October 13, 2005, 07:23:26 PM
Quote from: gri on October 13, 2005, 07:03:55 PM
Quote from: snork13 on October 11, 2005, 05:21:41 PM
this mod works with 1.1rc1 demo below:

www.phantasyposters.net/community (http://www.phantasyposters.net/community)

snork13,
express yourself more precisely please -
have you just overwrote the zero-length files

Ignore.php, Ignore.template.php, Ignore.english.php,
ignore.gif, unignore.gif, ignhide.gif, ignshow.gif

after the mod installation attempt ?


what i did.

downloaded smf 1.1rc1 -installed
downloaded ignore mod -installed, i think one part of the code had to be adjusted for 1.1rc1, as i install mods by hand only...no package manager for me.

hope this helps.

i also have the arcade, quick menu, and many "tips & tricks' installed <<---thanks smf

-snork

Title: Re: Ignore User
Post by: shark on October 15, 2005, 02:06:42 AM
I'm using SMF 1.1 RC1.
Applied "Enhanced Quick Reply" mod before.
Already installed "Ignore User" mod.
Now i have problem customizing my templates (non default template).

I cant find this line in my Display.template.php:
<search position="before"><![CDATA[ global $context, $settings, $options, $txt, $scripturl, $modSettings;]]>

Please guide...
Title: Re: Ignore User
Post by: Rudolf on October 15, 2005, 02:33:18 AM
<?php
// Version: 1.1 RC1; Display

function template_main()
{
global $context$settings$options$txt$scripturl$modSettings



in the very beginning of the file.
Rudolf
Title: Re: Ignore User
Post by: shark on October 15, 2005, 02:58:42 AM
Got this error:
Parse error: parse error, unexpected '<' in .../Themes/SafGreen/Display.template.php on line 4

1: <?php
2
// Version: 1.1 RC1; Display
3
4: <![CDATA[5 //IGNORE - START
6: echo '
7: <script language="JavaScript" type="text/javascript">]]><<![CDATA[!-- // -->]]><![CDATA[<![CDATA[
8:  function showhide(msgnr)


Only need to modify Display.template.php rite?

Please help  :(
Title: Re: Ignore User
Post by: Rudolf on October 15, 2005, 12:44:19 PM
That part is a bit tricky. You can't insert the text that is in the xml file as it is.
After the

function template_main()
{
global $context, $settings, $options, $txt, $scripturl, $modSettings;


Add this (instead of what is in the xml file):
//IGNORE - START
echo '
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
function showhide(msgnr)
{  
if (document.getElementById("message"+msgnr).style.display == "")
    {document.getElementById("message"+msgnr).style.display = "none";
     document.getElementById("ignmsgbttns"+msgnr).style.visibility = "hidden";
     document.getElementById("ignoremessage"+msgnr).style.display = "";
     document.getElementById("ignfooter"+msgnr).style.display = "none";
     document.getElementById("showhide"+msgnr).src = "', $settings['images_url'] . '/' . $context['user']['language'] . '/ignshow.gif"' ,';
     document.getElementById("showhide"+msgnr).alt = "', $txt['show_hide'] ,'";      
    }
    else
    {document.getElementById("message"+msgnr).style.display = "";
     document.getElementById("ignmsgbttns"+msgnr).style.visibility = "visible";
     document.getElementById("ignoremessage"+msgnr).style.display = "none";
     document.getElementById("ignfooter"+msgnr).style.display = "";
     document.getElementById("showhide"+msgnr).src = "', $settings['images_url'] . '/' . $context['user']['language'] . '/ignhide.gif"' ,';
     document.getElementById("showhide"+msgnr).alt = "', $txt['show_hide'] ,'";      
     }
}
// ]]></script>';
//IGNORE - END



Rudolf
Title: Re: Ignore User
Post by: liberalfaerie on October 18, 2005, 03:31:39 PM
Just wondering - is it possible to edit this mod so that users are unable to ignore the moderators and/or admin? We sometimes have a problem with trolls and are concerned that if a troll has ignored the staff of the forum, then we will be unable to send them the warnings that we have outlined in our TOS before banning them.

So is this possible? Or can users ignore every other user across the board, including the admin?
Title: Re: Ignore User
Post by: Rudolf on October 19, 2005, 12:49:49 AM
Right now there's no checking done whether the user is an admin, mod or just a simple user. Everyone can ignore everyone.
  But you must understand that this refers only to the posts not being displayed (they are stil there hidden) and one can always show them if they wish to see. Ignoring an user doesn't blocks the PM's this user sends to you (for that you'll have to use the PM blockinglist), nor does block the emails sent by the admins (if you "ignore" them).

Anyway, I think it's pretty easy to disable admin ignoring. I'll look into it.

Rudolf
Title: Re: Ignore User
Post by: liberalfaerie on October 19, 2005, 08:43:10 AM
Quote from: rudiksz on October 19, 2005, 12:49:49 AM
Right now there's no checking done whether the user is an admin, mod or just a simple user. Everyone can ignore everyone.
  But you must understand that this refers only to the posts not being displayed (they are stil there hidden) and one can always show them if they wish to see. Ignoring an user doesn't blocks the PM's this user sends to you (for that you'll have to use the PM blockinglist), nor does block the emails sent by the admins (if you "ignore" them).

Anyway, I think it's pretty easy to disable admin ignoring. I'll look into it.

Rudolf

Thanks for responding so quickly! We've pretty much decided that if a user, such as Gri here above, ignores the admin or moderator they do so at their own risk. It's in our TOS that they will be sent to the Troll Hole (a private forum just for trolls) and allowed to visit nowhere else on the board, regardless of whether they saw their warnings or not, lol.

However, if at some point you find a way to disable admin ignoring, that would be great and we'd love to add that feature to our ignore mod.  ;D
Title: Re: Ignore User
Post by: liberalfaerie on October 20, 2005, 01:46:34 AM
Gri, if you could post something coherent, I might actually give you a response. As it is, your posts make no sense to me and are about as annoying as a fly buzzing around my food on a hot summer day. Shoo fly. ::)
Title: Re: Ignore User
Post by: Rudolf on October 20, 2005, 05:42:25 AM
@liberalfaeire:
I wrote the code to disable admin+global+moderator ignoring.
I'm planning to update the mod and include a setting relative to this. So everyone can choose to allow or not.  This setting will be available only for admins, of course.  ;)

I hope I can work on it this weekend, and will update the mod.
(If you are very impatient I think I can write here the basic code.)

Rudolf
Title: Re: Ignore User
Post by: liberalfaerie on October 20, 2005, 09:37:52 AM
Quote from: rudiksz on October 20, 2005, 05:42:25 AM
@liberalfaeire:
I wrote the code to disable admin+global+moderator ignoring.
I'm planning to update the mod and include a setting relative to this. So everyone can choose to allow or not.  This setting will be available only for admins, of course.  ;)

I hope I can work on it this weekend, and will update the mod.
(If you are very impatient I think I can write here the basic code.)

Rudolf

That is awesome! I'm not that impatient. We've got it installed as is now, we can wait until you get it completed to install this added feature. I really, really appreciate your quick response and fix to this! Thanks!  :D
Title: Re: Ignore User
Post by: Redeye on October 22, 2005, 10:23:49 AM
I get the following error message when installing:

QuoteYou have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'ignore (ID_MEMBER MEDIUMINT( 8 ) UNSIGNED NOT NULL , UNIQUE (ID
File: /home/mysite/public_html/forum/Packages/temp/Ignoredb.php
Line: 11

Any ideas?
Title: Re: Ignore User
Post by: Rudolf on October 22, 2005, 11:27:11 AM
What version of SMF are you using and what PHP/MYSQL.
I have no idea why you get that error, the query is correct.

Rudolf
Title: Re: Ignore User
Post by: Rudolf on October 22, 2005, 11:31:46 AM
@liberalfaeire and to all interested:
I updated the mod.
Read the readme.html included in the package. As always: Uninstall previous version and install the new one

Have fun.

Rudolf
Title: Re: Ignore User
Post by: Rudolf on October 22, 2005, 12:15:18 PM
Gri, I have no idea what are you talking about.
The new version is functional just like the old one, except the forum owners can decide to let users ignore admins too or not.
  If YOU want that your user to have this freedom then by all means, allow them to ignore everyone. Eventually, if you don't like how it's made don't use it PERIOD

Rudolf
Title: Re: Ignore User
Post by: Gargoyle on October 22, 2005, 12:18:45 PM
Thanks a lot for your work rudiksz!!

I have downloaded your mod and I plan on installing it on a 1.1RC1 board. I will let you know how it goes.. :D
Title: Re: Ignore User
Post by: Gargoyle on October 22, 2005, 12:31:03 PM
O'kay the MOD installed fine but dod not carry out it's functions correctly...

I will be making a "test board" in the next few days where I can install it and hopefully aid in trouble shooting the issue.

Title: Re: Ignore User
Post by: Rudolf on October 22, 2005, 12:54:41 PM
Gargoyle,

You made sure that the files are copied correctly on the ftp? It seems that the 1.1RC has some bugs. It creates empty files. Other then that I can't see what could be the problem. Maybe, your themes, other modifications you made.
I appreciate the feedback you can give.

Rudolf
Title: Re: Ignore User
Post by: Redeye on October 22, 2005, 01:33:08 PM
Quote from: rudiksz on October 22, 2005, 11:27:11 AM
What version of SMF are you using and what PHP/MYSQL.
I have no idea why you get that error, the query is correct.

Rudolf

Operating System Linux
Apache Version 1.3.33 (Unix)
PERL Version 5.8.1
MySQL Version 4.0.22-standard
PHP Version 4.3.11
Title: Re: Ignore User
Post by: liberalfaerie on October 22, 2005, 02:17:08 PM
Quote from: rudiksz on October 22, 2005, 11:31:46 AM
@liberalfaeire and to all interested:
I updated the mod.
Read the readme.html included in the package. As always: Uninstall previous version and install the new one

Have fun.

Rudolf

Thanks a bunch! Your quick response has now made you my favorite mod writer here, lmao!

It installed great and is working wonderfully. I have one question though...as for managing the admin/global/mod feature, do we have to do it individually one member at a time or is there a way somewhere to make it universal? Just checking.

Thanks again for editing this mod!  :D
Title: Re: Ignore User
Post by: Rudolf on October 22, 2005, 02:49:05 PM
Lol, no problem.

As for the question I'm not sure I understand what you mean.
There is the setting below the ignore list in your profile. That thing appears only for admins, and it-s the setting to allow ALL users to ignore admins or mods. It was the most convenient place to put it.
  So, yes, that setting applies for the whole forum.

Just a small note, if some of your users are already ignoreing admins/mods after you made the upgrade their settings are still in effect. At least until they  don't go into their profile to change something. Because then it will remove all admins (without any warning  :P).
If you don't want to wait for users to stumble in there, I-m planning to write a small script to "sanitize" the ignore table, removing all admins/mods from all users. Just a little more patience.  ;)

Rudolf
Title: Re: Ignore User
Post by: liberalfaerie on October 22, 2005, 03:05:26 PM
Awesome, thanks!
Title: Re: Ignore User
Post by: Rudolf on October 22, 2005, 04:20:44 PM
I beg a moderator to be so kind to remove Gri's posts from this topic. They have absolutely nothing to do with the mod. It's plain garbage.

Pleaaaaase.
Title: Re: Ignore User
Post by: Gargoyle on October 22, 2005, 04:23:14 PM
I have installed your mod and a brand new install of SMF 1.1 RC1 and the same results have occured...

No link in the profile area...
No image under the users info in posts... Just a red X
And error messages when the mod is attempted to be executed..

I will research further...
Title: Re: Ignore User
Post by: Gargoyle on October 22, 2005, 04:26:16 PM
Error Message list for your referance...

8: Undefined index: ignoreset
File: e:\localhost\test_smf\Sources\Profile.php
Line: 234

8: Undefined index: ignore_hide
File: e:\localhost\test_smf\Themes\default\languages\Ignore.english.php (eval?)
Line: 794

8: Undefined index: ignore_show
File: e:\localhost\test_smf\Themes\default\languages\Ignore.english.php (eval?)
Line: 786

8: Undefined index: ignore
File: e:\localhost\test_smf\Themes\default\languages\Ignore.english.php (eval?)
Line: 411

Title: Re: Ignore User
Post by: Rudolf on October 22, 2005, 04:31:31 PM
Gargoyle,

it seems that you're using an older version of the mod.
Try with the latest and see if you still have problems.
The intstall should work ok too.
I tested the mod hundreds of times on 103,104,105 and 11beta.
In current phase it shouldn-t give any errors.

Rudolf
Title: Re: Ignore User
Post by: Gargoyle on October 22, 2005, 04:34:05 PM
AH!!! With great excitement I know what has happened....

Your MOD works perfectly.... The package manager seems to be able to edit files but it does not create or copy the new files. The new files are all empty so they must be manually ftp'ed or loaded onto the server... :D

It seems that the SMF package manager is at fault here.
Title: Re: Ignore User
Post by: Rudolf on October 22, 2005, 04:38:22 PM
Yes, if you read the note on the mod's page, and a couple of time I said it even here. The 1.1RC1 seems to have this bug. In 1.1beta3 and earlier versions the install works good.

I'm glad it worked out.

Rudolf
Title: Re: Ignore User
Post by: Gargoyle on October 22, 2005, 04:47:47 PM
Sorry about that....

I did read it after I posted about the errors I was getting... After I read it I noticed that the package manager is indeed faulty and took the needed action.

Thanks for your patience with me.
Title: Re: Ignore User
Post by: liberalfaerie on October 22, 2005, 09:38:46 PM
Quote from: rudiksz on October 22, 2005, 04:20:44 PM
I beg a moderator to be so kind to remove Gri's posts from this topic. They have absolutely nothing to do with the mod. It's plain garbage.

Pleaaaaase.

I second this. Gri is quite obviously a troll and just clogging up the thread with incomprehensible rambling.   ::)
Title: Re: Ignore User
Post by: Rudolf on October 23, 2005, 10:09:28 AM
Well, here it is.
For those who want to make sure that no Admins remain ignored after applying the new version:
Here is the script> IAdmin.php (http://digilander.libero.it/rudoka/smfmods/ignore/IAdmin.php)
Save the file and upload in your forum directory. Where the index.php and SSI.php files are.
Then "run" the script (open in your browser).
That's all.

Disclaimer: This code is written purely out of fun, and because it can be done. Though I made everything possible to exclude any bug or malfunctioning, I could not test it on a live forum, and can't and won't guarantee that it will work for you. Use it at your own risk.

Rudolf
Title: Re: Ignore User
Post by: Killer Possum on October 25, 2005, 11:08:42 AM
[offtopic]

gri, I have removed your posts. Please stay ontopic if you are going to reply and try to help people out.

[/offtopic]
Title: Re: Ignore User
Post by: gri on October 25, 2005, 02:51:47 PM
Quote from: Killer Possum on October 25, 2005, 11:08:42 AM
[offtopic]

gri, I have removed your posts. Please stay ontopic if you are going to reply and try to help people out.

[/offtopic]

Killer Possum,
I have not saved the topic as a one page yet.
Return the removed my posts to this topic.

After saving I can remove the posts on my own.
Title: Re: Ignore User
Post by: J. Williams on October 25, 2005, 03:10:54 PM
Gri,you put to much writing in it
Title: Re: Ignore User
Post by: Nitro on October 27, 2005, 04:26:18 PM
ok, i installed this mod, i can see only one buttton below any user next to a topic about 'ignore' but i cannot see where is it in the admin page, you say we can allow or disallow some options but...

am i supposed to do something extra, did i miss it? i cannot see any extra options anywhere.

thanks!

EDIT:
i just tried this mod and it gave me this error:
Unable to load the 'main' template.

any idea why is this? thank you again.
Title: Re: Ignore User
Post by: Rudolf on October 28, 2005, 01:11:28 AM
First things first:
  are you using 1.1RC? If yes, then read the note, you have to copy the files manually. Very likely they are just empty files.
  When do you get the "Unable to load the main template error"? After you click on what?

The "admin page" is in your Profile -> "Ignore user options". IF you're an administrator under your ignore list there will be a line of text with a checkbox, there you can allow or disallow admin/mod ignoring.
  That's just *one* option.

Rudolf
Title: Re: Ignore User
Post by: Nitro on October 28, 2005, 01:33:07 AM
yeah, i am using RC1

too much hasle! i am just not in the mood to do this manual, i just opted to unistall.

thanks anyway man.
Title: Re: Ignore User
Post by: DougD on November 27, 2005, 01:53:25 PM
On a 1.05 forum, in an effort to apply this mod, we receive the following error:

Database Error: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'ignore (ID_MEMBER MEDIUMINT( 8 ) UNSIGNED NOT NULL , UNIQUE (ID
File: /home/chevyfan/public_html/cafcna/Packages/temp/Ignoredb.php
Line: 11


This is a highly requested mod, so any help is greatly appreciated!
Title: Re: Ignore User
Post by: Rudolf on November 29, 2005, 05:29:01 AM
Most likely it's the version of your MySQL. Thouhg I'm not sure.
Try to execute the following query in phpMyAdmin and see if it gives an error
CREATE TABLE IF NOT EXISTS {$db_prefix}ignore (ID_MEMBER MEDIUMINT( 8 ) UNSIGNED NOT NULL , UNIQUE (ID_MEMBER), ignore_list MEDIUMTEXT)
make sure to replace the {$db_prefix} with your actual prefix.

Nothing else comes in my mind now.
If you're comfortable with sql or phpMyAdmin or coding I can tell you how to do the database modifications manually. It's quite easy.

Rudolf
Title: Re: Ignore User
Post by: Spamiam on November 29, 2005, 07:54:40 AM
Great mod so far, with one small problem...

Another admin on our board downloaded and installed this via the manager, and it worked fine for the default theme. I just looked at the files so that I could configure it for our other themes, and found that the following files in the archive have been packaged in binary format, not ascii:

Ignore.english.php
Ignore.php
Ignore.template.php
themes.xml

Also the example Display.template.php file in the archive Display.template_EXAMPLE_.zip is packaged in binary.

The rest of the files are as they should be.

Can I get replacements for those in ascii? Thanks!
Title: Re: Ignore User
Post by: Rudolf on November 29, 2005, 09:32:31 AM
I'm not sure I understand your issue.
I don't remember exactly how I saved the files, but I think I worked with two different editors at that time.
If you explain to me how to save it in ascii format I will do it.

Rudolf
Title: Re: Ignore User
Post by: jerm on December 02, 2005, 01:02:42 AM
how about also ignore the persons signature, avatar, and any information written under their nickname?
that way you can fully ignore the person...
Title: Re: Ignore User
Post by: Rudolf on December 02, 2005, 06:17:54 AM
That shouldn't be hard to do, and it seems a reasonable request.
I'll try to work on it as soon as possible.

®
Title: Re: Ignore User
Post by: DougD on December 02, 2005, 08:37:36 AM
Quote from: rudiksz on November 29, 2005, 05:29:01 AM
Most likely it's the version of your MySQL. Thouhg I'm not sure.
Try to execute the following query in phpMyAdmin and see if it gives an error
CREATE TABLE IF NOT EXISTS {$db_prefix}ignore (ID_MEMBER MEDIUMINT( 8 ) UNSIGNED NOT NULL , UNIQUE (ID_MEMBER), ignore_list MEDIUMTEXT)
make sure to replace the {$db_prefix} with your actual prefix.

Nothing else comes in my mind now.
If you're comfortable with sql or phpMyAdmin or coding I can tell you how to do the database modifications manually. It's quite easy.

Rudolf

Same essential result:
#1064 - You have an error in your SQL syntax.  Check the manual that corresponds to your MySQL server version for the right syntax to use near 'ignore (ID_MEMBER MEDIUMINT( 8 ) UNSIGNED NOT NULL , UNIQUE (ID
Title: Re: Ignore User
Post by: DougD on December 02, 2005, 08:41:27 AM
SQL-query:
CREATE TABLE `ignore` (
`ID_MEMBER` MEDIUMINT( 8 ) UNSIGNED NOT NULL ,
`ignore_list` MEDIUMTEXT NOT NULL ,
UNIQUE (
`ID_MEMBER`
)
);



Manually did it with phpMyAdmin - that seemed to work.  Now have to test the package.
Title: Re: Ignore User
Post by: DougD on December 02, 2005, 08:49:52 AM
Applying the package via package manager still resulted in the same error and no Ignore feature in the standard SMF theme.  I do realize i'll have to alter our theme to use it, but thought I'd see it now in default.
Title: Re: Ignore User
Post by: Rudolf on December 03, 2005, 12:42:28 AM
Once you have the table in your database just edit the package-info.xml inside the package by removing the line:
<code>Ignoredb.php</code>

It seems that the problem it's caused by the "IF NOT EXISTS" clause, probably you have an older MySQL version.
Remove the code from the package, and try installing it. IF you don't get any Errors from the source files it should work.

Rudolf
Title: Re: Ignore User
Post by: jerm on December 03, 2005, 02:41:32 AM
Quote from: rudiksz on December 02, 2005, 06:17:54 AM
That shouldn't be hard to do, and it seems a reasonable request.
I'll try to work on it as soon as possible.

®
cool.. thanks  :)
Title: Re: Ignore User
Post by: Rudolf on December 04, 2005, 12:36:15 AM
I upgraded the mod as requested.
It is a simple modification in the template file, no big thing.
To get the new "feature" just uninstall the version you have and then grab the 1.2 version (final, not beta).  Uninstalling the old version you *will not lose* any settings!

Alternatively you can make the changes manually.
The only file changed is the Display.template.php
1.
Search the Javascript function showhide() -somewhere at the beginning of the file.
   and replace it with the following function
function showhide(msgnr)
{  
if (document.getElementById("message"+msgnr).style.display == "")
    {document.getElementById("message"+msgnr).style.display = "none";
     document.getElementById("ignmsgbttns"+msgnr).style.visibility = "hidden";
     document.getElementById("ignoremessage"+msgnr).style.display = "";
     document.getElementById("ignfooter"+msgnr).style.display = "none";
     document.getElementById("showhide"+msgnr).src = "', $settings['images_url'] . '/' . $context['user']['language'] . '/ignshow.gif"' ,';
     document.getElementById("showhide"+msgnr).alt = "', $txt['ignore_show'] ,'";
     document.getElementById("ignprofile"+msgnr).style.display = "none";
    }
    else
    {document.getElementById("message"+msgnr).style.display = "";
     document.getElementById("ignmsgbttns"+msgnr).style.visibility = "visible";
     document.getElementById("ignoremessage"+msgnr).style.display = "none";
     document.getElementById("ignfooter"+msgnr).style.display = "";
     document.getElementById("showhide"+msgnr).src = "', $settings['images_url'] . '/' . $context['user']['language'] . '/ignhide.gif"' ,';
     document.getElementById("showhide"+msgnr).alt = "', $txt['ignore_hide'] ,'";
     document.getElementById("ignprofile"+msgnr).style.display = "";
     }
}

*only two new lines added...

2.
Search the following comment:
// Show the member's custom title, if they have one.
Add before this:
if ($message['is_ignored']==1) echo '<div id="ignprofile' , $message['counter']+1 , '" style="display:none;">'; //IGNORE

3.
Search for:
//IGNORE - START make Ignore/Unignore link in poster_info
Add before:
if ($message['is_ignored']==1) echo '</div>';

And you should be set.
Rudolf
Title: Re: Ignore User
Post by: darkgear on December 09, 2005, 04:56:02 AM
Nice mod! 

I am running 1.1 B3.  I got this message

Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of [runtime function name](). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in /www/f/flashlightfo/htdocs/Sources/Display.php on line 910

Title: Re: Ignore User
Post by: Rudolf on December 10, 2005, 02:11:16 AM
I'm just guessing here, but:
if on the line 910 of your Display.php is this:
'is_ignored' => isIgnored($message['ID_MEMBER'], &$memberContext[$message['ID_MEMBER']]['group_id']), //IGNORE

Then delete the & from there.

That should stop the warning.
Title: Re: Ignore User
Post by: rgarrison on December 15, 2005, 08:56:03 PM
This script is wonderful.  I love it.
Title: Re: Ignore User
Post by: wing on December 31, 2005, 09:28:47 PM
It doesn't seem to install in 1.1 RC2

I had to change 2 things to get it to work in RC2.

I did step 2 and 3 in the first post of this thread.

It seems to work a little different.

Good -
Makes things much smaller it removes everything including avatars
Bad -
The show / hide button never changes to hide, it always says show for some reason the javascript isn't working.
Title: Re: Ignore User
Post by: Rudolf on January 01, 2006, 10:59:09 AM
I updated the install package, and it's working fine for me. On a new RC2 install.
Make sure to get the 11RC2 version of the mod and re-install new. If at all possible.

The change was only an extra [space] character corrected in the display template file. Nothing else. The mod's code is unchanged.

Rudolf
Title: Re: Ignore User
Post by: katdillon on January 22, 2006, 04:35:33 PM
I'm trying to re-install your mod.  I just upgraded to RC2.  Downloaded your new RC2 version, but no buttons are showing up.  I have the option to ignore in my profile, though.  No errors.  Can you help me?

Thanks!
(I love this mod so much! :) )
Title: Re: Ignore User
Post by: Rudolf on January 23, 2006, 12:12:42 PM
Please make sure that the images were copied where they should be. There's some info in the readme file.
Also make sure that the theme changes were made in the theme you're using.
®
Title: Re: Ignore User
Post by: katdillon on January 24, 2006, 08:33:33 AM
Oh, thank you!  I didn't realize that I wasn't using the default theme.
Title: Re: Ignore User
Post by: quake101 on February 02, 2006, 04:33:32 PM
Nevermind, I belive I fixed the problem. :)
Title: Re: Ignore User
Post by: Rudolf on February 04, 2006, 02:50:58 PM
Sorry for not replying before, I had a busy week and was planning to answer today.
In case you still have problems you can look at the themes.xml file in the packge. If you need help reading/interpreting the content, let me know.

Rudolf
Title: Re: Ignore User
Post by: quake101 on February 04, 2006, 03:02:33 PM
Quote from: rudiksz on February 04, 2006, 02:50:58 PM
Sorry for not replying before, I had a busy week and was planning to answer today.
In case you still have problems you can look at the themes.xml file in the packge. If you need help reading/interpreting the content, let me know.

Rudolf

Could you send me the changes need for an 1.0.5-1.0.6 install? I used your ref. file in the first post but that is cuaseing problems with my board.
Title: Re: Ignore User
Post by: Rudolf on February 05, 2006, 12:15:25 AM
The changes are the same as the 1.1.
Just make sure you're not trying to install the 1.1rc2 version. There are two.
What problems you have? I hope you haven't replaced your display.template with that one. It is meant as a reference, to see what to change in your original.
Title: Re: Ignore User
Post by: quake101 on February 05, 2006, 10:04:59 AM
I've customized my original file. It would be easier if I had an 1.05 or 1.06 file to look at.
Title: Re: Ignore User
Post by: Rudolf on February 05, 2006, 11:49:35 AM
I'm a little lost here. The attached display.template.php file it's a 1.0.5 file.

Anyway, here is what you have to modify.

Change 1
Search for:
global $context, $settings, $options, $txt, $scripturl, $modSettings;

Add after:
//IGNORE - START
echo '
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
function showhide(msgnr)
{  
if (document.getElementById("message"+msgnr).style.display == "")
    {document.getElementById("message"+msgnr).style.display = "none";
     document.getElementById("ignmsgbttns"+msgnr).style.visibility = "hidden";
     document.getElementById("ignoremessage"+msgnr).style.display = "";
     document.getElementById("ignfooter"+msgnr).style.display = "none";
     document.getElementById("showhide"+msgnr).src = "', $settings['images_url'] . '/' . $context['user']['language'] . '/ignshow.gif"' ,';
     document.getElementById("showhide"+msgnr).alt = "', $txt['show_hide'] ,'";      
    }
    else
    {document.getElementById("message"+msgnr).style.display = "";
     document.getElementById("ignmsgbttns"+msgnr).style.visibility = "visible";
     document.getElementById("ignoremessage"+msgnr).style.display = "none";
     document.getElementById("ignfooter"+msgnr).style.display = "";
     document.getElementById("showhide"+msgnr).src = "', $settings['images_url'] . '/' . $context['user']['language'] . '/ignhide.gif"' ,';
     document.getElementById("showhide"+msgnr).alt = "', $txt['show_hide'] ,'";      
     }
}
// ]]></script>';
//IGNORE - END


Change 2
Search for:
// Show the member's custom title, if they have one.

Add before:
if ($message['is_ignored']==1) echo '<div id="ignprofile' , $message['counter']+1 , '" style="display:none;">'; //IGNORE

Change 3
Search for:
// Done with the information about the poster... on to the post itself.

Add before:
if ($message['is_ignored']==1) echo '</div>';
//IGNORE - START make Ignore/Unignore link in poster_info
echo '<br />';
if ($context['user']['is_logged'])
if ($message['is_ignored']==0)
   //echo '<a href="'. $scripturl . '?action=ignore;u=' .$message['member']['id'] . ';topic=' . $context['current_topic'] . '">' . $txt['ignore'] . '</a> <br />';
   echo '
        <br /><a href="', $scripturl, '?action=ignore;u=' , $message['member']['id'], ';topic=', $context['current_topic'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/ignore.gif" alt="' . $txt['ignore'] . '" border="0" />' : $txt['ignore']), '</a>';
     else if ($message['is_ignored']!=2) echo '<br /><a href="', $scripturl, '?action=unignore;u=' , $message['member']['id'], ';topic=', $context['current_topic'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/unignore.gif" alt="' . $txt['unignore'] . '" border="0" />' : $txt['unignore']), '</a>';
//IGNORE - START


Change 4
Search for:
// Can they reply?  Have they turned on quick reply?

Add before:
//IGNORE - START buttons div
if ($message['is_ignored']==1)
echo '<div id="ignmsgbttns', $message['counter']+1 , '" style="visibility: hidden;">';
else echo '<div id="ignmsgbttns' , $message['counter']+1 , '" style="visibility: visible;">';
// IGNORE - END


Change 5
Search for:
// Show the post itself, finally!

Add before:
echo '</div>';  //<=IGNORE button's div closing tag

// IGNORE - Show/Hide link - START
  if ($message['is_ignored']==1)
    echo '<a href="#" onclick="showhide(' , $message['counter']+1 , '); return false;">' . ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/ignshow.gif" alt="' . $txt['ignore_show'] . '" border="0" id="showhide' . ($message['counter']+1) . '" />' : $txt['show_hide']) . '</a>';
// IGNORE - Show/Hide link - END

//IGNORE - START
if ($message['is_ignored']==1)
echo '
</td>
</tr></table>
<hr width="100%" size="1" class="hrcolor" />
<div class="post" style="overflow: auto; width: 100%;" id="ignoremessage' ,$message['counter']+1, '">' . $txt['ignore_message'] .'</div>
<div class="post" style="overflow: auto; width: 100%; display: none;" id="message' ,$message['counter']+1, '">', $message['body'], '</div>
</td>
</tr>';
else
  //IGNORE - END


Change 6
Search for:
// Now for the attachments, signature, ip logged, etc...

Add after:
if ($message['is_ignored']==1)
echo '
<tr>
<td valign="bottom" class="smalltext" width="85%" style="display: none;" id="ignfooter', $message['counter']+1 , '" >
<table width="100%" border="0" style="table-layout: fixed;"><tr>
<td colspan="2" class="smalltext" width="100%">';
else
//IGNORE - END




DONE.
It should work.
Title: Re: Ignore User
Post by: quake101 on February 06, 2006, 01:08:10 PM
Thank you! ;)
Title: Re: Ignore User
Post by: Astarta on February 20, 2006, 02:33:01 PM
Just wanted to that you for the great mode, everything is working fine!
Thanks a lot :-)
Title: Re: Ignore User
Post by: wing on February 23, 2006, 06:58:47 PM
I've changed this feature a bit by adding an if around the entire post section, instead of it displaying "User ignored" it just doesn't display their post at all as if it never existed :)
Title: Re: Ignore User
Post by: Astarta on February 27, 2006, 03:33:52 PM
May I kindly ask for a new feature for this mode? /*of course if you have some time and interest :-)*/
I`d be wonderfull to create a new line in user`s profile 'ignored by', which showed the number of users that ignore the certain user.
For example: "User NNN is ignored by 7 users"
Hope I explaind everything ok:)
Title: Re: Ignore User
Post by: wing on February 27, 2006, 09:24:44 PM
Would you want that hidden?  You can just use phpmyadmin to get this stat if you are truely interested :)

Title: Re: Ignore User
Post by: Astarta on February 28, 2006, 02:07:54 AM
No, I want this information to be public, so that a user can know how many users ignore him/her.
Title: Re: Ignore User
Post by: Rudolf on February 28, 2006, 02:40:27 PM
It shouldn't be too hard do it, but I think that showing in every post would affect the performance a little. The profile seems a better(optimal) place to show it.
Title: Re: Ignore User
Post by: raiwatson on April 06, 2006, 12:12:29 PM
I've installed the mod on my 1.0.7 forum; I use the classic template instead of the default.  When I access my profile as admin, I see the "Ignore user" list, and the check-box to allow ignoreing mods & admins.  But, when I put someone on my ignore list, nothing happens (that I can tell).  And I don't see any show/hide buttons in the threads themselves. 

So... does this instruction apply to my problem:

Quote from: rudiksz on February 05, 2006, 11:49:35 AM
Anyway, here is what you have to modify.

Change 1
Search for:
global $context, $settings, $options, $txt, $scripturl, $modSettings;

Add after:
//IGNORE - START
echo '
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
function showhide(msgnr)
{  
if (document.getElementById("message"+msgnr).style.display == "")
    {document.getElementById("message"+msgnr).style.display = "none";
     document.getElementById("ignmsgbttns"+msgnr).style.visibility = "hidden";
     document.getElementById("ignoremessage"+msgnr).style.display = "";
     document.getElementById("ignfooter"+msgnr).style.display = "none";
     document.getElementById("showhide"+msgnr).src = "', $settings['images_url'] . '/' . $context['user']['language'] . '/ignshow.gif"' ,';
     document.getElementById("showhide"+msgnr).alt = "', $txt['show_hide'] ,'";      
    }
    else
    {document.getElementById("message"+msgnr).style.display = "";
     document.getElementById("ignmsgbttns"+msgnr).style.visibility = "visible";
     document.getElementById("ignoremessage"+msgnr).style.display = "none";
     document.getElementById("ignfooter"+msgnr).style.display = "";
     document.getElementById("showhide"+msgnr).src = "', $settings['images_url'] . '/' . $context['user']['language'] . '/ignhide.gif"' ,';
     document.getElementById("showhide"+msgnr).alt = "', $txt['show_hide'] ,'";      
     }
}
// ]]></script>';
//IGNORE - END


Change 2
Search for:
// Show the member's custom title, if they have one.

Add before:
if ($message['is_ignored']==1) echo '<div id="ignprofile' , $message['counter']+1 , '" style="display:none;">'; //IGNORE

Change 3
Search for:
// Done with the information about the poster... on to the post itself.

Add before:
if ($message['is_ignored']==1) echo '</div>';
//IGNORE - START make Ignore/Unignore link in poster_info
echo '<br />';
if ($context['user']['is_logged'])
if ($message['is_ignored']==0)
   //echo '<a href="'. $scripturl . '?action=ignore;u=' .$message['member']['id'] . ';topic=' . $context['current_topic'] . '">' . $txt['ignore'] . '</a> <br />';
   echo '
        <br /><a href="', $scripturl, '?action=ignore;u=' , $message['member']['id'], ';topic=', $context['current_topic'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/ignore.gif" alt="' . $txt['ignore'] . '" border="0" />' : $txt['ignore']), '</a>';
     else if ($message['is_ignored']!=2) echo '<br /><a href="', $scripturl, '?action=unignore;u=' , $message['member']['id'], ';topic=', $context['current_topic'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/unignore.gif" alt="' . $txt['unignore'] . '" border="0" />' : $txt['unignore']), '</a>';
//IGNORE - START


Change 4
Search for:
// Can they reply?  Have they turned on quick reply?

Add before:
//IGNORE - START buttons div
if ($message['is_ignored']==1)
echo '<div id="ignmsgbttns', $message['counter']+1 , '" style="visibility: hidden;">';
else echo '<div id="ignmsgbttns' , $message['counter']+1 , '" style="visibility: visible;">';
// IGNORE - END


Change 5
Search for:
// Show the post itself, finally!

Add before:
echo '</div>';  //<=IGNORE button's div closing tag

// IGNORE - Show/Hide link - START
  if ($message['is_ignored']==1)
    echo '<a href="#" onclick="showhide(' , $message['counter']+1 , '); return false;">' . ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/ignshow.gif" alt="' . $txt['ignore_show'] . '" border="0" id="showhide' . ($message['counter']+1) . '" />' : $txt['show_hide']) . '</a>';
// IGNORE - Show/Hide link - END

//IGNORE - START
if ($message['is_ignored']==1)
echo '
</td>
</tr></table>
<hr width="100%" size="1" class="hrcolor" />
<div class="post" style="overflow: auto; width: 100%;" id="ignoremessage' ,$message['counter']+1, '">' . $txt['ignore_message'] .'</div>
<div class="post" style="overflow: auto; width: 100%; display: none;" id="message' ,$message['counter']+1, '">', $message['body'], '</div>
</td>
</tr>';
else
  //IGNORE - END


Change 6
Search for:
// Now for the attachments, signature, ip logged, etc...

Add after:
if ($message['is_ignored']==1)
echo '
<tr>
<td valign="bottom" class="smalltext" width="85%" style="display: none;" id="ignfooter', $message['counter']+1 , '" >
<table width="100%" border="0" style="table-layout: fixed;"><tr>
<td colspan="2" class="smalltext" width="100%">';
else
//IGNORE - END




DONE.

or is there something else I need to try?  Thanks for the mod!
Title: Re: Ignore User
Post by: Rudolf on April 06, 2006, 10:24:20 PM
You'll have to copy the images into the classic folder too, and yes you will have to make hose modifications in the Display.template.php of the classic theme.
Title: Re: Ignore User
Post by: raiwatson on April 07, 2006, 06:22:52 AM
Thanks for the quick reply, Rudi ~ I'll work on it this weekend.  My members will be so happy!
Title: Re: Ignore User
Post by: 0897jhPEFUOIyG90 on April 09, 2006, 12:40:47 PM
Quote from: rudiksz on December 10, 2005, 02:11:16 AM
I'm just guessing here, but:
if on the line 910 of your Display.php is this:
'is_ignored' => isIgnored($message['ID_MEMBER'], &$memberContext[$message['ID_MEMBER']]['group_id']), //IGNORE

Then delete the & from there.

That should stop the warning.

Hi, I'm running the mod (1.2) on SMF 1.0.7 on php 5.1.x and tried this fix, yes it eliminated the warning from the apache logs, but then the forum error log filled to over 5000 pages of errors about the undefined variable $memberContext.

I searched through the code for this mod and could find no other references to this variable. What is it for? Does it do anything? Can it be removed? There is a function in the SMF 1.0.7 code called loadMemberContext - is that what you are after?

I searched through the code and could not find a function called isIgnored to change its define to accept the variable by reference.

Also, the mod breaks registration on MySQL 5, you need to allow null values for ignoreboards in the modification of the members table (or modify the registration script to fill in a blank value).

I think there was another issue I had to fix to get it working but I forget what it was now. I'll post again if I think of it.

So, what can we do about this " Call-time pass-by-reference has been deprecated" warning?
Title: Re: Ignore User
Post by: Rudolf on April 09, 2006, 02:21:00 PM
Replace $memberContext[$message['ID_MEMBER']]['group_id'] with $themeUser[$message['ID_MEMBER']]['group_id']

For some reason they renamed the variable in 1.0.7.
The 1.1RC2 still has the memberContext, but maybe in the final 1.1 release there too will be the new one. That should correct your problem for now. Leave out the &, i don't know why I've put it there in the first place.

The isIgnored function is in the Display.php source file, the last function.

Thanks for the feedback, I will update the package as soon as possible.
Rudolf
Title: Re: Ignore User
Post by: 0897jhPEFUOIyG90 on April 09, 2006, 02:45:38 PM
Ah, that explains it. Seems to work fine now, thank you very much!
Title: Re: Ignore User
Post by: 0897jhPEFUOIyG90 on April 09, 2006, 10:39:44 PM
Update - guests now generate this error (does not occur for members):

Quote
8: Undefined index: group_id
File: \Sources\Display.php
Line: 774

(The same line I just edited as you suggested)

???
Title: Re: Ignore User
Post by: Rudolf on April 09, 2006, 11:17:08 PM
Yes, I was expecting it.
Replace

'is_ignored' => isIgnored($message['ID_MEMBER'], $themeUser[$message['ID_MEMBER']]['group_id']), //IGNORE


With

'is_ignored' => isIgnored($message['ID_MEMBER'], (isset($themeUser[$message['ID_MEMBER']]['group_id'])?$themeUser[$message['ID_MEMBER']]['group_id']:0)), //IGNORE


®
Title: Re: Ignore User
Post by: 0897jhPEFUOIyG90 on April 10, 2006, 12:39:15 AM
Thanks again, much appreciated!  :)
Title: Re: Ignore User
Post by: raiwatson on April 10, 2006, 06:28:28 AM
Quote from: rudiksz on April 06, 2006, 10:24:20 PM
You'll have to copy the images into the classic folder too, and yes you will have to make hose modifications in the Display.template.php of the classic theme.

I made the necessary changes to themes/classic/display.template.php (except uploading the button images) and it looked like everything was working fine as far as ignoring people, BUT... when I scrolled down a thread and came to the first ignored post, it split my forum layout into two columns - one with the posts, and one column with a lot of blank space (bright pink - which is one of my background colors) and my shout box.  My shoutbox usually is centered at the very bottom of the page.

Can you help me?!
Title: Re: Ignore User
Post by: Rudolf on April 10, 2006, 08:42:09 AM
Send me your modified Classic "Display.template.php" file so I can take a look at it.
Check your PM's.
R
Title: Re: Ignore User
Post by: Niteblade on April 14, 2006, 12:59:56 PM
Quote from: rudiksz on December 10, 2005, 02:11:16 AM
I'm just guessing here, but:
if on the line 910 of your Display.php is this:
'is_ignored' => isIgnored($message['ID_MEMBER'], &$memberContext[$message['ID_MEMBER']]['group_id']), //IGNORE

Then delete the & from there.

That should stop the warning.

You are correct. I had this same problem and deleting the '&' made it work.
Title: Ignore User
Post by: Vinspire^ on April 16, 2006, 03:29:50 AM
I've installed Ignore User Mod into my SMF but i am currently using other theme so the ignore button didn't appear. How to make it appear ?

Ignore User Mod : http://mods.simplemachines.org/index.php?mod=185

I did browse through the site but couldn't find the topic related to the ignore mods and when i did a search. I got this Error.

Due to high stress on the server, the search function has been automatically and temporarily disabled. Please try again in a short while.
Title: Re: Ignore User
Post by: nissan on April 23, 2006, 02:47:42 PM
Hi

I've installed the Ignore User mod 1.1RC2 but no matter what I do I can't seem to get it to display in the Classic theme. I get the details in the profile bit. But no buttons appear in the postings under member's name.

I've attached the Display.template.php for the classic theme and wondered if you could see what I've done wrong or not done.

TIA

Oops no attachment option. Hope it's alright if I post the page here:

Title: Re: Ignore User
Post by: Snape on April 23, 2006, 06:48:33 PM
Did you copy the gif files the mod installs under Themes/default/images/<language> into Themes/classic/images/<language>?  They should be:
ignshow.gif
ignhide.gif
ignore.gif
unignore.gif

ignore/unignore is what is displayed under the user's avatar, and hide/show are positioned in the upper right of the user's posts.
Title: Re: Ignore User
Post by: nissan on April 24, 2006, 07:11:03 AM
Yes I copied the images across to the 'Themes/classic/images/english' directory.

Is anyone using this mod using the Classic Theme?
Title: Re: Ignore User
Post by: Snape on April 24, 2006, 09:46:10 AM
I'm using it, but my code is different than yours- I'd say you need to reapply the mod, or make the manual changes as listed below.

In the first IGNORE code segment, you're missing a number of lines:

                                  document.getElementById("showhide"+msgnr).src= "', $settings['images_url'] . '/' . $context['user']['language'] . '/ignshow.gif"' ,';
                                  document.getElementById("showhide"+msgnr).alt= "', $txt['ignore_show'] ,'";
                                  document.getElementById("ignprofile"+msgnr).style.display = "none";
                                 }
                                 else
                                 {document.getElementById("message"+msgnr).style.display = "";
                                  document.getElementById("ignmsgbttns"+msgnr).style.visibility = "visible";
                                  document.getElementById("ignoremessage"+msgnr).style.display = "none";
                                  document.getElementById("ignfooter"+msgnr).style.display = "";
                                  document.getElementById("showhide"+msgnr).src= "', $settings['images_url'] . '/' . $context['user']['language'] . '/ignhide.gif"' ,';
                                  document.getElementById("showhide"+msgnr).alt= "', $txt['ignore_hide'] ,'";
                                  document.getElementById("ignprofile"+msgnr).style.display = "";
                                  }
                }
// ]]></script>';
        //IGNORE - END


And before the comment 'Show the member's custom title, if they have one.' you need this line:


                if ($message['is_ignored']==1) echo '<div id="ignprofile' , $message['counter']+1 , '" style="display:none;">'; //IGNORE
Title: Re: Ignore User
Post by: nissan on April 24, 2006, 11:03:37 AM
Thanks Snape.

I'll take another look. Does that code have to be appended to the end of my first Ignore code segment?
Title: Re: Ignore User
Post by: Rudolf on April 24, 2006, 11:18:50 AM
Nissan,

check out the file here (http://digilander.libero.it/rudoka/smfmods/ignore/Display.template-CLASSIC.php). This file is for SMF 1.0x but it should give you an idea of how things should be.
  Let me know if this helps you  to work it out.

Rudolf
Title: Re: Ignore User
Post by: nissan on April 24, 2006, 11:31:10 AM
Modified that Snape, but still not functioning in Classic Theme.

Weired! I can completely remove the Classic version of Display.template.php without any noticeable difference. Doesn't seem to matter whether it's there or not. Is it using the Default version? If so why doesn't it show the buttons - they are uploaded as I say?

Can you post a link to your forums Snape? I would just like to confirm to myself that it can be got working in Classic Theme. Or could you post or send me your Classic theme Display.template.php? But there again, as I say, it doesn't stop the forum from working in Classic theme if the Classic Display.template.php is removed.

Does it use the default verion if there isn't a Display.template.php in the Classic Theme? It only uses the Classic Display.template.php if present? Don't know whether this makes sense - been trying to get this to wok for two-days solid  :(

Appreciate if someone could post or email me a working version of the Classic Theme Display.template.php


Title: Re: Ignore User
Post by: nissan on April 24, 2006, 11:38:03 AM
Ok thanks for that Rudolf. I'll check that now.


nissan
Title: Re: Ignore User
Post by: Snape on April 24, 2006, 12:01:52 PM
Quote from: nissan on April 24, 2006, 11:03:37 AM
Thanks Snape.

I'll take another look. Does that code have to be appended to the end of my first Ignore code segment?
No.  If you compare your code against that, you'll see that you have some lines, but are missing some others.  Match the first line to your code and compare lines from there.  Your code looked fine compared to mine- which is working on classic theme- with the noted exceptions.  Clear up that top portion and add the missing line and it should work.

I can PM you a copy of my display.template.php, but I'll warn you ahead of time that I've installed other mods that have made other modifications, as well as some custom changes that I put in myself- so you'd still need to pick apart the pieces you need rather than just replace it.

As for your question about missing template files, each theme uses a full set of .template.php files.  The Themes/default folder is generally the only folder containing ALL the templates required for the board to function.  Other Theme dirs just contain unique copies of template files which override the defaults.  So if a Profile.template.php isn't customized for the classic theme (aka found in Themes/classic), the Profile.template.php in Themes/default is used instead.  That's why if you delete the Display.template.php in the classic directory, it still "works", although it may look funny.
Title: Re: Ignore User
Post by: nissan on April 24, 2006, 04:18:22 PM
Partial success.

I have the ignore/unignore button under user names now and when I click the 'Ignore User' button it works in as much as it blocks the message ok and sustitutes the message that this user is being ignored and also provides the 'Show' button on RHS.

However, when I click the 'Show' button it doesn't toggle to the 'Hide' button. It does show the blocked message, but not in place of the substitute message "This user is being ignored", but underneath it. It also doesn't show the other post icons modify etc.

Must have missed something. May have to redo everything.

Thanks for all the help Snape & Rudolph. At least I can now see that it will work if I can but correct the error.
Title: Re: Ignore User
Post by: nissan on April 24, 2006, 04:39:51 PM
Maybe Javacript error as when I click the 'Show' button it clicks as though you're clicking a link, and jumps to top of page, but does not toggle to the hide button.
Title: Re: Ignore User
Post by: nissan on April 24, 2006, 06:03:14 PM
Ok redone it once more and that seems to have done the trick.

Now appears to be working.

Thanks both for the assistance. Much appreciated.

Nice Mod Rudolph.
Title: Re: Ignore User
Post by: Skipdawg on April 27, 2006, 11:43:41 AM
Can someone show an example of what this is suppose to look like on SMF 1.1 RC2? Thanks  ;)
Title: Re: Ignore User
Post by: Skipdawg on April 28, 2006, 01:23:49 AM
OK forget my last question then. I jumped in with it. Nice. One other question that I would like answered though.
???
How would I exempt Admin from ignore?
Title: Re: Ignore User
Post by: Rudolf on April 28, 2006, 07:19:16 AM
In the admin section there is the possibility to enable/disable the Admin ignore.
If i remember good.
Title: Re: Ignore User
Post by: Skipdawg on April 28, 2006, 01:37:48 PM
Quote from: rudiksz on April 28, 2006, 07:19:16 AM
In the admin section there is the possibility to enable/disable the Admin ignore.
If i remember good.

OK kewl I found it. In the Admin persons profile for ignore users options. Nice mod. Already had one person thumbs up on it.  ;)
Title: Re: Ignore User
Post by: digit on May 07, 2006, 09:39:54 AM
Great mod - thanks :)
Title: Re: Ignore User
Post by: Vinspire on May 12, 2006, 12:19:27 AM
How to get this ignore function to work on Helios Eclipse theme ?

Which file do i need to edit ?
Title: Re: Ignore User
Post by: Vinspire on May 22, 2006, 10:04:10 PM
I wanted to add the ignore button in my Helios Theme. How to do that ? Browse thru the previous pages but there is too much codes scattering around the thread.

Is there any proper one ?
Title: Re: Ignore User
Post by: Snape on May 23, 2006, 05:28:14 PM
Quote from: Vinspire on May 22, 2006, 10:04:10 PM
I wanted to add the ignore button in my Helios Theme. How to do that ? Browse thru the previous pages but there is too much codes scattering around the thread.

Is there any proper one ?
The documentation link in the first post still applies:

QuoteThis mod changes the 'default' theme. If you're using a different theme, you will have to apply the theme modifications for every theme where you want this feature to work. Not modifying a theme to support this mod will *not* break your forum, said theme, or computer. You will not see the "Ignore" link and posts will not be ignored, they will be shown as usual.
        If you want to modify a theme there are two ways you can do it.
b) The normal way would be to search for the default template files open it and copy over your themes the modified parts.
The template files would be: index.template.php AND Display.template.php. You can find these in 'Themes\default' folder.
You will find sections between //IGNORE -START and //IGNORE - END. The code betwen this you'll have to copy in the template files of the other theme, in the same place. Note: The code in other template files could look different. If it's so you'll have to figure out the correct place where to put the code. Experiment. If everything else fails, ask for support.
Then copy ignore.gif, ignhide.gif, ignshow.gif, and unignore.gif from /Themes/default/images/english/ into your /Themes/helios/images/english directory.
Title: Re: Ignore User
Post by: Vinspire on May 24, 2006, 08:53:19 AM
Only need to edit Display.template.php but a lot of things to edit. Manage to get it working. Great mods :)
Title: Re: Ignore User
Post by: kriskd on May 24, 2006, 08:46:27 PM
SFF 1.1 RC2 - Classic Template

I installed this on my test forum and did all my mods to display.template.php.  Everything looks great, but it appears that the posts that should be ignored are still showing in the "View the most recent posts on the forum".  When you click on the post and go into the thread, it is correctly ignored there.  Has anyone else run into this?
Title: Re: Ignore User
Post by: Rudolf on May 24, 2006, 10:06:47 PM
Yes, the posts are visible in the recent posts list on the index page.
Others requested removal from there, but i haven't found a good solution yet. It would be extra work from the part of the server and a bit overkill, if you ask me.
This was meant to be a simple mod that hides the texts posts of users that are boring and talk a lot. To hide it from the topic display screen, so you don't have to scroll hours just to skip them. Not to completely remove the post from the forum.
Title: Re: Ignore User
Post by: kriskd on May 25, 2006, 09:28:56 AM
rudiksz,

Thank you for this additional info on your vision of this mod -- it is useful for me.

My issue isn't with users that are boring or talk a lot (although I'm familiar with that on message boards too!), but with trolls.  Therefore, I would prefer a mod that completely makes the posts of the ignored user completely invisible as if they don't exist.  I'm certainly not asking you to create this, but do you see it as something that would be possible within the realm of the software?  If so, I'd like to make a formal request in the appropriate area if it has not been requested or rejected already.
Title: Re: Ignore User
Post by: Rudolf on May 25, 2006, 02:28:34 PM
There are a couple of other places where the posts show up.
I'd like to punctualise that the mod's purpose is not to remove any post or change the mechanism of the forum, but to simply hide the users' post. So the posts are still there, but if a user is ignored they do not appear.
This being said, there are a couple of places where the posts are still visible.
Like:
  a) the board index page. When in a board the latest post is of someone ignored by you. The "Last post" section will have that post.
  b) the topic index page (of a board). Same as above, if in a topic the last post is by someone ignored in the "Last post" section will have that post.
  c) the recent posts list, as already mentioned
  d) the unread posts page
Probably some other places too.
  On the Display page it was relatively easy to hide the posts using simple template modifications without actually touching the working code. To hide from the above listed places I would have to modify the source files. Untill now I only looked at the recent posts list, but I could not find an easy and effective (read fast) way to do it. Probably the same goes with the others. It's just too much extra work for the server, and doesn't worth the effort, in my humble opinion.

Since it is requested I'll go to look if there's something that can be done. But I don't promise anything, and can't tell if and when it will be done. As always, ideas are welcome.

®udolf
Title: Re: Ignore User
Post by: digit on June 18, 2006, 07:31:12 AM
I've been using this mod for awhile - works great - but I keep getting a "Undefined Index: karma" error - when a user on that page is being ignored.  I have it narrowed down to the modifications in Display.template.php.

Any idea why?

Thanks in advance.
Title: Re: Ignore User
Post by: Rudolf on June 18, 2006, 08:26:57 AM
I have absolutely no idea why it should give that. I haven't touched anything related to karma.
It could be a theme error or some other modification you have installed.
Alternatively If you can tell the exact error (and the line number it occurs), what version of SMF and theme you're using, I can double check to see if this mod might cause the error or no.
Maybe a link to the forum would help too.
Title: Re: Ignore User
Post by: whatevah on July 12, 2006, 01:54:32 AM
I just installed the mod on a 1.1RC2 board without a hitch, except that... it will only prevent users from ignoring admins IF Administrator is listed as the primary group for the admin user.  I use the feature that hides all but the primary group from being shown under the posts and in the user profile, and use custom membergroups for assigning titles.

anything I can do to prevent users from ignoring admins/global mods in this scenario?  tried searching but the forum search is disabled for the past hour and google isn't being helpful.

thanks!
Title: Re: Ignore User
Post by: Rudolf on July 12, 2006, 03:20:18 PM
Open up Sources/Ignore.php and search for

//Ignore admin... or no?
$iuser = 1;
if (!$modSettings['ign_admin'])
{
$result=db_query("SELECT ID_GROUP FROM {$db_prefix}members WHERE ID_MEMBER=" . $_REQUEST['u'] . " LIMIT 1", __FILE__, __LINE__);
   $row = mysql_fetch_array($result);
if ($row)
if (($row['ID_GROUP']==1) || ($row['ID_GROUP']==2) || ($row['ID_GROUP']==3)) $iuser = 0;
}


Replace with

//Ignore admin... or no?
$iuser = 1;
if (!$modSettings['ign_admin'])
{
$result=db_query("SELECT ID_GROUP FROM {$db_prefix}members WHERE ID_MEMBER=" . $_REQUEST['u'] . " AND (FIND_IN_SET(ID_GROUP,'1,2,3') OR FIND_IN_SET(1, additionalGroups) OR FIND_IN_SET(2, additionalGroups) OR FIND_IN_SET(3, additionalGroups)) LIMIT 1", __FILE__, __LINE__);
$iuser = mysql_num_rows($result);
}


As you can see, I optimized a bit the code and should prevent ignoring users if they are admins/moderators in any way.
I say "should" because I had not the time to try it out. If you're willling to test it, and turns out ok, i'll wrap it up in a new version.
Title: Re: Ignore User
Post by: pushkin22 on July 14, 2006, 01:52:12 PM
Hi,

I installed this mod but I have some problems... I have 1.1 RC2.

1. When I was installing the mod I got this warning: "Execute Modification     ./Themes/default/Display.template.php     Test failed"
Do I need a special "Display.template.php"? The one in the first post is for the old SMF version???
2. If I ignore a user and I click then on "hide" in a post but nothings happens! Is there a solution for this problem?


Sorry for my bad english! :D

Edit: Solved!
Title: Re: Ignore User
Post by: digit on August 10, 2006, 02:52:13 AM
I still need help resolving my aforementioned "undefined index: karma" error...

http://www.simplemachines.org/community/index.php?topic=49149.msg615433#msg615433

I have it narrowed down to the text below....

I get the error with this text in Display.template.php.....



// Otherwise, show the guest's email.
elseif (empty($message['member']['hide_email']))
echo '

<br />
<a href="mailto:', $message['member']['email'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/email_sm.gif" alt="' . $txt[69] . '" title="' . $txt[69] . '" border="0" />' : $txt[69]), '</a>';

if ($message['is_ignored']==1) echo '</div>';
//IGNORE - START make Ignore/Unignore link in poster_info
echo '';
if ($context['user']['is_logged'])
if ($message['is_ignored']==0)
   //echo '<a href="'. $scripturl . '?action=ignore;u=' .$message['member']['id'] . ';topic=' . $context['current_topic'] . '">' . $txt['ignore'] . '</a> <br />';
   echo '
        <br /><a href="', $scripturl, '?action=ignore;u=' , $message['member']['id'], ';topic=', $context['current_topic'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/ignore.gif" alt="' . $txt['ignore'] . '" border="0" />' : $txt['ignore']), '</a>';
     else if ($message['is_ignored']!=2) echo '<br /><a href="', $scripturl, '?action=unignore;u=' , $message['member']['id'], ';topic=', $context['current_topic'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/unignore.gif" alt="' . $txt['unignore'] . '" border="0" />' : $txt['unignore']), '</a>';
//IGNORE - START      
      // Is karma display enabled?  Total or +/-?
if ($modSettings['karmaMode'] == '1')
echo '
<br /><br />
', $modSettings['karmaLabel'], ' ', $message['member']['karma']['good'] - $message['member']['karma']['bad'], '<br />';
elseif ($modSettings['karmaMode'] == '2')
echo '
<br /><br />
', $modSettings['karmaLabel'], ' +', $message['member']['karma']['good'], '/-', $message['member']['karma']['bad'], '<br />';

// Is this user allowed to modify this member's karma?
if ($message['member']['karma']['allow'])
echo '
<a href="', $scripturl, '?action=modifykarma;sa=applaud;uid=', $message['member']['id'], ';topic=', $context['current_topic'], '.' . $context['start'], ';m=', $message['id'], ';sesc=', $context['session_id'], '">', $modSettings['karmaApplaudLabel'], '</a>
<a href="', $scripturl, '?action=modifykarma;sa=smite;uid=', $message['member']['id'], ';topic=', $context['current_topic'], '.', $context['start'], ';m=', $message['id'], ';sesc=', $context['session_id'], '">', $modSettings['karmaSmiteLabel'], '</a><br />';




If I remove this code....




if ($modSettings['karmaMode'] == '1')
echo '
<br /><br />
', $modSettings['karmaLabel'], ' ', $message['member']['karma']['good'] - $message['member']['karma']['bad'], '<br />';
elseif ($modSettings['karmaMode'] == '2')
echo '
<br /><br />
', $modSettings['karmaLabel'], ' +', $message['member']['karma']['good'], '/-', $message['member']['karma']['bad'], '<br />';

// Is this user allowed to modify this member's karma?
if ($message['member']['karma']['allow'])
echo '
<a href="', $scripturl, '?action=modifykarma;sa=applaud;uid=', $message['member']['id'], ';topic=', $context['current_topic'], '.' . $context['start'], ';m=', $message['id'], ';sesc=', $context['session_id'], '">', $modSettings['karmaApplaudLabel'], '</a>
<a href="', $scripturl, '?action=modifykarma;sa=smite;uid=', $message['member']['id'], ';topic=', $context['current_topic'], '.', $context['start'], ';m=', $message['id'], ';sesc=', $context['session_id'], '">', $modSettings['karmaSmiteLabel'], '</a><br />';





leaving only this...




// Otherwise, show the guest's email.
elseif (empty($message['member']['hide_email']))
echo '

<br />
<a href="mailto:', $message['member']['email'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/email_sm.gif" alt="' . $txt[69] . '" title="' . $txt[69] . '" border="0" />' : $txt[69]), '</a>';

if ($message['is_ignored']==1) echo '</div>';
//IGNORE - START make Ignore/Unignore link in poster_info
echo '';
if ($context['user']['is_logged'])
if ($message['is_ignored']==0)
   //echo '<a href="'. $scripturl . '?action=ignore;u=' .$message['member']['id'] . ';topic=' . $context['current_topic'] . '">' . $txt['ignore'] . '</a> <br />';
   echo '
        <br /><a href="', $scripturl, '?action=ignore;u=' , $message['member']['id'], ';topic=', $context['current_topic'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/ignore.gif" alt="' . $txt['ignore'] . '" border="0" />' : $txt['ignore']), '</a>';
     else if ($message['is_ignored']!=2) echo '<br /><a href="', $scripturl, '?action=unignore;u=' , $message['member']['id'], ';topic=', $context['current_topic'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/unignore.gif" alt="' . $txt['unignore'] . '" border="0" />' : $txt['unignore']), '</a>';
//IGNORE - START      
      // Is karma display enabled?  Total or +/-?



the error goes away.

- good thing I don't have karma enabled!

Thanks in advance if you can help me resolve this error!


Title: Re: Ignore User
Post by: 1milehi on August 12, 2006, 09:00:23 AM
if someone could please direct me to the page or message # in this thread that deals with this:

i installed the 11 rc2 mod and am using the helio multi theme as board default.  when i go into any thread, i get this error message:

Fatal error: Cannot redeclare isignored() (previously declared in /home/bhonline/public_html/Sources/Display.php:1201) in /home/bhonline/public_html/Sources/Display.php on line 1226 

i'm really lost with all the unrelated stuff that was posted early on - can anyone help?  i've uninstalled the mod now but would like it to get it to work if it's a simple fix.

thank you.
Title: Re: Ignore User
Post by: 1milehi on August 12, 2006, 11:09:37 PM
okay.  reading the mod "readme" info helped  ;D ... BUT, even after switching to the smf default board theme, and reinstalling, i'm still getting that fatal error when i go into any thread.  so, i uninstalled again.

:(
Title: Re: Ignore User
Post by: Rudolf on August 13, 2006, 10:08:50 AM
Can you post the code between the lines 1275 and 1250 of your Display.php file?
I suppose that the function is declared two times.
You don't have to edit that file manually... if that's what you did.
Title: Re: Ignore User
Post by: Rudolf on August 13, 2006, 10:20:32 AM
Quote from: digit on August 10, 2006, 02:52:13 AM
I still need help resolving my aforementioned "undefined index: karma" error...

I still think it's some other mod you have installed, or some modification you made in some file ... or a bug in SMF.
There's nothing in my mod that could cause that error, and on a standard SMF installtion I don't get an error with or without karma enabled.
Anyway, as a quick fix you can try to do the following:
Replace the line:
if ($message['member']['karma']['allow'])
with
if (isset($message['member']['karma']) && $message['member']['karma']['allow'])

I'm on holidays so I can't get to my computer for a couple of weeks, if still no go, i will take another look when I back home.
Title: Re: Ignore User
Post by: 1milehi on August 19, 2006, 07:47:05 AM
Quote from: Rudolf on August 13, 2006, 10:08:50 AM
Can you post the code between the lines 1275 and 1250 of your Display.php file?
I suppose that the function is declared two times.
You don't have to edit that file manually... if that's what you did.

no, i didn't touch anything manually.  i don't even know where the display.php file is.  do you want to see it for the SMF default theme or for the board default i am using?

also, even tho i deleted/uninstalled the package, i'm still getting an "undefined index:  ignoreset" message.  ???

thank you for your help.
Title: Re: Ignore User
Post by: J. Williams on August 19, 2006, 06:04:22 PM
Display.php is in sources directory
Title: Re: Ignore User
Post by: 1milehi on August 20, 2006, 09:01:44 AM
thanks j j  :)

i'm not sure if this is what you're looking for rudolf (as i can't tell the line numbers) but this is what i found:


Quote//IGNORE - START
function isIgnored($posterID, $groupID)
{ global $ID_MEMBER, $db_prefix, $modSettings;
   
   if ($ID_MEMBER == $posterID) return 2;

if (!$modSettings['ign_admin'])
   if (($groupID==1) || ($groupID==2) || ($groupID==3)) return 2;   

   $res = db_query("SELECT * FROM {$db_prefix}ignore WHERE ID_MEMBER = $ID_MEMBER AND LOCATE(',{$posterID},',ignore_list)", __FILE__, __LINE__);
   if (mysql_num_rows($res)) return 1;
   else return 0;
}//IGNORE - END
Title: Re: Ignore User
Post by: Skipdawg on August 20, 2006, 12:56:19 PM
Is this mod going to work fine with 1.1 RC3 or will it need to be updated?
Title: Re: Ignore User
Post by: Rudolf on August 21, 2006, 09:46:30 PM
Quote from: 1milehi on August 20, 2006, 09:01:44 AM
thanks j j  :)

i'm not sure if this is what you're looking for rudolf (as i can't tell the line numbers) but this is what i found:

yes this is my code
make sure that this code is only once in that file
Title: Re: Ignore User
Post by: Rudolf on August 21, 2006, 09:47:22 PM
I haven't checked yet the RC3 version
Title: Re: Ignore User
Post by: Skipdawg on August 22, 2006, 04:20:23 PM
Anyone tested this on RC3 yet? Going through and grabbing some of the mods that the update did not allow to re-apply that were deleted.
Title: Re: Ignore User
Post by: Skipdawg on August 30, 2006, 04:56:50 PM
Suggestion if and or when this is updated for 1.1 RC3/Gold?

Could it be setup to where Administrators and Global Moderators and other forum management of that level have the ignore feature disabled. For if these users have a problem member they can always ban the trouble maker.

Leave the feature in place though for the Local Moderators. Possible?

I had a few members that liked this feature. But when I updated it did not show as compatible so it was removed.
Title: Re: Ignore User
Post by: URPG on September 10, 2006, 07:54:03 AM
Is it working with RC3?
Title: Re: Ignore User
Post by: Rudolf on September 10, 2006, 10:18:46 AM
Right now I installed on a new RC3 forum and it seems to work fine, installation was ok and the functions seem ok.
I'll be updating the next weekend based on the feedback from a couple of users (a big thanks to them!), and double checking for RC3.
But it works OK to me.
Title: Re: Ignore User
Post by: URPG on September 11, 2006, 05:14:56 AM
Will give it a try tonight...
Title: Re: Ignore User
Post by: pheasant_plucker on September 19, 2006, 05:08:28 AM
I have this on rc3 and it seemed to instal ok but it will not change anything when you change the ignore selection. Boards are still visible?

Gerry
Title: Re: Ignore User
Post by: fledgling on September 23, 2006, 05:24:22 PM
Just wondering if the RC3 version will be released soon.
Karen
Title: Re: Ignore User
Post by: 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:

It should be ready today, or if not the next weekend.
Title: Re: Ignore User
Post by: fledgling on September 24, 2006, 12:07:25 PM
Thank you. Looking forward to this, I have a situation on my board that this will handle.
Title: Re: Ignore User
Post by: URPG on September 24, 2006, 03:09:55 PM
The ignored by index sound very useful too... looking forward to it :)
Title: Re: Ignore User
Post by: photocopy on September 25, 2006, 12:13:55 PM
This sounds great, I can't wait to get it going.

Thanks for your hard work, Rudolf!
Title: Re: Ignore User
Post by: Rudolf on September 25, 2006, 12:27:33 PM
It is mostly finished, if I'm lucky enough to get home early from job, I'll package it up sometimes this week.
I added the possibility to select additional groups that can't ignroe users, and additional groups that can't be ignored - separate from the forum management settings.
From the first test, it's quite a flexible system, and I can see some interesting options in the hand of forum moderators.
Like having groups that are "punished" by being forced to view everything, from groups that are "rewarded" by being protected from being ignored. It's pretty cool, if you ask me. ;)
Title: Re: Ignore User
Post by: Skipdawg on September 25, 2006, 01:01:30 PM
Sounding like it will be a very good Mod Rudolf and well worth the wait. Looking forward to deploying it on my forums.  ;D ;)

For it seems there is always at least 1 person who will annoy others in a forum environment. And some members don't like to complain about it and this will give them that silent option.  :)
Title: Re: Ignore User
Post by: ms_ukyankee on September 29, 2006, 10:36:30 PM
Quote from: Rudolf on July 12, 2006, 03:20:18 PM
Open up Sources/Ignore.php and search for

//Ignore admin... or no?
$iuser = 1;
if (!$modSettings['ign_admin'])
{
$result=db_query("SELECT ID_GROUP FROM {$db_prefix}members WHERE ID_MEMBER=" . $_REQUEST['u'] . " LIMIT 1", __FILE__, __LINE__);
   $row = mysql_fetch_array($result);
if ($row)
if (($row['ID_GROUP']==1) || ($row['ID_GROUP']==2) || ($row['ID_GROUP']==3)) $iuser = 0;
}


Replace with

//Ignore admin... or no?
$iuser = 1;
if (!$modSettings['ign_admin'])
{
$result=db_query("SELECT ID_GROUP FROM {$db_prefix}members WHERE ID_MEMBER=" . $_REQUEST['u'] . " AND (FIND_IN_SET(ID_GROUP,'1,2,3') OR FIND_IN_SET(1, additionalGroups) OR FIND_IN_SET(2, additionalGroups) OR FIND_IN_SET(3, additionalGroups)) LIMIT 1", __FILE__, __LINE__);
$iuser = mysql_num_rows($result);
}


As you can see, I optimized a bit the code and should prevent ignoring users if they are admins/moderators in any way.
I say "should" because I had not the time to try it out. If you're willling to test it, and turns out ok, i'll wrap it up in a new version.

I've tested it, but it doesn't seem to be working. :(

Great mod though, thanks.
Title: Re: Ignore User
Post by: Vinspire on September 30, 2006, 12:08:52 AM
Is this mod compatible with RC 3 ?

Thanks :)
Title: Re: Ignore User
Post by: Skipdawg on September 30, 2006, 02:06:40 AM
I've heard through the grape vine the new version may be done this coming weekend. So let us all hope.  ;)
Title: Re: Ignore User
Post by: Rudolf on October 01, 2006, 07:15:04 PM
Announcement
Check out the first (http://www.simplemachines.org/community/index.php?topic=49149.msg349365#msg349365) post.
Title: Re: Ignore User
Post by: photocopy on October 02, 2006, 02:20:20 PM
Rudolf,

I've installed the beta and it looks great.  Is it possible to add an administrative option in to not allow users to see the "Ignored By: X Users"?

Also, is it possible to separate admins & moderators in the "Allow administrators and moderators to ignore other users" and "Allow members to ignore administrators and moderators"?  I don't care if the users ignore moderators, but I really don't want them to ignore the admins.

Thanks for all of your hard work!
Title: Re: Ignore User
Post by: Vinspire on October 02, 2006, 02:56:04 PM
Quote from: Rudolf on October 01, 2006, 07:15:04 PM
Announcement
Check out the first (http://www.simplemachines.org/community/index.php?topic=49149.msg349365#msg349365) post.

Awesome. Thanks Rudolf. Checking it out now  :D
Title: Re: Ignore User
Post by: Rudolf on October 02, 2006, 04:23:50 PM
Quote from: photocopy on October 02, 2006, 02:20:20 PM
Also, is it possible to separate admins & moderators in the "Allow administrators and moderators to ignore other users" and "Allow members to ignore administrators and moderators"?  I don't care if the users ignore moderators, but I really don't want them to ignore the admins.

Those two settings are really just a shortcut for setting up the permission for "forum management".
You can use the "additional groups" settings to fine tune. The "additional groups" idea came while writing those two features, and I saw that you can basicaly use them to enable or disable admins to be ignored. But I decided to leave those two options, because they were there and are not hurting anyone.
The trick you have to do is to check the "Allow members to ignore admins and moderators" and in the "Prevent these groups to be ignored" add the 1 to the list. This will prevent admins from being ignored, while allowing the moderators.
I know it's confusing at first, but I thought that having two textboxes where you have to put some numbers would be even more confusing. So the first two options are for the average forum admin who needs a simple set up, while the textboxes are for the hardcore admins who like to fine tune their forum. ;)

Let me know how it goes, and you can get what you want. What I said is all theory for now. I really didn't had the time to do an exhaustive test. I'm having a pretty wild period, working 12+hours per day since 10+ days without a break (including saturday and sunday). And it will go on for a while. So every feedback is more then welcome.
I'm glad it works and you like it.
Title: Re: Ignore User
Post by: Skipdawg on October 02, 2006, 05:18:24 PM
For those using this on 1.1 RC3 how dose it look so far?
I don't have a active test board at the moment. And just cleaned up my live forums so don't want to drop anything beta in them.
Is the error log flagging anything?
Title: Re: Ignore User
Post by: Vinspire on October 02, 2006, 11:59:36 PM
Quote from: Skipdawg on October 02, 2006, 05:18:24 PM
For those using this on 1.1 RC3 how dose it look so far?
I don't have a active test board at the moment. And just cleaned up my live forums so don't want to drop anything beta in them.
Is the error log flagging anything?

I manage to install it successfully but the function doesnt seems to work  :'(
Title: Re: Ignore User
Post by: ms_ukyankee on October 03, 2006, 11:42:18 AM
I'll test when I can, I'm struggling with my uninstall of the other release.  :-\
Title: Re: Ignore User
Post by: Vinspire on October 04, 2006, 03:46:03 AM
SMF 1.1 RC 3

Mod : v1.3 beta

There is an error in ./Themes/default/Display.template.php     Test failed when i installed this mod so i've manually install it on my display.template.php.

Everything is working fine but i could not see the ignore button on member profile like previously.

(http://img420.imageshack.us/img420/7803/ignore2fy.jpg)

Any idea of what i did wrongly ?
Title: Re: Ignore User
Post by: Rudolf on October 04, 2006, 04:14:17 AM
Are you using RC3?

There could be many reasons. Check the settings, if you're the administrator and it is not checked the relevant setting you won't see it.
Do you have anythig in the error log?
Title: Re: Ignore User
Post by: Vinspire on October 04, 2006, 04:29:48 AM
Quote from: Rudolf on October 04, 2006, 04:14:17 AM
Are you using RC3?

There could be many reasons. Check the settings, if you're the administrator and it is not checked the relevant setting you won't see it.
Do you have anythig in the error log?

Rudolf, this setting ?

(http://img88.imageshack.us/img88/2567/ignorewj5.png)
Title: Re: Ignore User
Post by: Rudolf on October 04, 2006, 04:31:14 AM
Exactly, those are the settings for the mod. The very first one blocks admins to use it. ;)
I mean allows it to use it. If it is not checked you won't see anything.
Title: Re: Ignore User
Post by: Vinspire on October 04, 2006, 04:45:20 AM
Quote from: Rudolf on October 04, 2006, 04:31:14 AM
Exactly, those are the settings for the mod. The very first one blocks admins to use it. ;)
I mean allows it to use it. If it is not checked you won't see anything.

I've checked all the box available on the list and the ignore box in members profile still doesn't appear  :D
Title: Re: Ignore User
Post by: Rudolf on October 04, 2006, 04:46:09 AM
Anythign in the error logs?
Can you give a link to the forum?
Title: Re: Ignore User
Post by: Vinspire on October 04, 2006, 04:53:48 AM
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
Title: Re: Ignore User
Post by: 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.
Title: Re: Ignore User
Post by: Vinspire on October 04, 2006, 05:24:30 AM
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
Title: Re: Ignore User
Post by: Rudolf on October 04, 2006, 05:27:07 AM
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'.
Title: Re: Ignore User
Post by: Chad on October 04, 2006, 02:44:08 PM
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?
Title: Re: Ignore User
Post by: Rudolf on October 04, 2006, 04:36:15 PM
There's already an existing feature in the SMF. You can use that one.
Title: Re: Ignore User
Post by: Vinspire on October 05, 2006, 03:00:45 AM
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 :)
Title: Re: Ignore User
Post by: geezmo on October 22, 2006, 09:45:20 PM
Is there an existing SMF feature that ignores all posts and not just the PMs of a poster?
Title: Re: Ignore User
Post by: geezmo on October 26, 2006, 01:27:14 PM
anyone?
Title: Re: Ignore User
Post by: ms_ukyankee on October 26, 2006, 02:05:59 PM
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.
Title: Re: Ignore User
Post by: unrelenting on October 28, 2006, 11:30:25 AM
Anyone know the code to change the "0 member" to "0 members"  and only say "member" when 1 member has them on ignore?
Title: Re: Ignore User
Post by: Rudolf on October 28, 2006, 02:11:12 PM
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.
Title: Re: Ignore User
Post by: unrelenting on November 05, 2006, 05:59:40 PM
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.  :-\
Title: Re: Ignore User
Post by: 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.
Title: Re: Ignore User
Post by: unrelenting on November 07, 2006, 09:52:11 PM
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.
Title: Re: Ignore User
Post by: Fatherguido on November 30, 2006, 03:29:58 PM
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;
Title: Re: Ignore User
Post by: Fatherguido on November 30, 2006, 06:45:12 PM
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
Title: Re: Ignore User
Post by: Fatherguido on November 30, 2006, 08:03:01 PM
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-
Title: Re: Ignore User
Post by: 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.  :(
Title: Re: Ignore User
Post by: unrelenting on December 05, 2006, 10:26:41 PM
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?
Title: Re: Ignore User
Post by: MYP on December 05, 2006, 10:59:47 PM
I have over 200 users and it's growing daily. If the person I have on ignore is being that much of a dickhead, I'm sure one of the 200+ will inform me.

Guess I should check the admin handbook for where says I MUST read everything some diphole writes, because I am the admin.  :D
Title: Re: Ignore User
Post by: MYP on December 05, 2006, 11:13:42 PM
Ah, read back a page and found the screen I'm looking for - never mind. :)
Title: Re: Ignore User
Post by: unrelenting on December 06, 2006, 11:17:27 PM
Quote from: MYP on December 05, 2006, 10:59:47 PM
I have over 200 users and it's growing daily. If the person I have on ignore is being that much of a dickhead, I'm sure one of the 200+ will inform me.

Guess I should check the admin handbook for where says I MUST read everything some diphole writes, because I am the admin.  :D


I was just yanking your chain.  8)

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.


Rudolf, did you ever get around to that?
Title: Re: Ignore User
Post by: Rudolf on December 06, 2006, 11:39:31 PM
Not really.
In my opinion it's too much trouble for nothing... but I never intended to use this as a replacement for karma. I just needed to ignore some folks on my forum  :)
I guess it could be used as a replacement for karma, so I'll think about adding it in the next release.
Just some question, in case I decide to include in the next version.
You want an option to turn the display on/off in the 'Display'? You want a central option for administrators who can turn on/off globally or the user can turn on/off for him/herself (like with the avatar and sig.)?
Title: Re: Ignore User
Post by: unrelenting on December 07, 2006, 07:22:28 AM
Quote from: Rudolf on December 06, 2006, 11:39:31 PM
Not really.
In my opinion it's too much trouble for nothing... but I never intended to use this as a replacement for karma. I just needed to ignore some folks on my forum  :)
I guess it could be used as a replacement for karma, so I'll think about adding it in the next release.
Just some question, in case I decide to include in the next version.
You want an option to turn the display on/off in the 'Display'? You want a central option for administrators who can turn on/off globally or the user can turn on/off for him/herself (like with the avatar and sig.)?

That'd be perfect.

Actually, I wasn't thinking of others as you do.  ;D

I was only thinking of myself and all I needed was the code to add it to my display.index.php. I can wait till you get around to it, though. You do good work for this community and I appreciate it.
Title: Re: Ignore User
Post by: unrelenting on December 17, 2006, 02:26:46 PM
Rudolf, would it be hard to have the user return to the post of the person that that chose to ignore rather than just the topic itself. If you are on the 12th page of a thread and ignore someone it reloads you to the first page.

I found this line in your code and thought maybe there was something I could change here that would allow this to happen.

//back to the topic
redirectexit(isset($_REQUEST['topic']) ? 'topic=' . $_REQUEST['topic'] . '.0':'');
Title: Re: Ignore User
Post by: Rudolf on December 17, 2006, 02:45:35 PM
In Display.template.php (the buttons)
Find:
if ($user_info['can_ignore'] && $message['can_be_ignored'] && !$message['is_ignored'])
echo '
        <br /><a href="', $scripturl, '?action=ignore;u=' , $message['member']['id'], ';topic=', $context['current_topic'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/ignore.gif" alt="' . $txt['ignore'] . '" border="0" />' : $txt['ignore']), '</a>';

Replace with:

if ($user_info['can_ignore'] && $message['can_be_ignored'] && !$message['is_ignored'])
echo '
        <br /><a href="', $scripturl, '?action=ignore;u=' , $message['member']['id'], ';topic=', $context['current_topic'], '.msg', $message['id'] ,'#msg',$message['id'],'">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/ignore.gif" alt="' . $txt['ignore'] . '" border="0" />' : $txt['ignore']), '</a>';


Find:
if ($user_info['can_ignore'] && $message['can_be_ignored'] && $message['is_ignored'])
echo '
<br /><a href="', $scripturl, '?action=unignore;u=' , $message['member']['id'], ';topic=', $context['current_topic'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/unignore.gif" alt="' . $txt['unignore'] . '" border="0" />' : $txt['unignore']), '</a>';

Replace with:
if ($user_info['can_ignore'] && $message['can_be_ignored'] && $message['is_ignored'])
echo '
<br /><a href="', $scripturl, '?action=unignore;u=' , $message['member']['id'], ';topic=', $context['current_topic'], '.msg', $message['id'] ,'#msg',$message['id'],'">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/unignore.gif" alt="' . $txt['unignore'] . '" border="0" />' : $txt['unignore']), '</a>';




In Ignore.php
Find (2 times):
//back to the topic
redirectexit(isset($_REQUEST['topic']) ? 'topic=' . $_REQUEST['topic'] . '.0':'');

Replace (2 times):

//back to the topic
redirectexit(isset($_REQUEST['topic']) ? "topic=$_REQUEST[topic].$_REQUEST[start]#$_REQUEST[start]" :'');




Thanks for finding this. I will include it in the next release. Though I'm not planning any now. If not, then when I'm updating for SMF 1.2 :D
Title: Re: Ignore User
Post by: unrelenting on December 17, 2006, 03:23:37 PM
Works like a charm, Rudolf.

Well done and thanks.
Title: Re: Ignore User
Post by: xtremecruiser on December 31, 2006, 05:48:32 PM
With SMF 1.1.1  Final I get
15.     Execute Modification     ./Themes/default/Display.template.php     Test failed

I will look later and see what it is looking for.
Title: Re: Ignore User
Post by: JamesWC on December 31, 2006, 06:16:27 PM
In the package, themes.xml contains the following operation:

Quote<operation>
         <search position="before"><![CDATA[
      //-Ignore MOD- Start
      if ($message['is_ignored'] && $message['can_be_ignored'])
      echo '
               <tr>
                  <td valign="bottom" class="smalltext" width="85%" style="display: none;" id="ignfooter', $message['counter']+1 , '" >
                     <table width="100%" border="0" style="table-layout: fixed;"><tr>
                        <td colspan="2" class="smalltext" width="100%">';
      else
      //-Ignore MOD- End
]]></add>
      </operation>
There's something missing here, isn't there? Where should the code be added? :o
Title: Re: Ignore User
Post by: Rudolf on December 31, 2006, 06:29:17 PM
This is in the themes.xml file
<operation>
<search position="before"><![CDATA[ // Now for the attachments, signature, ip logged, etc...]]></search>
<add><![CDATA[
//-Ignore MOD- Start
if ($message['is_ignored'] && $message['can_be_ignored'])
echo '
<tr>
<td valign="bottom" class="smalltext" width="85%" style="display: none;" id="ignfooter', $message['counter']+1 , '" >
<table width="100%" border="0" style="table-layout: fixed;"><tr>
<td colspan="2" class="smalltext" width="100%">';
else
//-Ignore MOD- End
]]></add>
</operation>

If you downloaded the mod from this site, then you should have this. If you downloaded from somewhere else, then I would like to know from where.
Title: Re: Ignore User
Post by: Rudolf on December 31, 2006, 06:31:36 PM
Quote from: xtremecruiser on December 31, 2006, 05:48:32 PM
With SMF 1.1.1  Final I get
15.     Execute Modification     ./Themes/default/Display.template.php     Test failed

I will look later and see what it is looking for.

It installs fine on 1.1.1. Probably some other mod or change you did conflicting.
Title: Re: Ignore User
Post by: JamesWC on December 31, 2006, 06:34:51 PM
Opening themes.xml a second time, it does indeed have the full code. I swear it didn't earlier - I shall blame Wordpad. Yes, that's what I'll do. Thanks. :)
Title: Re: Ignore User
Post by: JamesWC on December 31, 2006, 06:37:09 PM
Actually, here's where the confusion came from. It has part of the code included twice:

Quote from: themes.xml<operation>
         <search position="before"><![CDATA[      // Now for the attachments, signature, ip logged, etc...]]></search>
         <add><![CDATA[
      //-Ignore MOD- Start
      if ($message['is_ignored'] && $message['can_be_ignored'])
      echo '
               <tr>
                  <td valign="bottom" class="smalltext" width="85%" style="display: none;" id="ignfooter', $message['counter']+1 , '" >
                     <table width="100%" border="0" style="table-layout: fixed;"><tr>
                        <td colspan="2" class="smalltext" width="100%">';
      else
      //-Ignore MOD- End
]]></add>
      </operation>

      <operation>
         <search position="before"><![CDATA[
      //-Ignore MOD- Start
      if ($message['is_ignored'] && $message['can_be_ignored'])
      echo '
               <tr>
                  <td valign="bottom" class="smalltext" width="85%" style="display: none;" id="ignfooter', $message['counter']+1 , '" >
                     <table width="100%" border="0" style="table-layout: fixed;"><tr>
                        <td colspan="2" class="smalltext" width="100%">';
      else
      //-Ignore MOD- End
]]></add>
      </operation>

It was downloaded from this site.
Title: Re: Ignore User
Post by: Rudolf on December 31, 2006, 06:43:18 PM
Lol, that's weird.
Thanks for find it. I updated the file on the mod page, but you can simply remove that second part, and install the mod.
Title: Re: Ignore User
Post by: tapirul on January 01, 2007, 06:01:15 PM
Hi Rudolf,

Where can I actually download the mod (latest version)? it doesn't appear anymore on the first page or in the Mods section.
Thanks
Title: Re: Ignore User
Post by: Skipdawg on January 01, 2007, 07:45:12 PM
Quote from: tapirul on January 01, 2007, 06:01:15 PM
Hi Rudolfs,

Where can I actually download the mod (latest version)? it doesnt appear anymor on the first page or in the Mods section.
Thanks

It is right here http://custom.simplemachines.org/mods/index.php?mod=185 may just be getting updated now.
Title: Re: Ignore User
Post by: tapirul on January 01, 2007, 08:34:56 PM
yep, could be, because what I see is this:
(http://img.photobucket.com/albums/v505/tapirul/th_ignore.jpg) (http://img.photobucket.com/albums/v505/tapirul/ignore.jpg)
Title: Re: Ignore User
Post by: Rudolf on January 01, 2007, 08:54:25 PM
I updated the file, so you might have to wait to get it approved.
Check the first post, I added an alternative link.
Title: Re: Ignore User
Post by: canuckguy on January 02, 2007, 09:02:11 PM
thanks for the alternate link bro!
Title: Re: Ignore User
Post by: canuckguy on January 02, 2007, 09:06:41 PM
I got these errors, should I just make a backup copy of these 2 files, apply the mod with errors, then manually paste the 2 manually modded files on top of the bugged ones?

8.     Execute Modification     ./Sources/Profile.php     Test failed

5.     Execute Modification     ./Themes/default/Display.template.php     Test failed


Im using the RC3 version of the board but I have PILES of packages installed.

http://www.trailerparkboys.info/thepark
Title: Re: Ignore User
Post by: PopsicleStickChick on January 03, 2007, 12:01:24 PM
I'm having trouble installing this mod since moving to 1.1.1.

Error message:
Execute Modification     ./Sources/Profile.php     Test failed

Tried removing all files and reinstalling, same error.  Our users really want this back.  Any ideas?
Title: Re: Ignore User
Post by: tapirul on January 03, 2007, 04:12:30 PM
same here - can't do the modifications in profile.php (all files were chmoded to be writable, btw)
I am using 1.1.1, and a number of mods installed:

1.     TinyPortal      0.97   
2.    User Email System    1.1.3    
3.    SMF Radio    1.0    
4.    SMF Links    1.6.3    
5.    Karma Description Mod    2.2
6.    SMF Shoutbox    1.16
7.    SMF Shoutbox    1.20b1    
8.    Users Online Today Mod    1.4.0    
9.    Googlebot & Spiders Mod    2.0.2    
10.    cbi, 1.0    1.0    
11.    Member posts recount    0.5    
12.    Mod List Color Alternate    1.0    
13.    Global Announcements    1.0    
14.    SMF 1.1.1 Update Package    
15.    Global Headers Footers    1.3    
Title: Re: Ignore User
Post by: Rudolf on January 03, 2007, 09:36:11 PM
It installs fine on unmodified 1.1.1.
All I can say is to install the mod regardless of the eror and then manually apply the changes in the Profile.php
Title: Re: Ignore User
Post by: jrstark on January 04, 2007, 05:01:22 PM
Quote from: Rudolf on January 03, 2007, 09:36:11 PM
It installs fine on unmodified 1.1.1.
All I can say is to install the mod regardless of the eror and then manually apply the changes in the Profile.php

I did not uninstall 1.2 before upgrading 1.0.10 to 1.1.1, but it was not installed when I checked the package manager afterwards.  When I tried to install it it showed errors so I didn't.

Came here and found 1.3, so installed that.  It looks like it installed, and when I view profiles it shows how many members are being ignored.  The ignore options are in my admin section.

However, the buttons for ignore/unignore etc. are not showing in posts.  Do I need to install the buttons separately?
Title: Re: Ignore User
Post by: Rudolf on January 04, 2007, 05:12:25 PM
If you are using a different theme, or different language then yes.
Check the readme.html file in the package.
Also check the forum error log to make sure you don't have any errors.
Title: Re: Ignore User
Post by: jrstark on January 04, 2007, 06:05:15 PM
I don't see any errors for this.  I'm using English, I copied the default theme and just changed the colors.    Version 1.2 had worked fine up until I upgraded SMF to 1.1.1, had installed that through the package manager.
Title: Re: Ignore User
Post by: Rudolf on January 04, 2007, 06:12:36 PM
Re-install the mod.
If it still doesn't shows check the source code of the page to see if the buttons are actually included.
Maybe the image paths are wrong.
Title: Re: Ignore User
Post by: jrstark on January 04, 2007, 06:32:11 PM
Checked the source code before and after, no images.

Uninstall went fine, no errors.  Install went fine, no errors.  But now when I view a profile I get:
Fatal error: Cannot redeclare ignprefs() (previously declared in /.../smf/Sources/Profile.php:2921) in /.../smf/Sources/Profile.php on line 3001

The only error messages showing are from guests trying to log in.

Uninstalled again, everything seemed to go fine, and now when I click on profile I get this:
Fatal error: Cannot redeclare ignprefs() (previously declared in /.../smf/Sources/Profile.php:2881) in /.../smf/Sources/Profile.php on line 2961

Should I try to copy Profile.php over again?

Title: Re: Ignore User
Post by: jrstark on January 04, 2007, 11:29:45 PM
OK, they told me how to fix profile.php on the install forum.  After that was cleaned up, I tried again.  Still no buttons.

One thing I noticed is that all the other gifs in ./Themes/default/images/english/ have permissions rw-r-r but these four have rw-rw-rw.  Could that be throwing things off?

Which file inserts the buttons?
Title: Re: Ignore User
Post by: Rudolf on January 05, 2007, 12:36:20 AM
Display.template.php
Can you give me a link to your forum?

And make sure that the images are in your copied theme too.
Title: Re: Ignore User
Post by: Rudolf on January 05, 2007, 12:53:06 AM
The easiest thing would be to duplicate the default theme, and reapply your modifications. Since the Display.template.php is not modified, you should be fine.
Please check if the buttons are visible in the default theme? To make sure that the Display.template.php was modified?
Another thingy, the new versions have extra settings. You have to enable the feature for administrators, because default is off. Go to Admin -> Features and Settings and find "Allow administrators and moderators to ignore other users"
Try a normal user if you can see them.
Title: Re: Ignore User
Post by: Nuked on January 14, 2007, 12:24:00 AM
I'm getting this same thing, where the buttons will not show up in either default theme or my secondary theme.  I've manually installed this and have checked and rechecked to make sure everything is actually there.  I have yet to find anything wrong, except the obvious fact the buttons are missing.  It is also not ignoring posts even if I manually go in and add the uid to ignore field of the members table.
Title: Re: Ignore User
Post by: Rudolf on January 14, 2007, 03:08:23 AM
Admin -> Features and Settings
Make sure that you can ignore and the person you tried to ignore can be ignored.
In the majority of the cases where the buttons don't show up but everything is ok, the reason is the settings.
Title: Re: Ignore User
Post by: Nuked on January 14, 2007, 09:52:26 AM
I was using a test user that was a regular member and attempting to ignore another regular member.

These settings only change whether administrators and moderators are able to ignore/be ignored

Either way, even with those two checkboxes checked to allow, the buttons still do not show up.
Title: Re: Ignore User
Post by: Nuked on January 14, 2007, 11:04:20 AM
also, yes the images are actually in the theme\images\english\ folder.
Title: Re: Ignore User
Post by: Nuked on January 16, 2007, 08:13:01 PM
Still no suggestions?
Title: Re: Ignore User
Post by: Rudolf on January 17, 2007, 02:32:09 PM
Anything in the error logs?
Maybe you could give the link to the forum.
Title: Re: Ignore User
Post by: Nuked on January 18, 2007, 09:06:50 PM
fixed:  display.php was throwing errors.
Title: Re: Ignore User
Post by: PopsicleStickChick on January 22, 2007, 03:45:22 PM
I keep getting this error message:

8: Undefined index: ignored_by_num
File: /home/servername/public_html/forums/Themes/default/languages/Who.english.php (eval?)
Line: 278

Any ideas?  Thanks!
Title: Re: Ignore User
Post by: Rudolf on January 22, 2007, 04:22:39 PM
This must be one of the cases when SMF reports badly the error.
My mod doesn't even modifies the Who.template.php.
Title: Re: Ignore User
Post by: PopsicleStickChick on January 22, 2007, 05:16:47 PM
Ok, thanks, I will look elsewhere for the culprit.
Title: Re: Ignore User
Post by: unrelenting on January 26, 2007, 07:00:57 AM
Is there a 40 user limit for ignoring, meaning after you add 40 people to your ignore list you can't add anymore?

I've had a member ask me that a few weeks ago and I thought nothing of it. He said he has to remove someone before he can add other.

Then today another said the same thing. I counted the people on his ignore list and it is 40.

If so, is there a way I can bump that up?
Title: Re: Ignore User
Post by: Rudolf on January 26, 2007, 08:37:12 AM
The only limit is the field's length in the database.
The previous versions were text fields which allowed a bunch of characters to hold. Rough estimate of thousands of users to ignore.
When I rewrote the thing (for 1.3) I changed it to TINYTEXT, following the pm_ignore_list field.

Execute the following query in phpMyAdmin (or any other sql client)
Code (SQL) Select

ALTER TABLE `{$db_prefix}members` CHANGE `ign_ignore_list` `ign_ignore_list` TEXT

replace {$db_prefix} with the prefix of your tables.

The next release of the package will have the field type enlarged.
Title: Re: Ignore User
Post by: unrelenting on January 26, 2007, 09:50:37 PM
Quote from: Rudolf on January 26, 2007, 08:37:12 AM
The only limit is the field's length in the database.
The previous versions were text fields which allowed a bunch of characters to hold. Rough estimate of thousands of users to ignore.
When I rewrote the thing (for 1.3) I changed it to TINYTEXT, following the pm_ignore_list field.

Execute the following query in phpMyAdmin (or any other sql client)
Code (SQL) Select

ALTER TABLE `{$db_prefix}members` CHANGE `ign_ignore_list` `ign_ignore_list` TEXT

replace {$db_prefix} with the prefix of your tables.

The next release of the package will have the field type enlarged.

Thanks.
Title: Re: Ignore User
Post by: peta-sucks.com on January 30, 2007, 07:50:06 PM
I installed it on 1.1 and got an error on the test install on ./Sources/Profile.php
Title: Re: Ignore User
Post by: JustJen on February 02, 2007, 05:52:26 PM
The mod passed all tests, but I have this:

//-Ignore MOD- START $txt['user_ignored'] = 'User ignored'; $txt['ignprefs'] = 'Ignore users settings'; $txt['ignore'] = 'Ignore'; $txt['unignore'] = 'Unignore'; $txt['show_hide'] = 'Show/Hide'; $txt['ignore_show'] = 'Show'; $txt['ignore_hide'] = 'Hide'; $txt['ignore_message'] = 'This user is currently ignored.'; //-Ignore MOD- END at the top of every page. Help?  
Title: Re: Ignore User
Post by: Rudolf on February 03, 2007, 07:00:31 AM
Open up the index.english.php file and check if you have something after the final "?>" line. If you have move it before.
Title: Re: Ignore User
Post by: JustJen on February 03, 2007, 11:10:21 AM
Thanks!
Title: Re: Ignore User
Post by: Sapphire_H on February 03, 2007, 04:13:20 PM
Is there a way of editing this mod so that the "Ignored by: (#of users)" is no longer displayed?  My members do not want to know how many people are ignoring them.
Title: Re: Ignore User
Post by: Snape on February 04, 2007, 11:31:50 AM
Quote from: Sapphire_H on February 03, 2007, 04:13:20 PM
Is there a way of editing this mod so that the "Ignored by: (#of users)" is no longer displayed?  My members do not want to know how many people are ignoring them.
Admin- Features and Options- 'Show 'ignored by' list to normal members' (halfway down the page)
Title: Re: Ignore User
Post by: bollywhat on February 04, 2007, 08:35:44 PM
The buttons display in default, but not in tge babylon theme (despite copying the images over to babylon/images/english folder) -- however, the feature is working anyway, via the profile. 

More worrisome is that it's throwing up this error in the error logs:

8: Undefined index: ignore
File: /home/bollywha/public_html/Themes/babylon/Display.template.php (eval?)
Line: 390 

Any idea what the error could be?  The bolded part would be the code it's complaining about:

Quote//-Ignore MOD- Start
         if ($message['is_ignored'] && $message['can_be_ignored']) echo '</div>';
         echo '<br />';

         //The ignore/unignore buttons - separated so you can move the Ignore button around the poster info section freely. The unignore buttons should always stay where it is, below all the info. Or else it could get hidden.
         if ($user_info['can_ignore'] && $message['can_be_ignored'] && !$message['is_ignored'])
               echo '
                    <br /><a href="', $scripturl, '?action=ignore;u=' , $message['member']['id'], ';topic=', $context['current_topic'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/ignore.gif" alt="' . $txt['ignore'] . '" border="0" />' : $txt['ignore']), '</a>';

         //The unignore button
         if ($user_info['can_ignore'] && $message['can_be_ignored'] && $message['is_ignored'])
               echo '
                  <br /><a href="', $scripturl, '?action=unignore;u=' , $message['member']['id'], ';topic=', $context['current_topic'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/unignore.gif" alt="' . $txt['unignore'] . '" border="0" />' : $txt['unignore']), '</a>';
         //-Ignore MOD- End

Help!
Title: Re: Ignore User
Post by: Sapphire_H on February 04, 2007, 09:29:14 PM
Quote from: Snape on February 04, 2007, 11:31:50 AM
Quote from: Sapphire_H on February 03, 2007, 04:13:20 PM
Is there a way of editing this mod so that the "Ignored by: (#of users)" is no longer displayed?  My members do not want to know how many people are ignoring them.
Admin- Features and Options- 'Show 'ignored by' list to normal members' (halfway down the page)

Thanks for responding.  Unfortunately, that only eliminates the list of names, it still shows the number of people who are ignoring them.  We don't want that showing either.

Title: Re: Ignore User
Post by: JustJen on February 04, 2007, 10:12:04 PM
Quote from: Sapphire_H on February 03, 2007, 04:13:20 PM
Is there a way of editing this mod so that the "Ignored by: (#of users)" is no longer displayed?  My members do not want to know how many people are ignoring them.

I went into themes>default>profile.template.php and removed this:

<//-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

Title: Re: Ignore User
Post by: Rudolf on February 05, 2007, 03:11:53 AM
Quote from: bollywhat on February 04, 2007, 08:35:44 PM

Any idea what the error could be?  The bolded part would be the code it's complaining about:

Quote//-Ignore MOD- Start
         if ($message['is_ignored'] && $message['can_be_ignored']) echo '</div>';
         echo '<br />';

         //The ignore/unignore buttons - separated so you can move the Ignore button around the poster info section freely. The unignore buttons should always stay where it is, below all the info. Or else it could get hidden.
         if ($user_info['can_ignore'] && $message['can_be_ignored'] && !$message['is_ignored'])
               echo '
                    <br /><a href="', $scripturl, '?action=ignore;u=' , $message['member']['id'], ';topic=', $context['current_topic'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/ignore.gif" alt="' . $txt['ignore'] . '" border="0" />' : $txt['ignore']), '</a>';

         //The unignore button
         if ($user_info['can_ignore'] && $message['can_be_ignored'] && $message['is_ignored'])
               echo '
                  <br /><a href="', $scripturl, '?action=unignore;u=' , $message['member']['id'], ';topic=', $context['current_topic'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/unignore.gif" alt="' . $txt['unignore'] . '" border="0" />' : $txt['unignore']), '</a>';
         //-Ignore MOD- End

That part can't be the one that creates the error. Not always.
Open the index.english.php file in your theme, and make sure that you have this in it:

//-Ignore MOD- START
$txt['user_ignored'] = 'User ignored';
$txt['ignprefs'] = 'Ignore users settings';
$txt['ignore'] = 'Ignore';
$txt['unignore'] = 'Unignore';
$txt['show_hide'] = 'Show/Hide';
$txt['ignore_show'] = 'Show';
$txt['ignore_hide'] = 'Hide';
$txt['ignore_message'] = 'This user is currently ignored.';
//-Ignore MOD- END
Title: Re: Ignore User
Post by: bollywhat on February 05, 2007, 07:18:52 AM
Hmm, nope, looks like package manager left my index file alone! 

Thanks so much, Rudolf!  Changing the index.english.php file helped.

Now, I'm left only with the issue of no ignore/unignore buttons displaying on the Babylon theme.  Did anyone else ever figure that out?
Title: Re: Ignore User
Post by: Snape on February 05, 2007, 08:49:49 AM
Quote from: bollywhat on February 05, 2007, 07:18:52 AM
Hmm, nope, looks like package manager left my index file alone!&nbsp;

Thanks so much, Rudolf!&nbsp; Changing the index.english.php file helped.

Now, I'm left only with the issue of no ignore/unignore buttons displaying on the Babylon theme.&nbsp; Did anyone else ever figure that out?

Have you copied the four ignore button graphics files (ign*.gif, unignore.gif) from /Themes/default/images/english to /Themes/babylon/images/english?  This needs to be repeated for any other themes you have installed as well.
Title: Re: Ignore User
Post by: bollywhat on February 05, 2007, 06:24:04 PM
Oh, I'm a dope -- I had them in there, in psd format!  Copied in the gifs and it's all working.

Out of curiosity, why does it take so many refreshes for the "ignore" and "unignore" commands to take effect?  Sometimes it takes up to a couple of minutes before either starts working.  Is that a server thing, or...?

(Thanks for this mod, by the way; it's a great add-on and much appreciated!)
Title: Re: Ignore User
Post by: Snape on February 05, 2007, 10:00:03 PM
Quote from: bollywhat on February 05, 2007, 06:24:04 PM
Oh, I'm a dope -- I had them in there, in psd format!  Copied in the gifs and it's all working.

Out of curiosity, why does it take so many refreshes for the "ignore" and "unignore" commands to take effect?  Sometimes it takes up to a couple of minutes before either starts working.  Is that a server thing, or...?

(Thanks for this mod, by the way; it's a great add-on and much appreciated!)
It's a browser cache thing.  If you completely logout, close your browser, reopen it and relogin, they should display fine from that point forward.
Title: Re: Ignore User
Post by: Sapphire_H on February 06, 2007, 04:35:36 AM
JustJen, thanks for the tip - worked perfectly!  :)
Title: Re: Ignore User
Post by: MiNiBuDa on February 08, 2007, 04:26:44 PM
Are there this mod in spanish ?
Title: Re: Ignore User
Post by: Stüldt Håjt on February 09, 2007, 06:02:45 AM
I have few questions.

As you are saying in the first post you will not continue to submit new versions to simplemachines website, so I should not install this mod because in the future when new smf versions come out I cannot easily find the latest version of this mod, right?

And is it possible to replace images with text?

Title: Re: Ignore User
Post by: Rudolf on February 09, 2007, 06:22:11 AM
Which first post? Ahh, that one?
Well things are changed.
I'm working on a place of my own to have a centralized management of my mods. It just makes my work easier.
Nevertheless I'll keep the mods updated on the SMF site too. The only difference will be that probably I will focus more attention on my own forum then here. I won't discontinue completely the support here, nor do I want to compete with this place. I just feel that as my mods (and tweaks) are growing in number a place where I can have them all together and maybe to provide support for them would be easier for me to handle.
Title: Re: Ignore User
Post by: Rudolf on February 09, 2007, 06:27:49 AM
Quote from: Stüldt Håjt on February 09, 2007, 06:02:45 AM
And is it possible to replace images with text?

Yes. If your theme is set to don't use images then it will use the text "Ignore" And "Unignore". If you have a normal theme, but still want to have only text then you'll have to modify the links.
It depends which images you want to change.
Title: Re: Ignore User
Post by: Stüldt Håjt on February 09, 2007, 07:34:00 AM
Thanks for the replies. Now I can safely install this mod.
Title: Re: Ignore User
Post by: URPG on February 13, 2007, 06:12:24 AM
does it run on 1.1.2?
Title: Re: Ignore User
Post by: JustJen on February 13, 2007, 10:53:44 AM
Quote from: URPG on February 13, 2007, 06:12:24 AM
does it run on 1.1.2?

It does.
Title: Re: Ignore User
Post by: URPG on February 13, 2007, 01:00:31 PM
Thanks. I guessed so, but wanted to make sure, to prevent annoying downtime...
Title: Re: Ignore User
Post by: look up on February 16, 2007, 11:53:38 AM
i installed this feature a while back.  was using 1.1.1, just upgraded to 1.1.2.

i had never used it, so today i set up a dummy account to see how it worked.  i put 5 members on the ignore list and i can still see those members' posts.  not sure whether it worked for me when i was using 1.1.1.

what should i do?
Title: Re: Ignore User
Post by: look up on February 16, 2007, 12:54:24 PM
Quote from: look up on February 16, 2007, 11:53:38 AM
i installed this feature a while back.  was using 1.1.1, just upgraded to 1.1.2.

i had never used it, so today i set up a dummy account to see how it worked.  i put 5 members on the ignore list and i can still see those members' posts.  not sure whether it worked for me when i was using 1.1.1.

what should i do?

okay...scratch that.  it does work, but only on the smf default theme.  i use the Musiconica theme.  what can i do to make it work on the Musiconica theme??

i have copied the 4 gif files to the themes/musiconica/images/english folder.  still nothing.
Title: Re: Ignore User
Post by: Snape on February 16, 2007, 11:47:02 PM
Quote from: look up on February 16, 2007, 12:54:24 PM
Quote from: look up on February 16, 2007, 11:53:38 AM
i installed this feature a while back.  was using 1.1.1, just upgraded to 1.1.2.

i had never used it, so today i set up a dummy account to see how it worked.  i put 5 members on the ignore list and i can still see those members' posts.  not sure whether it worked for me when i was using 1.1.1.

what should i do?

okay...scratch that.  it does work, but only on the smf default theme.  i use the Musiconica theme.  what can i do to make it work on the Musiconica theme??

i have copied the 4 gif files to the themes/musiconica/images/english folder.  still nothing.
Apply the changes in the .xml file included in the zip file to the Themes/Musiconica/*.template.php files (Display.template.php, etc.).

Another tool that can help you with modifying the templates is the package parser site: http://server.daniel15.com/smf/package.php

Basically, only the template files in Themes/Musiconica need to be modified- if a template file is referenced in the .xml file that isn't in that folder, you can skip that set of changes.
Title: Re: Ignore User
Post by: Rudolf on February 17, 2007, 01:30:35 AM
You only need to apply changes in the themes.xml. It's made on purpose.
Title: Re: Ignore User
Post by: babjusi on February 17, 2007, 01:31:47 AM
That''s a very handy mod
Title: Re: Ignore User
Post by: NativePages on February 18, 2007, 05:06:51 PM
I'm not sure what's up with mine. I have the mod installed. It shows a greenlight, uninstall, list files, and delete in the package manager (it's #5 in a list of 16 mods), and the images are definitely in the relevant theme folders. They're not showing up, though. I tried to uninstall the mod and got a warning that the test failed for display.template.php. Could I be missing some coding somewhere?

Ooops, sorry ... SMF 1.1.2, and the ignore user options in the profile settings ARE showing up.  ::)

I did check the display.template.php file, and there is a section of code specific to the ignore user function. I don't know where else to look. Ideas anyone??
Title: Re: Ignore User
Post by: NativePages on February 21, 2007, 08:48:48 AM
Hey, guys, I REALLY need the ignore button to appear on the posts. This is for a community with a lot of internal strife/politics/personality clashes. Is there anyone that can help me troubleshoot this? Again, I'm running 1.1.2. The mod appeared to have a clean install. The display.template file lists coding for the mod (I think - see below). The ignore list functions appear in the profile. The buttons are installed in every image file I could find just to make sure they could be called. The buttons do NOT show up on the posts.


         //-Ignore MOD- Start
         if ($message['is_ignored'] && $message['can_be_ignored']) echo '</div>';
         echo '<br />';

         //The ignore/unignore buttons - separated so you can move the Ignore button around the poster info section freely. The unignore buttons should always stay where it is, below all the info. Or else it could get hidden.
         if ($user_info['can_ignore'] && $message['can_be_ignored'] && !$message['is_ignored'])
               echo '
                    <br /><a href="', $scripturl, '?action=ignore;u=' , $message['member']['id'], ';topic=', $context['current_topic'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/ignore.gif" alt="' . $txt['ignore'] . '" border="0" />' : $txt['ignore']), '</a>';

         //The unignore button
         if ($user_info['can_ignore'] && $message['can_be_ignored'] && $message['is_ignored'])
               echo '
                  <br /><a href="', $scripturl, '?action=unignore;u=' , $message['member']['id'], ';topic=', $context['current_topic'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/unignore.gif" alt="' . $txt['unignore'] . '" border="0" />' : $txt['unignore']), '</a>';
         //-Ignore MOD- End

      // Done with the information about the poster... on to the post itself.
      echo '
                     </div>
                  </td>
                  <td valign="top" width="85%" height="100%">
                     <table width="100%" border="0"><tr>
                        <td valign="middle"><a href="', $message['href'], '"><img src="', $message['icon_url'] . '" alt="" border="0" /></a></td>
                        <td valign="middle">
                           <div style="font-weight: bold;" id="subject_', $message['id'], '">
                              <a href="', $message['href'], '">', $message['subject'], '</a>
                           </div>';

      // If this is the first post, (#0) just say when it was posted - otherwise give the reply #.
      echo '
                           <div class="smalltext">« <b>', !($message['id'] == $context['topic_first_message']) ? $txt[146] . ' #' . $message['counter'] : '', ' ', $txt[30], ':</b> ', $message['time'], ' »</div></td>
                        <td align="', !$context['right_to_left'] ? 'right' : 'left', '" valign="bottom" height="20" style="font-size: smaller;">';

      //-Ignore MOD- START buttons div
      if ($message['is_ignored'] && $message['can_be_ignored'])
      echo '<div id="ignmsgbttns', $message['counter']+1 , '" style="visibility: hidden;">';
      else echo '<div id="ignmsgbttns' , $message['counter']+1 , '" style="visibility: visible;">';
      //-Ignore MOD- END

      // Can they reply? Have they turned on quick reply?
      if ($context['can_reply'] && !empty($options['display_quick_reply']))
         echo '
               <a href="', $scripturl, '?action=post;quote=', $message['id'], ';topic=', $context['current_topic'], '.', $context['start'], ';num_replies=', $context['num_replies'], ';sesc=', $context['session_id'], '" onclick="doQuote(', $message['id'], ', \'', $context['session_id'], '\'); return false;">', $reply_button, '</a>';

      // So... quick reply is off, but they *can* reply?
      elseif ($context['can_reply'])
         echo '
               <a href="', $scripturl, '?action=post;quote=', $message['id'], ';topic=', $context['current_topic'], '.', $context['start'], ';num_replies=', $context['num_replies'], ';sesc=', $context['session_id'], '">', $reply_button, '</a>';

      //Doublepost for Merge?
      if ($message['can_modify'] && $message['doublepost']['postok'] && !empty($message['doublepost']['lastpostid']))
         echo '
                           <a href="', $scripturl, '?action=mergeposts;pid=', $message['id'], ';msnid=', $message['doublepost']['lastpostid'], ';topic=', $context['current_topic'], '">', $MergePosts_button, '</a>';
      // Can the user modify the contents of this post?
      if ($message['can_modify'])
         echo '
               <a href="', $scripturl, '?action=post;msg=', $message['id'], ';topic=', $context['current_topic'], '.', $context['start'], ';sesc=', $context['session_id'], '">', $modify_button, '</a>';

      // How about... even... remove it entirely?!
      if ($message['can_remove'])
         echo '
               <a href="', $scripturl, '?action=deletemsg;topic=', $context['current_topic'], '.', $context['start'], ';msg=', $message['id'], ';sesc=', $context['session_id'], '" onclick="return confirm(\'', $txt[154], '?\');">', $remove_button, '</a>';

      // What about splitting it off the rest of the topic?
      if ($context['can_split'])
         echo '
               <a href="', $scripturl, '?action=splittopics;topic=', $context['current_topic'], '.0;at=', $message['id'], '">', $split_button, '</a>';

      // Show a checkbox for quick moderation?
      if (!empty($options['display_quick_mod']) && $options['display_quick_mod'] == 1 && $message['can_remove'])
         echo '
                           <input type="checkbox" name="msgs[]" value="', $message['id'], '" class="check" ', empty($settings['use_tabs']) ? 'onclick="document.getElementById(\'quickmodSubmit\').style.display = \'\';"' : '', ' />';

    echo '
       </div>';  //-Ignore MOD- button's div closing tag

    //-Ignore MOD- START
     if ($message['is_ignored'] && $message['can_be_ignored'])
    echo '
       <a href="#" onclick="showhide(' , $message['counter']+1 , '); return false;">' . ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/ignshow.gif" alt="' . $txt['ignore_show'] . '" border="0" id="showhide' . ($message['counter']+1) . '" />' : $txt['show_hide']) . '</a>';
      if ($message['is_ignored'] && $message['can_be_ignored'])
         echo '
                        </td>
                     </tr></table>
                     <hr width="100%" size="1" class="hrcolor" />
                     <div class="post" style="overflow: auto; width: 100%;" id="ignoremessage' ,$message['counter']+1, '">' . $txt['ignore_message'] .'</div>
                     <div class="post" style="overflow: auto; width: 100%; display: none;" id="message' ,$message['counter']+1, '">', $message['body'], '</div>
                  </td>
               </tr>';
         else
     //-Ignore MOD- END

      // Show the post itself, finally!
      echo '
                        </td>
                     </tr></table>
                     <hr width="100%" size="1" class="hrcolor" />
                     <div class="post"', $message['can_modify'] ? ' id="msg_' . $message['id'] . '"' : '', '>', $message['body'], '</div>', $message['can_modify'] ? '
                     <img src="' . $settings['images_url'] . '/icons/modify_inline.gif" alt="" align="right" id="modify_button_' . $message['id'] . '" style="cursor: pointer; display: none;" onclick="modify_msg(\'' . $message['id'] . '\', \'' . $context['session_id'] . '\')" />' : '' , '
                  </td>
               </tr>';

      // Now for the attachments, signature, ip logged, etc...
      //-Ignore MOD- Start
      if ($message['is_ignored'] && $message['can_be_ignored'])
      echo '
               <tr>
                  <td valign="bottom" class="smalltext" width="85%" style="display: none;" id="ignfooter', $message['counter']+1 , '" >
                     <table width="100%" border="0" style="table-layout: fixed;"><tr>
                        <td colspan="2" class="smalltext" width="100%">';
      else
      //-Ignore MOD- End
Title: Re: Ignore User
Post by: Rudolf on February 21, 2007, 08:53:26 AM
It seems ok. It must be something with the settings. Have you checked if Administrators are allowed to use this function?
It doesn't shows for everyone or only you?
Maybe give a link to your forum.

And please correct your post, it's too freaking long.
Title: Re: Ignore User
Post by: NativePages on February 21, 2007, 09:22:28 AM
Administrators are NOT allowed, but if I log out as Admin and log back in as a regular user (basic member group), there are still no buttons showing.

http://www.nativepages.com/tnindian

Title: Re: Ignore User
Post by: dan27 on February 21, 2007, 03:53:34 PM
Hi Rudolf, thank you for a very handy mod. I'm surprised that SM doesn't include this in their main package!

I have installed this on my forum, it works on three of the four custom themes (including Core). However our forum default is using "AA New Damage", and on that theme under the post title, where it would normally say "« Reply Post Number/Date/Time » it says "�  on: Post Number/Date/Time �"

Any ideas as to why this is happening?

Cheers for any thoughts

Dan
Title: Re: Ignore User
Post by: look up on February 23, 2007, 09:26:41 AM
Quote from: Snape on February 16, 2007, 11:47:02 PM
Quote from: look up on February 16, 2007, 12:54:24 PM
Quote from: look up on February 16, 2007, 11:53:38 AM
i installed this feature a while back.  was using 1.1.1, just upgraded to 1.1.2.

i had never used it, so today i set up a dummy account to see how it worked.  i put 5 members on the ignore list and i can still see those members' posts.  not sure whether it worked for me when i was using 1.1.1.

what should i do?

okay...scratch that.  it does work, but only on the smf default theme.  i use the Musiconica theme.  what can i do to make it work on the Musiconica theme??

i have copied the 4 gif files to the themes/musiconica/images/english folder.  still nothing.
Apply the changes in the .xml file included in the zip file to the Themes/Musiconica/*.template.php files (Display.template.php, etc.).

Another tool that can help you with modifying the templates is the package parser site: http://server.daniel15.com/smf/package.php

Basically, only the template files in Themes/Musiconica need to be modified- if a template file is referenced in the .xml file that isn't in that folder, you can skip that set of changes.

i'm not too techy myself, so i'm not sure what all you said, BUT...i went into the smf default theme's Display.template.php file and found everywhere the ignore mod was referenced, put it in the same place in my musiconica Display.template.php file...and it worked!

thanks!  i know my members will appreciate this.
Title: Re: Ignore User
Post by: NativePages on March 04, 2007, 09:36:04 PM
Rudolf (or anyone), I still don't have the ignore buttons coming up on the posts. I tried to uninstall the mod, thinking that downloading and installing a clean copy might fix the problem, but I'm getting two test failure warnings on the uninstall (profile and display.template) SOOOO ... I was thinking I could ftp into my site and manually delete the package. Will manually deleting it mess anything up? Should I go ahead and uninstall through the package manager first despite the warnings?

Thanks in advance.
NativePages
Title: Re: Ignore User
Post by: Rudolf on March 05, 2007, 05:03:46 AM
You should uninstall in any case before deleting. At least the changes in the other files it will undo. Probably you modified the profile and display templates after installing the mod and it doen't match anymore. Replace those files with the original ones, or just delet the parts added by the mod.

PS: I just checked your board and I can see the Ignore button. It works too.

PPS: If you need the buttons to match your theme maybe I can arrange something for you.
Title: Re: Ignore User
Post by: NativePages on March 05, 2007, 06:40:39 AM
If you can see the buttons, then maybe the problem is my machine. I can't see them and I can't see my favorite icon even though others report they CAN see it. I've done several history, temp file, etc., deletes. Let me try that one more time though including cookies (this time) and see if it makes a difference before I do anything.

NativePages
Title: Re: Ignore User
Post by: NativePages on March 05, 2007, 09:23:40 AM
Rudolf, I'm such a dimwit!  I wasn't seeing the ignore buttons because I was logged in as the Admin and I had it set so that Admins couldn't be ignored and couldn't ignore. I logged out, came back as a guest and ~poof~ there they were and all is working just fine.  So sorry for the confusion on my part.  :-[

Also, I appreciate your offer of custom graphics. I made some to match my other buttons (I made other custom graphics for the site). The new graphics are up now. The only things I'm still not getting on my side is the favicon image and the badges from the additional membergroups mod thingy I installed. "Oh, well," on the icon, and off to see what the issue is with the additional membergroups badges!

Thanks, so much, for your patience, help and, most especially, for a fantastic modification!

NativePages
http://www.nativepages.com/tnindian
Title: Re: Ignore User
Post by: PopsicleStickChick on March 14, 2007, 04:55:41 PM
This mod throws errors under 1.1.2.  Is it going to be updated soon?  We really miss this, it is a great modification.
Title: Re: Ignore User
Post by: ra-punzel72 on March 16, 2007, 05:13:06 PM
It would be perfect if it would hide QUOTES with the ignored username too :)
Title: Re: Ignore User
Post by: RODEOSOLSTICE on March 16, 2007, 11:19:40 PM
I am using ver 1.1.1.

I may be wrong, but I think the unistall un ignore user is not correct. I believe it's leaving the following code in the following files. this then duplicates if you remove and add it again.

I was having trouble with the inline attachemnts mod. ignore user was giving me the prob. I uninstalled ignore user, installed inline attachments, then re-installed ignore users.

I was working quick, so forgive me if this is a flase alarm, but I'm pretty sure there might be a problem here.

profile.php


//-Ignore MOD- Start
function ignprefs($memID)
{ global $ID_MEMBER, $db_prefix, $context, $scripturl, $modSettings;

// No Guests!
is_not_guest();

$result=db_query("SELECT ign_ignore_list FROM {$db_prefix}members WHERE ID_MEMBER=$memID", __FILE__, __LINE__);
$row = mysql_fetch_array($result);
$context['ignore_list'] = '';

if ($row)
{
if ($row['ign_ignore_list']!= '' && in_array(0,explode(',',$row['ign_ignore_list']))) $context['ignore_list'] = "Guest";

$result = db_query("
SELECT realName
FROM {$db_prefix}members
WHERE FIND_IN_SET(ID_MEMBER, '" . $row['ign_ignore_list']. "')
LIMIT " . (substr_count($row['ign_ignore_list'], ',') + 1), __FILE__, __LINE__);
while ($row = mysql_fetch_assoc($result))
$context['ignore_list'] .= "\n" . $row['realName'];
mysql_free_result($result);

}

$context['can_view_own_ignored_by_list'] = !empty($modSettings['ign_own_ignored_by']);
//get the ignored by list
if (allowedTo('moderate_forum') || $context['can_view_own_ignored_by_list'])
{
$result = db_query("SELECT ID_MEMBER, realName
FROM {$db_prefix}members
WHERE FIND_IN_SET($memID, ign_ignore_list)", __FILE__, __LINE__);
$context['ignored_by_links'] = array();
while ($row = mysql_fetch_assoc($result))
$context['ignored_by_links'][] = '<a href="'.$scripturl.'?action=profile;u='. $row['ID_MEMBER'] .'">'.$row['realName'].'</a>';
}
loadThemeOptions($memID);
}
//-Ignore MOD- End




help.english.php

//-Ignore MOD- START
$helptxt['ign_adminuse'] = 'This restricts administrators and moderators to use the ignore feature. Simple moderators can use the function in boards they are not moderating.';
$helptxt['ign_adminignore'] = 'This restricts members to ignore administrators and moderators. Simple moderators can be ignored in boards they are not moderators.';
$helptxt['ign_disallowgroups1'] = 'These groups will not be able to use this feature. <span class="smalltext">Insert ID\'s of the groups separated by comma. Ex: 4,6,8</span>';
$txt['ign_disallowgroups2'] = 'This setting will prevent groups from being ignored<br /><span class="smalltext">Insert ID\'s of the groups separated by comma. Ex: 4,6,8</span>';
$helptxt['ign_own_ignored_by'] = 'Normal members will see the list of users ignoring them.';
//-Ignore MOD- END
Title: Re: Ignore User
Post by: Vinspire on March 17, 2007, 02:46:24 AM
I need a version for 1.1.2 :P
Title: Re: Ignore User
Post by: NativePages on March 19, 2007, 06:46:02 PM
Vinspire, it's running on 1.1.2 for me.  
Title: Re: Ignore User
Post by: DHC on March 29, 2007, 01:54:43 PM
Quote from: Rudolf on March 05, 2007, 05:03:46 AM
You should uninstall in any case before deleting. At least the changes in the other files it will undo. Probably you modified the profile and display templates after installing the mod and it doen't match anymore. Replace those files with the original ones, or just delet the parts added by the mod.

PS: I just checked your board and I can see the Ignore button. It works too.

PPS: If you need the buttons to match your theme maybe I can arrange something for you.


Please confirm that this mod is now updated and will work with version 1.1.2.

Thanks!
Title: Re: Ignore User
Post by: look up on March 29, 2007, 10:25:37 PM
Quote from: DHC on March 29, 2007, 01:54:43 PM
Please confirm that this mod is now updated and will work with version 1.1.2.

Thanks!
i've updated for 1.1.2 and it's working fine.
Title: Re: Ignore User
Post by: Rudolf on March 30, 2007, 04:28:38 PM
It installs fine on the default 1.1.2 and works without errors afaik.
Title: Re: Ignore User
Post by: PopsicleStickChick on March 31, 2007, 11:59:32 AM
I continue to get this error whenever I have your mod installed.  On 1.1.2.

8: Undefined index: ignored_by_num
File: /home/boban2/public_html/forums/Themes/default/languages/Who.english.php (eval?)
Line: 278

Any help?   
Title: Re: Ignore User
Post by: Rudolf on March 31, 2007, 12:41:32 PM
That variable appears in Profile.php and Profile.template.php. I have no idea why it reports it as Who.english.php.
With this error message it's practically impossible for me to tell what's wrong. I don't get any errors on my 1.1.2.
Title: Re: Ignore User
Post by: Octagon Girl on April 05, 2007, 02:12:53 PM
Mod'ed it manually, but get:

QuoteUnknown column 'ign_ignore_list' in 'field list'
File: /home/truewar/public_html/iwed/forum/Sources/Ignore.php
Line: 46

when I click on a button to ignore from a post.

When I try to go to a profile, I get:

QuoteUnknown column 'ign_ignore_list' in 'where clause'
File: /home/truewar/public_html/iwed/forum/Sources/Profile.php
Line: 1222



Title: Re: Ignore User
Post by: Octagon Girl on April 08, 2007, 10:07:33 AM
editing previous post
Title: Re: Ignore User
Post by: Octagon Girl on April 11, 2007, 03:45:28 PM
Any help on this?
Title: Re: Ignore User
Post by: Rudolf on April 11, 2007, 05:38:53 PM
You have to add a field in the database. If you installed manually that will be missing.
Run in PhpMyAdmin (or any other db client) this query:
Code (SQL) Select
ALTER IGNORE TABLE {$db_prefix}members ADD column ign_ignore_list TEXT NOT NULL DEFAULT '' AFTER pm_ignore_list

Replace {$db_prefix} with your tables' prefix.
Title: Re: Ignore User
Post by: Octagon Girl on April 11, 2007, 06:22:50 PM
Thanks, I appreciate it!

Any idea why its not coding the pages from the package?  All the pages are ch moded
Title: Re: Ignore User
Post by: Rudolf on April 11, 2007, 06:27:34 PM
Quote from: Octagon Girl on April 11, 2007, 06:22:50 PM
Any idea why its not coding the pages from the package?  All the pages are ch moded

Can you refresh my memory? I don't know what you refer to. Probably some server configuration problems if it happens to all mods.
Anyhow, if you don't mind describing again the problem I could look into it.
Title: Re: Ignore User
Post by: Octagon Girl on April 11, 2007, 06:31:34 PM
Sure, Rudolf :)

Thanks again.

The problem I've run into is when I run the package through the package manager, none of the proper pages are coded with the mod.  All the files are in the right place, but the files that should have the code inserted in them are still left without the code.
Title: Re: Ignore User
Post by: Rudolf on April 11, 2007, 06:35:41 PM
But the test the package manager does is successful?
Does it happen with other mods?
Do you have anything in the error log?
Which version of SMF you're using?
Title: Re: Ignore User
Post by: Octagon Girl on April 11, 2007, 06:43:01 PM
I am using 1.1.2. It does test the package manager as successful, and this is the only mod to which this has happened.

The error log did have something in it. I can check and paste in a min.
Title: Re: Ignore User
Post by: Octagon Girl on April 11, 2007, 06:56:46 PM
I just installed it again, and it still doesn't show up.

The error log says:

Quote8: Undefined index: can_ignore
File: /home/truewar/public_html/iwed/forum/Sources/Display.php
Line: 976

Quote2: fclose(): supplied argument is not a valid stream resource
File: /home/truewar/public_html/iwed/forum/Sources/Subs-Package.php
Line: 1908

Title: Re: Ignore User
Post by: SMdot™ on April 12, 2007, 11:42:45 AM
Quote from: Rudolf on September 12, 2005, 01:00:12 PM

Button PSD's: Button templates (http://digilander.libero.it/rudoka/smfmods/ignore/Ibuttons_psd.zip)

    Default buttons: (http://digilander.libero.it/rudoka/smfmods/ignore/ButtonsbyTanya/ignore.gif) (http://digilander.libero.it/rudoka/smfmods/ignore/ButtonsbyTanya/unignore.gif) (http://digilander.libero.it/rudoka/smfmods/ignore/ButtonsbyTanya/ignshow.gif)(http://digilander.libero.it/rudoka/smfmods/ignore/ButtonsbyTanya/ignhide.gif)    (made by Tanya)


Rudolf

I made an animated Ignore User .gif

(http://i12.tinypic.com/4bykf1y.gif) - ignore user - ignore.gif
(http://i11.tinypic.com/3535jf5.gif) - unignore user - unignore.gif
(http://i12.tinypic.com/2hsc4g3.gif) - show ignored post - ignshow.gif
(http://i10.tinypic.com/2upycrq.gif) - hide unignored post - ignhide.gif

save images and rename each one to the name in bold =) enjoy.

note : only spent like two minutes working on em. if anyone wants a customized graphic, just visit my site and request one.
Title: Re: Ignore User
Post by: Octagon Girl on April 12, 2007, 05:41:54 PM
Cute buttons, Sho!

Title: Re: Ignore User
Post by: alix on April 13, 2007, 03:00:38 AM
Hi everybody!

I have SMF 1.1.2 installed, but if I install this mod, I'm not able to see users IP address (0.0.0.0) is shown in the user(s) online list. Any suggestion?

Thanks
Title: Re: Ignore User
Post by: SMdot™ on April 18, 2007, 12:45:38 PM
Quote from: Octagon Girl on April 12, 2007, 05:41:54 PM
Cute buttons, Sho!

thanks
Title: Re: Ignore User
Post by: Rudolf on April 18, 2007, 01:28:52 PM
I can host those buttons and add them to the first post, if you give your permission.
Title: Re: Ignore User
Post by: SMdot™ on April 20, 2007, 12:22:35 PM
Quote from: Rudolf on April 18, 2007, 01:28:52 PM
I can host those buttons and add them to the first post, if you give your permission.

yeah feel free to do so.

if you want i can make better animated buttons, those were me being lazy and just putting something up quick on my forums =). I can do buttons like tanya's if you'd so desire.




oh by the way I love this mod =)
Title: Re: Ignore User
Post by: Rudolf on April 20, 2007, 02:55:50 PM
I added them to the first post. Feel free to make any number of sets you want, and I'll add them to the repository. :)
Title: Re: Ignore User
Post by: DefStatic on April 24, 2007, 04:31:47 PM
Ok, I spent the time using what SNAPE suggested. That link that points out what needs to be changed is really useful. I was surprised to see that it is working with my theme.

My question, is all this does is hide the post of the user being ignored? I have seen some boards where if you ignore, the post and the user is hidden. It doesn't just hide the post, it hides almost any trace that the user being ignored posted.
Title: Re: Ignore User
Post by: SMdot™ on April 26, 2007, 09:50:50 PM
Quote from: Rudolf on April 20, 2007, 02:55:50 PM
I added them to the first post. Feel free to make any number of sets you want, and I'll add them to the repository. :)

alrighty =)
Title: Re: Ignore User
Post by: Rudolf on April 27, 2007, 03:19:52 AM
Quote from: DefStatic on April 24, 2007, 04:31:47 PM
Ok, I spent the time using what SNAPE suggested. That link that points out what needs to be changed is really useful. I was surprised to see that it is working with my theme.

My question, is all this does is hide the post of the user being ignored? I have seen some boards where if you ignore, the post and the user is hidden. It doesn't just hide the post, it hides almost any trace that the user being ignored posted.
Well, I'm not quite sure what you mean. This will hide the body of the post, the poster information and attachments. Instead it should show a text saying "This user is currently ignored.".
Can you post a screenshot?
Title: Re: Ignore User
Post by: carlatf on May 12, 2007, 06:58:18 PM
Hi,
the alteration of display.template.php failed, so I'm modifying it byhand. But there's a section where I read:
<!-- for 1.0.7 and 1.0.8 -->
<!-- for 1.1 rc3 and 1.1 rc2 -->

Where are the modifications for 1.1.2?
Best regards,
Carla
Title: Re: Ignore User
Post by: Rudolf on May 12, 2007, 07:19:47 PM
Apply the ones that say 1.1 RC3 and RC2.
Title: Re: Ignore User
Post by: Poppet on May 13, 2007, 03:49:05 PM
I've just tried to install this on a forum without success. I've trawled through the thread and can't find the answer so could anyone help me cos I really like this mod, have used it before on another forum and never had a problem with it in the past.

This is the error I'm getting

12.   Execute Modification   ./Sources/Subs-Members.php   Test successful
13.   Execute Modification   ./Sources/Load.php   Test successful
14.   Execute Modification   ./Sources/Recent.php   Test successful
15.   Execute Modification   ./Themes/default/Display.template.php   Test failed
16.   Execute Modification   ./Themes/default/Post.template.php   Test successful
17.   Execute Modification   ./Themes/default/Profile.template.php   Test successful
Title: Re: Ignore User
Post by: babjusi on May 13, 2007, 08:33:52 PM
Quote from: carlatf on May 12, 2007, 06:58:18 PM
Hi,
the alteration of display.template.php failed, so I'm modifying it byhand. But there's a section where I read:
<!-- for 1.0.7 and 1.0.8 -->
<!-- for 1.1 rc3 and 1.1 rc2 -->

Where are the modifications for 1.1.2?
Best regards,
Carla


I had a look at the mod and there it said that it is compatible with these version of smf: Compatible With:     1.1 RC3, 1.1, 1.1.1, 1.1.2
Title: Re: Ignore User
Post by: unrelenting on May 13, 2007, 10:28:55 PM
Quote from: Poppet on May 13, 2007, 03:49:05 PM
I've just tried to install this on a forum without success. I've trawled through the thread and can't find the answer so could anyone help me cos I really like this mod, have used it before on another forum and never had a problem with it in the past.

This is the error I'm getting

12.   Execute Modification   ./Sources/Subs-Members.php   Test successful
13.   Execute Modification   ./Sources/Load.php   Test successful
14.   Execute Modification   ./Sources/Recent.php   Test successful
15.   Execute Modification   ./Themes/default/Display.template.php   Test failed
16.   Execute Modification   ./Themes/default/Post.template.php   Test successful
17.   Execute Modification   ./Themes/default/Profile.template.php   Test successful

You've probably installed a mod that changed the Display.template.php. If it can't search and find the exact line of code in that file then it won't be able to write the new code to it.
Title: Re: Ignore User
Post by: Poppet on May 14, 2007, 02:23:16 AM
Quote from: unrelenting on May 13, 2007, 10:28:55 PM
Quote from: Poppet on May 13, 2007, 03:49:05 PM
I've just tried to install this on a forum without success. I've trawled through the thread and can't find the answer so could anyone help me cos I really like this mod, have used it before on another forum and never had a problem with it in the past.

This is the error I'm getting

12.   Execute Modification   ./Sources/Subs-Members.php   Test successful
13.   Execute Modification   ./Sources/Load.php   Test successful
14.   Execute Modification   ./Sources/Recent.php   Test successful
15.   Execute Modification   ./Themes/default/Display.template.php   Test failed
16.   Execute Modification   ./Themes/default/Post.template.php   Test successful
17.   Execute Modification   ./Themes/default/Profile.template.php   Test successful

You've probably installed a mod that changed the Display.template.php. If it can't search and find the exact line of code in that file then it won't be able to write the new code to it.

Thanks unrelenting, I realise that I was hoping someone could provide me with the code that needs adding so I can do the code additions manually.
Title: Re: Ignore User
Post by: Rudolf on May 14, 2007, 03:13:49 AM
In the package there's a file called themes.xml, you will find there the changes made in DIsplay.template.php
Title: Re: Ignore User
Post by: carlatf on May 18, 2007, 08:21:48 AM
Quote from: Rudolf on May 12, 2007, 07:19:47 PM
Apply the ones that say 1.1 RC3 and RC2.
Thanks!. Very kind.
Title: Re: Ignore User
Post by: chep on May 28, 2007, 09:48:32 AM
I believe what would make this mod much better is a set of icons/buttons which are theme agnostic and not flashy. No offense intended in any way.
Title: Re: Ignore User
Post by: Rudolf on May 28, 2007, 09:54:39 AM
You can make your own icons, and I'll even host them if you want.
You can use text-only links too if you want.
Title: Re: Ignore User
Post by: chep on May 28, 2007, 10:05:09 AM
Is there any way to not show the icons on the board? What I would prefer is to just keep the ingore list in the profile section.

Thank you sir.
Title: Re: Ignore User
Post by: Rudolf on May 28, 2007, 10:19:43 AM
In Display.template.php search and delete this block of code
//The ignore/unignore buttons - separated so you can move the Ignore button around the poster info section freely. The unignore buttons should always stay where it is, below all the info. Or else it could get hidden.
if ($user_info['can_ignore'] && $message['can_be_ignored'] && !$message['is_ignored'])
echo '
        <br /><a href="', $scripturl, '?action=ignore;u=' , $message['member']['id'], ';topic=', $context['current_topic'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/ignore.gif" alt="' . $txt['ignore'] . '" border="0" />' : $txt['ignore']), '</a>';

//The unignore button
if ($user_info['can_ignore'] && $message['can_be_ignored'] && $message['is_ignored'])
echo '
<br /><a href="', $scripturl, '?action=unignore;u=' , $message['member']['id'], ';topic=', $context['current_topic'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/unignore.gif" alt="' . $txt['unignore'] . '" border="0" />' : $txt['unignore']), '</a>';


Or comment it out, by putting /* before and */ after. This will keep the code but won't be interpreted. If you change your mind in a later moment you can undo it very simply by removing the comments: /* and*/
Title: Re: Ignore User
Post by: chep on May 28, 2007, 07:56:13 PM
Great! I will check it out.

Much appreciated Rudolf. I'll make sure to leave some Reindeer cupcakes for you this Christmas.
Title: Re: Ignore User
Post by: Leadfoot on May 29, 2007, 12:26:22 PM
I'm getting an error when I try to apply this mod. All tests show as successful, but when I click on install I get this:

QuoteBLOB/TEXT column 'ign_ignore_list' can't have a default value
File: C:\WebServ\wwwroot\htdocs\smf\Packages\temp\Ignoredb.php
Line: 27

Using a fresh install of 1.1.2

Anyone have a clue?
Title: Re: Ignore User
Post by: Rudolf on May 29, 2007, 05:35:03 PM
That's the classical error for mysql strict mode.
I updated the package, please download it again.
Title: Re: Ignore User
Post by: Leadfoot on May 30, 2007, 12:41:30 PM
Thank you for your dilligence. Unfortunately it's now giving me a new error:

QuoteYou have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'SMALLTEXT NULL AFTER pm_ignore_list' at line 1
File: C:\WebServ\wwwroot\htdocs\smf\Packages\temp\Ignoredb.php
Line: 27

If it helps, here's a list of the software versions I'm using:

Forum version: SMF 1.1.2
PHP version: 5.2.1
MySQL version: 5.0.36
Server version: Apache/2.2.4 (Win32) PHP/5.2.1 mod_perl/2.0.3 Perl/v5.8.8
GD version: bundled (2.0.28 compatible)
eAccelerator: 0.9.5
Title: Re: Ignore User
Post by: Rudolf on May 30, 2007, 03:33:55 PM
Because SMALLTEXT doesn't exists. I dunno why I thought it did.
I changed the package, so it should work now.
Title: Re: Ignore User
Post by: Leadfoot on May 31, 2007, 12:54:09 PM
It works now - thank you very much, Rudolf. Sorry to be such a PITA.  :)
Title: Re: Ignore User
Post by: xOraclex on May 31, 2007, 09:11:12 PM
Hi
I've just upgrade to 1.1.2 and aply this Mod. (very, very important mod)
I use the babylon template and made the necessary changes in Display.Template.php.
It's workig fine but not as i would like.
If I ignore some Member, i will not in fact see any message in the topic's, but if i look to the most recent post's page, the member messages will still be there.

Where can I change that?

Thank You
Title: Re: Ignore User
Post by: unrelenting on May 31, 2007, 10:24:28 PM
Quote from: xOraclex on May 31, 2007, 09:11:12 PM
Hi
I've just upgrade to 1.1.2 and aply this Mod. (very, very important mod)
I use the babylon template and made the necessary changes in Display.Template.php.
It's workig fine but not as i would like.
If I ignore some Member, i will not in fact see any message in the topic's, but if i look to the most recent post's page, the member messages will still be there.

Where can I change that?

Thank You

That's the Recent.template.php in the default folder.
Title: Re: Ignore User
Post by: fyb3roptik on June 03, 2007, 02:56:54 PM
I am having a problem with the delim value. It just prints out the \n. It does not do a line break. So for instance

Ignore User1\nIgnore User 2

instead of

Ignore User 1
Ignore User 2
Title: Re: Ignore User
Post by: Rudolf on June 03, 2007, 03:18:11 PM
You have to say more if you want others to understand you.
What are you talking about?
Title: Re: Ignore User
Post by: fyb3roptik on June 03, 2007, 08:34:23 PM
This is What I am talking about

http://img489.imageshack.us/img489/255/ignoreusermt2.jpg

It should be...

Downskated
Fyb3roptik

It is not doing the line break properly
Title: Re: Ignore User
Post by: fyb3roptik on June 04, 2007, 05:15:51 PM
anyone???

I have tried changing it to <br> but it just prints it out verbatim. It is not translating the code to line break.
Title: Re: Ignore User
Post by: Rudolf on June 05, 2007, 03:53:00 AM
You need to put the members on separate lines, by simlpy hitting enter.
Clicking on the names in "Find Members" window should insert the name on a new line.
What browser are you using?
Title: Re: Ignore User
Post by: fyb3roptik on June 05, 2007, 09:59:40 AM
firefox2 and IE7. both spit out the \n instead of doing a line break.
Title: Re: Ignore User
Post by: SlowMo on June 07, 2007, 10:39:18 AM
I am using 1.1.2 and having a problem with

14.     Execute Modification     ./Sources/Recent.php     Test failed

i'm using 1.1.2 and seems to be a problem with this replacement

AND $user_info[query_see_board]
      ORDER BY m.ID_MSG DESC
      LIMIT $showlatestcount

anyone else have this problem?  I can't find an exact match.
Title: Re: Ignore User
Post by: stonki on June 10, 2007, 11:06:47 AM
Hello, I just installed the mod and I (as an admin) can ignore users etc. My users just see the button, but clicking on it does not make any difference. Any idea why ?
Title: Re: Ignore User
Post by: Rudolf on June 10, 2007, 11:21:49 AM
The users don't see any errors? Any errors in the forum error log?
Title: Re: Ignore User
Post by: stonki on June 11, 2007, 02:47:36 PM
Quote from: Rudolf on June 10, 2007, 11:21:49 AM
The users don't see any errors? Any errors in the forum error log?

I was able to localize the problem:
* when adding your mod to the forum all users are getting a "NULL" field in the ign_ignore_list

mysql> select memberName,ign_ignore_list  from  smf_members where memberName like  "aggre%";
+------------+-----------------+
| memberName | ign_ignore_list |
+------------+-----------------+
| Aggregat_4 | NULL            |
+------------+-----------------+
1 row in set (0.00 sec)

While having a "NULL" record you are not able to use the "ignore" link. If you amend your list in the profile section this field will become an empty record:

mysql> select memberName,ign_ignore_list  from  smf_members where memberName like  "aggre%";
+------------+-----------------+
| memberName | ign_ignore_list |
+------------+-----------------+
| Aggregat_4 |                 |
+------------+-----------------+

So I manually change the database:
mysql> update smf_members set ign_ignore_list ="" where ign_ignore_list is NULL;
Query OK, 6084 rows affected (0.07 sec)
Rows matched: 6084  Changed: 6084  Warnings: 0

cu
stonki

And now it will work even with  the "ignore" button
Title: Re: Ignore User
Post by: Rudolf on June 11, 2007, 03:58:51 PM
Strange. Probably I modified the install script at some point, because I never had this problem before.
I updated the install query to add the field as NOT NULL. New rows should have the empty string as default.
Run this query in on your db to fix for future users

ALTER TABLE `smf_members` CHANGE `ign_ignore_list` `ign_ignore_list` MEDIUMTEXT NOT NULL
Title: Re: Ignore User
Post by: LW on July 27, 2007, 12:30:39 PM
Is there a way to remove the "Ignored by:" line in profiles?
Title: Re: Ignore User
Post by: Rudolf on July 27, 2007, 12:46:37 PM
If you mean the profile summary then open Profile.template.php and find and remove.
   //-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 ever want to uninstall the mod you will get an error in Profile.template.php, however it should be safe to uninstall it.
Title: Re: Ignore User
Post by: LW on July 27, 2007, 03:45:11 PM
I removed exactly that section and all I got was a Template Parse Error!
Title: Re: Ignore User
Post by: Rudolf on July 27, 2007, 08:00:33 PM
Then you have an error in your template somewhere else. Removing it causes no errors in a default Profile.template.php
Title: Re: Ignore User
Post by: ragots on July 28, 2007, 10:21:43 AM
The ignore button shows up even in posts written by unlogged visitors.
How do I make disappear ?
Title: Re: Ignore User
Post by: ragots on July 28, 2007, 11:01:31 AM
Ok, never mind.

it's done so you can ignore posts by visitors too. Okay.
Title: Re: Ignore User
Post by: ragots on July 31, 2007, 12:30:07 PM
After a member click on the ignore button, he's sent back to the first page of the topic. Is there any way to make the member remain on the same page ?
Title: Re: Ignore User
Post by: Rudolf on July 31, 2007, 01:24:00 PM
In Display.template.php
Code (Search) Select
        <br /><a href="', $scripturl, '?action=ignore;u=' , $message['member']['id'], ';topic=', $context['current_topic'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/ignore.gif" alt="' . $txt['ignore'] . '" border="0" />' : $txt['ignore']), '</a>';
Code (Replace with) Select
        <br /><a href="', $scripturl, '?action=ignore;u=' , $message['member']['id'], ';topic=', $context['current_topic'], '.msg' , $message['id'] , '#msg' , $message['id'] , '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/ignore.gif" alt="' . $txt['ignore'] . '" border="0" />' : $txt['ignore']), '</a>';

Code (Search) Select
<br /><a href="', $scripturl, '?action=unignore;u=' , $message['member']['id'], ';topic=', $context['current_topic'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/unignore.gif" alt="' . $txt['unignore'] . '" border="0" />' : $txt['unignore']), '</a>';
Code (Replace with) Select
<br /><a href="', $scripturl, '?action=unignore;u=' , $message['member']['id'], ';topic=', $context['current_topic'], '.msg' , $message['id'] , '#msg' , $message['id'] , '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/unignore.gif" alt="' . $txt['unignore'] . '" border="0" />' : $txt['unignore']), '</a>';
Title: Re: Ignore User
Post by: ragots on August 01, 2007, 05:48:58 AM
No change what so ever after applying theses changes to the code. No change whatsover. After clicking on IGNORE button, the user is sent back to the first post at the beginning of the topic. After clicking on UNIGNORE button, the user is sent back to the first post at the beginning of the topic.


It would be better if the user remain where he is, or better yet, is shown the same post where he was when he clicked on either button. The user become disoriented when the user he wants to ignore disappear and he's flipped back to another page (namely the first post of the topic in case of a multipage topic).


Title: Re: Ignore User
Post by: Rudolf on August 01, 2007, 06:38:40 AM
You are right.

Use these lines instead
<br /><a href="', $scripturl, '?action=ignore;u=' , $message['member']['id'], ';topic=', $context['current_topic'], ';msg=' , $message['id'] , '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/ignore.gif" alt="' . $txt['ignore'] . '" border="0" />' : $txt['ignore']), '</a>';
and
<br /><a href="', $scripturl, '?action=unignore;u=' , $message['member']['id'], ';topic=', $context['current_topic'], ';msg=' , $message['id'] ,'">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/unignore.gif" alt="' . $txt['unignore'] . '" border="0" />' : $txt['unignore']), '</a>';

and replace the Ignore.db file from the updated package (v1.4).

Or simply reinstall the mod using the new 1.4 release.
Title: Re: Ignore User
Post by: ragots on August 01, 2007, 03:45:13 PM
I want to apply the change, but I don't know what to do with the Ignore.db file. I can't even find it in the Sources folder.
Title: Re: Ignore User
Post by: Rudolf on August 01, 2007, 04:04:19 PM
That's Ignore.php, sorry for mistyping earlier. I was in a hurry when I wrote it.
Title: Re: Ignore User
Post by: ragots on August 01, 2007, 04:25:40 PM
Thank you. Works now like a charm.
Title: Re: Ignore User
Post by: davidooh on August 08, 2007, 11:01:42 AM
What do you do if you get this error:

At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF.

Below is the file that failed:

Execute Modification ./Sources/Profile.php Test failed
Title: Re: Ignore User
Post by: rufen on September 22, 2007, 11:12:59 AM
anyone can point me to the change I need to make in my custom template for this mods to work? :) thx!

Title: Re: Ignore User
Post by: rufen on October 02, 2007, 10:01:23 PM
anyone ever succed in completely hide the post by an ignored user?

Title: Re: Ignore User
Post by: Rumbaar on October 02, 2007, 10:51:36 PM
Quote from: rufen on October 02, 2007, 10:01:23 PM
anyone ever succed in completely hide the post by an ignored user?
Yes I've successfully installed and tested on my 1.1.4 forum running ApolloBB theme.
Title: Re: Ignore User
Post by: sjmarsha on October 05, 2007, 11:36:12 AM
Quote from: davidooh on August 08, 2007, 11:01:42 AM
Execute Modification ./Sources/Profile.php Test failed

I am getting the same error. I think it might be the user cp mod I have installed that is conflicting. Any help would be VERY highly appreciated!
Title: Re: Ignore User
Post by: Rumbaar on October 05, 2007, 05:35:46 PM
Have you tried to manually add required content into profile.php, if that is the only error you are getting?

What I do when encounter fails like that is modify the file in question first, then once I've made the change to that single file perform the install (ignoring the error) and then FTP up the file and question and all seems to work fine.
Title: Re: Ignore User
Post by: rufen on October 21, 2007, 08:28:48 PM
Quote from: Rumbaar on October 02, 2007, 10:51:36 PM
Quote from: rufen on October 02, 2007, 10:01:23 PM
anyone ever succed in completely hide the post by an ignored user?
Yes I've successfully installed and tested on my 1.1.4 forum running ApolloBB theme.

that's not what I meant.. I want to completely hide the message body. not just seing "this user is ignored"

Title: Re: Ignore User
Post by: Rudolf on October 22, 2007, 03:23:45 AM
Quote from: rufen on October 21, 2007, 08:28:48 PM
that's not what I meant.. I want to completely hide the message body. not just seing "this user is ignored"

To completely hide a post (together with the poster info) from the topic display page in Display.template.php find

// Get all the messages...
while ($message = $context['get_message']())
{

andd after

if ($message['is_ignored'] && $message['can_be_ignored'])
continue;
Title: Re: Ignore User
Post by: rufen on October 22, 2007, 06:48:43 PM
wow, perfect! thank you very much :)
Title: Re: Ignore User
Post by: photocopy on October 24, 2007, 11:26:24 PM
I'm having issues with Ignore User.  I have SMF 1.1.4 installed with the following mods (installed in the order listed):

Ad Management
Change Theme Permission
Signature Settings Mod
Spoiler Tag
Ignore Board
Ignore Users

It installs fine with no errors, and everything looks right in the profile, but when viewing posts, I don't see the ignore/unignore buttons, and it is also not hiding the people who are ignored.

-m
Title: Re: Ignore User
Post by: dry3210 on November 01, 2007, 12:23:01 PM
How difficult would it be to get this mod to also work with the shoutbox mod http://custom.simplemachines.org/mods/index.php?mod=412
Title: Re: Ignore User
Post by: tethead on November 05, 2007, 05:32:37 PM
works fine with SMF 1.1.4 here as well, great mod!

my only request for a feature would be to block PMs from an ignored person too. 
Title: Re: Ignore User
Post by: unrelenting on November 05, 2007, 08:59:05 PM
Quote from: tethead on November 05, 2007, 05:32:37 PM
works fine with SMF 1.1.4 here as well, great mod!

my only request for a feature would be to block PMs from an ignored person too. 

You should be able to do that in your personal message options in your profile area.
Title: Re: Ignore User
Post by: araugh on December 05, 2007, 01:55:20 PM
Installed the mod, but my users can ignore admins/moderators.  The box allowing this isn't checked.  Any pointers?
Title: Re: Ignore User
Post by: araugh on December 12, 2007, 12:39:59 PM
This is using smf 1.1.4
Title: Re: Ignore User
Post by: Octopotopus22 on December 15, 2007, 04:56:15 AM
Hi. I'm trying to install this mod, and it doesn't seem to be working. It does not show the text of the section in which you can change the options, nor the text in a user's profile. It does show blank spaces where I assume this must go?

Is this a known issue? What do I do to fix it?
Title: Re: Ignore User
Post by: chippa on December 15, 2007, 07:24:13 PM
i find that the pretty url's mod seems to cause errors when used in conjunction with this one.

when i turn off the pretty urls all error messages disappear. but when its turned on and i try to ignore users i get:

QuoteThe requested URL /forum///0/ was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.


once i change turn off pretty urls it works again with no error messages.

any suggestions as to whether it is possible to get them working harmoniously together?
Title: Re: Ignore User
Post by: bule_himself on December 21, 2007, 04:42:37 AM
I have problem with my template (or maybe it is problem in something else)

(http://www.imagesforme.com/out.php/t9137_2.jpg) (http://www.imagesforme.com/show.php/9137_2.jpg.html)

(http://www.imagesforme.com/out.php/t9136_1.jpg) (http://www.imagesforme.com/show.php/9136_1.jpg.html)

Any help pls?
Title: Re: Ignore User
Post by: quake101 on December 21, 2007, 11:18:25 AM
I have the same problem with my theme after inline attachments mod is installed...
Title: Re: Ignore User
Post by: thesquadbay on December 21, 2007, 04:11:36 PM
I have been trying to make this mod work and it is kicking my butt!!

I have tried several of the fixes in this thread and no go.

I am using SMF 1.1.4 an am using a modded theme, A variation on the YabbGrey theme. I have switched to the default theme and still no go.

I have no clue why but no matter what I cannot get this mod to install to save my life! I have installed other mods with no problems into my modded theme.

Any help would be greatly appreciated.
Title: Re: Ignore User
Post by: bule_himself on December 22, 2007, 01:46:55 PM
so, can anyone help me?
Title: Re: Ignore User
Post by: chippa on December 23, 2007, 06:16:45 AM
apparently there is no love for any of us
Title: Re: Ignore User
Post by: Rudolf on December 23, 2007, 08:06:20 AM
To all:
1. Check your error log for errors related to the mod.
2. Set up your settings for this mod. Check if administrators can ignore users and/or can be ignored. Check if normal users can ignore others.
3. If the page doesn't shows good, then you have some error in your template. Double check, that you don't have open table rows, cells, divs and whatnot. Basically, make sure that your html is correct.
4. Post a link to your forum, with a demo account. That way I could check your page.
5. If all else fails, post your Display.template.php
Title: Re: Ignore User
Post by: thesquadbay on December 23, 2007, 04:21:08 PM
OK Rudolf, First thank you for the reply second here is the info you requested.

Error Log:

Nothing on error log.

Url to forum: The Squadbay Forums (http://www.thesquadbay.com/forums)

Test account:

Username: Rudolf
Password: smfguru

My display.template.php

Title: Re: Ignore User
Post by: Rudolf on December 23, 2007, 07:29:18 PM
Your template doesn't contains the changes for the mod, so no wonder you don't see the buttons and that the posts are not hidden.
I attached the modified template file witch should make it work.
Title: Re: Ignore User
Post by: thesquadbay on December 23, 2007, 07:35:42 PM
Looks like that did the job! Thank you so much!!
Title: Re: Ignore User
Post by: thesquadbay on December 23, 2007, 07:39:08 PM
OK now when I hit the ignore buton I get this..

QuoteUnable to load the 'main' template.
Title: Re: Ignore User
Post by: Rudolf on December 23, 2007, 07:58:21 PM
I suppose you have the mod installed. It doesn't seems so.
Title: Re: Ignore User
Post by: thesquadbay on December 23, 2007, 07:58:53 PM
Yes it is installed
Title: Re: Ignore User
Post by: thesquadbay on December 23, 2007, 08:00:54 PM
I will uninstall and try again
Title: Re: Ignore User
Post by: Mikeba on February 05, 2008, 09:22:05 AM
I'm having a problem with this mod functioning properly.

Prior to installing it, all tests were successful. After installation was complete, I received a message the mod was installed successfully. When I go to Features and Options, there is no text in the area which controls the mod functions. Also, none of the icons are showing up in the messages or profiles. I've uninstalled and reinstalled with the same results.

I'm assuming all of the code didn't install properly, but have no idea where to begin to look. I'm testing with the default theme and there are no other mods installed except SMF 1.0.12 / 1.1.4 /. Below are the error messages I receive.

Would someone please point me in the right direction to correct the problem? Thanks!


8: Undefined index: ignore_show
File: /public_html/forums/Sources/Display.php
Line: 772

8: Undefined index: ignore_hide
File: /public_html/forums/Sources/Display.php
Line: 781

8: Undefined index: member
File: /public_html/forums/Themes/default/Profile.template.php (summary sub template - eval?)
Line: 212

8: Undefined index: ignored_by
File: /public_html/forums/Themes/default/Profile.template.php (summary sub template - eval?)
Line: 211

8: Undefined index: ignoreset
File: /public_html/forums/Sources/Profile.php
Line: 235
Title: Editing custom theme to make this work.
Post by: RickJ on March 06, 2008, 06:47:48 AM
I see that I need to manually insert the code into our custom theme - copying from the default theme, but when I go to

Admin > Themes and Layout > Modify Themes, I do not find the Default Theme listed (see attached).

Am I looking in the wrong place?  Where can I see the code of the default theme?

Thanks so much!
Title: Re: Ignore User
Post by: Rudolf on March 06, 2008, 04:48:18 PM
You can't edit the default theme from the admin center. You will have to open the files through ftp and edit them that way.
Title: Re: Ignore User
Post by: digit on April 02, 2008, 06:46:35 AM
A feature I would like to see...

Most ignored user stat!
Title: Re: Ignore User
Post by: Antechinus on April 04, 2008, 03:43:57 AM
Having a slight problem with this one.

It works well, but on one of my themes (Devil's Rejects) the ignprefs template wont load.
According to the parser the only relevant file for this theme is Profile.template.php
I've done the recommended edits but the problem is still there.

It isn't a major drama, since the ignore/unignore function in the posts still works, but if someone could suggest a fix it'd be nice.

Thanks. 
Title: Re: Ignore User
Post by: Antechinus on April 08, 2008, 10:35:10 AM
I've also just tried setting this mod up with babylon (which I haven't been using) and I can't get it to work.

According to the parser I only need to edit Display.template.php for babylon. I've done that and checked the results but there's still no ignore feature functioning. The ignore options show in Profile but selecting and saving a member name doesn't hide their posts, and there's no ignore/unignore link under the avatar in their posts.

All the other themes have it working. Is babylon a special case? Do I have to import default themes? 
Given that this mod is working fine with default I would have thought babylon would just call the extra ones it needs from default anyway.
What am I missing here?
Title: Re: Ignore User
Post by: Rudolf on April 08, 2008, 05:14:14 PM
I haven't tried with the babylon theme. I'll take a look at it, but you will have to have a little patience.
If I don't come with an answer withing a few days, feel free to remind me.
Thanks.
Title: Re: Ignore User
Post by: Antechinus on April 08, 2008, 05:57:52 PM
Not a problem. We all have to eat and sleep.  ;)

I'll keep messing with it in my spare time too. If all else fails I suppose I can just import all the modified default files.
That should fix it even if it is rather clumsy.




QuoteIt works well, but on one of my themes (Devil's Rejects) the ignprefs template wont load.
According to the parser the only relevant file for this theme is Profile.template.php
I've done the recommended edits but the problem is still there.

ETA: I just tried importing the files from default which are edited by this mod but not usually present in Devil's Rejects.
No difference. I still get an 'Unable to load "ignprefs template"' error.
This is what I expected since DR usually calls on the default files anyway, but I thought it was worth a shot.

After trying this I don't think importing the modified default theme files will help Babylon.
Title: Re: Ignore User
Post by: Rudolf on April 09, 2008, 07:09:12 AM
Attached you can find a working modified Display.template.php for the Babylon theme.

As for the profile error, you should make sure that the Profile.template.php contains the template_ignprefs() function. (see code below) Though if it's missing you should get that error in any theme not only the babylon. On my test install the profile section worked out of the box.

//-Ignore MOD- Start
function template_ignprefs()
{
global $context, $settings, $options, $scripturl, $modSettings, $txt;

// The main containing header.
echo '
<form action="', $scripturl, '?action=profile2" method="post" accept-charset="', $context['character_set'], '" name="creator" id="creator">
<table border="0" width="85%" cellspacing="0" cellpadding="4" align="center" class="tborder">
<tr class="titlebg">
<td height="26">
&nbsp;<img src="', $settings['images_url'], '/icons/profile_sm.gif" alt="" align="top" />&nbsp;
', $txt['ignore_settings'], '
</td>
</tr><tr class="windowbg">
<td class="smalltext" style="padding: 2ex;">
', $txt['ignore_info'], '
</td>
</tr><tr>
<td class="windowbg2" style="padding-bottom: 2ex;">
<table border="0" width="100%" cellpadding="3">';

// A text box for the user to input usernames of everyone they want to ignore personal messages from.
echo '
<tr>
<td valign="top">
<b>', $txt['ignore_list'], ':</b>
<div class="smalltext">
', $txt['ignore_tip'], '<br />
<br />
<a href="', $scripturl, '?action=findmember;input=ign_ignore_list;delim=\\\\n;sesc=', $context['session_id'], '" onclick="return reqWin(this.href, 350, 400);"><img src="', $settings['images_url'], '/icons/assist.gif" alt="', $txt['find_members'], '" align="middle" /> ', $txt['find_members'], '</a>
</div>
</td>
<td>
<textarea name="ign_ignore_list" id="ign_ignore_list" rows="10" cols="50">', $context['ignore_list'], '</textarea>
</td>
</tr>';

if (allowedTo('moderate_forum') || $context['can_view_own_ignored_by_list'])
echo '
<tr>
<td colspan="2">
<div class="titlebg" style="width: 95%;">',$txt['ignored_by_title'.($context['user']['is_owner'] ? '_own':'_any')],'</div>
<div style="width: 100%; height: 4em; overflow:auto">
'. (count($context['ignored_by_links']) ? implode(', ', $context['ignored_by_links']) : $txt['ignored_by_empty']) .'
</div>
</td>
</tr>';

// Show the standard "Save Settings" profile button.
template_profile_save();

echo '
</table>
</td>
</tr>
</table>
</form>';
}
//-Ignore MOD- End
Title: Re: Ignore User
Post by: Rudolf on April 09, 2008, 07:11:01 AM
Quote from: digit on April 02, 2008, 06:46:35 AM
A feature I would like to see...

Most ignored user stat!

Where would you want this to appear?
Title: Re: Ignore User
Post by: Antechinus on April 09, 2008, 05:19:42 PM
Great. Thanks for the file and the tip.
php isn't exactly my forte and consequently I'm reduced to following idiot proof instructions.

Btw, the theme missing the ignprefs template wasn't Babylon, but I think I can fix it now.
Title: Re: Ignore User
Post by: unrelenting on April 10, 2008, 10:42:02 PM
Quote from: Rudolf on April 09, 2008, 07:11:01 AM
Quote from: digit on April 02, 2008, 06:46:35 AM
A feature I would like to see...

Most ignored user stat!

Where would you want this to appear?

One good spot would be in Display.template.php somewhere in there profile next to their posts, if they are indeed the most ignored user.  :D
Title: Re: Ignore User
Post by: Thorolf on May 18, 2008, 08:12:25 PM
I'm having a problem with this mod that I didn't see listed here...

I'm including before and after images... I have dilber mc running, and there is no display.template.php or anything like that.  Just index.template.php.

Any ideas what I need to change? Thanks!

EDIT: I was able to get the text to be hidden by fixing the aforementioned problem with different themes not displaying the button .gifs (odd)... but now I still have blank space where the "show" text would appear (see "after" image).

I'll go through the thread again and see if it's mentioned somewhere, but it sure would be nice to get that space to minimize until someone hits "show."
Title: Re: Ignore User
Post by: TonySmith on May 20, 2008, 09:48:58 PM
Any possibility that this mod can be updated to work with 1.1.5?
Title: Re: Ignore User
Post by: digit on July 07, 2008, 05:26:14 AM
How can I make it so guests don't see the ignore user button?

I did this in Display.template.php - but am told that isn't correct.


//-Ignore MOD- Start
if ($message['is_ignored'] && $message['can_be_ignored']) echo '</div>';
echo '<br />';

if (!$context['user']['is_guest']) {

//The ignore/unignore buttons - separated so you can move the Ignore button around the poster info section freely. The unignore buttons should always stay where it is, below all the info. Or else it could get hidden.
if ($user_info['can_ignore'] && $message['can_be_ignored'] && !$message['is_ignored'])
echo '
        <br /><a href="', $scripturl, '?action=ignore;u=' , $message['member']['id'], ';topic=', $context['current_topic'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/ignore.gif" alt="' . $txt['ignore'] . '" border="0" />' : $txt['ignore']), '</a>';

//The unignore button
if ($user_info['can_ignore'] && $message['can_be_ignored'] && $message['is_ignored'])
echo '
<br /><a href="', $scripturl, '?action=unignore;u=' , $message['member']['id'], ';topic=', $context['current_topic'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/unignore.gif" alt="' . $txt['unignore'] . '" border="0" />' : $txt['unignore']), '</a><br />';

}
//-Ignore MOD- End

Title: Re: Ignore User
Post by: unrelenting on July 09, 2008, 08:04:17 PM
You can use

if ($context['user']['is_logged']) {

instead.
Title: Re: Ignore User
Post by: AMWebby on July 25, 2008, 01:17:07 PM
I just installed this, modifying the theme files as instructed, but it doesn't work. I do get the options in the administrators section but nothing shows in posts or profiles.

What have I done wrong?

http://www.amoc.org/forum/
Title: Re: Ignore User
Post by: Rumbaar on July 25, 2008, 09:10:05 PM
@ AMWebby you link seems invalid.  Are you 100% sure you altered the correct template files in your custom theme?
Title: Re: Ignore User
Post by: AMWebby on July 26, 2008, 02:35:35 AM
Oops, link should be: http://www.amoc.org/forum/

I actually copied the template files from "Default" to "My Theme" to make sure. I also tried switching to Default theme.

In neither case have the links for Ignore user etc. showed in posts or Profile.

I do get the following options in Administration/Features and Options

Allow administrators and moderators to ignore other users   
Allow members to ignore administrators and moderators   
Restrict usage for these groups
Insert ID's of the groups. Ex: 4,6,8   
Prevent these groups from being ignored
Insert ID's of the groups. Ex: 4,6,8   
Show 'ignored by' list to normal members

I am running 1.1RC3 and only have one other mod installed: Spell Check Custom Words 1.01
Title: Re: Ignore User
Post by: Rumbaar on July 26, 2008, 03:06:37 AM
Well if the theme doesn't have a template files of it's own then it's automatically called from the CORE theme.  So no need to copy.  Now do you get the correct view in CORE theme?

QuoteI am running 1.1RC3
OMG, please please update ASAP!!
Title: Re: Ignore User
Post by: AMWebby on July 26, 2008, 03:10:10 AM
Quote from: Rumbaar on July 26, 2008, 03:06:37 AM
Well if the theme doesn't have a template files of it's own then it's automatically called from the CORE theme.  So no need to copy.  Now do you get the correct view in CORE theme?

QuoteI am running 1.1RC3
OMG, please please update ASAP!!

I tried it in Default theme, no difference.

I've tried to update, no update packages will work.
Title: Re: Ignore User
Post by: Rumbaar on July 26, 2008, 03:27:50 AM
When you installed it via the Package Manager, did you encounter any errors/issues?

Now at the 1.1. RC3 stage I think you need to go down the Large Upgrade package avenue.
Title: Re: Ignore User
Post by: AMWebby on July 26, 2008, 03:32:21 AM
No errors or issues when installing Ignore User.

Re 1.1.RC3 upgrade. Not sure what you mean by large package instal. I found two upgrade packages in the archive, taking me from RC3 to RC4, neither would upload, showing a corrupt package error.
Title: Re: Ignore User
Post by: Rumbaar on July 26, 2008, 03:39:48 AM
Well make sure all applicable $txt[] strings are in your forums language.

I mean the Large Upgrade package in relation to 1.1.5.

I've split and created a topic relating to your upgrade Upgrade issue 1.1 RC3 to 1.1.5 (http://www.simplemachines.org/community/index.php?topic=251803.0)
Title: Re: Ignore User
Post by: AMWebby on July 26, 2008, 06:58:36 AM
It is trying to work.

Under "Profile" there's now a blank space between "Personal Message Options" and "Edit Buddies" which is where the "Manage Ignore List" entry should be.

There is also an entry in "Profile" under "Summary", marked ":" with a value of "0". I'm guessing this is the number of users ignored?
Title: Re: Ignore User
Post by: AMWebby on July 27, 2008, 03:39:19 AM
This morning I copied the Post, Profile and Display template files to the Classic YaB SE theme, set that theme to the forum default and it worked!

The icons didn't show as they aren't in the Classic directory but otherwise everything worked.

Why would it work with this theme and no other and how can I make it work with the other themes?
Title: Re: Ignore User
Post by: Rumbaar on July 27, 2008, 04:42:26 AM
Well the process of updating your forum from 1.1 RC3 to 1.1.5 will most likely wipe all mods and themes, so you'll best no worry about the issue until you've update and re-installed the mod.
Title: Re: Ignore User
Post by: AMWebby on July 27, 2008, 04:46:00 AM
The process of updating may take some time as we've got to wrest control of the forum from a company that seemingly no longer exists.

It is puzzling too. Any ideas why it only works with that theme?
Title: Ignore User Fatal Error
Post by: streetartusa on August 08, 2008, 10:06:11 PM
I have tried to install this mod and it seems to create one fatal error.

I am running 1.1.2 upgraded to 1.1.4 with a lot of mods. Given that the install shows no problems and the options show up in the admin/features.

The problem is when you click on the "profile" button I get the following error.

Fatal error: Cannot redeclare template_ignprefs() (previously declared in /hsphere/local/home/boomstri/boards.screenprintersopen.com/Sources/Load.php(1738) : eval()'d code:2141) in /hsphere/local/home/boomstri/boards.screenprintersopen.com/Sources/Load.php(1738) : eval()'d code on line 2202

I have checked the line listed, checked the database, tried switching templates and it still gives that error.

When I un-install the mod everything goes back to normal. I just cannot seem to figure out where the problem is.

Anyone have a clue?

Thanks in advance..
Title: Re: Ignore User
Post by: Rumbaar on August 08, 2008, 11:10:34 PM
Well as the error indicates the function has been installed twice.  If you remove the additional duplication that function in your Load.php file it should solve that issue.
Title: Re: Ignore User
Post by: streetartusa on August 08, 2008, 11:30:50 PM
Quote from: Rumbaar on August 08, 2008, 11:10:34 PM
Well as the error indicates the function has been installed twice.  If you remove the additional duplication that function in your Load.php file it should solve that issue.

That is the funny part. I have already checked that and even with the mod installed I cannot find where template_ignprefs() is declared in the load.php. The only place I can even find it is in the Profile.template.php

As always I did a full backup prior to installing the mod so I know I had clean files before the mod was installed.
Title: Re: Ignore User
Post by: Rumbaar on August 08, 2008, 11:51:09 PM
This is an eval error too, the error might not even be in that file.

You'll have to disable template eval temporarily to get the real file and error line.

To do this, run this query in PHPmyAdmin (What is phpMyAdmin? (http://www.simplemachines.org/community/index.php?topic=21919.0))
INSERT INTO smf_settings VALUES ('disableTemplateEval', 1);
Once that's done, get the error again and copy it (the file and line may have changed), then run this query to re-enable it:
DELETE FROM smf_settings WHERE variable = 'disableTemplateEval';
Title: Re: Ignore User
Post by: streetartusa on August 09, 2008, 12:10:11 AM
Quote from: Rumbaar on August 08, 2008, 11:51:09 PM
This is an eval error too, the error might not even be in that file.

I found the problem. I had initially started to do a manual install because the package would not upload and install via the package function in the admin area. I use the Babylon template so I edited the files that needed the mod that were also in the Babylon folder. I did not finish the manual install because the copy feature in the install directions looses formating and places all the code on one line.

SO I restored all the original files (so I thought), manual uploaded the package via FTP and then installed the mod via the package function in the admin. It seems that even though the package install worked perfectly, there was another copy of a previously edited file in another template directory. I restored that file to pre-mod and then reinstalled the mod. Now it all works.

I guess I was so used to having to manually install parts of mods into the Babylon theme directory it never occurred to me to look in more than one place for a possible duplication on the code.

At any rate, your comments about it being a duplication was what lead me to find the problem so for that I thank you.
Title: Re: Ignore User
Post by: kysyjä on August 14, 2008, 12:01:16 PM
Has anybody succeeded in getting this to work in 1.1.5? It would be great to get this work...
Title: Re: Ignore User
Post by: Rumbaar on August 14, 2008, 05:54:18 PM
Quote from: kysyjä on August 14, 2008, 12:01:16 PM
Has anybody succeeded in getting this to work in 1.1.5? It would be great to get this work...
I run this mod on my 1.1.5 SMF forum without any issues.
Title: Re: Ignore User
Post by: tadi on August 18, 2008, 07:22:32 PM
I use 1.1.5 and fire theme

Can someone tell me why I can't find the Profile.template.php in my theme folder?
I aslo check and other themes I have on my folders but no of the themes have the Profile.template.php (incuding classic, babylon etc)

I only have it in the default theme folder.

I made all the other changes in the Post.template.php and the Display.template.php in my theme folder.

Now I have the option only in the profile of each member to ignore members (not in the board), but when you select a member to ignore only the avatar is hidden, not the post.

So what should i do with the non-exist Profile.template.php in my theme folder?
and why the ignore options not shown on every post of each member?

:)
Title: Re: Ignore User
Post by: Rumbaar on August 18, 2008, 08:17:49 PM
As with all themes, if a template file it no present the forum automatically falls back to the default CORE theme templates.  So as long as it works for the default theme and the mod successfully installed into that template file you don't have to do anything else.
Title: Re: Ignore User
Post by: tadi on August 18, 2008, 08:39:38 PM
Ok but it does not work!

Only the avatar is hidden when you ignore someone.

And also the ignore buttons are not shown in the boards

(I did add them to my buttons file)
:(
Title: Re: Ignore User
Post by: Rumbaar on August 18, 2008, 08:42:30 PM
Well then you've not correctly installed the mod into those custom theme templates.  Does it function correctly if/when you use the CORE theme?
Title: Re: Ignore User
Post by: tadi on August 18, 2008, 08:51:34 PM
Yes it does
Title: Re: Ignore User
Post by: Rumbaar on August 18, 2008, 09:31:09 PM
Then you'll need to work out the best way to add it your that custom theme.  Take a look at how it's done in the default themes and hopefully that will give you a better indication of where it need to be added and what it need to surround in the custom template code.

Next option might be for assistance from the author of that theme.  That is the issue when there are fancy theme that seriously alter code from the original.
Title: Re: Ignore User
Post by: tadi on August 18, 2008, 10:00:14 PM
I made it!

You were right! something was missing in the code !   ;D

Thank  you very very much.   :) :) :) :)

Title: Re: Ignore User
Post by: AMWebby on August 19, 2008, 01:44:00 AM
What was missing in the code?
Title: Re: Ignore User
Post by: tadi on August 19, 2008, 09:36:22 AM
I just did not put the correct space lines.   :P
Title: Re: Ignore User
Post by: mobilephone2003 on August 29, 2008, 05:34:15 AM
This is currently filling up my error log:

8: Undefined index: ignored_by_num
File: *webserver home* /user/htdocs/forum/Themes/default/languages/Who.english.php (summary sub template - eval?)
Line: 278


uninstalling this mod results in more errors :(

what code should i take out?
Title: Re: Ignore User
Post by: Rumbaar on August 29, 2008, 07:17:12 AM
Did you install the mod correctly and without errors?

Check your Profile.php for the following:
//-Ignore MOD- Start
//count how many members are ignoring him
$context['member']['ignored_by_num'] = 0; $result = db_query("SELECT COUNT(ID_MEMBER) FROM {$db_prefix}members WHERE FIND_IN_SET($memID,ign_ignore_list)",__FILE__,__LINE__);
list ($context['member']['ignored_by_num']) = mysql_fetch_row($result);
//-Ignore MOD- End
Title: Re: Ignore User
Post by: Jessikard on August 31, 2008, 06:50:16 PM
 :-[ i get this error:

Fatal error: Call to undefined function ignprefs() in /home/www/web4/html/forum/Sources/Profile.php on line 347

here are the lines:
346 // Call the appropriate subaction function.
  347 $_REQUEST['sa']($memID);
          348
  349 if (!empty($post_errors))
  350 {

Title: Re: Ignore User
Post by: mobilephone2003 on September 03, 2008, 03:14:12 AM
Quote from: Rumbaar on August 29, 2008, 07:17:12 AM
Did you install the mod correctly and without errors?

Check your Profile.php for the following:
//-Ignore MOD- Start
//count how many members are ignoring him
$context['member']['ignored_by_num'] = 0; $result = db_query("SELECT COUNT(ID_MEMBER) FROM {$db_prefix}members WHERE FIND_IN_SET($memID,ign_ignore_list)",__FILE__,__LINE__);
list ($context['member']['ignored_by_num']) = mysql_fetch_row($result);
//-Ignore MOD- End



Unfortunately I didn't install the mod, another admin did without asking me, so I don't know if there were errors.

The code wasn't there so I added it, however this did not seem to have any effect on the error :(
Title: Re: Ignore User
Post by: Rumbaar on September 03, 2008, 04:24:27 AM
Well if that piece of code was missing, then I'll have to assume other parts are missing as well.  You'll be best to first have words with your Admin about doing things without telling you and secondly manually check all the code changes the mod was suppose to have made in all applicable files.

This is really the only way to make sure all code is there and then should then fix the errors you are having.
Title: Re: Ignore User
Post by: Jessikard on September 03, 2008, 09:26:20 AM
i´ve uninstalled all the Codes and tried to reinstall this mod

then (in the Paketmanager) was only one error in recent.php

but i still installed it - then i opened the recent.php and changed all the necessary codes manually

i found all the points to change now

it works - thx
Title: Re: Ignore User
Post by: techster on September 08, 2008, 04:13:51 PM
Hi Folks,

I am using 1.1.16 and tried to install this MOD through package manager with default theme.  PM shows that the MOD is now installed, but I don't see anywhere to click 'ignore' to ignore a member.  Any ideas what's going on?

Thanks,
T-ster
Title: Re: Ignore User
Post by: Rumbaar on September 08, 2008, 05:59:29 PM
Do other mods install okay on your forum, or just not this one?   Are you sure you are using the default CORE theme?

As an admin you have to enable the option for you and moderators to ignore users, have you turned that on?  Be sure to check out all the options for the mod.
Title: Re: Ignore User
Post by: void4ever on September 08, 2008, 06:05:51 PM
I'm going to assume this mod doesn't install at all on 2.0 correct? I did a quick search and saw no mention of 2.0 at all.

Void4ever
Title: Re: Ignore User
Post by: Rumbaar on September 08, 2008, 06:48:30 PM
Click the Link to Mod in the very first post, and that will take you to the mod section and list what versions of SMF it's fully compatible with.

SMF 2.x I'm sure already has this feature built in?  If you add someone to your ignore list in ProfileCP it will automatically do the same/similar function.
Title: Re: Ignore User
Post by: techster on September 08, 2008, 06:56:02 PM
Quote from: Rumbaar on September 08, 2008, 06:48:30 PM
SMF 2.x I'm sure already has this feature built in?  If you add someone to your ignore list in ProfileCP it will automatically do the same/similar function.

I upgraded to 2.0 beta 4 and I cannot find an ignore list.  Where is it located?
Title: Re: Ignore User
Post by: Rumbaar on September 08, 2008, 07:02:48 PM
This really isn't a mod specific question anymore, so please limit any future discussion to the mod.  It's the same since at least 3.0:
ProfileCP->Personal Messaging=>Ignorelist:
Title: Re: Ignore User
Post by: void4ever on September 08, 2008, 07:18:19 PM
Yes I've been to the main mod page where 2.x was not listed. But that page isn't always a good indication as I've read several people in this thread using the mod on ver 1.1.4, 1.1.5, and 1.1.6.

That is the reason i asked here since the main page is not always updated in a timely fashion or at all.

And according to 2.x's desc it reads the same as the old 1.x, saying that it only blocks PM's. Though admittedly i have not tested it yet. I will go do so now.

Void4ever
Title: Re: Ignore User
Post by: Rumbaar on September 08, 2008, 07:21:01 PM
Well the main mods section of a mod, will always show the latest version the author has set their mod to fully work with.

As for 2.x, it doesn't list it.  But it's a 'hidden' feature of that ignore function.
Title: Re: Ignore User
Post by: void4ever on September 08, 2008, 07:25:55 PM
Indeed it does work!!! Despite the desc. Forgive me for cluttering up your thread, i should have tested it first instead of taking a beta desc at it's word :)

Void4ever
Title: Re: Ignore User
Post by: MDragon on September 13, 2008, 12:02:02 PM
I've installed this mod on a 1.1.6 SMF that's using the Default Dark Black theme.  The only other mods I have installed are Anti-Bot Registration Puzzles 1.2 and Auto Embed Video/Audio Clips 3.1.2.  I can't, anywhere on any user's profile, see an option to ignore, or an ignore list.  There is a "Buddy List" beside their "Current Status", though.  Any help?
Title: Re: Ignore User
Post by: Rumbaar on September 13, 2008, 08:09:05 PM
Well anything other than default CORE theme is a custom theme, so you'll need to apply any code changes to any applicable theme template files.  Check your language $txt[] strings are installed for your language.  Also check your error log and see if there are any missing undefined index errors.
Title: Re: Ignore User
Post by: MDragon on September 14, 2008, 04:40:22 PM
Hmm, not sure what to do.  I'm using default-black, so I have the images folder, index.template.php, styles.css, and theme_info.xml in that folder.  Everything the "manual install instructions" says the mod modifies is located in my default theme directory any way.  Do I need to move the files it modifies over to the default-black theme or something?
Title: Re: Ignore User
Post by: Gargoyle on September 14, 2008, 04:53:21 PM
default-black is not the default theme...

The default theme is white and came with your installation files. You will need to manually change the needed files in the "default-black" folder for the mod to show up properly.
Title: Re: Ignore User
Post by: wowyahoo on September 14, 2008, 05:20:38 PM
cool mod!
Title: Re: Ignore User
Post by: MDragon on September 14, 2008, 05:24:25 PM
Quote from: Gargoyle on September 14, 2008, 04:53:21 PM
default-black is not the default theme...

The default theme is white and came with your installation files. You will need to manually change the needed files in the "default-black" folder for the mod to show up properly.

Right, I got that bit.  What I'm saying is default black does not have those files, it has the four files I listed, which has worked so far, and all the other mods have modified the default theme (which I'm aware is not default-black) and worked with it.  Not sure how else to explain it, although lemme try this...

http://img140.imageshack.us/my.php?image=darkblacktg0.jpg

http://img152.imageshack.us/my.php?image=defaultki1.jpg

Click those to see my Dark Black and Default themes.  The files that this mod edits are under Default, but my theme is Dark Black, it doesn't actually contain of the files this mod edits, it's the index.template.php, style.css, and the two other files in there only.
Title: Re: Ignore User
Post by: Gargoyle on September 14, 2008, 05:31:52 PM
Did you add the new images to your "default_black" images folder in the correct places as well??
Title: Re: Ignore User
Post by: Rumbaar on September 14, 2008, 05:49:48 PM
Well as an admin you should be able to see it on other peoples profiles, just above Buddies.  Do you have a blank line there?  If so it's a $txt[] string issue for your current forum language.

Quote from: Rumbaar on September 08, 2008, 05:59:29 PMAs an admin you have to enable the option for you and moderators to ignore users, have you turned that on?  Be sure to check out all the options for the mod.
Title: Re: Ignore User
Post by: MDragon on September 14, 2008, 05:50:48 PM
Yep, I did.  No dice.  Ah well, everyone's getting along for now, no biggie.
Title: Re: Ignore User
Post by: Rumbaar on September 14, 2008, 05:54:08 PM
Did the mod install 100% without issue in the first place?
Title: Re: Ignore User
Post by: Jessikard on September 25, 2008, 05:21:54 PM
one question please....

this mod works only one way:
if i ignore member X there´s a message in the thread instead of his post

but i want the second possibility like:
if i ignore member X, THIS member shouldn´t be able to see my posts !!!

is there any way to realize this ?
Title: Re: Ignore User
Post by: Rumbaar on September 25, 2008, 06:10:35 PM
Yes this mod is for personal use and not able to control other peoples access to your post etc.  I'd strongly suggest against any type of action, having other users with the ability to alter how 'I' was accessing the forum and/or posts would make me not want to visit that forum.
Title: Re: Ignore User
Post by: Asshandler on October 08, 2008, 01:07:48 PM
This definitely works on 1.1.6, I just installed it and it works great.
Title: Re: Ignore User
Post by: alpinestaRR on October 23, 2008, 10:58:33 AM
Firstly - great mod, thanks for all the hard work.

I'm using SMF 1.1.4 (Yes, I know I should upgrade) and Ignore User 1.4.

My question is regarding permissions on which membergroups can see/use the mod and which can't.

I have many post count based membergroups which my members are put into by default. My "$ite $upporting" members are put into another membergroup (as their Main) which is NOT post-count based.

I only want my members in the "$ite $upporter" membergroup to be able to use the Ignore User mod! SO if I restrict the post-count based groups from being able to use the mod, it takes away functionality from EVERYONE because essentially everyone is in a post-count group one way or another.

So how can I only allow my "$ite $upporters" to use the mod without having to create a new non-post count based group and putting everyone else in it (then restricting access to the mod for that group)?
Title: Re: Ignore User
Post by: Rumbaar on October 23, 2008, 04:59:40 PM
Try to just disallow the 'Regular Members' membergroup.  That should stop all post count users, but allow any special primary membergroup members.
Title: Re: Ignore User
Post by: alpinestaRR on November 05, 2008, 09:55:37 AM
Quote from: Rumbaar on October 23, 2008, 04:59:40 PM
Try to just disallow the 'Regular Members' membergroup.  That should stop all post count users, but allow any special primary membergroup members.

Ok - how do I find the ID of the "regular" membergoup without having access to my database? I tried looking in Admin>Membergroups and doing the old hover over the group trick... buuuut, there is no group to hover over. :)

Thanks.

EDIT: Scratch that. I went to Admin>Permissions and hovered over the edit link for Regular members and saw the group ID of 0 (zero).
Title: Re: Ignore User
Post by: alpinestaRR on November 07, 2008, 12:20:34 PM
So the above suggestion of restricting "Regular Members" did not work.

I tested by registering a new user (who would fall under "Regular Member" but would also fall under the post count group "n00b") and the user was still able to see/user the Ignore functionality.

When I also restrict the "n00b" (post based) membergroup, the user then cannot use the ignore functionality. I do not want to do this.

Basically, I only want 2 custom membergroups to be able to use the functionality, along with admins/mods.

Any other suggestions?
Title: Re: Ignore User
Post by: Rumbaar on November 07, 2008, 07:16:28 PM
So is the 'n00b' post count group one of the 2 custom membergroups you want access to the function?
Title: Re: Ignore User
Post by: alpinestaRR on November 12, 2008, 12:10:25 PM
Quote from: Rumbaar on November 07, 2008, 07:16:28 PM
So is the 'n00b' post count group one of the 2 custom membergroups you want access to the function?

No it is not. Neither of the 2 custom membergroups that I wish to solely grant access to are post based.
Title: Re: Ignore User
Post by: nawtynawty4me on December 04, 2008, 09:27:25 PM
I did add the mod to a 1.1.7 version of the board.  There was no functionality.  No errors, but like I said it doesn't do anything at all.  I am using the default theme with a modified style.css file.  And our other mods are affiliates, ad management and images on board.
Title: Re: Ignore User
Post by: oinker on January 05, 2009, 02:30:23 PM
I can also say that I am not able to use this on 1.1.7. Installed fine without any errors, using theme "Blue" with custom .CSS file. It seems like it does work, yet posts are not ignored. I changed to the theme Default Core, but same problems - option is in my profile optionlist but does not work even though there are names in every single line. New (and old) posts still show up as normal.

Help would be appreciated.
Title: Re: Ignore User
Post by: Rumbaar on January 05, 2009, 04:58:09 PM
Check your languages is set to English, if not change too it or make sure all $txt[] fields are converted.

I've got it working on 3 1.1.7 forums, so it's not the mods issue in this regards.  Any forum errors.
Title: Re: Ignore User
Post by: oinker on January 05, 2009, 10:49:38 PM
My forum is of course in English. It's a gaming discussion forum for everyone. Default language is of course English. Not sure why it's not working.
Title: Re: Ignore User
Post by: Rumbaar on January 05, 2009, 11:55:21 PM
Not sure what "names in every single line" means.  Link to forum and test account to test.
Title: Re: Ignore User
Post by: Major Wood on January 25, 2009, 12:17:54 AM
I'm getting this error:
Quote
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /home/yourmomt/public_html/zebrahuddle/Sources/Profile.php on line 689

The code in this area is the following:

Quote//-Ignore MOD- Start
   // Validate and set the ignorelist...
   if (isset($_POST['ign_ignore_list']))
   {
      $_POST['ign_ignore_list'] = strtr($func['htmltrim']($_POST['ign_ignore_list']), array('\\\'' => ''', "\n" => "', '", "\r" => '', '&quot;' => ''));

         $result = db_query("
            SELECT ID_MEMBER
            FROM {$db_prefix}members
            WHERE memberName IN ('$_POST[ign_ignore_list]') OR realName IN ('$_POST[ign_ignore_list]')
            LIMIT " . (substr_count($_POST['ign_ignore_list'], '\', \'') + 1), __FILE__, __LINE__);
         $_POST['ign_ignore_list'] = strpos(strtolower($_POST['ign_ignore_list']),'guest') === false ? '' : '0,';
         while ($row = mysql_fetch_assoc($result))
            $_POST['ign_ignore_list'] .= $row['ID_MEMBER'] . ',';
         mysql_free_result($result);

With this code on line 689:

Quote$_POST['ign_ignore_list'] = strtr($func['htmltrim']($_POST['ign_ignore_list']), array('\\\'' => ''', "\n" => "', '", "\r" => '', '&quot;' => ''));

Please help!
Title: Re: Ignore User
Post by: Rumbaar on January 25, 2009, 03:05:14 AM
Were there any Test Failed errors when you installed the mod?  Please attach your Profile.php file.  As that line of code is correct.
Title: Re: Ignore User
Post by: oblisk on February 02, 2009, 09:31:46 PM
Hi guys, I signed up just for this thread.

I'm having some problems getting the Ignore User 1.4 mod to work. I can upload the package, install it with no problems fine. But it just doesn't work. After installing, there is a blank field under Features and Options, which I'm guessing is where the mod option is supposed to be, since the blank field disappears after I uninstall the mod. The mod just doesn't work! It's as if I never installed it.


I can install it without any errors, uninstall without any errors, and I'm on the Default Core theme.

What am I doing wrong? I tried installing a different mod package to see if I can reproduce the error, and that one worked.
Title: Re: Ignore User
Post by: Rumbaar on February 02, 2009, 10:09:14 PM
Try searching/reading this thread.  I'm sure it's a forum language issue.  You need to translate the $txt[] strings to your forums language if it's not english (or support language).
Title: Re: Ignore User
Post by: oblisk on February 02, 2009, 10:18:06 PM
Quote from: Rumbaar on February 02, 2009, 10:09:14 PM
Try searching/reading this thread.  I'm sure it's a forum language issue.  You need to translate the $txt[] strings to your forums language if it's not english (or support language).

I've tried reading it, but found no help.

My forum is English.
Title: Re: Ignore User
Post by: Rumbaar on February 02, 2009, 10:37:43 PM
Link to forum, and I'm sure it's english-utf8 and not english.  But we'll see.
Title: Re: Ignore User
Post by: oblisk on February 03, 2009, 12:00:22 AM
Got it working, thanks!
Title: Re: Ignore User
Post by: ttuu on February 08, 2009, 10:23:15 AM
u can add Ignore per group?
Title: Re: Ignore User
Post by: Rumbaar on February 08, 2009, 07:35:01 PM
No, but you can have the settings so it can't be applied to a specific group/s.
Title: Re: Ignore User
Post by: Major Wood on February 10, 2009, 11:14:19 PM
Here is my profile.php file. The line of code in question is now 684. Same error is occurring.
Title: Re: Ignore User
Post by: Major Wood on February 10, 2009, 11:28:09 PM
Actually, I was screwing around with it (having no clue what I'm doing) and I seem to have fixed that problem. I removed an apostrophe from the set of three apostrophes (I bolded them) in this line:

$_POST['ign_ignore_list'] = strtr($func['htmltrim']($_POST['ign_ignore_list']), array('\\\'' => [b]'''[b], "\n" => "', '", "\r" => '', '&quot;' => ''));

Now I'm getting errors in my error log.

Quote8: Undefined index: member
File: /home/yourmomt/public_html/zebrahuddle/Themes/default/languages/Who.english-utf8.php (summary sub template - eval?)
Line: 282

and

Quote8: Undefined index: ignored_by
File: /home/yourmomt/public_html/zebrahuddle/Themes/default/languages/Who.english-utf8.php (summary sub template - eval?)
Line: 281

Any ideas?
Title: Re: Ignore User
Post by: DirtRider on February 26, 2009, 11:06:58 AM
Can this mod be upgraded for RC1 please  :D
Title: Re: Ignore User
Post by: Rumbaar on February 26, 2009, 04:29:15 PM
It's a feature already built in to SMF 2.0, though implemented a little differently.  You add names to the ignore list in Private Messages setting area and then they are ignored in posts as well.
Title: Re: Ignore User
Post by: DirtRider on February 26, 2009, 10:06:11 PM
I tried that already and it did not work
Title: Re: Ignore User
Post by: Rumbaar on February 26, 2009, 10:30:51 PM
You've entered a name in UserCP->Personal Messaging=>Ignorelist?

Then when viewing a post of that user it will display:
You are ignoring this user. Show me the post.
Title: Re: Ignore User
Post by: DirtRider on February 26, 2009, 11:23:37 PM
 :D Ok I must admit I did not look at the post but you are correct. I did a "Show unread posts since last visit." and the post showed up. As this is the part we are trying to ignore I did not go as far as looking at the post. The problem we are having is I have the RSS poster working on the forum. Some of the members are complaining that when they do the "Show unread posts since last visit." they do not want to see all the threads from the poster. Now I could use the ignore board function and this would work but we need the correct content injected into the correct forum areas. I could also make it post as read but then those following the feeders post will not see any new items when doing the "Show unread posts since last visit.". So I am sort of in a bit of a bind here so to speak
Title: Re: Ignore User
Post by: Rumbaar on February 26, 2009, 11:36:14 PM
Well this doesn't relate to the current mod, but I don't think the ignore user mod in 1.1.x extends to RSS feeds either.
Title: Re: Ignore User
Post by: DirtRider on February 27, 2009, 12:48:05 AM
Yes this is a bit different looking at what I need thanks  :D
Title: Re: Ignore User
Post by: Major Wood on February 27, 2009, 08:18:25 AM
I'm still having the problem mentioned in this post (http://www.simplemachines.org/community/index.php?topic=49149.msg1925861#msg1925861). Is there anything I can do to fix it?
Title: Re: Ignore User
Post by: digit on March 18, 2009, 02:56:42 AM
Quote from: unrelenting on April 10, 2008, 10:42:02 PM
Quote from: Rudolf on April 09, 2008, 07:11:01 AM
Quote from: digit on April 02, 2008, 06:46:35 AM
A feature I would like to see...

Most ignored user stat!

Where would you want this to appear?

One good spot would be in Display.template.php somewhere in there profile next to their posts, if they are indeed the most ignored user.  :D

Yeah!   8)   ;)

Actually, I am using custom actions, so if you could whip up a query (I might be using 1.3, I see my data is stored in the members table, in the ign_ignore_list   column) showing just the members with ignores, followed by the number of ignores, that would be AWESOME.


Thanks in advance....
Title: Re: Ignore User
Post by: dry3210 on March 26, 2009, 01:37:25 PM
Using SMF: 1.1.8
TinyPortal: v1.0 beta 3

The latest version of Ignore users makes for double bulletins in the menu area.

Any idea on fix?
Title: Re: Ignore User
Post by: Rumbaar on March 26, 2009, 05:27:54 PM
Not sure what you mean by 'double bulletins', but if you mean block menus then you'll have to take it up with TP.  As this mod doesn't not have code for blocks or side menus.
Title: Re: Ignore User
Post by: dry3210 on April 02, 2009, 01:25:15 PM
Quote from: Rumbaar on March 26, 2009, 05:27:54 PM
Not sure what you mean by 'double bulletins', but if you mean block menus then you'll have to take it up with TP.  As this mod doesn't not have code for blocks or side menus.

Look at the attached picture.  Theres two rows of columns in the thread.  But outside of the thread it only has one column as it should.

And of course Tinyportal tells me to check with the mod author.

For some reason...Tinyportal and ignore mod make this happen
Title: Re: Ignore User
Post by: Rumbaar on April 02, 2009, 04:59:37 PM
Yeah, I'm sure it's going to be hard for any mod author to offer support and troubleshooting of there code when it works with SMF, but not with another third party mod.  I can't see how this mod has any baring on TinyPortal blocks.

I have ignore user mod on two of my forums that run TinyPortal and cannot replicate this issue.   So I doubt it due to just a combination of them.
Title: Re: Ignore User
Post by: wnff_chief on April 13, 2009, 10:00:39 PM
I recently tried to reinstall this mod on my forum (1.1.8 ) but for some reason this particular section causes any attempt to view the "profile" page to come up blank almost instantly:




//-Ignore MOD- Start
// Validate and set the ignorelist...
if (isset($_POST['ign_ignore_list']))
{
$_POST['ign_ignore_list'] = strtr($func['htmltrim']($_POST['ign_ignore_list']), array('\\\'' => ''', "\n" => "', '", "\r" => '', '&quot;' => ''));

$result = db_query("
SELECT ID_MEMBER
FROM {$db_prefix}members
WHERE memberName IN ('$_POST[ign_ignore_list]') OR realName IN ('$_POST[ign_ignore_list]')
LIMIT " . (substr_count($_POST['ign_ignore_list'], '\', \'') + 1), __FILE__, __LINE__);
$_POST['ign_ignore_list'] = strpos(strtolower($_POST['ign_ignore_list']),'guest') === false ? '' : '0,';
while ($row = mysql_fetch_assoc($result))
$_POST['ign_ignore_list'] .= $row['ID_MEMBER'] . ',';
mysql_free_result($result);

// !!! Did we find all the members?

$_POST['ign_ignore_list'] = substr($_POST['ign_ignore_list'], 0, -1);
}
//-Ignore MOD- End



The code in question goes in ./Sources/Profile.php right before "// Validate the smiley set."

Anyone have any suggestions? :D
Title: Re: Ignore User
Post by: R.Bourne on April 29, 2009, 03:53:39 PM
Well, according to this post, it looks like this MOD makes changes that SimplePortal fails to work properly too.

http://www.simplemachines.org/community/index.php?topic=227599.msg2027145#msg2027145

Its developer suggested a change which fixed the problem for some people. But in my case, even that fix didn't work probably because I am not using default SMF theme.
Title: Re: Ignore User
Post by: Retired_PS on May 09, 2009, 03:39:08 PM
Quote from: oblisk on February 02, 2009, 09:31:46 PM
Hi guys, I signed up just for this thread.

I'm having some problems getting the Ignore User 1.4 mod to work. I can upload the package, install it with no problems fine. But it just doesn't work. After installing, there is a blank field under Features and Options, which I'm guessing is where the mod option is supposed to be, since the blank field disappears after I uninstall the mod. The mod just doesn't work! It's as if I never installed it.


I can install it without any errors, uninstall without any errors, and I'm on the Default Core theme.

I had the exact same problem with 1.1.8 using the default core theme and found out how to fix it thanks to this thread.

Data and research:
1) My Server settings/core configuration   Default forum language was English-utf8.
2) The mod changes files in the /languages directory as "English" only (NOT English-utf8, I had both in mine).

Problem identified
The problem was my English-utf8 files in my ./Themes/default/languages directory were not being affected by the mod. If your SMF was set for English, the mod should work fine.

Here is how I made it work:
After installing the mod, and copying the listed GIF files to my /Themes/default/images/English-utf8 directory, I edited/changed four of the listed files based on the manual install page from the mod:
./Themes/default/languages/index.english-utf8.php
./Themes/default/languages/Profile.english-utf8.php
./Themes/default/languages/ModSettings.english-utf8.php
./Themes/default/languages/Help.english-utf8.php

I copied and pasted the mod text in each where shown.

The mod takes care of the other files listed like index.php, so you are only changing 4 files after installing the mod.

I now see the options listed in Features and Options where they should be.

It sounds worse to do than it is for noobs like me.

Hope this will help those with the same issue in the future!
Title: Re: Ignore User
Post by: Retired_PS on May 09, 2009, 05:15:47 PM
I have also modified the files and created a modified mod that should automate this for the users with English-utf8 as their core language. I have tested this on my version 1.1.8 forum after uninstalling the 1.4 mod and it worked properly.

This modification puts the GIF files in the proper directory as well as the above mentioned language files.

I renamed it Ignore user English-utf8 and version 1.4eutf8 to differentiate it once installed. Per the creator's directives, I give him all the credit for this excellent mod.

Thanks Rudolph!
Title: Re: Ignore User
Post by: Tirick on May 19, 2009, 10:17:13 PM
I am having a very similar issue as two others, and I see no response to either yet (Major Wood and wnff_chief: I get the following error when going to a profile page:

Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /var/www/smf-janet/Sources/Profile.php on line 713

I am using 1.1.8, and had to manually build from the parse text as the installer would not work for me. The offending line is:

      $_POST['ign_ignore_list'] = strtr($func['htmltrim']($_POST['ign_ignore_list']), array('\\\'' => ''', "\n" => "', '", "\r" => '', '&quot;' => ''));

which is part of the text to be copied in front of:

   // Validate the smiley set.

Any help would be greatly appreciated.

Thank you,
Sean
Title: Re: Ignore User
Post by: Tirick on May 19, 2009, 10:56:26 PM
I think I have found the source of the error:

      $_POST['ign_ignore_list'] = strtr($func['htmltrim']($_POST['ign_ignore_list']), array('\\\'' => ''', "\n" => "', '", "\r" => '', '&quot;' => ''));

should maybe read:
      $_POST['ign_ignore_list'] = strtr($func['htmltrim']($_POST['ign_ignore_list']), array('\\\'' => '', "\n" => "', '", "\r" => '', '&quot;' => ''));

There is an extra " ' " after the first => in the array (three instead of two). I removed it and it seems to be functioning fine. You may want to edit the parse text (if possible) in the install guide. Please feel free to let me know if I missed something critical here.

Thank you,
Sean
Title: Re: Ignore User
Post by: katdillon on July 05, 2009, 06:04:16 AM
It seems you can only ignore 54 people?  Once you try 55, it gets buggy.  Any reason for this?

Thanks so much for this great mod!
Title: Re: Ignore User
Post by: digit on July 21, 2009, 07:00:45 AM
Well, I just found a user who is (er, WAS) ignoring 6000+ users....   I have no idea if it got buggy for him  8)

I also have no idea why he would do that - or if there is some way to overload the list of ignores....  that was so many, my text editor had a hard time handling the list!

I deleted his ignore list - but it does beg the question...  is there a limit to the amount of text you can enter in the ignore list... and if not - could that be a bad thing?

Again...  I would like to somehow display the most ignored, and NOW, the most ignores!    >:(  (even if that is just to the admin!)
Title: Re: Ignore User
Post by: fmofmpls on August 10, 2009, 08:20:13 AM
Question - my members are not happy when they see they are being ignored. Other members can also see if other members are being ignored. They can't see who it is that is ignoring them because I have that option turned off.

BUT ... is there a way to make the  "Ignored by:  4 members" profile information invisible to not only the ignored member but to the rest of the members as well ?

What was supposed to help members has now appeared to upset most members.

BTW, I am using 1.1.9

Thanks!
Title: Re: Ignore User
Post by: jazzupnow on August 22, 2009, 06:57:29 AM
Quote from: digit on March 18, 2009, 02:56:42 AM
Quote from: unrelenting on April 10, 2008, 10:42:02 PM
Quote from: Rudolf on April 09, 2008, 07:11:01 AM
Quote from: digit on April 02, 2008, 06:46:35 AM
A feature I would like to see...

Most ignored user stat!

Where would you want this to appear?

One good spot would be in Display.template.php somewhere in there profile next to their posts, if they are indeed the most ignored user.  :D

Yeah!   8)   ;)

Actually, I am using custom actions, so if you could whip up a query (I might be using 1.3, I see my data is stored in the members table, in the ign_ignore_list   column) showing just the members with ignores, followed by the number of ignores, that would be AWESOME.


Thanks in advance....
second this request - would be great to have 'most ignored' stat, either in the users profile, or in karma stats.
Title: Re: Ignore User
Post by: rufen on November 29, 2009, 01:43:36 PM
I would really like an update for RC2 on this! :)
Title: Re: Ignore User
Post by: my evil twin on January 31, 2010, 08:36:08 AM
Hello,

is it possible to:

- Print on the Profile: You ignore this user. Unignore? (<-- Make this a link to unignore user)

- Hide threads by ignored users COMPLETELY from the Message index? So people that ignore a certain person don't even see their threads at all?

thanks in advance and best regards!
Title: Re: Ignore User
Post by: Bruno36 on March 18, 2010, 10:56:23 AM
I would really like an update for RC3 on this!
Title: Re: Ignore User
Post by: Arantor on March 18, 2010, 10:56:56 AM
Uh, it's built into RC2 and RC3? You ignore them and their posts are hidden.
Title: Re: Ignore User
Post by: Bruno36 on March 18, 2010, 11:21:34 AM
I did not find  :(
Title: Re: Ignore User
Post by: Arantor on March 18, 2010, 12:11:01 PM
Go into Admin > Features and Options > Enable buddy/ignore lists

Then it's in your profile.
Title: Re: Ignore User
Post by: Bruno36 on March 18, 2010, 01:02:09 PM
merci  :)
Title: Re: Ignore User
Post by: Bruno36 on March 25, 2010, 10:42:11 AM
sorry I still can not find the option in the rc3 (
When I go

Administration Center "Features and Options"
I have an online Enable lists of friends / ignore my no button or link in the subjects Ignore User
Title: Re: Ignore User
Post by: Arantor on March 25, 2010, 07:50:15 PM
/me doesn't speak French, sorry.
Title: Re: Ignore User
Post by: Rudolf on April 06, 2010, 10:01:22 AM
Hi all,

for the time being there will not be a version for SMF 2 of this mod, because the feature is built-in. Once SMF 2 final is out I will consider creating a mod for extra features that were not implemented by the SMF team.

In the mean time I will look in the issues and features discussed for SMF 1.x

Regards,
Rudolf
Title: Re: Ignore User
Post by: mrbandit on April 09, 2010, 12:28:21 PM
I haven't been able to find my answer in this post, but this looks almost perfect for what I want to do.  I want the ability to set certain users to "all ignore", but not have anyone know we can even do it.  I have users that start a bunch of crap and I want to put them in their own little sandbox, but not know it.

I'm running 1.1.10.  Will this mod work for me?
Title: Re: Ignore User
Post by: digit on May 23, 2010, 09:41:09 AM
Quote from: jazzupnow on August 22, 2009, 06:57:29 AM
Quote from: digit on March 18, 2009, 02:56:42 AM
Quote from: unrelenting on April 10, 2008, 10:42:02 PM
Quote from: Rudolf on April 09, 2008, 07:11:01 AM
Quote from: digit on April 02, 2008, 06:46:35 AM
A feature I would like to see...

Most ignored user stat!

Where would you want this to appear?

One good spot would be in Display.template.php somewhere in there profile next to their posts, if they are indeed the most ignored user.  :D

Yeah!   8)   ;)

Actually, I am using custom actions, so if you could whip up a query (I might be using 1.3, I see my data is stored in the members table, in the ign_ignore_list   column) showing just the members with ignores, followed by the number of ignores, that would be AWESOME.


Thanks in advance....
second this request - would be great to have 'most ignored' stat, either in the users profile, or in karma stats.

I still need a way to see our most ignored users.... (so this is a bump :))
Title: Re: Ignore User
Post by: dillon on August 18, 2010, 09:46:39 AM
Is there a way to remove the amount of users ignoring you in your profile?  We don't want members seeing how many are ignoring them.

Title: Re: Ignore User
Post by: digit on January 13, 2012, 04:06:48 AM
Quote from: digit on May 23, 2010, 09:41:09 AM
Quote from: jazzupnow on August 22, 2009, 06:57:29 AM
Quote from: digit on March 18, 2009, 02:56:42 AM
Quote from: unrelenting on April 10, 2008, 10:42:02 PM
Quote from: Rudolf on April 09, 2008, 07:11:01 AM
Quote from: digit on April 02, 2008, 06:46:35 AM
A feature I would like to see...

Most ignored user stat!

Where would you want this to appear?

One good spot would be in Display.template.php somewhere in there profile next to their posts, if they are indeed the most ignored user.  :D

Yeah!   8)   ;)

Actually, I am using custom actions, so if you could whip up a query (I might be using 1.3, I see my data is stored in the members table, in the ign_ignore_list   column) showing just the members with ignores, followed by the number of ignores, that would be AWESOME.


Thanks in advance....
second this request - would be great to have 'most ignored' stat, either in the users profile, or in karma stats.

I still need a way to see our most ignored users.... (so this is a bump :))

STILL no ideas on a most ignored feature (or just a table of ignores for admins?)  I just found a member who 53 other members were ignoring.  I wish I had seen this sooner.

Thanks.

Title: Re: Ignore User
Post by: jasonwatkins on March 14, 2012, 11:28:38 AM
just wanted to ask as a number of members have requested the feature.

If one particular user is being ignored and someone quotes his or her post, it means that people who have them on ignore can still see their posts.  is there a way around this ?

cheers
Title: Re: Ignore User
Post by: Biology Forums on April 11, 2012, 11:23:12 PM
What if the topic is started by the person you've ignored? Will their topics appear in the board topic index?
Title: Re: Ignore User
Post by: Rudolf on June 30, 2012, 09:43:31 AM
Quote from: jasonwatkins on March 14, 2012, 11:28:38 AM
just wanted to ask as a number of members have requested the feature.

If one particular user is being ignored and someone quotes his or her post, it means that people who have them on ignore can still see their posts.  is there a way around this ?

cheers

Not really. The author you see in the quotes is the display name of the user at the time of writing. If they change their display name, and I happen to change later to the same previous one, then it would appear that a quote is mine even if it isn't. It is a limitation of SMF, and I can't rely on the author information to match with the ignored list.

The solution would be to fix the quote tag first.
Title: Re: Ignore User
Post by: Rudolf on June 30, 2012, 09:49:36 AM
Quote from: Liam_michael on April 11, 2012, 11:23:12 PM
What if the topic is started by the person you've ignored? Will their topics appear in the board topic index?

Yes, the board index is not changed, nor the search, new posts, statistic or any other part of the forum. The mod was intended to fix only topics by making the topic page shorter, less to scroll, more to the point. If you have a member who you don't want to see in your forum at all, you should delete it ;). If the other members don't like him/her so much that they can't even stand seeing their name (aka hate), you have deeper non-technical issues to worry about and ignoring it will not help. Pun intended.
Title: Re: Ignore User
Post by: Biology Forums on March 25, 2015, 03:14:17 PM
What if the person you are ignoring is a topic starter?