Back to vBulletin 3.6 Add-ons

Username Email Protection Plugins
Mod Version: 1.1, by minorgod

This modification is in the archives.
vB Version: 3.6.2 Rating: (1 vote - 5.00 average) Installs: 13
Released: 03 Nov 2006 Last Update: 12 Dec 2006 Downloads: 58
Not Supported Uses Plugins Code Changes Is in Beta Stage  

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.

Download

This modification is archived, downloads are still allowed.

File Type: %1$s product-username_email_protection.zip (2.5 KB, 81 downloads)

Supporters / CoAuthors

  • minorgod

Similar Mods

Login by username or email vBulletin 3.8 Add-ons

vblts.ru supports vBulletin®, 2022-2025