![]() |
You would have to edit the memberdisplay template to have the <vb:if condition> code, i'll find it from one of my previous posts for you and add to this reply.
Edit: Code is; Code:
<vb:if condition="$post['field5']">Field 5:{vb:raw post.field5}</vb:if> |
strangely enough that didn't display anything for me.
|
I would have to see your code to see what you are doing wrong. If you care to post it then I would be glad to help.
The $post variable in general is not usually available to the templates in whole, although I have not looked at the code in the profile tabs. My two cents. |
New custom Tab template:
Code:
<div id="view-my_character_bio" class="<vb:if condition="$selected_tab == 'my_character_bio'">selected_view_section<vb:else />view_section</vb:if><vb:if condition="$userinfo['userid'] != $bbuserinfo['userid']"> vm_other_prof</vb:if>"> Code:
if (isset($vbulletin->GPC['tab'])) Code:
if (!$vbulletin->GPC_exists['tab']) |
And what plugin location are you using to execute the two above?
|
sorry, I should have added that.
Plugin to show the custom tab: member_complete Plugin to make custom tab default: member_build_blocks_start |
Use $prepared instead of $post. $post is not available to the member profile templates.
|
@Cellarius is of course right. You need to use $prepared. You will also need to add your field to the array in 'class_userprofile.php". You should then be able to use it in your template as a conditional. Make sure you register array $prepared in your template or it will not work. Use hook 'member_build_blocks_start' -- which I already think you are using.
Around line #89 in 'class_userprofile.php' Code:
var $auto_prepare = array( |
All times are GMT. The time now is 04:38 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|