View Full Version : End-User Options - Allow admins to email users using the user to user email function
eXtremeTim
10-26-2006, 10:00 PM
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/forums/showthread.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 else if (!$userinfo['showemail'] && $vbulletin->userinfo['usergroupid']!=6))
2nd 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:
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:
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 :
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:
$vbulletin->options['secureemail'] = true;
with:
$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?
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.