Log in

View Full Version : [SOLVED, thanks LYNNE ] Custom Profile Field (and Postbit)


MaR?
05-19-2009, 04:38 PM
Hello!,

I just made a profile field (field9), please see:

http://www.altoforo.com/1.jpg (https://www.vbulletin.com/link.php?u=http%3A%2F%2Fwww.altoforo.com%2F1.jpg)

Only display text (no link)

And on postbit I added:

<if condition="$post[field9]">
<a href="http://www.facebook.com/profile.php?id=$post[field9]" target="_blank">
<img src="http://www.altoforo.com/images/misc/face.jpg" alt="Facebook" border="0" /></a>
</if>


Working great... So If you click the postbit icon, you can see my facebook profile.


BUT

Now, I want to make the same on profile, I mean the same postbit "icon link" intead only text like the print screen http://www.altoforo.com/1.jpg (http://www.altoforo.com/1.jpg).







Thanks

--------------- Added 20 May 2009 at 16:36 ---------------

Come on people!!! please!!!

MaR?
05-22-2009, 04:22 AM
Pleaseeeeeeeeeeeee

Lynne
05-22-2009, 02:51 PM
I think you would have to change it to NOT show up in the profile and then manually edit the template to add it as a link. I've never done that, so I'm not sure it will work, but that is what I would try if I were you.

To find the template to modify, do this - vboptions > General Settings > Add Template Name in HTML Comments > set to Yes . Then go back to your page and view the source code and you will see the name of the template called around your part of the code. Sometimes the template is the one mentioned at the very top of the page source.

MaR?
05-23-2009, 05:53 PM
Hello Lynne and thak you so much for answer.

That you tell me is what I have done... but, you give me an idea.

My problem is ABOUT ME tab, wich template is:


<div class="alt1 block_row">
<if condition="$show['simple_link']">
<div id="simple_aboutme_link"><a class="smallfont" href="member.php?$session[sessionurl]u=$bbuserinfo[userid]&amp;tab=aboutme&amp;simple=1">$vbphrase[view_your_about_me]</a></div>
</if>
<if condition="$show['edit_link']">
<div id="simple_aboutme_link"><a class="smallfont" href="member.php?$session[sessionurl]u=$bbuserinfo[userid]&amp;tab=aboutme">$vbphrase[edit_your_about_me]</a></div>
</if>
<ul class="list_no_decoration">
$block_data[fields]
<if condition="$prepared['signature']">
<li class="profilefield_category">
$vbphrase[signature]
<dl class="list_no_decoration profilefield_list"><dd id="signature">$prepared[signature]</dd></dl>
</li>
</if>
</ul>
</div>



If I cant put a conditional <if> maybe i can solve this.

I mean: IF is field9 ------> NOT SHOW....

How can I make this?

THANK YOU!

Lynne
05-23-2009, 06:20 PM
The fields shows are spit out in the variable $block_data[fields] which is spit out from the template "memberinfo_block_profilefield" and following that brings you to includes/class_profileblock.php . You might be able to do something with the hook located at "member_profileblock_profilefieldbit", I'm not really sure. You can try that or try what I first said by modifying the template.

Um.... did you try just modifying the profile field to not show it on the About Me tab? I'm not sure why you want to go about it by using conditions.

MaR?
05-23-2009, 07:02 PM
Hi and thanks again...

I think you would have to change it to NOT show up in the profile and then manually edit the template to add it as a link. I've never done that, so I'm not sure it will work, but that is what I would try if I were you.


Yes, with this none field are display, but unfortunately isn?t show neither on other tamplated though I add this like a link. For example "postbit".

Um.... did you try just modifying the profile field to not show it on the About Me tab? I'm not sure why you want to go about it by using conditions.

Yes I did It, but happend that Im telling you :(

I just want to make dissapear some fields from "abour me" tab, and if I put them "not show" is not working because it really no show nowhere.

That is way Im guessing if I can use a condition maybe I can solve this.

I have not coding skill, I read and look the templated you already tellme.

Thank you again and again!

Lynne
05-23-2009, 07:14 PM
If you *don't* select "Edit Your Details" in Display Page > Which page displays this option?, then it should not show on the About Me tab.
Which page displays this option?
If you select "Edit Your Details", this option will show up when viewing a user's profile. All other options are primarily used in conjunction with template conditionals to create additional options for your users.

MaR?
05-23-2009, 07:57 PM
Oh god.. you are so right.... I was drowning in a water glass...

?????THANK YOU SO SO MUCH!!!!!!