![]() |
AutoPM after addBuddy
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:
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 :) . |
First post reserved ;)
|
holy crap, I think I will like this and install it for sure, just gimme two secs :)
Wonders, im so happy ;) |
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. Quote:
|
Quote:
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! |
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.
|
thanks for the kind words :)
|
Quote:
We would also need some statements like if he approves, do not send a PM, can this be done?? |
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 |
Quote:
|
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 ;)
If more gets into my mind, I'll post it. |
Quote:
1) Find in original code Code:
$pmdm->set('title', $vbphrase[anti_autopm_bud_tit]); Code:
$anti_autopm_bud_tit = str_replace("$1",$vbulletin->userinfo['username'],$vbphrase[anti_autopm_bud_tit]); |
Quote:
Like a link of what i posted before for that user to automatically add him (approve)?? thanks!! |
excellent hack! using it on my board aswell.. thanks for this!
|
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.
:) |
Quote:
XML Error: mismatched tag at Line 80 I can't even upload it... |
ok, looking at it...
|
damm just tried upgrading and i got this error.. when importing the product..
XML Error: mismatched tag at Line 80 |
Quote:
|
yeh i posted straight away.. i didnt see that post - my bad.. :nervous:
|
ok i fixed it i think I zipped the wrong file that time sorry:smoke:
|
excellent, now it works. cheers man!
|
cool
|
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
HTML Code:
[url=$2/profile.php?do=addlist&userlist=buddy&u=$3]click to accept[/url] HTML Code:
Hello, Code:
$anti_autopm_bud_tit = str_replace("$1",$vbulletin->userinfo['username'],$vbphrase[anti_autopm_bud_tit]); |
cool beans, i'm sure i will be clicking install momentarily..
|
Quote:
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 ;) |
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 ?
https://vborg.vbsupport.ru/showthrea...light=savecopy |
Quote:
Replace in Original code of the plugin: Code:
$pmdm->set_info('savecopy', 1); Code:
$pmdm->set_info('savecopy', $vbulletin->userinfo['savecopy']); |
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: HTML Code:
Hello, Code:
{1} has just added you to his buddy list! PHP Code:
PHP Code:
Again, nice work :) |
Quote:
|
Quote:
|
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! |
Quote:
|
What about the ignore list, does it work on that also?
|
Quote:
|
Where are the files?
|
Yah *L* ... I'm looking and I don't see any .. heh :)
|
Quote:
:smoke: |
Quote:
It makes them more unique, if you get what I mean... |
Installed and Working fine :D
|
All times are GMT. The time now is 04:54 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|