Log in

View Full Version : Add "user profile" icon to user bar - help needed


tobias_t
06-26-2008, 01:10 PM
Hi all,

I feel that the user profile is a bit hidden away in vBulletin, so I want to add an icon to the profile bar that calls it up directly (next to the IM icons).

However, I only want this icon to show up if at least one profile field has been filled out, or if a profile picture is present.

Any tipps on how to implement this?

Thanks, Tobias

tobias_t
06-30-2008, 08:07 AM
Come on guys, that cannot be too difficult... :)

Opserty
06-30-2008, 08:45 AM
The link is a simple

<a href="member.php?u=$post[postuserid]">Profile</a>


For the checking you'd need to add an <if> condition.

tobias_t
06-30-2008, 09:40 AM
For the checking you'd need to add an <if> condition.

Yes, it's that <if> condition that I am unsure about. How would the whole line or paragraph need to look like?

--------------- Added 1214823642 at 1214823642 ---------------

OK here is what I have so far, would be great if anyone could fill the if clause for me:

<if condition=???>
<a href ="member.php?u=$post[userid]" target="_blank"><img src ="images/misc/forumprofile.gif" border="0" alt="View Forum Profile"></a>
</if>

tobias_t
07-02-2008, 09:43 AM
Can somebody help me out with a condition for "if user has a profile pic"? I tried the code below but it doesn't work:

<if condition="$post['profilepic']">