The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
How to hide or disable homepage link on userprofile page
How can we disable/hide homepage links on user profile pages ?
Thanks. |
#2
|
||||
|
||||
You can find it in this template: modifyprofile and use a condtional for your condtion to hide this
HTML Code:
<fieldset class="fieldset"> <legend><label for="tb_homepage">$vbphrase[home_page_url]</label></legend> <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0" width="100%"> <tr> <td>$vbphrase[let_other_visitors_know_url]</td> </tr> <tr> <td>$vbphrase[home_page_url]<br /><input type="text" class="bginput" name="homepage" id="tb_homepage" value="$bbuserinfo[homepage]" size="50" maxlength="200" dir="ltr" /></td> </tr> </table> </fieldset> HTML Code:
<if condition="!is_member_of($bbuserinfo, X, Y, Z)"> <fieldset class="fieldset"> <legend><label for="tb_homepage">$vbphrase[home_page_url]</label></legend> <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0" width="100%"> <tr> <td>$vbphrase[let_other_visitors_know_url]</td> </tr> <tr> <td>$vbphrase[home_page_url]<br /><input type="text" class="bginput" name="homepage" id="tb_homepage" value="$bbuserinfo[homepage]" size="50" maxlength="200" dir="ltr" /></td> </tr> </table> </fieldset> </if> |
#3
|
||||
|
||||
Hi Simon,
Thank You for your help but, I tried using above code and this is not working. We require restrict this usergroup to view homepage url in profile field, Unregistered/Guest ( 1 ) Groups allowed to view homepage link are (2,5,6,7,24) |
#4
|
||||
|
||||
Show me how you used the code.
|
#5
|
||||
|
||||
thank you again simon,
this is code I am using. Code:
<if condition="!is_member_of($bbuserinfo, 2,5,6,7,24)"> <fieldset class="fieldset"> <legend><label for="tb_homepage">$vbphrase[home_page_url]</label></legend> <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0" width="100%"> <tr> <td>$vbphrase[let_other_visitors_know_url]</td> </tr> <tr> <td>$vbphrase[home_page_url]<br /><input type="text" class="bginput" name="homepage" id="tb_homepage" value="$bbuserinfo[homepage]" size="50" maxlength="200" dir="ltr" /></td> </tr> </table> </fieldset> </if> |
#6
|
||||
|
||||
Right, i assume that you haven't changed your MEMBERINFO>Memberinfo_block_contactinfo template, if thats the case then forget everything i told you to do previously and replace ALL your memberinfo_block_contactinfo with this:
HTML Code:
<div class="alt1 block_row"> <if condition="$show['messagelinks']"> <fieldset> <legend><phrase 1="$prepared[username]">$vbphrase[send_message_to_x]</phrase></legend> <div class="fieldset_padding floatcontainer"> <ul class="list_no_decoration" id="messaging_list"> <if condition="$show['post_visitor_message']"> <li> <img src="$stylevar[imgdir_button]/sendtofriend.gif" alt="" border="0" class="inlineimg" /> <a href="#" onclick="return goto_post_pm()"><phrase 1="$prepared[username]">$vbphrase[post_a_visitor_message_for_x]</phrase></a> </li> </if> <if condition="$show['pm']"> <li> <img src="$stylevar[imgdir_button]/sendtofriend.gif" alt="" border="0" class="inlineimg" /> <a href="private.php?$session[sessionurl]do=newpm&u=$prepared[userid]"><phrase 1="$prepared[username]">$vbphrase[send_private_message_to_x]</phrase></a></li> </if> <if condition="$show['email']"> <li> <img src="$stylevar[imgdir_button]/sendtofriend.gif" alt="" border="0" class="inlineimg" /> <a href="sendmessage.php?$session[sessionurl]do=mailmember&u=$prepared[userid]"><phrase 1="$prepared[username]">$vbphrase[send_message_via_email_to_x]</phrase></a> </li> </if> </ul> </div> </fieldset> </if> <if condition="$prepared['hasimdetails']"> <fieldset> <legend>$vbphrase[instant_messaging]</legend> <div class="fieldset_padding floatcontainer"> <div><phrase 1="$prepared[username]">$vbphrase[send_instant_message_to_x_using]</phrase></div> <ul class="list_no_decoration" id="instant_messaging_list"> $block_data[imbits] </ul> </div> </fieldset> </if> <dl class="list_no_decoration" id="additional_contact_details"> <if condition="$prepared['displayemail']"> <dt class="shade">$vbphrase[email_address]</dt> <dd><a href="mailto:$prepared[displayemail]">$prepared[displayemail]</a></dd> </if> <!-- ADDED CONDITION HERE --> <if condition="is_member_of($bbuserinfo,2,5,6,7,24)"> <if condition="$prepared['homepage']"> <dt class="shade">$vbphrase[home_page]</dt> <dd><a href="$prepared[homepage]" target="_blank">$prepared[homepage]</a></dd> </if> <else /> </if> <!-- END ADDED CONDITION HERE --> <dt class="shade">$vbphrase[this_page]</dt> <dd><a href="$prepared[profileurl]">$prepared[profileurl]</a></dd> <if condition="$show['vcard']"> <dt class="shade">$vbphrase[vcard]</dt> <dd><a href="member.php?$session[sessionurl]do=vcard&u=$prepared[userid]" rel="nofollow">$vbphrase[download_vcard]</a></dd> </if> </dl> </div> |
#7
|
||||
|
||||
Hi Simon,
Thank You very much for helping so far.. I am unable to find following template memberinfo_block_contactinfo in my template manager, I am using vb 3.6.x |
#8
|
||||
|
||||
I dont have 3.6.x so cant help much more but what you can do is in vbulletin options turn on template headers, go to the profile page, right click, view source and search for home page or homepage and then see which template is started just before where you find homepage.
|
#9
|
|||
|
|||
Hi Simon,
I am using V-Bulletin Version 4. Should I be looking in the template: modify user option templates -> modifyprofile? I'm not able to find anything like the code above. I found this: Code:
<div class="blockrow"> <label for="tb_homepage">{vb:rawphrase home_page_url}:</label> <input type="text" class="primary textbox" name="homepage" id="tb_homepage" value="{vb:raw bbuserinfo.homepage}" maxlength="200" dir="ltr" tabindex="1" /> <p class="description"> {vb:rawphrase let_other_visitors_know_url} </p> </div> Code:
<if condition="!is_member_of($bbuserinfo, 5, 6)"> <div class="blockrow"> <label for="tb_homepage">{vb:rawphrase home_page_url}:</label> <input type="text" class="primary textbox" name="homepage" id="tb_homepage" value="{vb:raw bbuserinfo.homepage}" maxlength="200" dir="ltr" tabindex="1" /> <p class="description"> {vb:rawphrase let_other_visitors_know_url} </p> </div> </if> Then I get this message: Quote:
Quote:
---------------- There's no one else making changes while I'm editing it. I have logged out, waited, logged in, saved other changes and then tried making the first changes and it says the exact same thing. Help please. Thank you very much. |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|