PDA

View Full Version : AutoPM after addBuddy


Antivirus
09 Jan 2006, 17:35
What: This will send an automatic PM to a user after you add him/her to your Buddy List. The PM you automatically sent is saved within your outfolder and the Admin can modify the title and message of the PM by changing the phrases.

1 Product (1 plugin and 2 phrases)

Versions / Features:

1.0.0 - released on 1/9/06

1.0.1 - added automatic approval link into body of PM received by user
added a check to prevent looping of the PM if the receiver already has the sender on his/her buddylist

1.0.2 - added an anti-harassment link in the PM to deter users from "annoying" others into becoming their friends.
added link so receiver of PM can easily view sender's profile.

1.0.3 - cleaned up code and added link for recipient of PM to view sender's profile from within PM

1.0.4 - Fixed bug which was wrongly sending PM to someone when user added someone to his/her ignore list

To Install: Just import the xml file as a product from within AdminCP>PluginSystem>ManageProducts>Add/ImportProduct

To change the title of the PM, edit $vbphrase[anti_autopm_bud_tit], and to change the message of the PM, edit $vbphrase[anti_autopm_bud_mes].

PLEASE REMEMBER TO BACKUP BEFORE YOU INSTALL!

Thanks: Thanks to Andreas for writing the [HowTo] Send PM's Automatically (http://www.vbulletin.org/forum/showthread.php?t=82786). This was inspired by Cloud Warrior's really cool vbFriends (http://www.vbulletin.org/forum/showthread.php?t=101470) hack, which lacked this functionality and it seemed like many people would want it.

about: I'm taking this out of beta, as i think it's working all right by now. Any advice on how to improve this, comments, or bugs - are more than welcome, as I will do my best to address all.

If you use this, please click the install thingie :)

.

Antivirus
09 Jan 2006, 17:36
First post reserved ;)

The Chief
09 Jan 2006, 17:41
holy crap, I think I will like this and install it for sure, just gimme two secs :)

Wonders, im so happy ;)

The Chief
09 Jan 2006, 18:02
ok, first suggestion, it seems to work fine but you need to allow HTML and PHP so that we can make reference to usernames and link back if you know what I mean.

Here is what i tried to make which will be normal for any users to do is to aprove the new fried request so that they both become new friends.




Hello, I just added you to my Friend List. If you would like to be friends, please add me to yours. Thanks! :)

<a href="profile.php?$session[sessionurl]do=addlist&amp;userlist=buddy&amp;u=$userinfo[userid]">Approve $userinfo[username] as your friend!</a>

Antivirus
09 Jan 2006, 18:22
need to allow HTML and PHP so that we can make reference to usernames and link back if you know what I mean.

I was trying to figure that out, without enabling html across the whole boards. But I couldn't figure out how to get the html to display properly, as adding the html in the phrase just causes the html code to be displayed. :(

I'm sure there's a way to get the html enabled just for this specific instance of sending a PM, and not across the entire PM system, i just need to find out how.

It would be nice if there were another field in the PM datanager such as:
$pmdm->set('allowhtml', 1); but no such luck.

I'll try to figure it out... great idea!

vwturbo
09 Jan 2006, 18:34
Good work for your first product. I installed it and quickly tested it and it works just like it should. gamebgs and I were anxiously awaiting this.

Antivirus
09 Jan 2006, 18:35
thanks for the kind words :)

The Chief
09 Jan 2006, 18:44
I was trying to figure that out, without enabling html across the whole boards. But I couldn't figure out how to get the html to display properly, as adding the html in the phrase just causes the html code to be displayed. :(

I'm sure there's a way to get the html enabled just for this specific instance of sending a PM, and not across the entire PM system, i just need to find out how.

It would be nice if there were another field in the PM datanager such as:
$pmdm->set('allowhtml', 1); but no such luck.

I'll try to figure it out... great idea!

thank you, hope it works out great, as it would be cool to use the $userinfo[username] instance in the title also to do something like this...


We would also need some statements like if he approves, do not send a PM, can this be done??

msimplay
09 Jan 2006, 20:07
i used vbuddies plugin and the sendpm doesn't work aswell as this one however it might be worth taking a look at the plugin for it to help with variables it
has a link to their profile in it

The Chief
09 Jan 2006, 20:09
i used vbuddies plugin and the sendpm doesn't work aswell as this one however it might be worth taking a look at the plugin for it to help with variables it
has a link to their profile in it

cool, I hope you will take a look at this Antivirus :)

jj
09 Jan 2006, 20:20
Hi there,

I've installed it and it works. I have some suggestions for future versions. I could do them all by myself but I don't have the time at the moment ;)


Possibility to send the pm from a defined user account or from the user who added the recipient. For example: I use a "Bot" to store some external information into the forum. He could also be used to send the pm. Maybe some others would like that, too.
After a quick look on your code, I found there is no check if the recipient already has added the sender to his buddy list. If that happens maybe another phrase should be chosen without a sentence like "If you would like to be friends, please add me to yours", i.e. just "I've added you to my buddy-list" or "User $1 has added you to his buddy-list". Got my idea? :)


If more gets into my mind, I'll post it.

jj
09 Jan 2006, 20:28
thank you, hope it works out great, as it would be cool to use the $userinfo[username] instance in the title also to do something like this...

That's quite easy and a quickie. Here we go:

1) Find in original code


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------


2) Replace with


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------


3) Use $1 in the phrases where you like to get the username

The Chief
09 Jan 2006, 20:42
That's quite easy and a quickie. Here we go:

1) Find in original code


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------


2) Replace with


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------


3) Use $1 in the phrases where you like to get the username

wow, thanks for this, but now is there a way to put a link in there somewhere, like I think you should be able since you got this to work...

Like a link of what i posted before for that user to automatically add him (approve)??

thanks!!

Snoop-It
09 Jan 2006, 22:02
excellent hack! using it on my board aswell.. thanks for this!

Antivirus
09 Jan 2006, 22:08
i didn't see any of your new posts until i just got this requested feature added. i was able to use a custom BBcode in order to avoid having to enable HTML in PMs globally, so now the approval link thingie in the PM message body seems to work. Let me know how it works for you.
:)

The Chief
09 Jan 2006, 22:17
i didn't see any of your new posts until i just got this requested feature added. i was able to use a custom BBcode in order to avoid having to enable HTML in PMs globally, so now the approval link thingie in the PM message body seems to work. Let me know how it works for you.
:)

there seems to be an error,

XML Error: mismatched tag at Line 80

I can't even upload it...

Antivirus
09 Jan 2006, 22:20
ok, looking at it...

Snoop-It
09 Jan 2006, 22:23
damm just tried upgrading and i got this error.. when importing the product..

XML Error: mismatched tag at Line 80

The Chief
09 Jan 2006, 22:23
damm just tried upgrading and i got this error.. when importing the product..

XML Error: mismatched tag at Line 80

he said he was looking at it ;)

Snoop-It
09 Jan 2006, 22:26
yeh i posted straight away.. i didnt see that post - my bad.. :nervous:

Antivirus
09 Jan 2006, 22:32
ok i fixed it i think I zipped the wrong file that time sorry:smoke:

Snoop-It
09 Jan 2006, 22:40
excellent, now it works. cheers man!

Antivirus
09 Jan 2006, 22:43
cool

jj
09 Jan 2006, 22:46
Just looked into your changes ;) I think if you can use a self-made bbcode you also could use the standard url bbcode so there is no need to add a custom bbcode. You could do that by inserting


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------


into the phrase. For example (a 3rd person message phrase version):


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------


Now if you go on with the code I posted above to use the Username in the title and message, we get


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



I haven't tested the above thing and don't know if it works, but you may work it out yourself :) Keep on the learning.

EricaJoy
09 Jan 2006, 22:46
cool beans, i'm sure i will be clicking install momentarily..

The Chief
09 Jan 2006, 23:18
Just looked into your changes ;) I think if you can use a self-made bbcode you also could use the standard url bbcode so there is no need to add a custom bbcode. You could do that by inserting


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------


into the phrase. For example (a 3rd person message phrase version):


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------


Now if you go on with the code I posted above to use the Username in the title and message, we get


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



I haven't tested the above thing and don't know if it works, but you may work it out yourself :) Keep on the learning.


this works great, but it sucks that it opens in a new window...

it would be better if it just opened in the same window, but good idea noneless ;)

msimplay
10 Jan 2006, 09:39
excellent addition but i have this hack that allows members to choose wether they save a copy of their pms or not and regardless of wether they have it turned on or off it still saves the pm any chance of making it adhere to the savecopy rules ?

http://www.vbulletin.org/forum/showthread.php?t=98551&highlight=savecopy

jj
10 Jan 2006, 13:08
excellent addition but i have this hack that allows members to choose wether they save a copy of their pms or not and regardless of wether they have it turned on or off it still saves the pm any chance of making it adhere to the savecopy rules ?

http://www.vbulletin.org/forum/showthread.php?t=98551&highlight=savecopy

Don't want to Download the zip and look into it, but I looked into some postings. It seems there is a field added to the user table according to this post (http://www.vbulletin.org/forum/showpost.php?p=798117&postcount=6), so why don't you just try this:

Replace in Original code of the plugin:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------


with


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------

Revan
10 Jan 2006, 14:48
This is lush, I foresee this having a boatload of installs even if not HOTM (I always type HTML when I try to type HOTM :p)

Might I suggest using {1}, {2}, ... {n}, like so:
Change phrase "anti_autopm_bud_mes" to this:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



Change the "anti_autopm_bud_tit" to this:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



Change this snippet of code:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------


to this:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------


Saves inventing a whole new construct_phrase() function ;)

Again, nice work :)

msimplay
10 Jan 2006, 17:46
Don't want to Download the zip and look into it, but I looked into some postings. It seems there is a field added to the user table according to this post (http://www.vbulletin.org/forum/showpost.php?p=798117&postcount=6), so why don't you just try this:

Replace in Original code of the plugin:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------


with


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



Thanks works great

jj
10 Jan 2006, 19:31
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------


Saves inventing a whole new construct_phrase() function ;)

thx for that, learned something new now ^^

Antivirus
10 Jan 2006, 22:36
Jacobsen and Revan, both of your suggestions work, and great ideas for cutting out having to create the custom BBcode and improving the hack. Revan's idea uses slightly less code but I will experiment with the str_replace thingie (i am not that familiar with it yet).

Working on an update... thanks for the input people!

The Chief
10 Jan 2006, 22:38
Jacobsen and Revan, both of your suggestions work, and great ideas for cutting out having to create the custom BBcode and improving the hack. Revan's idea uses slightly less code but I will experiment with the str_replace thingie (i am not that familiar with it yet).

Working on an update... thanks for the input people!

thanks for taking care of this antivirus ;)

WNxWakko
11 Jan 2006, 00:45
What about the ignore list, does it work on that also?

The Chief
11 Jan 2006, 00:46
What about the ignore list, does it work on that also?

I don't think it would be intelligent to send a PM to the user that you are ignoring, right??

Psionic Vision
11 Jan 2006, 01:32
Where are the files?

Exitilus
11 Jan 2006, 02:22
Yah *L* ... I'm looking and I don't see any .. heh :)

Antivirus
11 Jan 2006, 03:53
Where are the files?

oops, lol
:smoke:

The Chief
11 Jan 2006, 04:10
oops, lol
:smoke:

you might consider putting one of their two reccommendations in the next release. It is really important to at least mention the username once.

It makes them more unique, if you get what I mean...

Exitilus
11 Jan 2006, 04:58
Installed and Working fine :D

Antivirus
11 Jan 2006, 15:39
What about the ignore list, does it work on that also?
With specific regards to the IGNORE list, this hack interacts with the ignore list is in the following ways:

If you add user to your buddylist and you are already on user's ignore list, user will not receive the autoPM from you, even though you will see the PM in your outbox.
If you add user to your buddy list, when user receives the autoPM, one of the links within the message of the autoPM gives user the ability to easily add you to their ignore list if they feel you are annoying them, or spamming them with add buddy requests.

you might consider putting one of their two reccommendations in the next release. It is really important to at least mention the username once. It makes them more unique, if you get what I mean...
do you mean like, "Hello $userinfo[username]," in the message body?

The Chief
11 Jan 2006, 16:00
With specific regards to the IGNORE list, this hack interacts with the ignore list is in the following ways:

If you add user to your buddylist and you are already on user's ignore list, user will not receive the autoPM from you, even though you will see the PM in your outbox.
If you add user to your buddy list, when user receives the autoPM, one of the links within the message of the autoPM gives user the ability to easily add you to their ignore list if they feel you are annoying them, or spamming them with add buddy requests.


do you mean like, "Hello $userinfo[username]," in the message body?

yes, and in the title somewhere...

The person will feel that the PM is really coming from that person if you know what i mean, alot are not used to forums, well the ones that join my site anyways and it would be easier for them ;)

Antivirus
12 Jan 2006, 04:13
okie, i hope to have another update with this by end of this week.

The Chief
12 Jan 2006, 04:26
okie, i hope to have another update with this by end of this week.

great ;)

Kihon Kata
12 Jan 2006, 05:27
WORKED!! INSTALLS with love. MY users sometimes pee pee when they get excited

The Chief
12 Jan 2006, 05:48
WORKED!! INSTALLS with love. MY users sometimes pee pee when they get excited

Your site has ALOT of members, good job!! :)

Kihon Kata
12 Jan 2006, 22:32
Your site has ALOT of members, good job!! :)

Oh thanks! Yes, 99.99% women :) and boy let me tell you, they love PMing lol

The Chief
13 Jan 2006, 02:39
Oh thanks! Yes, 99.99% women :) and boy let me tell you, they love PMing lol

haha, thats nice, PMs are rarely used, in my forums anyways ;)

Tri@de
14 Jan 2006, 06:50
Can i make a request?

I'd like to send an automatic pm to a spcific forum moderator and also to admins to moderate a post.
Now Vb send only e-mail and i don't have email server installed on it.

I don't know if it' the right place to make this request.
Feel free to erase-move this thread.

Thank you

Antivirus
15 Jan 2006, 01:55
Can i make a request?
I'd like to send an automatic pm to a spcific forum moderator and also to admins to moderate a post. Now Vb send only e-mail and i don't have email server installed on it. I don't know if it' the right place to make this request.
Feel free to erase-move this thread. Thank you

Hi Tri@de (HiTri@de), that would be an entirely different hack, your best bet would be to place a request in the Modification Requests (http://www.vbulletin.org/forum/forumdisplay.php?f=112) forum :)
good luck!

Antivirus
19 Jan 2006, 21:37
gamebgs, I hope to update this this weekend.

The Chief
20 Jan 2006, 02:42
gamebgs, I hope to update this this weekend.

Thank you Antivirus, looking forward to the update ;)

vwturbo
20 Jan 2006, 18:21
Did anyone figure out how to get things to open in the same window instead of it opening a new one?

The Chief
20 Jan 2006, 19:14
Did anyone figure out how to get things to open in the same window instead of it opening a new one?

nope, unfortuanetly I do not think so... :(

Antivirus
20 Jan 2006, 19:20
Did anyone figure out how to get things to open in the same window instead of it opening a new one?

what "things" do you mean? the add buddy confirmation page?

vwturbo
20 Jan 2006, 19:32
what "things" do you mean? the add buddy confirmation page?

Yeah thats what I meant. I should have clarified that a bit more.

Hanif
21 Jan 2006, 00:19
Nice work man, very good. Installed!!!

Hanif

Antivirus
21 Jan 2006, 00:21
I think you're referring to any of the 3 links within the autoPM which the recipient of the autoPM would click, correct? I will look into this...

vwturbo
21 Jan 2006, 00:50
I think you're referring to any of the 3 links within the autoPM which the recipient of the autoPM would click, correct? I will look into this...

Correct

ThorstenA
22 Jan 2006, 21:24
Nice plugin!

A suggestion: If you add a user by adding them directly in the list, also send a private message.

DivisionByZero
28 Jan 2006, 10:11
Ok, let's say John wants to add Mary to his buddy list...

Could this be modified with an admin definable setting to either:

a: require Mary to click an "approve" link BEFORE mary is added to his buddy list?
b: allow John to add mary without her approval (the way it works now).

Could this be done?

Antivirus
29 Jan 2006, 07:40
Ok, let's say John wants to add Mary to his buddy list...
Could this be modified with an admin definable setting to either:
a: require Mary to click an "approve" link BEFORE mary is added to his buddy list?
b: allow John to add mary without her approval (the way it works now).
Could this be done?

I suppose it could be done, but it's not currently on my list of things to do for this. I'll keep it in mind for future versions.

DivisionByZero
31 Jan 2006, 09:49
ok cool....

I was wanting something like that. i would totally remove the input boxes from the user profile edit page, and then only let them add members from postbits or their profiles. and create some sorta "edit my friends" page where they could remove them :)

nicedreams
02 Feb 2006, 14:50
Minor bug.

When the pm is sent, it shows read pm by the user in my sent pm folder, even though the pm was just sent and the user isnt even on. (Instead of the unread message icon)

Jim

DDX
06 Feb 2006, 02:22
Ok, let's say John wants to add Mary to his buddy list...

Could this be modified with an admin definable setting to either:

a: require Mary to click an "approve" link BEFORE mary is added to his buddy list?
b: allow John to add mary without her approval (the way it works now).

Could this be done?

i really really want this i'll even pay u to do it if u can antivirus. please?

JaeTea
10 Feb 2006, 00:23
Did anyone figure out how to get things to open in the same window instead of it opening a new one?

Anyone figure this out? :ermm:

Red Blaze
10 Feb 2006, 15:24
Works fine as it is. Thank you. :)

Snake
10 Feb 2006, 15:51
Thanks, installed! ;)

Antivirus
10 Feb 2006, 16:03
Anyone figure this out? :ermm:
I'm gonna work on it, in theory i have a solution to get around this behavior by use of a custom bbcode, however I want to do it without use of bbcode so the hack is still packaged entirely within a plugin.

===============================
Minor bug. When the pm is sent, it shows read pm by the user in my sent pm folder, even though the pm was just sent and the user isnt even on. (Instead of the unread message icon)
I'll look into this, thanks for bringing it to my attention.

===============================
I'm really busy with work lately though so this will have to wait until i can devote a few hours to it. I hope to get on it soon though, thanks for your patience :) .

JaeTea
12 Feb 2006, 10:49
I'm gonna work on it, in theory i have a solution to get around this behavior by use of a custom bbcode, however I want to do it without use of bbcode so the hack is still packaged entirely within a plugin.


It took 3 minutes to add custom bbcode.

I feel stupid for event asking! :o

The Chief
14 Feb 2006, 16:23
could it be possible to add a button in the message instead of a link..??

djnth
25 Feb 2006, 10:23
Is there a way to have one user automatically added to everyone's Buddy List such as "Tom" on MySpace?

Also, the PM being sent to an added Buddy has the word "buddys" when it should read "buddies"

Antivirus
27 Feb 2006, 16:21
There's a lot of good suggestions for this hack in this thread, thanks for all of them. As soon as i get a chance to update this i will, i'm just slammed with work and getting married in a couple months so I have had no time to work on this lately, but there are some things on my to-do list and as soon as I get a chance, i'll update this hack.

MorrisMcD
04 Mar 2006, 19:53
I am getting this error at the top of the redirect page ... :( Any ideas?


Warning: array_merge() [function.array-merge]: Argument #1 is not an array in \profile.php(727) : eval()'d code on line 35

mello_mike
05 Mar 2006, 03:38
^^I'm getting the same error..

The only time I stop getting the error is when I disable this plugin.

I'm using PHP 5 and MySQL 5

MorrisMcD
05 Mar 2006, 07:28
^^I'm getting the same error..

The only time I stop getting the error is when I disable this plugin.

I'm using PHP 5 and MySQL 5

Try adding a super mod to your list.. I dont get it when I add one of my supermods.. Havent tried the mods or other supermods though...

mark1491
06 Mar 2006, 03:01
Ok, let's say John wants to add Mary to his buddy list...

Could this be modified with an admin definable setting to either:

a: require Mary to click an "approve" link BEFORE mary is added to his buddy list?
b: allow John to add mary without her approval (the way it works now).

Could this be done?

bump!!

Antivirus
11 Mar 2006, 04:59
I am getting this error at the top of the redirect page ... :( Any ideas?

Not sure, i'm not getting that error. I am using php 4.3.1 however, maybe somethign with that? You using vb3.5.3 ?

zappsan
12 Mar 2006, 01:50
Great work, thanks.
/me clicks install

MorrisMcD
13 Mar 2006, 15:40
Not sure, i'm not getting that error. I am using php 4.3.1 however, maybe somethign with that? You using vb3.5.3 ?

Yep.. I am on 3.5.3...

yayvb
13 Mar 2006, 20:17
Ok, let's say John wants to add Mary to his buddy list...

Could this be modified with an admin definable setting to either:

a: require Mary to click an "approve" link BEFORE mary is added to his buddy list?
b: allow John to add mary without her approval (the way it works now).

Could this be done?bump!!
This question was previously answered. He said it's possible and will consider it in a future release but not a top priority.

ocmca
25 Mar 2006, 21:30
This is a really nice plugin. Good job!

Antivirus
26 Mar 2006, 00:07
I can't reproduce that error MorrisMcd. Did you try disabling all other hacks/plugins/and reverting other template edits? Maybe there's a conflict with one of your other plugins/products.

djtheropy
12 Apr 2006, 02:21
I can't reproduce that error MorrisMcd. Did you try disabling all other hacks/plugins/and reverting other template edits? Maybe there's a conflict with one of your other plugins/products.


i get it when i use it with the friends/buddies in profile hack.

Antivirus
12 Apr 2006, 23:37
i get it when i use it with the friends/buddies in profile hack.

Try to disable the plugin system and see if you still get the error when adding someone to your buddylist. What happens?

criscokid
15 Apr 2006, 13:31
I've installed this mod but I'm not seing any PMs being sent when adding people to my buddy list. The added budy isn't receiving a PM and there's no PM in my sent PM folder.

Nachtfalke
16 Apr 2006, 22:38
Seems to work like a charm when you add a buddy through his profile page.
It would be brilliant, if this would work also, if you add a buddy through the buddylist itself. Duplicating the plugin and changing the hook to misc_buddylist_complete seems not to do the trick (forgive me if this sounds stupid, i am not a coder).
Any suggestions?
Thank you!

MorrisMcD
18 Apr 2006, 16:44
i get it when i use it with the friends/buddies in profile hack.

I tried disabling this hack.. It still gave the error

MorrisMcD
18 Apr 2006, 16:47
Try to disable the plugin system and see if you still get the error when adding someone to your buddylist. What happens?

I tried disabling the entire plugin system.. No error this time...

Antivirus
18 Apr 2006, 17:39
I tried disabling the entire plugin system.. No error this time...

Your error is on line 35 of profile.php, correct? That's the pre-caching of USERCP_SHELL template...



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



not sure why you're getting that error cuz this plugin is hooking into the code all the way down at hook "profile_doaddlist_complete" on line 725. As far as i can tell, this plugin is not causing your error. It must be one of your other plugins/hacks causing that error.

MorrisMcD
20 Apr 2006, 15:21
Your error is on line 35 of profile.php, correct? That's the pre-caching of USERCP_SHELL template...



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



not sure why you're getting that error cuz this plugin is hooking into the code all the way down at hook "profile_doaddlist_complete" on line 725. As far as i can tell, this plugin is not causing your error. It must be one of your other plugins/hacks causing that error.


Hrm... Nothin is perfect... I will just live with it :D It doesnt seem to affect anything

bada_bing
21 Apr 2006, 03:29
I just installed this and when I receive the pm it reads

Hello, I just added you to my Buddy List. If you would like to be friends, please add me to yours. Thanks!

If you agree, please click 7 this request.


but the bbcodes to add that user to my buddy list isnt showing up? I have tried to uninstall and reinstall the hack and same thing?

Stangsta
21 Apr 2006, 03:58
I just installed this and when I receive the pm it reads

Hello, I just added you to my Buddy List. If you would like to be friends, please add me to yours. Thanks!

If you agree, please click 7 this request.


but the bbcodes to add that user to my buddy list isnt showing up? I have tried to uninstall and reinstall the hack and same thing?You didnt do it correctly. The text you posted above is not even in the plugin. Look for yourself! You will find quite a different phrase than the one you posted.

bada_bing
21 Apr 2006, 05:25
You didnt do it correctly. The text you posted above is not even in the plugin. Look for yourself! You will find quite a different phrase than the one you posted.
You are the one who installed this for me ??? I have removed and reinstalled it and it s the same phrase

Stangsta
21 Apr 2006, 05:54
You are the one who installed this for me ??? I have removed and reinstalled it and it s the same phraseright but this:


I just installed this and when I receive the pm it reads

Hello, I just added you to my Buddy List. If you would like to be friends, please add me to yours. Thanks!

If you agree, please click 7 this request.




does not equal this:

Hello,
I have just added you to my buddylist. If you would like to be buddys you need to add me to your buddy list as well. If you would like to do so, please click here (http://{2}/profile.php?do=addlist&userlist=buddy&u={3}).

If you would like to view my profile before doing so, you may view it here (http://{2}/member.php?u={3}).

Thanks,
{1}

p.s. - If I am harassing you, you can add me to your ignore list (http://{2}/profile.php?do=addlist&userlist=ignore&u={3}). This will prevent me from sending you any more private messages and you will no longer see any posts or threads by me at {4}.

.

You must be using another hack OTHER than this one (which I did not install) :)

dainbramage
29 Apr 2006, 04:27
When a member adds another member to their ignore list, that member gets the buddy PM. Bug, or messed up install?

sybarites
24 May 2006, 11:49
DO people have to accept before they can be buddy's?

Antivirus
25 May 2006, 15:16
When a member adds another member to their ignore list, that member gets the buddy PM. Bug, or messed up install?
I think that's a messed up install or more likely, a conflict with one of your other plugins, this plugin should only send the PM to the member who is added to the buddy list.

DO people have to accept before they can be buddy's?
Yes, they have to accept by either manually adding the sender to their buddy list, or by clicking on the link in the PM which effectively does the same thing.

You are the one who installed this for me ??? I have removed and reinstalled it and it s the same phrase
Bada_bing that pm text in which there is a bbcode in the PM is from version 1.0.0 of this hack. In version 1.0.1 the bbcode was depreciated and replaced with the phrase text which Stangsta cited above. Please redownload the latest version of the plugin (version 1.0.2) above and things should work just fine.

ramone_johnny
28 May 2006, 07:45
I too am receiving this error...


Warning: array_merge() [function.array-merge]: Argument #1 is not an array in \profile.php(725) : eval()'d code on line 35

Any chance this could be fixed? Doesnt look very professional.

RJ

Antivirus
30 May 2006, 15:31
I too am receiving this error...
Warning: array_merge() [function.array-merge]: Argument #1 is not an array in \profile.php(725) : eval()'d code on line 35
Any chance this could be fixed? Doesnt look very professional.
RJ

What version of vb are you running? Do you get the error after turning off all other plugins and uninstalling all other hacks?

futuredood
11 Jun 2006, 22:57
does this work for 3.5.4?

Antivirus
16 Jun 2006, 22:49
does this work for 3.5.4?

I don't see why it wouldn't- there's no code to modify, just a plugin so give it a try and if it doesn't, then just remove the plugin :)

Coldhands
19 Jul 2006, 21:02
Originally Posted by dainbramage
When a member adds another member to their ignore list, that member gets the buddy PM. Bug, or messed up install?
I think that's a messed up install or more likely, a conflict with one of your other plugins, this plugin should only send the PM to the member who is added to the buddy list.

I'm getting this same error, but is there something I should look for in the other plugins? Should I re-install the plugin, or should I do something else?

Antivirus
20 Jul 2006, 16:37
When a member adds another member to their ignore list, that member gets the buddy PM.

This bug has been fixed in the latest version (1.0.4) of this hack. Now, the PM no longer sends when adding someone to the ignore list, only when adding to buddylist. (thanks for pointing this out dain and cold)

mr3dblond
28 Jul 2006, 15:39
I too am receiving this error...


Warning: array_merge() [function.array-merge]: Argument #1 is not an array in \profile.php(725) : eval()'d code on line 35

Any chance this could be fixed? Doesnt look very professional.

RJ

Same error here with vb 3.5.4, PHP 5.1.4 and MySQL 4.1.20

Ciao...

Antivirus
30 Jul 2006, 02:33
Same error here with vb 3.5.4, PHP 5.1.4 and MySQL 4.1.20
Warning: array_merge() [function.array-merge]: Argument #1 is not an array in \profile.php(725) : eval()'d code on line 35
Ciao...

Do you get the error after disabling all other products/plugins and uninstalling all other hacks? To the best of my knowledge, the current version of this plugin (v1.0.4) has any previously-confirmed bugs fixed and is working fine on clean install of vb 3.5.x.

soletrader
31 Jul 2006, 00:19
Where do I got to fix this $vbphrase[anti_autopm_bud_tit] ?

criscokid
31 Jul 2006, 09:58
All of the phrases are in the XML file that you upload so you need to make your edits before uploading it.

Antivirus
31 Jul 2006, 17:22
Where do I got to fix this $vbphrase[anti_autopm_bud_tit] ?

I would actually suggest not modifying the xml file, as you may accidentally modify something else. Instead, you can edit it through your AdminCP> Languages&Phrases> SearchInPhrases. On the top box, enter anti_autopm_bud_tit into the Search for Text field, and for "search In.." click the Phrease Variable Name only button. then click find and you'll be able to edit ithe translation for the phrase.

soletrader
31 Jul 2006, 18:19
I would actually suggest not modifying the xml file, as you may accidentally modify something else. Instead, you can edit it through your AdminCP> Languages&Phrases> SearchInPhrases. On the top box, enter anti_autopm_bud_tit into the Search for Text field, and for "search In.." click the Phrease Variable Name only button. then click find and you'll be able to edit ithe translation for the phrase.


Thank you very much :) Finally got it!

Antivirus
01 Aug 2006, 16:02
you're welcome!

noonespecial
11 Aug 2006, 03:08
I can't get this to work on 3.6? Anyone tried?

nicedreams
11 Aug 2006, 03:20
I can't get this to work on 3.6? Anyone tried?

Me neither. I think it has something to do with the pm or datatore.

Jimmy

bada_bing
11 Aug 2006, 04:44
Is there a way for admins and moderators to be excused from sending PM to members when they are added? For example if me the admin adds a members to my buddy list I want the option to not send a PM to that member. We use this on my other board to watch potenial trouble makers when they are online and offline and I dont want them receiving a PM from my staff saying that he is now added to my buddy list.

Antivirus
11 Aug 2006, 06:40
Nicedreams, I have not yet upgraded to 3.6 so I can't say when this will be ported. Currently Its only been tested on 3.5.x series.

Badabing, I think I can add your request to my wish list for the next update, can you explain again in more detail please?

noonespecial
12 Aug 2006, 01:59
Nicedreams, I have not yet upgraded to 3.6 so I can't say when this will be ported. Currently Its only been tested on 3.5.x series.

Badabing, I think I can add your request to my wish list for the next update, can you explain again in more detail please?
If I offer $ can we get a 3.6 version? My users really love this feature so they know when they have friend requests.

Antivirus
14 Aug 2006, 04:02
If I offer $ can we get a 3.6 version? My users really love this feature so they know when they have friend requests.

I appreciate the offer, but i'll post the update for free when I upgrade my forums to v3.6. It's more about me not having the time yet to look deeply into what changed within the code of 3.6, but rest assured, I will definitely be upgrading within the next few months.

zeroality
28 Aug 2006, 19:14
Hi, any plans to port this to 3.6?

Edit: Nevermind, just saw your post above. Great, look forward to it.

Erwin
29 Aug 2006, 00:25
Yup, they changed the way buddylists are handled in 3.6. I'll take a closer look later to see if I can make it work.

Kihon Kata
29 Aug 2006, 06:38
Thanks erwin

Antivirus
29 Aug 2006, 16:55
Yup, they changed the way buddylists are handled in 3.6. I'll take a closer look later to see if I can make it work.

That would be fine Erwin, as I'm not yet sure when i will be moving on to 3.6 code... thanks!

GrendelKhan{TSU
30 Aug 2006, 13:33
loooking forward to this once the upgrade is done. very straightforward and useful mod. :)

Erwin
02 Sep 2006, 08:06
Hang on a minute...

Erwin
02 Sep 2006, 08:18
Okay, to get this to work in 3.6, you can replace the whole plugin with the following code - not the most elegant, but it works for me:



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------

JoeWho
02 Sep 2006, 15:26
Erwin,

Thanks for updating it to work with 3.6... I changed the code in (Product : AutoPM after addBuddy by Antivirus) and tested it ...but it did not send the user I added to the buddy-list a PM, any suggestions?

Thanks!

Joep11
04 Sep 2006, 21:14
Changed the plugin but not working here either on 3.6!

JoeWho
05 Sep 2006, 23:59
Changed the plugin but not working here either on 3.6!

To All,

Yep, bummer... Does anyone have this working on 3.6, if so please let us know how you got it to work?

Thanks.

bada_bing
06 Sep 2006, 04:06
Is there a way for admins and moderators to be excused from sending PM to members when they are added? For example if me the admin adds a members to my buddy list I want the option to not send a PM to that member. We use this on my other board to watch potenial trouble makers when they are online and offline and I dont want them receiving a PM from my staff saying that he is now added to my buddy list.
Anyone PLease

Antivirus
06 Sep 2006, 15:27
I could add a setting within the AdminCP which would give Admin the option of preventing the PM from being sent if sender is member of usergroup "x".

JoeWho
06 Sep 2006, 16:13
Antivirus,

Can you give me some help in fixing it so it will work with 3.6?
If you could tell me what to look for... I think I could fix it. I installed it and do not get any errors so I don't where to look.

Thanks.

bada_bing
06 Sep 2006, 18:15
I could add a setting within the AdminCP which would give Admin the option of preventing the PM from being sent if sender is member of usergroup "x".
Now that would be very nice

Erwin
07 Sep 2006, 05:47
Mmm... weird because the code I posted works for me fine. Mind you, my site is very hacked up.

JoeWho
07 Sep 2006, 14:47
Mmm... weird because the code I posted works for me fine. Mind you, my site is very hacked up.

Erwin,

Can you tell me how to check it? I add someone to my buddy-list and no-PM to them. I don't receive any errors so I don't know where to look.

I am not a coder but I can hack my way through most things.

Thanks.

noonespecial
14 Sep 2006, 02:15
Anyone get this to work on 3.6?

Antivirus
14 Sep 2006, 16:50
Anyone get this to work on 3.6?

This hack currently only works for version 3.5.x. When I am ready to upgrade my sites to 3.6.x, i'll work on porting over the hack, but until then it's only for 3.5.x.

bada_bing
15 Sep 2006, 02:55
Antivirus,

Any update to this


Quote:
Originally Posted by Antivirus
I could add a setting within the AdminCP which would give Admin the option of preventing the PM from being sent if sender is member of usergroup "x".
Now that would be very nice

Antivirus
15 Sep 2006, 15:14
Antivirus, Any update to this?
Quote:
Originally Posted by Antivirus
I could add a setting within the AdminCP which would give Admin the option of preventing the PM from being sent if sender is member of usergroup "x".
Now that would be very nice

Sorry, have been really busy with some other things, and haven't been able to get to it yet. It's on my to-do list for next version of this hack however...

JoeWho
29 Sep 2006, 16:45
Anyone get this to work on 3.6?


Yes, I have it working... see message: #840 (http://www.vbulletin.org/forum/showpost.php?p=1085591&postcount=840) = Myspace Profile Re-Write PRO! 1.0.0 (http://www.vbulletin.org/forum/showthread.php?t=109094&page=56&highlight=Myspace+Profile)

Lionel
05 Oct 2006, 22:45
Yes, I have it working... see message: #840 (http://www.vbulletin.org/forum/showpost.php?p=1085591&postcount=840)= Myspace Profile Re-Write PRO! 1.0.0 (http://www.vbulletin.org/forum/showthread.php?t=109094&page=56&highlight=Myspace+Profile)

so you mind telling us how?

:Judge:
08 Oct 2006, 20:17
Anyone have any idea or fix on this for 3.6.*?

JoeWho
08 Oct 2006, 20:55
Anyone have any idea or fix on this for 3.6.*?

Well, I was hoping somebody would help me with the problem I was having, but I guess not. That won't stop me from helping someone else.

I'll post what I figured out in a few minutes, let me pull the information.

Please keep in mind that this is only a temporary fix, it is not the best way of doing it, but it does work.

JoeWho
08 Oct 2006, 21:07
so you mind telling us how?


This is a export of the plug-in that works on my system, you can open it up and see the changes I have made.

The best part about this is... when Antivirus gets around to updating this the correct way, all you will have to do is reinstall and overwrite what is already there.

I hope this will help you.

Krofh
12 Oct 2006, 07:05
^ Trouble with that is it only works when you click on the link from someone's profile, not when you just add someone through the actual buddylist page.

robert_2004
01 Nov 2006, 14:39
QUESTION & FEATURE:
in the PM, does it allow the user to disallow / delete the friend request?
Say "adam" adds "lucy". lucy gets a PM saying she's been added, and also allowing her to add him.
in that PM, Lucy should receive a link to delete the friendship from occuring - because maybe shedoesn't want to be even seen on his profile.

bada_bing
01 Nov 2006, 20:37
Sorry, have been really busy with some other things, and haven't been able to get to it yet. It's on my to-do list for next version of this hack however...
Any updates to when you will add this feature or are you going to abandon this hack?

Antivirus
02 Nov 2006, 16:07
QUESTION & FEATURE:
in the PM, does it allow the user to disallow / delete the friend request?
Please keep in mind that this hack has nothing to do with "friend requests". You might be confusing this hack's functionality with Cloudwarrior's vbfriends hack (which was what inspired this hack). This hack simply sends a PM to "user 2" when "user 1" adds "user 2" to his/her buddy list. To answer your question, when "user 2" receives the PM, he/she is able to either add "user 1" to his/her buddy list, or if "user 2" feels "user 1" is harassing, add "user 1" to his/her ignore list.


Any updates to when you will add this feature or are you going to abandon this hack?
I will not be abandoning this, and I will be updating this to 3.6.x sometime after I fully upgrade my sites to 3.6 which I am currently in the process of doing so.

Cocko
02 Nov 2006, 18:00
I will be updating this to 3.6.x sometime after I fully upgrade my sites to 3.6 which I am currently in the process of doing so.

hope u will update very soon... :up:

Andre31
04 Nov 2006, 20:55
This is a export of the plug-in that works on my system, you can open it up and see the changes I have made.

The best part about this is... when Antivirus gets around to updating this the correct way, all you will have to do is reinstall and overwrite what is already there.

I hope this will help you.

I´ve installed it on 3.6.2 and it works fine. THX.:cool:

Cocko
16 Nov 2006, 20:07
^ Trouble with that is it only works when you click on the link from someone's profile, not when you just add someone through the actual buddylist page.

same issue (?) - anybody found out to fix ?

bada_bing
21 Nov 2006, 02:21
Sorry, have been really busy with some other things, and haven't been able to get to it yet. It's on my to-do list for next version of this hack however...
Will this feature be available soon?

teenhut
29 Nov 2006, 08:37
Can someone make it work for 3.6? I really need this one!

noonespecial
04 Dec 2006, 21:31
Can someone make it work for 3.6? I really need this one!
Ditto.

Willing to offer $.

delaen1
06 Dec 2006, 14:04
This is a export of the plug-in that works on my system, you can open it up and see the changes I have made.

The best part about this is... when Antivirus gets around to updating this the correct way, all you will have to do is reinstall and overwrite what is already there.

I hope this will help you.

This works well. I had to make a change so that it wouldn't send a PM to yourself if you added yourself to your own buddy list. It was causing a hell of a lot of confusion when testing this (I'd add a buddy, check my sent pm's, read the one that was sent to my new buddy, and click the "add me too" link...which would add myself to my own buddy list and then send me a new PM. If this sounds confusing...err..yea, it is. :))

However, there is a problem I've found where this sends the PM/Email (if they have the option enabled to receive new PM's via email) before they're actually added to the list. And there's no checking to see if a PM has already been sent. So, I was able to go to the "Add Buddy" screen, hit refresh 50 times, and mail myself off 50 emails. Not good.

Trying to figure out a fix for this. Anyone have any ideas?

delaen1
06 Dec 2006, 14:14
Oh, I see. These problems were already fixed in the prior version. Anyone know what's causing it not to work with 3.6?

Kihon Kata
15 Dec 2006, 15:00
Why doesn't this work with 3.6.4?

delaen1
18 Dec 2006, 02:39
Why doesn't this work with 3.6.4?

It seems the hook it was using was removed or renamed (at least I can't get it to fire ever).

The replacement that someone suggested earlier fires before the person is actually added to the buddy list, which creates a situation where it can be continuously spammed. With a little tweaking it can work just about the same way, but I can't figure out a solution to that problem.

Antivirus
11 Jan 2007, 00:06
I'm finally upgraded to v3.6.4 so i'll be working on an update for this soon. Thanks for your patience :)

Qwest
14 Jan 2007, 04:43
Looking forward to this. I need it for my myspace profiles hack to work.

noonespecial
14 Jan 2007, 04:52
Good.

delaen1
15 Jan 2007, 11:28
Here's the one I've been using with 3.6.4. It's mostly the one that was posted a few pages back, but with a few changes to make it slightly more difficult to spam. I'd still like any idea anyone has how to fix that problem.

bada_bing
15 Jan 2007, 14:15
Can someone fix this hack so that admins & moderators can be excluded from the PM. What I mean is if you are a mod or an admin and I add a member to my buddy list I dont want that person to receive the notice PM, This is usefull when you are monitoring a member and dont want them to know the staff has added them to their buddy list...

Qwest
17 Jan 2007, 15:27
Here's the one I've been using with 3.6.4. It's mostly the one that was posted a few pages back, but with a few changes to make it slightly more difficult to spam. I'd still like any idea anyone has how to fix that problem.Dude, thanks for that!

Antivirus
18 Jan 2007, 15:31
Can someone fix this hack so that admins & moderators can be excluded from the PM.

The next version i'm currently working on will allow admin to specify which usergroups send the autopm and which ones don't.

mescalin
05 Feb 2007, 20:34
that is a really great mod. I hope it will be ready for 3,64 soon..

aceofspades
06 Feb 2007, 12:35
Dito i really need this for 3.6

Antivirus
07 Feb 2007, 15:15
I'm working on it, but having some trouble with one of the new features, but it's coming along well. Jelsoft changed some stuff regarding the way buddies are added/removed so I have to work around it and another small issue with the usergroup permissions feature but it's coming along nicely.

noonespecial
07 Feb 2007, 23:09
Here's the one I've been using with 3.6.4. It's mostly the one that was posted a few pages back, but with a few changes to make it slightly more difficult to spam. I'd still like any idea anyone has how to fix that problem.
This one works for me on 3.6

JoeZ
08 Feb 2007, 23:25
I'm using this with the MYSPACE profile re-write script. Product is installed but no PM goes out when friend is added. Any help?

JoeZ
11 Feb 2007, 07:32
no help?

delaen1
14 Feb 2007, 15:35
Which one are you using, the one in the original post or the one I posted on the last page?

JoeZ
17 Feb 2007, 05:20
thanks delaen! just found yours on here and works good

Mistah Roth
24 Feb 2007, 22:23
The one Delaen posted doesn't work for me, not sure why.

I'm using vb 3.6.4 too...

Lars-Christian
24 Mar 2007, 03:00
Here's the one I've been using with 3.6.4. It's mostly the one that was posted a few pages back, but with a few changes to make it slightly more difficult to spam. I'd still like any idea anyone has how to fix that problem.
I am currently running this version of the hack on 3.6.5. Unfortunately, it is 50% useless since it doesn't send out a PM when the user adds someone to their buddy list without going through the profile or postbit first.

Has anyone been able to rectify this? If so I would be grateful, as this is something I'm quite dependant of.

DiSpy
25 Mar 2007, 00:04
I'd like to install this as well... waiting for a fully functioning version that will work with 3.6.5+

THANKS!

bada_bing
27 Mar 2007, 17:23
Does not work on 3.6.4 uninstalled.

mescalin
31 Mar 2007, 23:42
I like that mod so much, waitng for that mod to update my board :)

Thanks for sharing antirus.

Antivirus
30 Apr 2007, 22:44
Unfortunately I am abandoning development on this modification, as I no longer have any use for it and don't have the time to port it over to 3.6.x . If any coders would like to pick up on this where I left off, PM me.

serhat_kk
12 May 2007, 06:35
I'm using this with the MYSPACE profile re-write script. Product is installed but no PM goes out when friend is added. Any help?

im using default vb but ive the same problem... Can someone help us for this hack problems?

jasculs
01 Jul 2007, 06:56
Any news on this for 3.6.7?

bada_bing
02 Jul 2007, 14:16
Does anyone know how I can make this hack not send PM's to members when an admin or moderator adds them to thier buddy list. I want to use this to monitor certain bad members and when I add them I dont want to PM to go to them.

noonespecial
28 Jul 2007, 08:46
The 3.6 "version" fires at the wrong place ... really wish this would work.

XXP
19 Nov 2007, 00:28
Here's the one I've been using with 3.6.4. It's mostly the one that was posted a few pages back, but with a few changes to make it slightly more difficult to spam. I'd still like any idea anyone has how to fix that problem.

This one definitely works in 3.6.7 PL1. (http://www.vbulletin.org/forum/showpost.php?p=1159679&postcount=160) Thanks! Please consider releasing it separately on the 3.6.x forum.

(Also: please make sure that "private message" in the title, etc. "PM" is too short for vB.xxx search.)

Thanks again for this fix/update! Awesomely useful.