PDA

View Full Version : Ok, I know this is a simple mistake....


HMBeaty
05-23-2009, 10:02 PM
I know this is a simple mistake but I haven't coded anything with <else /> in a long time.

If you can tell by the code here:
<if condition="$bbuserinfo['field11']">
<dt class="shade">$vbphrase[usml_myspace]</dt>
<dd><a href="http://www.myspace.com/$userinfo[field11]" target="_blank">$userinfo[field11]</a></dd>
<else />
<dd>This user has not entered his MySpace Friend ID</dd>
</if>
I'm trying to display the users MySpace Profile ID, which I got that down, BUT, if they don't, I want it to display the "This user has not entered his MySpace Friend ID". But I can't get that working right. What am I doing wrong? lol

Lynne
05-23-2009, 10:03 PM
You can't have a <dd> tag without a <dt> tag.

HMBeaty
05-23-2009, 10:06 PM
So then I would change to this?
<if condition="$bbuserinfo['field11']">
<dt class="shade">$vbphrase[usml_myspace]</dt>
<dd><a href="http://www.myspace.com/$userinfo[field11]" target="_blank">$userinfo[field11]</a></dd>
<else />
<dt class="shade">$vbphrase[usml_myspace]</dt>
<dd>This user has not entered his MySpace Friend ID</dd>
</if>
Sorry, never used <dd> or <dt> tags before either. vBulletin is throwing in some new stuff on me lol

Lynne
05-23-2009, 10:52 PM
That looks like it would work.... However, where are you displaying this? $bbuserinfo is the user viewing the page. If you are doing this on the profile page, you probably want to use $userinfo to display info about the user who's profile you are viewing. (You have $bbuserinfo in one place and $userinfo in another.)

HMBeaty
05-23-2009, 11:01 PM
That is in the Memberinfo "Contact Info" tab.

I was guessing it was $userinfo too, we'll see if that works

--------------- Added 1243123408 at 1243123408 ---------------

Ok, that worked. I knew it was a simple mistake