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
  #52  
Old 09-26-2009, 07:55 PM
MagicThemeParks's Avatar
MagicThemeParks MagicThemeParks is offline
 
Join Date: Sep 2009
Posts: 850
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #53  
Old 09-27-2009, 02:14 AM
MagicThemeParks's Avatar
MagicThemeParks MagicThemeParks is offline
 
Join Date: Sep 2009
Posts: 850
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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:

Code:
$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.';
Reply With Quote
  #54  
Old 09-27-2009, 02:55 AM
yotsume's Avatar
yotsume yotsume is offline
 
Join Date: Dec 2006
Posts: 844
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

Code:
$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!
Reply With Quote
  #55  
Old 09-27-2009, 03:07 AM
MagicThemeParks's Avatar
MagicThemeParks MagicThemeParks is offline
 
Join Date: Sep 2009
Posts: 850
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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....

Code:
. "\n\r" .

....and anything in between the single quotes is printed out in text.....

Code:
'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?
Reply With Quote
  #56  
Old 09-27-2009, 03:19 AM
yotsume's Avatar
yotsume yotsume is offline
 
Join Date: Dec 2006
Posts: 844
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MagicThemeParks View Post
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....

Code:
. "\n\r" .
....and anything in between the single quotes is printed out in text.....

Code:
'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.
Reply With Quote
  #57  
Old 10-03-2009, 05:46 AM
Javierogo's Avatar
Javierogo Javierogo is offline
 
Join Date: Jun 2008
Location: M?xico
Posts: 76
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
Reply With Quote
  #58  
Old 10-03-2009, 01:45 PM
MagicThemeParks's Avatar
MagicThemeParks MagicThemeParks is offline
 
Join Date: Sep 2009
Posts: 850
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Javierogo, all you have to do is edit the xml file as you see a few posts before yours.
Reply With Quote
  #59  
Old 10-03-2009, 02:57 PM
Javierogo's Avatar
Javierogo Javierogo is offline
 
Join Date: Jun 2008
Location: M?xico
Posts: 76
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I see, thanks
Reply With Quote
  #60  
Old 10-03-2009, 03:40 PM
Javierogo's Avatar
Javierogo Javierogo is offline
 
Join Date: Jun 2008
Location: M?xico
Posts: 76
Благодарил(а): 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
It does not work for me
Reply With Quote
  #61  
Old 10-03-2009, 05:07 PM
Javierogo's Avatar
Javierogo Javierogo is offline
 
Join Date: Jun 2008
Location: M?xico
Posts: 76
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Code:
if($vbulletin->options['VMEN_active'] == 1 AND $userinfo['field5'] == 'Yes')

Just remove Yes
Code:
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.
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 04:31 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
  • Page Generation 0.04672 seconds
  • Memory Usage 2,317KB
  • 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
  • (10)bbcode_code
  • (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
  • (4)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