Back to vBulletin 3.5 Template Modifications

'Hide' member's Homepage URL
Mod Version: 1.00, by timetunnel

This modification is in the archives.
vB Version: 3.5.0 Rating: (0 vote - 0 average) Installs: 1
Released: 30 Oct 2005 Last Update: 30 Oct 2005 Downloads: 11
Not Supported Template Edits  

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">
and AFTER the matching </fieldset>
ADD...
Code:
</if>
Since from the plugin, the '$show_homepage' is not equal to '1', this statement renders 'false' and therefore, the data between the <if...></if> tags won't be interpreted/evaluated.

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

vblts.ru supports vBulletin®, 2022-2024