vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   Profile Enhancements - Shishir - Visitor Message Email Notification (https://vborg.vbsupport.ru/showthread.php?t=188692)

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/showthrea...59#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

Quote:

Originally Posted by CCV_Pinto (Post 1782159)
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.

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.

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:

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

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:

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

EWGF 04-11-2013 08:55 PM

Quote:

Originally Posted by sparklywater (Post 1731914)
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'])

Xexiu 04-11-2013 09:29 PM

Quote:

Originally Posted by EWGF (Post 2415803)
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!

EWGF 06-14-2013 11:03 AM

Code:

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


All times are GMT. The time now is 01:00 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.01408 seconds
  • Memory Usage 1,756KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (16)bbcode_code_printable
  • (1)bbcode_html_printable
  • (1)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete