Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
#246199 05/13/2003 8:57 AM
Joined: Feb 2002
Posts: 950
Hacker
Hacker
Offline
Joined: Feb 2002
Posts: 950
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.


Attachments
79985-IgnoreUserMod.zip (0 Bytes, 87 downloads)

Last edited by PhotoPost; 07/23/2003 9:03 AM.
Sponsored Links
Joined: Nov 2002
Posts: 116
Journeyman
Journeyman
Offline
Joined: Nov 2002
Posts: 116
Very good !!!
What happens if the user you choose to ignore, send you a PM. Is it ignored too?

Joined: Feb 2002
Posts: 950
Hacker
Hacker
Offline
Joined: Feb 2002
Posts: 950
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.

Joined: Aug 2000
Posts: 1,609
Addict
Addict
Offline
Joined: Aug 2000
Posts: 1,609
VERY cool senor(a,ita) Bikini!!!! I'm sure some of my user's would find this helpful.

Joined: Jun 2001
Posts: 176
Member
Member
Offline
Joined: Jun 2001
Posts: 176

Sponsored Links
Joined: Feb 2002
Posts: 2,286
Veteran
Veteran
Joined: Feb 2002
Posts: 2,286
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


Fans Focus - Focusing on Fans of Sport

(Okay - mainly football (the British variety wink at the moment - but expanding all the time....)
Joined: Feb 2002
Posts: 950
Hacker
Hacker
Offline
Joined: Feb 2002
Posts: 950
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.

Joined: Aug 2000
Posts: 1,609
Addict
Addict
Offline
Joined: Aug 2000
Posts: 1,609
I'm going to wait until I get 6.3 gold installed, then I'll install this. I'll let you know!

Joined: Mar 2002
Posts: 305
Enthusiast
Enthusiast
Offline
Joined: Mar 2002
Posts: 305
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! )

Last edited by Lisa_P; 05/18/2003 4:05 AM.

[:"red"]Lisa[/]
Joined: Mar 2002
Posts: 305
Enthusiast
Enthusiast
Offline
Joined: Mar 2002
Posts: 305
[]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?


[:"red"]Lisa[/]
Sponsored Links
Joined: Feb 2002
Posts: 950
Hacker
Hacker
Offline
Joined: Feb 2002
Posts: 950
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.

Joined: Feb 2002
Posts: 2,286
Veteran
Veteran
Joined: Feb 2002
Posts: 2,286
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


Fans Focus - Focusing on Fans of Sport

(Okay - mainly football (the British variety wink at the moment - but expanding all the time....)
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369


I can think of someone who is ready for this.

Joined: Aug 2000
Posts: 1,609
Addict
Addict
Offline
Joined: Aug 2000
Posts: 1,609
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.

Last edited by AKD96; 05/22/2003 5:31 PM.
Joined: Aug 2002
Posts: 45
User
User
Offline
Joined: Aug 2002
Posts: 45
Oh I like this mod, does it work for 6.3.1?


Joined: Aug 2000
Posts: 1,609
Addict
Addict
Offline
Joined: Aug 2000
Posts: 1,609
Darn. I forgot all about this mod. I'm gonna give it a try now and let ya know. I have 6.3.1

Joined: Aug 2000
Posts: 1,609
Addict
Addict
Offline
Joined: Aug 2000
Posts: 1,609
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.

Joined: Aug 2002
Posts: 45
User
User
Offline
Joined: Aug 2002
Posts: 45
Woohoo I'll give it a try

Joined: Aug 2000
Posts: 1,609
Addict
Addict
Offline
Joined: Aug 2000
Posts: 1,609
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"

Last edited by DLWebmaestro; 07/22/2003 7:11 PM.
Joined: Aug 2000
Posts: 1,609
Addict
Addict
Offline
Joined: Aug 2000
Posts: 1,609
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.

Last edited by DLWebmaestro; 07/22/2003 7:30 PM.
Joined: Feb 2002
Posts: 950
Hacker
Hacker
Offline
Joined: Feb 2002
Posts: 950
> 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.

Joined: Aug 2000
Posts: 1,609
Addict
Addict
Offline
Joined: Aug 2000
Posts: 1,609
The instructions that should be for showprofile.tmpl are actually listed under showprofile.php, and there are no instructions for showprofile.tmpl.

Joined: Feb 2002
Posts: 950
Hacker
Hacker
Offline
Joined: Feb 2002
Posts: 950
Okay, updated the attachment.

Joined: Aug 2000
Posts: 1,609
Addict
Addict
Offline
Joined: Aug 2000
Posts: 1,609
I've updated the instructions for seamless installation with 6.3.1

I hope I'm not stepping on any toes.
Attachments
89636-IgnoreUserMod.txt (0 Bytes, 56 downloads)

Joined: Feb 2002
Posts: 950
Hacker
Hacker
Offline
Joined: Feb 2002
Posts: 950
Nope - I dont always have time to go back and keep everything up-to-date.

Joined: Aug 2000
Posts: 1,609
Addict
Addict
Offline
Joined: Aug 2000
Posts: 1,609
Yay! I'm like the little intern that could!

Joined: May 2003
Posts: 1,068
Junior Member
Junior Member
Offline
Joined: May 2003
Posts: 1,068
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.

Joined: Aug 2000
Posts: 1,609
Addict
Addict
Offline
Joined: Aug 2000
Posts: 1,609
I don't have a copy of 6.2 handy....

Joined: Aug 2000
Posts: 1,609
Addict
Addict
Offline
Joined: Aug 2000
Posts: 1,609
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.

Joined: May 2003
Posts: 1,068
Junior Member
Junior Member
Offline
Joined: May 2003
Posts: 1,068
Great, thanks for the fast response DL!

Joined: Aug 2000
Posts: 1,609
Addict
Addict
Offline
Joined: Aug 2000
Posts: 1,609
I aim to please!

BTW - David can kick Sammy's arse any day!

Joined: May 2003
Posts: 1,068
Junior Member
Junior Member
Offline
Joined: May 2003
Posts: 1,068

Joined: May 2003
Posts: 1,068
Junior Member
Junior Member
Offline
Joined: May 2003
Posts: 1,068
This mod is neato

Joined: Feb 2002
Posts: 950
Hacker
Hacker
Offline
Joined: Feb 2002
Posts: 950
I just noticed this feature made it into 6.4 - outstanding!

Joined: May 2003
Posts: 1,068
Junior Member
Junior Member
Offline
Joined: May 2003
Posts: 1,068
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 />


Joined: May 2003
Posts: 1,068
Junior Member
Junior Member
Offline
Joined: May 2003
Posts: 1,068
Just an FYI, after upgrading to threads 6.3 I was able to keep (upgrade) this mod by only editing the new showflat.php

Joined: Sep 2003
Posts: 803
Coder
Coder
Offline
Joined: Sep 2003
Posts: 803
Is this mod working under 6.4b1? I know there is one person on my forum that would pay to have this installed.....

Joined: May 2003
Posts: 1,068
Junior Member
Junior Member
Offline
Joined: May 2003
Posts: 1,068
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.

Joined: May 2003
Posts: 1,068
Junior Member
Junior Member
Offline
Joined: May 2003
Posts: 1,068
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.

Joined: Sep 2003
Posts: 488
Code Monkey
Code Monkey
Joined: Sep 2003
Posts: 488
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

Page 1 of 2 1 2

Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Posts: 70
Joined: January 2007
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)