vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Mods and admins can see Email addresses in user profiles. Anyone interested? (https://vborg.vbsupport.ru/showthread.php?t=36939)

Zzed 04-03-2002 04:33 PM

Mods and admins can see Email addresses in user profiles. Anyone interested?
 
The moderators on my site were complaining that they do not have permission to look up user Email addresses. So I put in a hack on my site to allow moderators and administrators to be able to see Email addresses.

It is a pretty simple hack. If anyone is interested, I would be more than glad to release it. :)

Zzed 04-04-2002 09:39 AM

bump :(

E 04-04-2002 10:02 AM

sure..

NSeXcellent 04-16-2002 05:47 PM

Release it.. im very interested

Chris M 04-16-2002 06:49 PM

Yeh why not...

Satan

Zzed 04-16-2002 08:46 PM

Ok, here it is.

Given the simple nature of this hack, I am embarassed to release this in the Full releases section. :D

This hack does not require any template modifications to the user profile view as it latches itself on one of the fields that gets displayed in there.

In member.php look for:
PHP Code:

    $profilefieldname="field$profilefield[profilefieldid]";
    
$profilefield[value]=$userinfo[$profilefieldname];
    eval(
"\$customfields .= \"".gettemplate("getinfo_customfields")."\";"); 

And replace it with:
PHP Code:

    $profilefieldname="field$profilefield[profilefieldid]";
    
$profilefield[value]=$userinfo[$profilefieldname];

  if((
$bbuserinfo[usergroupid]==5) or ($bbuserinfo[usergroupid]==6) or ($bbuserinfo[usergroupid]==7)) {
    
$emailinfo "<a href=\"mailto:$userinfo[email]\">$userinfo[email]</a><br>";
  }
  else {
    
$emailinfo "";
  }

    eval(
"\$customfields .= \"".gettemplate("getinfo_customfields")."\";"); 

Let me know how it works out. :)

mvigod 04-30-2002 11:12 AM

works great...good hack and thanks...go ahead and release it...I've seen lesser hacks released than this and ones not quite as useful..thanks


All times are GMT. The time now is 07:11 AM.

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.01107 seconds
  • Memory Usage 1,726KB
  • 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
  • (2)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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