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

Reply
 
Thread Tools Display Modes
  #1  
Old 08-01-2010, 09:20 PM
Grafix Ink. Grafix Ink. is offline
 
Join Date: Aug 2007
Location: GrafixInk.ca
Posts: 27
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default simple help im sure...

i have changed the attributes of the profile field 'location' however in the user info when posted it still says location vs what ive changed it to which is 'club'

where can i change that to say what ive renamed it to?
Reply With Quote
  #2  
Old 08-02-2010, 02:02 AM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What do you mean you changed the "attributes"? Where? And where is it not changed - what exact page?
Reply With Quote
  #3  
Old 08-02-2010, 02:53 PM
Grafix Ink. Grafix Ink. is offline
 
Join Date: Aug 2007
Location: GrafixInk.ca
Posts: 27
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
What do you mean you changed the "attributes"? Where? And where is it not changed - what exact page?
the profile field i renamed to 'club' however when a user posts etc its still listed as 'location' how do i change that
Reply With Quote
  #4  
Old 08-03-2010, 03:41 AM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That's because if you look in the code where the variable is spit out (such as the postbit), they use a phrase for the word Location which you have probably not changed. So, you will have to either modify the phrase (which may change it in other places you may or may not want it changed) or replace the phrase with the word Club wherever it appears.
Reply With Quote
  #5  
Old 08-03-2010, 02:52 PM
Grafix Ink. Grafix Ink. is offline
 
Join Date: Aug 2007
Location: GrafixInk.ca
Posts: 27
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

no matter what i do it doesnt change it from location to club

im pretty sure this is the block of code... but no matter what i change it to it doesnt change

PHP Code:
<dl class="userstats">
                        <
vb:if condition="$post['joindate']"><dt>{vb:rawphrase join_date}</dt> <dd>{vb:raw post.joindate}</dd></vb:if>
                        <
vb:if condition="$post['field2']"><dt>{vb:rawphrase location_perm}</dt> <dd>{vb:raw post.field2}</dd></vb:if>
                        <
vb:if condition="$post['age']"><dt>{vb:rawphrase age}</dt> <dd>{vb:raw post.age}</dd></vb:if>
                        <
dt>{vb:rawphrase posts}</dt> <dd>{vb:raw post.posts}</dd>    
                        {
vb:raw template_hook.postbit_userinfo_right_after_posts}
                    </
dl
Reply With Quote
  #6  
Old 08-03-2010, 02:57 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

So your changed all the phrases? You then tried changing the templates? If you did all that an it still won't change, then you are either editing the wrong phrases (tell us the names of the ones you've edited), editing the wrong templates (tell us which ones and give us the before/after changes), or editing the wrong style.
Reply With Quote
  #7  
Old 08-03-2010, 03:06 PM
Grafix Ink. Grafix Ink. is offline
 
Join Date: Aug 2007
Location: GrafixInk.ca
Posts: 27
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

rawphrase location_perm - im guessing thats it?

im changing info int the postbit template in the correct style
Reply With Quote
  #8  
Old 08-03-2010, 03:11 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

And what did you change location_perm to?

And if you are changing the info in the postbit (not the postbit_legacy?) template in the correct style, it should work. I asked you to post your code so we can see what is going on.
Reply With Quote
  #9  
Old 08-03-2010, 03:22 PM
Grafix Ink. Grafix Ink. is offline
 
Join Date: Aug 2007
Location: GrafixInk.ca
Posts: 27
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ive figured it out.. thanks
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 07:28 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.04017 seconds
  • Memory Usage 2,247KB
  • 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
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (9)postbit
  • (9)postbit_onlinestatus
  • (9)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