vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   [SOLVED, thanks LYNNE ] Custom Profile Field (and Postbit) (https://vborg.vbsupport.ru/showthread.php?t=214063)

MaR? 05-19-2009 04:38 PM

[SOLVED, thanks LYNNE ] Custom Profile Field (and Postbit)
 
Hello!,

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

http://www.altoforo.com/1.jpg

Only display text (no link)

And on postbit I added:

PHP Code:

<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.







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:

PHP Code:

<div class="alt1 block_row">
<if 
condition="$show['simple_link']">
 <
div id="simple_aboutme_link"><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"><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...

Quote:

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".

Quote:

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.
Quote:

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!!!!!!


All times are GMT. The time now is 05:11 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01230 seconds
  • Memory Usage 1,745KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete