vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Design and Graphics Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=253)
-   -   Adding profile fields to postbit... (https://vborg.vbsupport.ru/showthread.php?t=280777)

nocturnix 03-28-2012 09:14 AM

Adding profile fields to postbit...
 
For some reason my profile field modifications are not showing in the postbit/postbit legacy templates.

I removed joined date and added a new custom "field5" but neither removal of joined date or the new field are showing.

Any ideas why? Am I editing the wrong template? I did the change to both postbit and postbit legacy in my custom default template.

Here is my updated piece of code I am using:

PHP Code:

<vb:if condition="$post['userid']">
                <
hr />
                <
dl class="userinfo_extra">
                    <
b>Member Info</b>
                    <
vb:if condition="$post['field2']"><div class="post_field"><dt>{vb:rawphrase location_perm}</dt> <dd>{vb:raw post.field2}</dd></div></vb:if>
                    <
vb:if condition="$post['age']"><div class="post_field"><dt>{vb:rawphrase age}</dt> <dd>{vb:raw post.age}</dd></div></vb:if>
                    <
div class="post_field"><dt>{vb:rawphrase 'posts'}</dt> <dd>{vb:raw post.posts}</dd></div><br />
                    <
b>Character Info</b>
                    <
vb:if condition="$post['field5']"><div class="post_field"><dt>Name</dt> <dd>{vb:raw post.field5}</dd></div></vb:if>
                    <
vb:if condition="$post['field6']"><div class="post_field"><dt>Class</dt> <dd>{vb:raw post.field6}</dd></div></vb:if>
                    <
vb:if condition="$post['field7']"><div class="post_field"><dt>Server</dt> <dd>{vb:raw post.field7}</dd></div></vb:if>
                    {
vb:raw template_hook.postbit_userinfo_right_after_posts}
                </
dl>
                <
vb:if condition="$show['infraction'] OR $show['reppower']">
                <
dl class="user_rep">
                    <
vb:if condition="$show['infraction']">
                    <
dt>Test</dt
                    <
dd>{vb:raw post.warnings}/{vb:raw post.infractions} ({vb:raw post.ipoints})</dd>
                    </
vb:if>
                    <
vb:if condition="$show['reputation']">
                        <
vb:if condition="$show['reppower']">
                    <
dt>{vb:rawphrase reppower}</dt
                    <
dd id="reppower_{vb:raw post.postid}_{vb:raw post.userid}">{vb:raw post.reppower}</dd
                        </
vb:if>
                    </
vb:if>
                </
dl>
                </
vb:if>
                {
vb:raw template_hook.postbit_userinfo_right}
                <
div class="imlinks">
                    {
vb:raw post.icqicon} {vb:raw post.aimicon} {vb:raw post.msnicon} {vb:raw post.yahooicon} {vb:raw post.skypeicon}
                </
div>
            </
vb:if> 

--------------- Added [DATE]1332930020[/DATE] at [TIME]1332930020[/TIME] ---------------

Nevermind now it seems to be working, maybe it was cached? Or there is a var/counters you need to rebuild when you modify this?

--------------- Added [DATE]1332930926[/DATE] at [TIME]1332930926[/TIME] ---------------

OK I found that for origional poster the changes are not being displayed, for others the changes are shown. It must be due to the conditionals. Any help on this?

Lynne 03-28-2012 03:16 PM

I don't understand what you mean about it not showing for only the original poster. Do you mean it doesn't show at all for the first post of the thread? Can we get a link to see this?

nocturnix 03-29-2012 04:36 PM

OK sorry I guess I didnt explain well enough.

When I am logged in it shows like this (without the new field modifications) for my own profile:
https://vborg.vbsupport.ru/external/2012/03/5.jpg
When I am guest/logged into a different profile, it looks correct, like this:
https://vborg.vbsupport.ru/external/2012/03/6.jpg

www.torboard.com

Thanks!

EDIT: Updated most recent template code in the first post.

Lynne 03-30-2012 04:08 PM

Why do you have this condition around the code:
<vb:if condition="$post['userid']">

What are you really wanting to say there?

nocturnix 04-02-2012 11:58 AM

Quote:

Originally Posted by Lynne (Post 2315083)
Why do you have this condition around the code:
<vb:if condition="$post['userid']">

What are you really wanting to say there?

Honestly this was already present in the template (I am using a custom theme, maybe it was added by the theme). Maybe I should put the code outside/above that conditional?

Thanks!

Lynne 04-02-2012 03:35 PM

Try removing it and see if it works.

nocturnix 04-02-2012 04:32 PM

OK i removed it and it didnt change anything. Strange.


All times are GMT. The time now is 07:11 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.01060 seconds
  • Memory Usage 1,764KB
  • 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
  • (1)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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