Removing Birthday section of profile

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • iowahawx
    New Member
    • Aug 2004
    • 15
    • 3.0.3

    Removing Birthday section of profile

    Due to some strange glitch with our vBulletin setup and its incompatibility with our host co.'s setup, all of the birthdays for our members are defaulting to Nov. 30th.

    Instead of messing around with fixing the issue (believe me, we've tried and the host co. has been less than cooperative) I was hoping there's just some way to remove the birthday section of each user's profile.

    Is there some way to do this?
  • daemon
    Senior Member
    • Jun 2003
    • 2351
    • 3.5.x

    #2
    Yes there is .

    To remove it from public display, go to:

    Admin CP --> Style Manager --> « » --> Member Info Templates

    Then edit the MEMBERINFO template to find:

    HTML Code:
    			<if condition="$userinfo['birthday'] OR $customfields">
    				<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
    				<if condition="$userinfo['birthday']">
    				<tr>
    					<td>
    						<strong>$vbphrase[birthday]</strong>:<br />
    						$userinfo[birthday]
    					</td>
    				</tr>
    				</if>
    				$customfields
    				</table>
    			<else />
    				<em>$vbphrase[n_a]</em>
    			</if>
    And replace it with:

    HTML Code:
    			<if condition="$customfields">
    				<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
    				$customfields
    				</table>
    			<else />
    				<em>$vbphrase[n_a]</em>
    			</if>
    And if you wish to prevent people from entering a birthday in their profile in the first place, go to:

    Admin CP --> Style Manager --> Modify User Option Templates

    And edit the modifyprofile template to find and remove:

    HTML Code:
    			<if condition="$show['birthday_optional']">
    				$birthdaybit
    			</if>
    Bugdar: PHP bug tracking software that is beautiful, fast, and robust.

    Comment

    • iowahawx
      New Member
      • Aug 2004
      • 15
      • 3.0.3

      #3
      Worked like a charm, I appreciate the help

      Comment

      • shawno
        Member
        • Jun 2004
        • 73

        #4
        An oldie - but very useful.

        Could I ask another question - I removed this because we didn't want the Google spidering showing birthday's on the crawl that they do.

        Am i right in assuming by removing this code from the page Google will not display this information when they re-crawl the site? If not, how can I block this field being spidered?

        Many thanks

        S

        Comment

        • daemon
          Senior Member
          • Jun 2003
          • 2351
          • 3.5.x

          #5
          Correct, removing that code from the page will not display it to anybody, including spiders.
          Bugdar: PHP bug tracking software that is beautiful, fast, and robust.

          Comment

          • shawno
            Member
            • Jun 2004
            • 73

            #6
            Thanks daemon.

            Comment

            Related Topics

            Collapse

            Working...