Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons

Reply
 
Thread Tools
Username Email Protection Plugins Details »»
Username Email Protection Plugins
Version: 1.1, by minorgod minorgod is offline
Developer Last Online: Oct 2009 Show Printable Version Email this Page

Category: Add-On Releases - Version: 3.6.2 Rating:
Released: 11-02-2006 Last Update: 12-11-2006 Installs: 13
Uses Plugins
Code Changes Is in Beta Stage  
No support by the author.

Username Email Protection plugin for vBulletin 3.6.x is a set of plugins by Brett Brewer to obfuscate any usernames that contain email addresses, so that everything after the "@" symbol will be stripped out of the displayed name in the vBulletin frontend. This should help keep your users who use their email address as their login name from falling victim to spammers.

================================================== ==========
Release Notes
================================================== ==========

This product was developed on vBulletin 3.6.0 and appears to still work
fine on v3.6.4. Please let me know if you have any problems or discover that I've missed any places where a username should be obfuscated and I will write additional plugins to address it.

================================================== ==========
IMPORTANT PRE-INSTALLATION INSTRUCTIONS
================================================== ==========

Before you install the product XML file, you'll need to add one hook to your showthread.php file. I have requested that this hook be added to the official vBulletin release, but have no idea if they will add it or not. The hook may be unnecessarry if there's another way to rewrite the javascript array with existing hooks, but I haven't found a better way so far. Feel free to improve this mod if you can and let me know about it, rather than forking this product.

================================================== ==========
Open: /showthread.php
================================================== ==========
Find:

PHP Code:
// get list of usernames from post list
    
$userjs '';
    foreach (
$userarray AS $userid => $username)
    {
        if (
$userid)
        {
            
$userjs .= "pu[$userid] = \"$username\";\n";
        }
    } 
================================================== ==========
Change to:

PHP Code:
// get list of usernames from post list
    
$userjs '';
    foreach (
$userarray AS $userid => $username)
    {
        
//product-username_email_protection hook added by Brett Brewer
        
($hook vBulletinHook::fetch_hook('showthread_user_js_create')) ? eval($hook) : false;
        if (
$userid)
        {
            
$userjs .= "pu[$userid] = \"$username\";\n";
        }
    } 
================================================== ==========
End of file modifications
================================================== ==========

Just upload the changed file to your server and install the product-username_email_protection.xml file via the Plugins & Products control panel in the admin cp.

Supporters / CoAuthors

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 11-03-2006, 04:35 PM
Stoebi Stoebi is offline
 
Join Date: Apr 2006
Location: Germany, Berlin
Posts: 331
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi,

i see no differences in "Change to:" except the line:
//product-username_email_protection hook added by Brett Brewer

Regards, Stoebi
Reply With Quote
  #3  
Old 11-03-2006, 04:46 PM
minorgod's Avatar
minorgod minorgod is offline
 
Join Date: Aug 2006
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Stoebi
Hi,

i see no differences in "Change to:" except the line:
//product-username_email_protection hook added by Brett Brewer


Regards, Stoebi
DOH! Thanks for pointing that out. The first code block isn't supposed to have that hook in it, that's the part that's supposed to be added in the second block, along with the comment line. I can't seem to figure out how to edit the first post of this thread to fix the problem, but I will try to upload a new version of the zip file so at least the install.txt file will have the proper instructions.

[EDIT] HA! I just figured out how to edit the first post, so I uploaded a new zip and changed the instructions above. Thanks again for letting me know. This is my first attempt at releasing a vBulletin mod, so please bear with me while I learn how to properly release a product.
Reply With Quote
  #4  
Old 11-03-2006, 05:04 PM
Ntfu2 Ntfu2 is offline
 
Join Date: Feb 2006
Posts: 1,247
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Awesome, this may come in handy since i have a few of these users roaming my boards constantly requesting name changes
Reply With Quote
  #5  
Old 11-03-2006, 05:20 PM
minorgod's Avatar
minorgod minorgod is offline
 
Join Date: Aug 2006
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Ntfu2
Awesome, this may come in handy since i have a few of these users roaming my boards constantly requesting name changes
If you install the mod, please check the various parts of your forums to make sure it's working properly. I have many of my own board features disabled, and I'm not making use of any polls, so I suspect that I may have missed a few places that usernames may need to be obfuscated. I will do my best to make speedy updates if anyone finds things I've missed.
Reply With Quote
  #6  
Old 11-03-2006, 06:37 PM
Snake's Avatar
Snake Snake is offline
 
Join Date: Mar 2005
Location: Cleveland, OH
Posts: 3,832
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Wow I thank you for this!
Reply With Quote
  #7  
Old 11-05-2006, 06:33 AM
Zia's Avatar
Zia Zia is offline
 
Join Date: Dec 2005
Location: golpo.net
Posts: 931
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

nice things...
can it works on email id posted in a thread or post too?
so that when any one will post mail id in a post or thread e-mail id will be changd to..and spammers or e-mail harvesting bot cant grab mail id too..

plz give a thought on it...

thnx
Reply With Quote
  #8  
Old 11-10-2006, 03:24 PM
minorgod's Avatar
minorgod minorgod is offline
 
Join Date: Aug 2006
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Zia
nice things...
can it works on email id posted in a thread or post too?
so that when any one will post mail id in a post or thread e-mail id will be changd to..and spammers or e-mail harvesting bot cant grab mail id too..
I'm not sure I understand what you are asking, but if you clarify, I will be happy to look into it. Is there a specific page that email addresses are still showing up on? If you give me an example I will try to find the right place to add another plugin for it.
Reply With Quote
  #9  
Old 11-10-2006, 06:17 PM
Neal-UK's Avatar
Neal-UK Neal-UK is offline
 
Join Date: Feb 2004
Location: Lancashire, England
Posts: 604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

can you not just prevent @ and .com .co.uk .something being allowed by setting them as illegal characters for usernames or am I missing something?
Reply With Quote
  #10  
Old 11-11-2006, 06:46 PM
minorgod's Avatar
minorgod minorgod is offline
 
Join Date: Aug 2006
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Neal-UK
can you not just prevent @ and .com .co.uk .something being allowed by setting them as illegal characters for usernames or am I missing something?
Probably, but that's really not the point of this plugin. I don't want to stop users from using their email address as their login name because many people like to do that and it makes it easier to integrate the VBulletin user database with the rest of our applications. So using these plugins you can just hide the part of their name that would reveal their email address to the public. I may enhance this plugin to allow you to specify alternate formats, such as simply rewriting the "@" to be "_at_" like some boards do, but that's obviously not going to stop a spammer from harvesting adrresses, so for now, I'm just focusing on completely hiding all email addresses on public pages.
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:19 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.04720 seconds
  • Memory Usage 2,302KB
  • Queries Executed 24 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_php
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete