Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.7 > vBulletin 3.7 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Shishir - Visitor Message Email Notification Details »»
Shishir - Visitor Message Email Notification
Version: 1.0.0, by Shishir Shishir is offline
Developer Last Online: Jan 2015 Show Printable Version Email this Page

Category: Profile Enhancements - Version: 3.7.2 Rating:
Released: 08-20-2008 Last Update: Never Installs: 52
Uses Plugins
Translations  
No support by the author.

Information:
This modification is actually based on several requests I saw here and especially after this one. I mean, how can I neglect a request with "If someone makes one, I'd be willing to contribute."

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.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #62  
Old 10-03-2009, 07:54 PM
MagicThemeParks's Avatar
MagicThemeParks MagicThemeParks is offline
 
Join Date: Sep 2009
Posts: 850
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The "yes/no" options seems better to me and still works for me. Thanks

https://vborg.vbsupport.ru/showthrea...59#post1782159
Reply With Quote
  #63  
Old 10-05-2009, 07:38 PM
Javierogo's Avatar
Javierogo Javierogo is offline
 
Join Date: Jun 2008
Location: M?xico
Posts: 76
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That's good, dude.:up:
I made this change, because for me does not work, maybe for somebody else neither.
Reply With Quote
  #64  
Old 11-01-2011, 08:56 AM
Akyeame Kwame Akyeame Kwame is offline
 
Join Date: May 2008
Posts: 111
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by CCV_Pinto View Post
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):

Code:
if($vbulletin->options['VMEN_active'] == 1)
and replace for:

Code:
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:

Code:
.  'Thanks.';
to this:

Code:
. "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:

Code:
<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.
Reply With Quote
  #65  
Old 03-31-2012, 07:52 PM
Akyeame Kwame Akyeame Kwame is offline
 
Join Date: May 2008
Posts: 111
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

works in 4.1.11
Reply With Quote
  #66  
Old 04-15-2012, 10:40 PM
Geoff_M Geoff_M is offline
 
Join Date: Feb 2012
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.

PHP Code:
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:
Reply With Quote
  #67  
Old 04-15-2012, 11:31 PM
Akyeame Kwame Akyeame Kwame is offline
 
Join Date: May 2008
Posts: 111
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Code:
vbmail($userinfo['email'], 'You have a New Profile Message',  $VMEN_message, false, $vbulletin->options['VMEN_reply'],  '');
With
Code:
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?
Reply With Quote
  #68  
Old 04-09-2013, 01:47 PM
Xexiu Xexiu is offline
 
Join Date: May 2008
Location: Barcelona
Posts: 54
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello,

I had installed this on 3.8 and works fine. To extract the visitor message text I added:

Code:
. "\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:

HTML Code:
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
Reply With Quote
  #69  
Old 04-11-2013, 08:55 PM
EWGF EWGF is offline
 
Join Date: May 2007
Posts: 183
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by sparklywater View Post
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:
Code:
if($vbulletin->options['vmen_active'] == 1 )
Change to:
Code:
if($vbulletin->options['vmen_active'] == 1 AND !$_REQUEST['vmid'])
Reply With Quote
  #70  
Old 04-11-2013, 09:29 PM
Xexiu Xexiu is offline
 
Join Date: May 2008
Location: Barcelona
Posts: 54
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by EWGF View Post
Fix for this:

Find:
Code:
if($vbulletin->options['vmen_active'] == 1 )
Change to:
Code:
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:

Code:
if($vbulletin->options['VMEN_active'] == 1 AND $userinfo['field10'] == 'Yes')
My question is:

- How do I merge your solution :

Code:
if($vbulletin->options['vmen_active'] == 1 AND !$_REQUEST['vmid'])
with my modification:


Code:
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....5&postcount=67). Users recieves the e-mail but without the message from their profile!

Much apreciated for your answer!
Reply With Quote
  #71  
Old 06-14-2013, 11:03 AM
EWGF EWGF is offline
 
Join Date: May 2007
Posts: 183
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Code:
if ($vbulletin->options['vmen_active'] == 1 AND !$_REQUEST['vmid'] AND $userinfo['field10'] == 'Yes')
Reply With Quote
Reply


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

Forum Jump


All times are GMT. The time now is 12:30 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.07115 seconds
  • Memory Usage 2,326KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (16)bbcode_code
  • (1)bbcode_html
  • (1)bbcode_php
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete