Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 05-19-2009, 04:38 PM
MaR? MaR? is offline
 
Join Date: Aug 2008
Location: Argentina
Posts: 128
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default [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!!!
Reply With Quote
  #2  
Old 05-22-2009, 04:22 AM
MaR? MaR? is offline
 
Join Date: Aug 2008
Location: Argentina
Posts: 128
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Pleaseeeeeeeeeeeee
Reply With Quote
  #3  
Old 05-22-2009, 02:51 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #4  
Old 05-23-2009, 05:53 PM
MaR? MaR? is offline
 
Join Date: Aug 2008
Location: Argentina
Posts: 128
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
Reply With Quote
  #5  
Old 05-23-2009, 06:20 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #6  
Old 05-23-2009, 07:02 PM
MaR? MaR? is offline
 
Join Date: Aug 2008
Location: Argentina
Posts: 128
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
Reply With Quote
  #7  
Old 05-23-2009, 07:14 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #8  
Old 05-23-2009, 07:57 PM
MaR? MaR? is offline
 
Join Date: Aug 2008
Location: Argentina
Posts: 128
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Oh god.. you are so right.... I was drowning in a water glass...

?????THANK YOU SO SO MUCH!!!!!!
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 12:49 AM.


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.03726 seconds
  • Memory Usage 2,245KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_php
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (8)postbit
  • (8)postbit_onlinestatus
  • (8)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete