'Hide' member's Homepage URL
This modification is in the archives.
Hello.
Some forum admins don't want to allow their members to indirectly 'advertise' nor do they want to have to monitor WHERE members are linking to through their USERCP panel. To hide the URL field AND the code in the browser's 'View Source', STEP 1 (create PHP variable): Go to AdminCP->Plugin Manager->[Add New Plugin] ->fill in the fields using 'Hook Location' of 'global_start', etc. In the 'Plugin PHP Code' box, add the following variable (without the quotes shown here), e.g. '$show_homepage=0;' (I like to use '0' and '1' to represent 'off' and 'on', respectively, though any value you chose can be used). Select 'Yes' for 'Plugin is Active' so this variable now becomes available throughout your vBulletin forum. NOTE: If at anytime in the future you want the 'Homepage URL' to show again, go back to the 'Plugin Manager' and change the variable from '0' (off) to '1' (on). This essentially acts like an 'ON/OFF' switch. No code modification would be required. STEP 2: In the 'modifyprofile' template, find the homepage-related section that's surrounded by the <fieldset..> </fieldset> tags. You can do a template search for 'homepage' to find this section of code. On the line BEFORE the <fieldset> tag to the 'Homepage URL' code section, ADD... Code:
<if condition="$show_homepage==1"> ADD... Code:
</if> STEP 3: Save the template and then go to the 'USERCP->edit profile' and that field should no longer exist, nor should it show up on the 'View Profile' page. ENJOY! :squareeyed: Download This modification is archived and cannot be downloaded. |
Similar Mods
Profile Enhancements Homepage Thumbnail Preview in Member's Profile | vBulletin 3.7 Template Modifications |
Profile Enhancements Pop-Up Warning Before Visiting Member's Homepage | vBulletin 3.6 Template Modifications |