PDA

View Full Version : Allow PM from Buddy List only


uae
12-26-2004, 10:00 PM
Like you disabled Private Messaging System, and you don't want to be bothered and annoyed by anyone sending you a PM, but you still want to receive PM from those who are special to you!


What it does:
This allows your members (and you of course) to receive Private Messages from users in your buddy list only, even if you got Private Messaging System disabled.


Compatiable vBulletin Versions:
3.0.x(Tested on vBulletin 3.0.3)

Changes:
Changed files(6):
/includes/functions.php
/includes/functions_showthread.php
profile.php
private.php
global.php
member.php


New Query(1):
New column in user table

New templates(0):

Changed templates(1):
modifyoptions

New phrases(2):
features_private_messaging_from_buddylist
enable_private_messaging_from_buddylist

Please click install (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=73367) if you LIKE ;)

Johnny
12-27-2004, 05:42 PM
well this gives a good use for the buddylist. nice hack

Oblivion Knight
12-27-2004, 10:06 PM
A very nice idea, consider this installed.. :)

Bison
12-27-2004, 10:25 PM
Does this only apply to users? I mean ... can users still get PM's from Admins and Mods , regardless if they choose not to receive PM's from users other than the ones in their Buddy List?

Oblivion Knight
12-27-2004, 11:00 PM
Does this only apply to users? I mean ... can users still get PM's from Admins and Mods , regardless if they choose not to receive PM's from users other than the ones in their Buddy List?No, users will not get PM's from Admins or Mods if they select to only allow users in their buddy list to private message them.. This appears to be the case for me anyway.

Bison
12-27-2004, 11:09 PM
Well I guess this isn't a good thing if you are an admin, and you have to contact a user of your forum ... now is it?

It would be pretty dumb to add a hack wihich allows your members to ignore you.

Oblivion Knight
12-27-2004, 11:13 PM
This would be the case if the user chose to disable his PM inbox anyway.. :p

Bison
12-27-2004, 11:21 PM
But there's a automatic SQL query control in the admincp which enable this for all users, in case they do turn it off, and you want to send them a PM. Take a peek under "Import & Maintenance" my friend. :laugh:

uae
12-28-2004, 04:11 AM
well this gives a good use for the buddylist. nice hack
Thanks Johnny :)

uae
12-28-2004, 04:12 AM
A very nice idea, consider this installed.. :)
Glad that you like it, Thank you very much :)

uae
12-28-2004, 04:16 AM
But there's a automatic SQL query control in the admincp which enable this for all users, in case they do turn it off, and you want to send them a PM. Take a peek under "Import & Maintenance" my friend. :laugh:
This hack has nothing to do with that option, and yes, you will be able to use that option either you installed this hack or not.

This would be the case if the user chose to disable his PM inbox anyway
Exactly.

sabret00the
12-28-2004, 08:56 AM
good hack, i would've jumped at the chance to support this if it has usergroup support.

Bison
12-28-2004, 09:38 AM
This hack has nothing to do with that option, and yes, you will be able to use that option either you installed this hack or not.


Exactly.

So why should an admin have to use that function?

You should have considered this in the code. What is going to happen when a admin has to send a PM to everyone, the script will enable everyone to receive PM from all members again, and anyone who had this feature turned on will have to go back in their usercp and check that box again.

Do you guys understand what i'm saying? What you are creating is an admin - user conflict.

Why not add a condition to where this does not apply to administrators and friends in yourt buddy list, but to everyone else?

I don't care what you think, but there's nothing more dumber for an Admin to install a hack which allows his members to ignore him. If you just allowed staff members in the code, this would be a very good hack.

This hack in it's current state is just adding more work on the admin.

Curious, are you an admin of your forum?

nexialys
12-28-2004, 12:12 PM
@Bison... i think you are not looking at the description right now, because you consider facts regarding admin rights where there are none...

and maybe you'd be better be more polite when you answer threads you're not in control of, because your comments are not... "Curious, are you an admin of your forum?" is not a way to discuss here... we're not kids!

btw, this feature is just adding ONE step to your preferences, meaning that even if you block PMs in your options, you will be able to receive PMS from your friends - buddies.... just like in MSN, where you can block messages from outsiders that are not in your list...

Bison
12-28-2004, 08:12 PM
@Bison... i think you are not looking at the description right now, because you consider facts regarding admin rights where there are none...

and maybe you'd be better be more polite when you answer threads you're not in control of, because your comments are not... "Curious, are you an admin of your forum?" is not a way to discuss here... we're not kids!

btw, this feature is just adding ONE step to your preferences, meaning that even if you block PMs in your options, you will be able to receive PMS from your friends - buddies.... just like in MSN, where you can block messages from outsiders that are not in your list...

Nobody is trying to control this thread young man, I ask a vaild point ... and who are you to dictate a conversation? Stay with the flow of the conversation, and keep your bias of my point of view to yourself and try to be contructive. If you can't, then don't say nothing. Maybe you won't sound like a kid to me.

For the author I ask this question: ... is there a way to change the behavior of the hack where the hack not only allows users to retrieve PM's from their friends, but doesn't inhibit admins from communicating with those who decide to turn on this feature?

Erwin
12-28-2004, 08:31 PM
I have not installed this hack nor have I tested it, but surely you can just do this to allow mods and admins (or any other usergroup the ability to bypass this):

In functions.php, find:


if ( (in_array($bbuserinfo[userid], $uids)) and ($allowbuddypm) )


Replace with:


if ( (in_array($bbuserinfo[userid], $uids)) and ($allowbuddypm) and (!in_array($bbuserinfo['usergroupid'], array(5,6,7))) )


Change 5,6,7 to any usergroupid you want that will always be able to PM. :)

Again, I repeat, I have not installed this hack nor tested this.

Xenon
12-28-2004, 08:34 PM
i think it's a good hack.

and i think the admin conversation is senseless, as admin you can always change every option a user set up, so where's the point? ^^

Bison
01-02-2005, 02:36 AM
i think it's a good hack.

and i think the admin conversation is senseless, as admin you can always change every option a user set up, so where's the point? ^^

The point is why "change every option a user set up" when you can make sure you don't have to by applying a hack that doesn't have to make you go into your admincp and find everyone who's got this hack installed?

I'm not saying that it's not a good hack cause it's quite ingenious, but what's the point in making it so that it blocks even the admin from sending a PM to his members?

Xenon
01-02-2005, 03:39 PM
I'd say the point is why not?

if an admin is to lazy to go and change it in the db, then he should just change the condition in the hack and finished.

there is no need for such a long discussion, just because one prefere that way and other the other way.

Benj
04-05-2005, 11:40 AM
has anyone successfully run this on vb 3.0.7 ??? how hards the install ?

Oblivion Knight
04-05-2005, 12:04 PM
has anyone successfully run this on vb 3.0.7 ??? how hards the install ?It works fine on 3.0.7, and from what I remember the instructions were easy enough to follow.. :)

T3MEDIA
04-08-2005, 12:00 PM
old post but did anyone figure out a way to (exclude) admins from this block out? Did anyone test the above code?

just asking.

Marco van Herwaarden
04-08-2005, 12:05 PM
Why should anybody answer that question t3media if the answer is already on the same page?

T3MEDIA
04-08-2005, 12:08 PM
Why should anybody answer that question t3media if the answer is already on the same page?Is it standard to be sarcastic on this website? Did you read what was on this page?

No sceriously did you?
What does Erwin say? Do you see any thing after what Erwin says that would make what I am asking stupid?

Marco van Herwaarden
04-08-2005, 12:31 PM
The good thing about sarcasm is that it is up to interpretation by the reader. And to answer your question: No most of the times replies are given without any sarcasm.

And if you read the answers on this page, you will find a solution for both with or without admin block.

T3MEDIA
04-08-2005, 12:35 PM
Yo WHAT is YOUR problem? I am asking nicely if anyone.... wait I dont have to retype it. No one here has tested what Erwin said. And your sarcasm comment makes no sense. It is called scarcasm for a reason. I have no time to get all nerded up with you. Thanks though. Thanks for coming out.

fridayweb
09-08-2006, 08:26 PM
Does this hack work on 3.5, or is there an equivalent? Thanks in advance. :)