View Full Version : Profile Enhancements - Shishir - Visitor Message Email Notification
Shishir
08-20-2008, 10:00 PM
Information:
This modification is actually based on several requests I saw here and especially after this one (https://vborg.vbsupport.ru/showthread.php?p=1602771#post1602771). I mean, how can I neglect a request with "If someone makes one, I'd be willing to contribute." :D
What it does is simple. When someone makes a visitor message in Profile it will notify the user via email that a new message has been posted. If the message is a new message then the email will contain the message as well. If it is an ajax message then only a simple email with notification will be made.
Feature:
> Sends an Email Notification to the user when a visitor message is posted.
Install instruction:
==> Import XML file (as product): AdminCP > Plugins & Products > Manage Products > [Add/Import Product]
==> Go to: AdminCP > vBulletin Options > vBulletin Options > User Profile: Visitor Messaging Options and Select to your preference.
Current Version:
1.0.0
If you like this hack please click INSTALL. Support will only be provided to those who click Install.
aproape
08-21-2008, 03:55 AM
Hi there!
Thanks for this - it will be very helpful I am sure.
I am just thinking [a bit!] now that it would be interesting to have a central place for all email notifications for users..
[notify when someone posted a comment on your picture.. or visitor message.. or email.. anything].
I know right now some of those are in several places..
Good mod! Thanks - I'll install it shortly.
Cheers,
aproape
wfouly
08-21-2008, 04:09 AM
Nice idea , thanks
Shishir
08-21-2008, 04:28 AM
Hi there!
Thanks for this - it will be very helpful I am sure.
I am just thinking [a bit!] now that it would be interesting to have a central place for all email notifications for users..
[notify when someone posted a comment on your picture.. or visitor message.. or email.. anything].
I know right now some of those are in several places..
Good mod! Thanks - I'll install it shortly.
Cheers,
aproape
Not a bad Idea, but I guess not many are left though. And in Original vB file, I see this line //todo: Option to receive email notification to the owner of this profile about a new comment.
So I guess they will make it a Default option sooner. So we just wait for them to make the next update and see what is missing. For the moment, lets use this one. :D
Shishir
I have been waiting for this for such a long time. Finally there is an add-on. Thank you! Nonetheless this and other notifications should be default vbulletin features.
GrendelKhan{TSU
08-21-2008, 05:47 AM
omg thank you.
REQ: Can I go out on a limb and ask if this can be done for PROFILE ALBUM comments as well (or ANY notification... like a PM would do as well)?
I'd be like your eternal gratitude.
thanks for the add-on in any case! :D
Shishir
08-21-2008, 06:14 AM
omg thank you.
REQ: Can I go out on a limb and ask if this can be done for PROFILE ALBUM comments as well (or ANY notification... like a PM would do as well)?
I'd be like your eternal gratitude.
thanks for the add-on in any case! :D
Sorry, I do not actually use the Album feature too much. Hence I could not find the Profile Album Comment. :| Can you please show me a Link of such. If the link is private, you Can PM me as well. I think I'll be able to do that as well, but I need to know where it is in the first place. :p
Shishir
GrendelKhan{TSU
08-21-2008, 06:38 AM
Sorry, I do not actually use the Album feature too much. Hence I could not find the Profile Album Comment. :| Can you please show me a Link of such. If the link is private, you Can PM me as well. I think I'll be able to do that as well, but I need to know where it is in the first place. :p
Shishir
sure!
demo: hot chick Album pic of Lee Hyori (http://www.igoo.com/forums/album.php?albumid=1&pictureid=4) with comments :)
Forum Lover
08-21-2008, 07:39 AM
challu mama.. dload deinai, magar installed e ghai maira gelam, (may re bap, deshi boilla kotha... khekz). pore aitesi.
Thanks for the release. :)
Shishir
08-21-2008, 08:09 AM
challu mama.. dload deinai, magar installed e ghai maira gelam, (may re bap, deshi boilla kotha... khekz). pore aitesi.
Thanks for the release. :)
Thanks mama, tomago laigai to sob kora. Tomar kisu lagle awaz dio. :)
Shishir
myrhoto
08-21-2008, 03:28 PM
Email notify for Picture comments would be great too! Thanks for this release!
sparklywater
08-25-2008, 03:26 PM
Thanks for creating this mod, it's just what I've been looking for. See this thread:
http://www.vbulletin.com/forum/showthread.php?t=275826
Been wanting this for a long time too. Is there any way we can change the message in the email and is it possible to include a hyperlink in the email back to their profile?
It's all about getting members to return!
Cheers. :)
sparklywater
08-25-2008, 08:09 PM
yes it would be good to place a link in the email to the user's profile.
Can someone please post the code on how to do this.
Megatr0n
08-27-2008, 08:47 PM
How can you change/edit the messages going out?
None of them are phrased.
Shishir
08-28-2008, 03:22 PM
How can you change/edit the messages going out?
None of them are phrased.
Yap, I thought it was not that necesary to be editable. It's just a notification, right? :D Anyway, will update to make that editable.
Hmm, so popular demand is Edit the Message. Right then, I am on it now. Will update as soon as I am done. ;)
Shishir
sparklywater
08-28-2008, 03:45 PM
What variable is used to link to users' profiles?
Shishir
08-28-2008, 04:26 PM
What variable is used to link to users' profiles?
Can't get you buddy. I have not used any variable to link to profile so far. :| It just sends a plain mail to user.
Shishir
sparklywater
08-29-2008, 04:14 AM
I know that, which is why I'm asking :)
I was thinking if I knew the variable then I could probably add the variable to the xml file.
Julie
08-29-2008, 07:20 AM
Would it be possible to make this a user's choice? That a user can decide for him/herself in the UserCP whether or not they want this option?
I don't want to force e-mails on people, especially those who get a lot of visitor messages :P
Thanks :)
Megatr0n
08-29-2008, 10:09 AM
Would it be possible to make this a user's choice? That a user can decide for him/herself in the UserCP whether or not they want this option?
I don't want to force e-mails on people, especially those who get a lot of visitor messages :P
Thanks :)
Good idea.
sparklywater
08-29-2008, 12:43 PM
Good idea.
I agree, it would be good to give user's that option to decide.
abrecher
08-29-2008, 08:53 PM
I agree, it would be good to give user's that option to decide.
Agreed! Please add this as an option.
yotsume
08-31-2008, 10:40 AM
I installed this, set my options but no emails are being sent out. Im on vb3.7.3 Any idea why emails arent being sent?
TriMe
09-08-2008, 08:38 PM
Can't get you buddy. I have not used any variable to link to profile so far. :| It just sends a plain mail to user.
Shishir
This would be a GREAT asset to have. Being able to click a link in the email to go right to the post in the profile!
Regardless,
Installed and Nominated
Thanks!
TriMe
Pamela
09-18-2008, 11:41 PM
How can you change/edit the messages going out?
None of them are phrased.
I'd love that upgrade as well! :)
Would it be possible to make this a user's choice? That a user can decide for him/herself in the UserCP whether or not they want this option?
I'd like to see this as well! :)
yotsume
09-18-2008, 11:52 PM
I'd love that upgrade as well! :)
I'd like to see this as well! :)
Oh yea I want to know this as well please. We also need to find a way to add a link back to the profile page as well.
marcossalazar
10-04-2008, 03:51 PM
Any updates to this great mod coming soon?
TriMe
10-04-2008, 04:42 PM
I'm excited for one as well!!
yotsume
10-05-2008, 05:09 AM
I have a corrected version I am looking over that fixes more English mistakes. I plan to send this file to the developer who I am sure will make it available here.
dbigras
10-06-2008, 04:02 AM
I just could not believe it was not an option in the base product. Thanks for this modification!
I wish it could also notify when comments were posted on albums. If it's not too much to add.
Shishir
10-07-2008, 10:01 AM
That would be a Great help as I am short of time these days. Hope to have some free time to make some updates. Ahh, I wish.
Anyway, looking forward to any help available.
Shishir
Raydar
10-17-2008, 12:28 PM
I've installed this.
When I went to checkout the options for it, it has an email address field in there. Why do I need to put an email address in the admin cp? Does this hack email any member that receives a message or only me?
Thanks
Reg
I've installed this.
When I went to checkout the options for it, it has an email address field in there. Why do I need to put an email address in the admin cp? Does this hack email any member that receives a message or only me?
Thanks
Reg
You have never received an email, have you? ;) Every email needs two adresses, one for the person who receives it and one as sender address.
I don' t think that it is needed, because you already have it set in the general vbulletin options, but some people might want to set a different email address for the pm notification.
nerofix
12-09-2008, 09:02 AM
I need this emails sent in relation to the user language interface. How we can make it translated?
yotsume
01-12-2009, 01:09 AM
Is this mod vb3.8 compatible?
Shishir
01-12-2009, 02:24 AM
Ah, I almost forgot about My Mods. :D Let me test it on my testvb. Will Update as I can Confirm.
Shishir
Edit: Installed on testvb, looks to be working on 3.8. Since there is not much demand, not releasing a 3.8 version, but this will work, I hope.
Talk-Pets
01-12-2009, 01:22 PM
Great one - installed :up:
GlamRockTalk
01-26-2009, 11:46 PM
I would absolutely LOVE this mod if it came with the right options. I mean, you need to have the ability for the member to 'opt out' of receiving these. Plus, you'd definitely want a way to customize the message going out as well, I would think.
Any other modification out there that does these things?
sparklywater
01-29-2009, 07:06 PM
I would absolutely LOVE this mod if it came with the right options. I mean, you need to have the ability for the member to 'opt out' of receiving these. Plus, you'd definitely want a way to customize the message going out as well, I would think.
Any other modification out there that does these things?
I totally agree, I think i will post a request in the paid/non-paid request areas.
sparklywater
01-29-2009, 07:15 PM
<a href="https://vborg.vbsupport.ru/showthread.php?p=1728374#post1728374" target="_blank">https://vborg.vbsupport.ru/showt...74#post1728374</a>
Adeawan
01-29-2009, 07:31 PM
Thanks For That
GlamRockTalk
01-29-2009, 09:53 PM
https://vborg.vbsupport.ru/showthread.php?p=1728374#post1728374
Posted on that thread sparklywater :up:
Shishir
01-30-2009, 11:25 AM
I wish there were some offer for me when I made this one. That would have encouraged me to make a more comprehensive one ;). Anyway, good luck with the paid One. That would be much better for sure. :D
Shishir
GlamRockTalk
01-30-2009, 11:49 AM
Shishir, you can still add those options to your existing mod and I'm sure that you'd get some donations ;)
sparklywater
02-02-2009, 01:52 PM
Thanks for your mod Shishir. However, apart from lack of those features, I did notice another problem with this mod. I noticed that when a person edits a visitor message, the member with the profile recieves another Email notification telling them that there is a new visitor message on their profile. This happens even if an admin edits the visitor message, so the member with the profile may get Email notifications not knowing why they're recieving them.
I'm hoping that a rebuild of this mod would eradicate this problem as well as add on the other required features.
Shishir
02-14-2009, 02:46 AM
Sorry for my busy schedules, I could not provide support quickly. Hmm, thats a little bit of problem. Hence a rebuild is needed. :D So a few new features as well. Ok, you got it. But I'll have to make it in between my current tasks. So not promising any quick fire solution. But will do my best. Although I see you do not need this as you have your own. So for others, plz perdon me for sometime as I make my way into it. ;)
Shishir
ejbreeze
02-20-2009, 02:41 AM
Nice job Shishir! Notification of album comments would put this over the top!
CCV_Pinto
04-02-2009, 02:51 AM
well,
to those who want the user could choose to receive or not emails, I did this:
I created a profile field called: "Receive Email Notifications on Visitor Messages"
The identification of the field was 'field5' (you can see this after you create the profile field, I created a radio button with two options: 'Yes' and 'No')
then, edit the two plugins of this product:
find (the first line of the plugin):
if($vbulletin->options['VMEN_active'] == 1)
and replace for:
if($vbulletin->options['VMEN_active'] == 1 AND $userinfo['field5'] == 'Yes')
pay attention to use the proper field identification (in my case was field5)
now, only those who have choosen 'Yes' will receive the email
another simple addition to have the link to the profile in the email is:
change this:
. 'Thanks.';
to this:
. "You can see your profile <a href=\"http://YOURDOMAIN/forum/member.php?u=" . $userinfo['userid'] . "\">here</a>" . "\n\r" . 'Thanks.';
make sure to use your own domain instead of "YOURDOMAIN"
ps: the only problem is that the email isnt at html form... so it will need to add some parameters to the vbmail function which is called at the end (I will try to investigate to understand how to do this)
yotsume
08-01-2009, 11:07 PM
Can we please at least be told how to edit your mod to get a simple link back the the users profile page to be included in the emails.
Ok going on two years and no update for such an importnat feature that should have been standard! WEIRD!
THANKS!
MagicThemeParks
09-26-2009, 07:55 PM
I've read a couple of times within this thread that there would be additional features and a new version of this mod released. I don't see a new version out there. Has anyone made another option out there?
If not, has anyone figured out how to fix the issues (email on edit of comment, no way to display proper link back to profile, etc) and can share with us?
CCV_Pinto, thanks for sharing what you have done with the profile field allowing folks to opt out if needed! I want to add a line at the bottom of the email to point to their 'edit your details' page to opt out. How would I do that?
MagicThemeParks
09-27-2009, 02:14 AM
Alright, it worked with plain text for now. I've gotta figure out how to point folks back to their UserCP for convenience. But, at least I have something in the email now. :up:
$VMEN_message = 'You have a new profile message at http://www.MagicThemeParks.com/mk/forum from ' . $vbulletin->userinfo['username'] . "\n\r" . "\n\r" . 'Thanks!' . "\n\r" . "\n\r" . 'To Opt-Out of these emails, simply edit your details under the UserCP link.';
yotsume
09-27-2009, 02:55 AM
Alright, it worked with plain text for now. I've gotta figure out how to point folks back to their UserCP for convenience. But, at least I have something in the email now. :up:
$VMEN_message = 'You have a new profile message at http://www.MagicThemeParks.com/mk/forum from ' . $vbulletin->userinfo['username'] . "\n\r" . "\n\r" . 'Thanks!' . "\n\r" . "\n\r" . 'To Opt-Out of these emails, simply edit your details under the UserCP link.';
You should provide instructions on how to get this message in the email for everyone and not just state that you got it. ;)
DETAILS PLEASE!
MagicThemeParks
09-27-2009, 03:07 AM
Sorry, figured that folks would see that it was the $VMEN_message line and to edit it :)
I did the above edit on lines 21 and 30 of the Shishir_VMEN.xml file. I replaced the code that was there with what I have listed.
Basically, to add a "line break", you add....
. "\n\r" .
....and anything in between the single quotes is printed out in text.....
'To Opt-Out of these emails, simply edit your details under the UserCP link.'
....I haven't been able to get the link to display as a link (unless your email client like my Gmail turns it into a clickable link) yet.
Does this help you at all Totsume?
yotsume
09-27-2009, 03:19 AM
Sorry, figured that folks would see that it was the $VMEN_message line and to edit it :)
I did the above edit on lines 21 and 30 of the Shishir_VMEN.xml file. I replaced the code that was there with what I have listed.
Basically, to add a "line break", you add....
. "\n\r" .
....and anything in between the single quotes is printed out in text.....
'To Opt-Out of these emails, simply edit your details under the UserCP link.'
....I haven't been able to get the link to display as a link (unless your email client like my Gmail turns it into a clickable link) yet.
Does this help you at all Yotsume?
The request was not for me but it was to get you do do it for the whole vborg community. ;)
Javierogo
10-03-2009, 05:46 AM
This mod is gorgeous, but i would like to change the message if is possible, because my forum is only in spanish ... How can i do it? Great!
MagicThemeParks
10-03-2009, 01:45 PM
Javierogo, all you have to do is edit the xml file as you see a few posts before yours.
Javierogo
10-03-2009, 02:57 PM
I see, thanks :D
Javierogo
10-03-2009, 03:40 PM
well,
to those who want the user could choose to receive or not emails, I did this:
I created a profile field called: "Receive Email Notifications on Visitor Messages"
The identification of the field was 'field5' (you can see this after you create the profile field, I created a radio button with two options: 'Yes' and 'No')
then, edit the two plugins of this product:
find (the first line of the plugin):
if($vbulletin->options['VMEN_active'] == 1)
and replace for:
if($vbulletin->options['VMEN_active'] == 1 AND $userinfo['field5'] == 'Yes')
pay attention to use the proper field identification (in my case was field5)
now, only those who have choosen 'Yes' will receive the email
It does not work for me :(
Javierogo
10-03-2009, 05:07 PM
Ok, i'm sorry to write several consecutive post on this thread, but i found a simple change in the CCV_Pinto's code:
Original CCV_Pinto' Code
if($vbulletin->options['VMEN_active'] == 1 AND $userinfo['field5'] == 'Yes')
Just remove Yes
if($vbulletin->options['VMEN_active'] == 1 AND $userinfo['field5'] == '')
And create Multiple-Selection Checkbox only with "No"
So, by default all the users will recive the messages. And the question on the Control Panel will be something like this:
Mark "No", if you don't want to recive more profile notifications by Email.
MagicThemeParks
10-03-2009, 07:54 PM
The "yes/no" options seems better to me and still works for me. Thanks :)
https://vborg.vbsupport.ru/showthread.php?p=1782159#post1782159
Javierogo
10-05-2009, 07:38 PM
That's good, dude.:up:
I made this change, because for me does not work, maybe for somebody else neither.
:)
Akyeame Kwame
11-01-2011, 08:56 AM
well,
to those who want the user could choose to receive or not emails, I did this:
I created a profile field called: "Receive Email Notifications on Visitor Messages"
The identification of the field was 'field5' (you can see this after you create the profile field, I created a radio button with two options: 'Yes' and 'No')
then, edit the two plugins of this product:
find (the first line of the plugin):
if($vbulletin->options['VMEN_active'] == 1)
and replace for:
if($vbulletin->options['VMEN_active'] == 1 AND $userinfo['field5'] == 'Yes')
pay attention to use the proper field identification (in my case was field5)
now, only those who have choosen 'Yes' will receive the email
another simple addition to have the link to the profile in the email is:
change this:
. 'Thanks.';
to this:
. "You can see your profile <a href=\"http://YOURDOMAIN/forum/member.php?u=" . $userinfo['userid'] . "\">here</a>" . "\n\r" . 'Thanks.';
make sure to use your own domain instead of "YOURDOMAIN"
ps: the only problem is that the email isnt at html form... so it will need to add some parameters to the vbmail function which is called at the end (I will try to investigate to understand how to do this)
Hello, this is a problem for me as well. I get the actual a href html code in the email like:
<a href="http://xxxx.com/forums/member.php?u=1">here</a>
I can't figure out how to get rid of that so it just allows clicking on the word here or even if it just gave the link without the code that would be fine as well. I tried removing the a href code part from the xml but that caused errors to show when someone posted a profile message. Probably something screwy going on with the quotation marks or slashes. Any assistance would be greatly appreciated.
Akyeame Kwame
03-31-2012, 07:52 PM
works in 4.1.11
Geoff_M
04-15-2012, 10:40 PM
Working here on 4.1.11 and 4.1.12
I was also getting the emails sent in text format...
To get them to send correctly I just used the PHP mail() function instead of the built in one.
mail($userinfo['email'], 'You Have a New Profile Message', $VMEN_message, 'From: '.$vbulletin->options['VMEN_reply'].PHP_EOL.'Content-type: text/html');
If anyone has a better solution I would be interested in seeing it. :up:
Akyeame Kwame
04-15-2012, 11:31 PM
Hello Geoff,
I'm interested in getting the contents of the visitor message in the email. Are you saying this is what you were able to accomplish?
You're replacing
vbmail($userinfo['email'], 'You have a New Profile Message', $VMEN_message, false, $vbulletin->options['VMEN_reply'], '');
With
mail($userinfo['email'], 'You Have a New Profile Message', $VMEN_message, 'From: '.$vbulletin->options['VMEN_reply'].PHP_EOL.'Content-type: text/html');
To get that effect?
Xexiu
04-09-2013, 01:47 PM
Hello,
I had installed this on 3.8 and works fine. To extract the visitor message text I added:
. "\n\r" .'--------------------------------------------'. "\n\r" . $message['message'] . "\n\r" .'--------------------------------------------'. "\n\r" .
But still doesn't show any message wehn recieving the e-mail. Here is the example:
You have a new Profile message from Admin
--------------------------------------------
--------------------------------------------
To see or reply this message, please go to your profile on http://www.forum_name.com/member.php?u=1
If you forgot your password, please click here: http://www.forum_name.com/login.php?do=lostpw
To unsuscribe from recieving instant e-mail notifications, please click here: http://www.forum_name.com/profile.php?do=editoptions
Thank you.
Any ideas how to solve this issue or how to get the message posted on profile to show up in the e-mail?
Thanks
Thanks for your mod Shishir. However, apart from lack of those features, I did notice another problem with this mod. I noticed that when a person edits a visitor message, the member with the profile recieves another Email notification telling them that there is a new visitor message on their profile. This happens even if an admin edits the visitor message, so the member with the profile may get Email notifications not knowing why they're recieving them.
I'm hoping that a rebuild of this mod would eradicate this problem as well as add on the other required features.
Fix for this:
Find:
if($vbulletin->options['vmen_active'] == 1 )
Change to:
if($vbulletin->options['vmen_active'] == 1 AND !$_REQUEST['vmid'])
Xexiu
04-11-2013, 09:29 PM
Fix for this:
Find:
if($vbulletin->options['vmen_active'] == 1 )
Change to:
if($vbulletin->options['vmen_active'] == 1 AND !$_REQUEST['vmid'])
I've got a field to make user's choose if they want to recieve or not emails when someone posted on their profile, like this:
if($vbulletin->options['VMEN_active'] == 1 AND $userinfo['field10'] == 'Yes')
My question is:
- How do I merge your solution :
if($vbulletin->options['vmen_active'] == 1 AND !$_REQUEST['vmid'])
with my modification:
if($vbulletin->options['VMEN_active'] == 1 AND $userinfo['field10'] == 'Yes')
Also it will be very good if you know how to extract the message posted on the profile, the issue I have above (https://vborg.vbsupport.ru/showpost.php?p=2415325&postcount=67). Users recieves the e-mail but without the message from their profile!
Much apreciated for your answer!
if ($vbulletin->options['vmen_active'] == 1 AND !$_REQUEST['vmid'] AND $userinfo['field10'] == 'Yes')
Akyeame Kwame
06-16-2013, 06:58 AM
Does this extract the profile message?
No, in case with AJAX posting. That requires extra code, seems doable with $vbulletin->[GPC]['message'] or something like that
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.