vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   simple help im sure... (https://vborg.vbsupport.ru/showthread.php?t=247763)

Grafix Ink. 08-01-2010 09:20 PM

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?

Lynne 08-02-2010 02:02 AM

What do you mean you changed the "attributes"? Where? And where is it not changed - what exact page?

Grafix Ink. 08-02-2010 02:53 PM

Quote:

Originally Posted by Lynne (Post 2077931)
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

Lynne 08-03-2010 03:41 AM

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.

Grafix Ink. 08-03-2010 02:52 PM

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


Lynne 08-03-2010 02:57 PM

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.

Grafix Ink. 08-03-2010 03:06 PM

rawphrase location_perm - im guessing thats it?

im changing info int the postbit template in the correct style

Lynne 08-03-2010 03:11 PM

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.

Grafix Ink. 08-03-2010 03:22 PM

ive figured it out.. thanks


All times are GMT. The time now is 06:21 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.03062 seconds
  • Memory Usage 1,742KB
  • 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
  • (9)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