Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 Design and Graphics Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 03-28-2012, 09:14 AM
nocturnix nocturnix is offline
 
Join Date: Jul 2002
Location: USofA
Posts: 44
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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?
Reply With Quote
  #2  
Old 03-28-2012, 03:16 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #3  
Old 03-29-2012, 04:36 PM
nocturnix nocturnix is offline
 
Join Date: Jul 2002
Location: USofA
Posts: 44
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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:

When I am guest/logged into a different profile, it looks correct, like this:


www.torboard.com

Thanks!

EDIT: Updated most recent template code in the first post.
Reply With Quote
  #4  
Old 03-30-2012, 04:08 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

What are you really wanting to say there?
Reply With Quote
  #5  
Old 04-02-2012, 11:58 AM
nocturnix nocturnix is offline
 
Join Date: Jul 2002
Location: USofA
Posts: 44
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
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!
Reply With Quote
  #6  
Old 04-02-2012, 03:35 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Try removing it and see if it works.
Reply With Quote
  #7  
Old 04-02-2012, 04:32 PM
nocturnix nocturnix is offline
 
Join Date: Jul 2002
Location: USofA
Posts: 44
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

OK i removed it and it didnt change anything. Strange.
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 02:24 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.01903 seconds
  • Memory Usage 2,255KB
  • 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
  • (1)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (7)postbit
  • (7)postbit_onlinestatus
  • (7)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_postinfo_query
  • fetch_postinfo
  • 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