Advertisement:

Author Topic: Ignore User  (Read 191767 times)

Offline Rudolf

  • SMF Hero
  • ******
  • Posts: 1,934
  • Gender: Male
  • iamanoompaloompa
Ignore User
« on: September 12, 2005, 01:00:12 PM »
Link to Mod
Alternative Link to Mod

  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

Other languages: upload the language file in the "Themes/default/languages" directory
    Russian

Button PSD's: Button templates

    Default buttons: The Full Set - Thanks to Tanya
     
    Shomazta:     The Full Set - Thanks to Shomazta


Rudolf
« Last Edit: April 20, 2007, 02:54:07 PM by Rudolf »
I will update all my mods in the next few weeks. Thanks for your patience.

SVG-Collapse (you need an SVG compliant browser)

Offline Rudolf

  • SMF Hero
  • ******
  • Posts: 1,934
  • Gender: Male
  • iamanoompaloompa
Re: Ignore User
« Reply #1 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

I will update all my mods in the next few weeks. Thanks for your patience.

SVG-Collapse (you need an SVG compliant browser)

Offline Rudolf

  • SMF Hero
  • ******
  • Posts: 1,934
  • Gender: Male
  • iamanoompaloompa
Re: Ignore User
« Reply #2 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
Code: [Select]
<modification>themes.xml</modification>
Code: [Select]
<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
I will update all my mods in the next few weeks. Thanks for your patience.

SVG-Collapse (you need an SVG compliant browser)

Offline gri

  • Full Member
  • ***
  • Posts: 553
  • Space Human
Re: Ignore User
« Reply #3 on: September 13, 2005, 06:19:19 PM »
   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

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

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

Offline gri

  • Full Member
  • ***
  • Posts: 553
  • Space Human
Re: Ignore User
« Reply #4 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.
« Last Edit: September 13, 2005, 06:43:02 PM by gri »

Offline gri

  • Full Member
  • ***
  • Posts: 553
  • Space Human
Re: Ignore User
« Reply #5 on: September 13, 2005, 06:20:32 PM »
Still not locked..

?

Offline mohoganybrwn

  • Jr. Member
  • **
  • Posts: 171
Re: Ignore User
« Reply #6 on: September 13, 2005, 06:47:48 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
Code: [Select]
<modification>themes.xml</modification>
Code: [Select]
<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. 

Offline gri

  • Full Member
  • ***
  • Posts: 553
  • Space Human
Re: Ignore User
« Reply #7 on: September 13, 2005, 08:29: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.

Offline Rudolf

  • SMF Hero
  • ******
  • Posts: 1,934
  • Gender: Male
  • iamanoompaloompa
Re: Ignore User
« Reply #8 on: September 13, 2005, 10:26:43 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
I will update all my mods in the next few weeks. Thanks for your patience.

SVG-Collapse (you need an SVG compliant browser)

Offline Rudolf

  • SMF Hero
  • ******
  • Posts: 1,934
  • Gender: Male
  • iamanoompaloompa
Re: Ignore User
« Reply #9 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
I will update all my mods in the next few weeks. Thanks for your patience.

SVG-Collapse (you need an SVG compliant browser)

Offline Rudolf

  • SMF Hero
  • ******
  • Posts: 1,934
  • Gender: Male
  • iamanoompaloompa
Re: Ignore User
« Reply #10 on: September 13, 2005, 10:56:49 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
I will update all my mods in the next few weeks. Thanks for your patience.

SVG-Collapse (you need an SVG compliant browser)

Offline zmobie

  • Newbie
  • *
  • Posts: 5
Re: Ignore User
« Reply #11 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():
Code: [Select]
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):
Code: [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>';
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:
Code: [Select]
<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:
Code: [Select]
    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:
Code: [Select]
    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...
« Last Edit: September 14, 2005, 12:15:22 AM by zmobie »

Offline Rudolf

  • SMF Hero
  • ******
  • Posts: 1,934
  • Gender: Male
  • iamanoompaloompa
Re: Ignore User
« Reply #12 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
I will update all my mods in the next few weeks. Thanks for your patience.

SVG-Collapse (you need an SVG compliant browser)

Offline zmobie

  • Newbie
  • *
  • Posts: 5
Re: Ignore User
« Reply #13 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?  :(

Offline Rudolf

  • SMF Hero
  • ******
  • Posts: 1,934
  • Gender: Male
  • iamanoompaloompa
Re: Ignore User
« Reply #14 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
I will update all my mods in the next few weeks. Thanks for your patience.

SVG-Collapse (you need an SVG compliant browser)

Offline gri

  • Full Member
  • ***
  • Posts: 553
  • Space Human
Re: Ignore User
« Reply #15 on: September 14, 2005, 05:35:07 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.

Offline gri

  • Full Member
  • ***
  • Posts: 553
  • Space Human
Re: Ignore User
« Reply #16 on: September 14, 2005, 06:45:39 AM »
  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.
}
« Last Edit: October 02, 2005, 05:20:28 AM by gri »

Offline gri

  • Full Member
  • ***
  • Posts: 553
  • Space Human
Re: Ignore User
« Reply #17 on: September 14, 2005, 09:09:11 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.

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.

Offline gri

  • Full Member
  • ***
  • Posts: 553
  • Space Human
Re: Ignore User
« Reply #18 on: September 14, 2005, 09:25:24 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]"

Offline mohoganybrwn

  • Jr. Member
  • **
  • Posts: 171
Re: Ignore User
« Reply #19 on: September 14, 2005, 11:16:03 AM »
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.