Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
AutoPM after addBuddy Details »
AutoPM after addBuddy
Mod Version: 1.0.4, by Antivirus (Member) Antivirus is offline
Developer Last Online: Aug 2014 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 3.5.4 Rating: (5 votes - 4.60 average) Installs: 164
Released: 09 Jan 2006 Last Update: 20 Jul 2006 Downloads: 424
Not Supported Uses Plugins  

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. This was inspired by Cloud Warrior's really cool vbFriends 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

.

Download Now

Only licensed members can download files, Click Here for more information.

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • If you like this modification support the author by donating.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
Miscellaneous Hacks e-steki User ModLog v1.1.3 - An alternative to moderation AutoPM Lea Verou vBulletin 3.6 Add-ons 141 05 Nov 2013 07:29

Comments
  #2  
Old 09 Jan 2006, 17:36
Antivirus's Avatar
Antivirus Antivirus is offline
 
Join Date: Sep 2004
First post reserved
__________________
Please feel free to PM me about custom work, installations, and upgrades!

Eclipse Records - Streetcult Street Team
Reply With Quote
  #3  
Old 09 Jan 2006, 17:41
The Chief's Avatar
The Chief The Chief is offline
 
Join Date: Aug 2005
holy crap, I think I will like this and install it for sure, just gimme two secs

Wonders, im so happy
__________________
Think Hype Networks | MeandIsis
Reply With Quote
  #4  
Old 09 Jan 2006, 18:02
The Chief's Avatar
The Chief The Chief is offline
 
Join Date: Aug 2005
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>
__________________
Think Hype Networks | MeandIsis

Last edited by gamebgs; 09 Jan 2006 at 18:14.
Reply With Quote
  #5  
Old 09 Jan 2006, 18:22
Antivirus's Avatar
Antivirus Antivirus is offline
 
Join Date: Sep 2004
Originally Posted by gamebgs
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!
__________________
Please feel free to PM me about custom work, installations, and upgrades!

Eclipse Records - Streetcult Street Team

Last edited by Antivirus; 09 Jan 2006 at 18:35.
Reply With Quote
  #6  
Old 09 Jan 2006, 18:34
vwturbo vwturbo is offline
 
Join Date: Jul 2004
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.
Reply With Quote
  #7  
Old 09 Jan 2006, 18:35
Antivirus's Avatar
Antivirus Antivirus is offline
 
Join Date: Sep 2004
thanks for the kind words
__________________
Please feel free to PM me about custom work, installations, and upgrades!

Eclipse Records - Streetcult Street Team
Reply With Quote
  #8  
Old 09 Jan 2006, 18:44
The Chief's Avatar
The Chief The Chief is offline
 
Join Date: Aug 2005
Originally Posted by Antivirus
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??
__________________
Think Hype Networks | MeandIsis
Reply With Quote
  #9  
Old 09 Jan 2006, 20:07
msimplay's Avatar
msimplay msimplay is offline
 
Join Date: Aug 2002
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
Attached Files
File Type: xml send pm.xml (5.5 KB, 33 views)
Reply With Quote
  #10  
Old 09 Jan 2006, 20:09
The Chief's Avatar
The Chief The Chief is offline
 
Join Date: Aug 2005
Originally Posted by msimplay
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
__________________
Think Hype Networks | MeandIsis
Reply With Quote
  #11  
Old 09 Jan 2006, 20:20
jj's Avatar
jj jj is offline
 
Join Date: Sep 2005
Real name: Jens
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.
Reply With Quote
  #12  
Old 09 Jan 2006, 20:28
jj's Avatar
jj jj is offline
 
Join Date: Sep 2005
Real name: Jens
Originally Posted by gamebgs
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

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

2) Replace with

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

3) Use $1 in the phrases where you like to get the username
Reply With Quote
  #13  
Old 09 Jan 2006, 20:42
The Chief's Avatar
The Chief The Chief is offline
 
Join Date: Aug 2005
Originally Posted by j.jacobsen
That's quite easy and a quickie. Here we go:

1) Find in original code

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

2) Replace with

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

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!!
__________________
Think Hype Networks | MeandIsis
Reply With Quote
  #14  
Old 09 Jan 2006, 22:02
Snoop-It's Avatar
Snoop-It Snoop-It is offline
 
Join Date: Jun 2005
excellent hack! using it on my board aswell.. thanks for this!
Reply With Quote
  #15  
Old 09 Jan 2006, 22:08
Antivirus's Avatar
Antivirus Antivirus is offline
 
Join Date: Sep 2004
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.
__________________
Please feel free to PM me about custom work, installations, and upgrades!

Eclipse Records - Streetcult Street Team
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 10:29.

Layout Options | Width: Wide Color: