vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   End-User Options - Allow admins to email users using the user to user email function (https://vborg.vbsupport.ru/showthread.php?t=130055)

eXtremeTim 10-26-2006 10:00 PM

Allow admins to email users using the user to user email function
 
This hack will let admins send emails to users using the front-end email user feature even if the user has opted to hide their email from normal members. So no longer will you have to go into the admin cp to send an email to these members.

Support Will Be Given Here: http://vbhacks.extremewebtech.com/fo...read.php?t=181

Hornstar 10-27-2006 04:21 AM

Sounds like a good idea, I will install this a little later on in the week when i get time so then ill give you some feedback then.

Thanks.

bashy 10-27-2006 05:09 AM

Now this does sound like a very good idea ;)
thanks alot eXtremeTim, will try it tonight after work :)

wow, just looked at the instruictions, and its as easy as that lol
I did have a wee search through the templates to see what i could
but as i aint no coder i didnt find out lol....

Thanks again....

Feckie (Roger) 10-27-2006 08:25 AM

Excellent .............................Bravo

Darat 10-27-2006 10:40 AM

@*sorry didn't mean to post here!

bashy 10-27-2006 04:03 PM

When i click the send email to member i get a blank page

heres the 2 edits i made
1st
Code:

        else if (!$userinfo['showemail'] && $vbulletin->userinfo['usergroupid']!=6))
2nd
Code:

        else if (!$userinfo['showemail'] && $vbulletin->userinfo['usergroupid']!=6))
You will see there both the same so no mistake there, all i did was replace the original code with yours as stated.

I noticed that once the edits were made there were 2 )) on the end, is this correct? as there was already a ) in place but was not show in the Find:
Code:

else if (!$userinfo['showemail']
Any ideas please? I am gonna try an remove that extra ) and report back in a mo :)

bashy 10-27-2006 04:05 PM

EDIT:

Ok thats what it was in your instructions you need to add the closing ) to the find, it should be:
Code:

else if (!$userinfo['showemail'])
That way it will replace instead of adding 1 :)

Thanks again, its working great after the fix, well done for a quick responce
I only asked last night...Have a good day!!

Milad 10-29-2006 07:40 PM

This can be done via plugins ex: global_start :

PHP Code:

if (THIS_SCRIPT == 'sendmessage' and $vbulletin->userinfo['usergroupid'] == 6)
{
    
$vbulletin->options['displayemails'] = true;
    
$vbulletin->options['secureemail'] = true;



Milad 10-29-2006 07:43 PM

the previous to send email via the normal form, but to see the email replace:
PHP Code:

$vbulletin->options['secureemail'] = true

with:
PHP Code:

$vbulletin->options['secureemail'] = false


Eagle Creek 02-16-2007 05:09 AM

Is it possible for the admin to see when he's overwriting the user setting?


All times are GMT. The time now is 02:28 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.01007 seconds
  • Memory Usage 1,735KB
  • 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
  • (4)bbcode_code_printable
  • (3)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete