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

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

yotsume 09-27-2009 02:55 AM

Quote:

Originally Posted by MagicThemeParks (Post 1891121)
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!

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

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?

yotsume 09-27-2009 03:19 AM

Quote:

Originally Posted by MagicThemeParks (Post 1891130)
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. ;)

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

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

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


All times are GMT. The time now is 11:01 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.01179 seconds
  • Memory Usage 1,750KB
  • 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
  • (10)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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