UBB.Dev
Posted By: PhotoPost Beta-[6.2] Ignore User - 05/13/2003 3:57 PM
Mod Name / Version: 6.2: Ignore User

Description: Allows people to "Ignore" a user and not see their posts. In place
of those users posts is a notice allowing them to override the ignore and see the
entire post; or an option to unignore a user. Users are "ignored" by viewing their
profile.


Working Under: UBB.Threads 6.2

Mod Status: Beta

Any pre-requisites: None

Author(s): extremebikini

Date: 05/13/03

Credits: Michael Pierce

Files Altered: showflat.php, showprofile.php, templates/showprofile.tmpl

New Files: ignoremod.php

Database Altered: Yes, U_Ignore added to the w3t_Users table to store the user's

Info/Instructions: Download attached file. Unzip and follow instructions in IgnoreUserMod.txt

Disclaimer: Please backup every file that you intend to modify.
If the modification modifies the database, it's a good idea to backup your database before doing so.

Note: If you modify your UBB.Threads code, you may be giving up your right for "official" support from Infopop.If you need official support, you'll need to restore unmodified files.




Attached File
79985-IgnoreUserMod.zip  (87 downloads)
Posted By: Hal9000 Re: Beta-[6.2] Ignore User - 05/13/2003 6:39 PM
Very good !!!
What happens if the user you choose to ignore, send you a PM. Is it ignored too?
Posted By: PhotoPost Re: Beta-[6.2] Ignore User - 05/13/2003 6:56 PM
No. This is jsut for the forums. I still have a little cleanup to do - a nice icon would help (I suck at graphics), put the Ignore into the langauge file and then decide if this needs to be anywhere else.

Thing about showthreaded and PMs is you can easily delete and/or not click on a post you dont want to read. I'm not sure about adding it to PMs because you can easily choose not to read those.
Posted By: AKD96 Re: Beta-[6.2] Ignore User - 05/13/2003 10:39 PM
VERY cool senor(a,ita) Bikini!!!! I'm sure some of my user's would find this helpful.
Posted By: Dslam Re: Beta-[6.2] Ignore User - 05/14/2003 12:42 AM
hehe Cool deal you made it :-)
[]https://www.ubbdev.com/threads/php/uploads/panels/8214-14430.png[/]
Posted By: Ian_W Re: Beta-[6.2] Ignore User - 05/14/2003 8:40 PM
This is similar to the feature we see at the Photopost forums - thanks for sharing.Perhaps if someone could come up with a nice icon for it, that would be cool
Posted By: PhotoPost Re: Beta-[6.2] Ignore User - 05/18/2003 6:19 AM
85 downloads! Come on guys - what do you think? Do your users like it?

I think I can clean up a little code - and try to find a little icon for it.
Posted By: AKD96 Re: Beta-[6.2] Ignore User - 05/18/2003 6:44 AM
I'm going to wait until I get 6.3 gold installed, then I'll install this. I'll let you know!
Posted By: Lisa_P Re: Beta-[6.2] Ignore User - 05/18/2003 11:03 AM
Sorry! I can't answer if the users like it or not, as they haven't seen it yet. I set it up on my test board and it seems to work, but I am getting an error. I'm not sure if I'm reading the install directions wrong or not though.

When you click to view a person's profile, it says, "Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/ffd2/public_html/forums_copy/showprofile.php on line 335". That's the area that has this:
Code
// Ignore User Mod <br />   if ( in_array($UNumber, $IgnoreList) ) { <br />      $unign = "{$config['phpurl']}/ignoremod.php?Cat=$Cat&amp;Board=$Board&amp;Number=$Number&amp; <br />page=$page&amp;view=$view&amp;sb=$sb&amp;o=$o&amp;vc=1&amp;fpart=$fpart&amp;what=showprofile <br />&amp;who=$UNumber&amp;action=remove"; <br />      $ignorelink = "<a href=\"$unign\">Unignore this user</a>"; <br />   } <br />   else { <br />      $unign = "{$config['phpurl']}/ignoremod.php?Cat=$Cat&amp;Board=$Board&amp;Number=$Number&amp; <br />page=$page&amp;view=$view&amp;sb=$sb&amp;o=$o&amp;vc=1&amp;fpart=$fpart&amp;what=showprofile <br />&amp;who=$UNumber&amp;action=add"; <br />      $ignorelink = "<a href=\"$unign\">Ignore this user</a>"; <br />   }

(I added line breaks above so it didn't scroll so much)

The next section:
Code
$ignorelink <br /> | 

I figured probably belonged in the template file instead? The reason I am unsure if it's just the instructions - your instructions say the mod changes showprofile.tmpl, but the instructions don't list that file (only under files changed.)

Even with the error, it puts the person into ignore, and doesn't show the text, so it's working properly in that respect (at least I think!)

Also, a nice thing to add could be a small link/icon in the post itself that adds the person to the ignore list, but only if it doesn't add a lot of queries or download time. Also, it might be important for mods and admin NOT to be able to be ignored. I'm sure there are plenty who may want to, but sometimes we actually have something important to say.

I'm almost scared to see how our users will sworm down on this. I wonder how a "Top ten ignored users" list would go over? (just kidding! )
Posted By: Lisa_P Re: Beta-[6.2] Ignore User - 05/18/2003 11:10 AM
[]I think I can clean up a little code - and try to find a little icon for it.
[/]

Hmm, I am getting the feeling you want a little icon for this? How little? Do you have anything in mind? I've seen a couple different boards that used a little hand (like "stop" or "talk to the hand" idea), and I've seen a few that used only a specific finger from the hand. Or a little face with an "X" through it. Where were you thinking of putting the icon?
Posted By: PhotoPost Re: Beta-[6.2] Ignore User - 05/19/2003 2:18 AM
In the Post Extras line - I'm open to suggestions.

I'm not sure why you are getting that error - that's odd. I'll go over my instructions and see if I can clear them up.
Posted By: Ian_W Re: Beta-[6.2] Ignore User - 05/23/2003 12:25 AM
Will have to give this a shot - we all get an annoying user from time to time on our forums Might even be useful here
Posted By: JoshPet Re: Beta-[6.2] Ignore User - 05/23/2003 12:28 AM


I can think of someone who is ready for this.
Posted By: AKD96 Re: Beta-[6.2] Ignore User - 05/23/2003 12:28 AM
Whenever we get an annoying user, it usually doesn't get very far. Since most of my visitors are high schoolers, it happens more than at a site like this. Not too often though. But, if someone even looks at the line and thinks about stepping over it, my moderators pounce.

Like, if a new user makes a post using all caps, within minutes (usually) a moderator will bust up into the thread with lights blazing. (We use in our posts when we're moderating.)

However, we do have members that, while posting relevant and good information, still manage to annoy people with the stupid things they write. So this hack will find a home at Drumlines.org. The way I look at it is, if they want to use it, it's there. If not, then they don't have to. It's always best to give the option rather than not.
Posted By: kaspar Re: Beta-[6.2] Ignore User - 07/22/2003 8:50 PM
Oh I like this mod, does it work for 6.3.1?

Posted By: AKD96 Re: Beta-[6.2] Ignore User - 07/23/2003 1:25 AM
Darn. I forgot all about this mod. I'm gonna give it a try now and let ya know. I have 6.3.1
Posted By: AKD96 Re: Beta-[6.2] Ignore User - 07/23/2003 1:47 AM
The instructions still have the error about showprofile.tmpl. Besides that, the install is just about the same. Same enough to know where things are supposed to go. But, why would you edit showflat.php and not showflat.tmpl? Also, the layout change in showprofile causes the links to look rather junky since it causes a line break. Of course, this is due to resolution and/or side bar(s). When you click "Ignore User" it just refreshes the profile. There is nothing letting you know if it worked or not. The only way to tell is if you browse to a thread where the user posted. If the user is ignored, you will see:

[]You are ignoring this user. See entire thread or unignore this user.[/]

There should be a link on the person's post for ignoring/unignoring. Also, a list of ignored persons could be added to your profile, visible by only you of course.

Bottom-line: It works in 6.3.1. The idea is good, and it's functional, I just feel it could use some more cosmetic/usage tweaking.
Posted By: kaspar Re: Beta-[6.2] Ignore User - 07/23/2003 1:57 AM
Woohoo I'll give it a try
Posted By: AKD96 Re: Beta-[6.2] Ignore User - 07/23/2003 2:09 AM
I've messed around with my showprofile.tmpl a little bit:

http://www.drumlines.org/threads/showprofile.php?Cat=&User=4&what=showprofile.php

BTW, I like Dalan's idea of not showing links to people that can't use them. I might just have to go through and hack away some of those links that are text for people not logged-in, i.e. "Send a private message"
Posted By: AKD96 Re: Beta-[6.2] Ignore User - 07/23/2003 2:22 AM
Also, the Unignore function isn't working on Showprofile..... I'm looking into seeing if I can fix it.


*EDIT*
Okay, so my PHP skills are slacking.... I can't get it to work.
Posted By: PhotoPost Re: Beta-[6.2] Ignore User - 07/23/2003 6:10 AM
> The instructions still have the error about showprofile.tmpl.

Which error is that - havent gone back to look at this in a while, but would be glad to.
Posted By: AKD96 Re: Beta-[6.2] Ignore User - 07/23/2003 9:27 AM
The instructions that should be for showprofile.tmpl are actually listed under showprofile.php, and there are no instructions for showprofile.tmpl.
Posted By: PhotoPost Re: Beta-[6.2] Ignore User - 07/23/2003 4:03 PM
Okay, updated the attachment.
Posted By: AKD96 Re: Beta-[6.2] Ignore User - 07/24/2003 12:25 AM
I've updated the instructions for seamless installation with 6.3.1

I hope I'm not stepping on any toes.

Attached File
89636-IgnoreUserMod.txt  (56 downloads)
Posted By: PhotoPost Re: Beta-[6.2] Ignore User - 07/24/2003 8:33 PM
Nope - I dont always have time to go back and keep everything up-to-date.
Posted By: AKD96 Re: Beta-[6.2] Ignore User - 07/24/2003 10:07 PM
Yay! I'm like the little intern that could!
Posted By: ericgtr Re: Beta-[6.2] Ignore User - 07/29/2003 6:20 AM
The instructions say:
Code
 <br />Open showprofile.php.<br />Find:<br /><br />   $thisuser = $userob -> authenticate("U_PictureView,U_Number,U_TimeOffset,U_TotalPosts");<br /><br />and replace with:<br /><br />   $thisuser = $userob -> authenticate("U_PictureView,U_Number,U_TimeOffset,U_TotalPosts,U_Ignore");<br /><br />Find:<br /><br />   $postcount = $thisuser['U_TotalPosts']; 


$postcount doesn't even exist in this file? and neither does U_TotalPosts? I am running 6.2 and that's what it says it's for.
Posted By: AKD96 Re: Beta-[6.2] Ignore User - 07/29/2003 6:49 AM
I don't have a copy of 6.2 handy....
Posted By: AKD96 Re: Beta-[6.2] Ignore User - 07/29/2003 6:58 AM
Okay, you're not using 6.2, you're using 6.2.3 (Yes, we are that picky!) Anyways, I just dug up an old copy of 6.2.2 that I have, so I guess it's close to 6.2.3.

Anyway, instead of looking for:
Code
   $postcount = $thisuser['U_TotalPosts'];


look for:
Code
   $toffset = ""


and add the code after that.
Posted By: ericgtr Re: Beta-[6.2] Ignore User - 07/29/2003 6:59 AM
Great, thanks for the fast response DL!
Posted By: AKD96 Re: Beta-[6.2] Ignore User - 07/29/2003 7:01 AM
I aim to please!

BTW - David can kick Sammy's arse any day!
Posted By: ericgtr Re: Beta-[6.2] Ignore User - 07/29/2003 3:35 PM
Don't get me started buddy []http://www.vhfans.com/boards/images/graemlins/icon_rant.gif[/]
Posted By: ericgtr Re: Beta-[6.2] Ignore User - 07/29/2003 4:50 PM
This mod is neato
Posted By: PhotoPost Re: Beta-[6.2] Ignore User - 08/02/2003 3:51 AM
I just noticed this feature made it into 6.4 - outstanding!
Posted By: ericgtr Re: Beta-[6.2] Ignore User - 08/05/2003 4:36 PM
Here is an image I created for this if anyone is interested. First save the image to your /threadsdir/images directory []http://www.vhfans.com/images/ignore.gif[/]

Now open up your showprofile.tmpl
Code
 <br />Find: <br />$ignorelink <br /> | <br /> <br />and just above it add: <br /> <br /><img src="{$config['images']}/ignore.gif" align="top" alt="" /> <br />

Posted By: ericgtr Re: Beta-[6.2] Ignore User - 08/18/2003 4:20 AM
Just an FYI, after upgrading to threads 6.3 I was able to keep (upgrade) this mod by only editing the new showflat.php
Posted By: DrChaos Re: Beta-[6.2] Ignore User - 11/13/2003 9:30 PM
Is this mod working under 6.4b1? I know there is one person on my forum that would pay to have this installed.....
Posted By: ericgtr Re: Beta-[6.2] Ignore User - 11/13/2003 10:03 PM
I thought this was released in 6.4 but I don't see it on my site, I may have just missed the file somewhere. I used the changedfile method to upgrade and there are files missing from it, you can see if you run a compare. If not I will modify the instructions for you later on tonight DrChaos if it's doable.
Posted By: ericgtr Re: Beta-[6.2] Ignore User - 11/13/2003 10:11 PM
Update: It is there, I had to overwrite my showprofile.php and showprofile.tmpl files. If you do the same it should be good as long as you have all the corresponding (updates) scripts uploaded.

I still like Josh's better because it gave you the option of unignoring them right in the post, it's a well thought out mod.
Posted By: Twisty Re: Beta-[6.2] Ignore User - 11/16/2003 6:52 PM
A nice mod of this mod would be to completely remove all traces of their post in both flat *and* threaded mode. Like a personal ban in essence. That would be sweet.

Outta site, outta mind

Of course then a new means would be needed to un-ignore them again. Maybe a new section added to 'MyHome' would be ideal, doesn't have to be too fancy
Posted By: omegatron Re: Beta-[6.2] Ignore User - 11/16/2003 7:51 PM
With the way Threads works there is no way to delete the post. Even when the admin deletes a post with replies it has a placeholder saying post deleted.
Posted By: Twisty Re: Beta-[6.2] Ignore User - 11/16/2003 8:22 PM
Hmm, too bad.

I guess someone will just have to rewrite the software from scratch then
© UBB.Developers