News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Ignore User

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

Previous topic - Next topic

Rudolf

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
I will update all my mods in the next few weeks. Thanks for your patience.

SVG-Collapse (you need an SVG compliant browser)

Rudolf

@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)

Rudolf

@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
I will update all my mods in the next few weeks. Thanks for your patience.

SVG-Collapse (you need an SVG compliant browser)

gri

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

gri

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


mohoganybrwn

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. 

gri

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.

Rudolf

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
I will update all my mods in the next few weeks. Thanks for your patience.

SVG-Collapse (you need an SVG compliant browser)

Rudolf

   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)

Rudolf

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
I will update all my mods in the next few weeks. Thanks for your patience.

SVG-Collapse (you need an SVG compliant browser)

zmobie

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

Rudolf

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)

zmobie

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?  :(

Rudolf

  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)

gri

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.

gri

#16
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.
}

gri

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.

gri

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]"

mohoganybrwn

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.

Advertisement: