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 12-02-2009, 07:39 PM
Vaupell's Avatar
Vaupell Vaupell is offline
 
Join Date: Apr 2008
Location: Esbjerg, Denmark
Posts: 1,036
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Vbphrases - how do i register from template instead of php

EDIT : read last post first please..

*** original post ***
got some old phrases

like this

$vbphrase[Euclength] and when i use that it places the lang value for me in english which i have as "length"

so now i want to make it work for vb4, cause atm it just shows the actual phrasecode.
so i change it from

$vbphrase[Euclength]

to

{vb:raw vbphrase.Euclength}

but now it comes up empty as if it dosent retrive the data..
any ideas what im doing wrong ?
cause ive changed a few others they came out just fine.. so im guessing my syntax is fine.
Reply With Quote
  #2  
Old 12-02-2009, 07:40 PM
BBR-APBT's Avatar
BBR-APBT BBR-APBT is offline
 
Join Date: Feb 2009
Location: Maryland
Posts: 946
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You have to register the phrase group.


Edit:
Try it like this.
Code:
{vb:phrase Euclength}
Reply With Quote
  #3  
Old 12-02-2009, 07:42 PM
Vaupell's Avatar
Vaupell Vaupell is offline
 
Join Date: Apr 2008
Location: Esbjerg, Denmark
Posts: 1,036
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by BBR-APBT View Post
You have to register the prhase group.
in the specifik template ? cause i pulled 2 other phrases from same group that
came out just fine.
Reply With Quote
  #4  
Old 12-02-2009, 07:45 PM
BBR-APBT's Avatar
BBR-APBT BBR-APBT is offline
 
Join Date: Feb 2009
Location: Maryland
Posts: 946
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I edited my post above.
Reply With Quote
  #5  
Old 12-02-2009, 08:09 PM
Vaupell's Avatar
Vaupell Vaupell is offline
 
Join Date: Apr 2008
Location: Esbjerg, Denmark
Posts: 1,036
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

code snippet...

i tryed 3 types where i could only retrive data correctly from the first one vb:raw......

Code:
	<tr align="center">
	  <td class="thead">{vb:raw vbphrase.EucTitle}</td>
	</tr>
</thead>
<td class="tcat" align="center">{vb:phrase Euclength} {vb:rawphrase Eucconvert}  TEMP**  Length</td>
<!-- Code start -->
<tr><td>
and heres a shot of the phrases i use..
Attachment 107094
and they all contain data, have all been open and save, just in case..
how ewer if i change the Length or convert to vb:raw they come up empty..
only the title have been working..

only change from title to the next part, is the table, and table class for styling.
gonna try to remove all the classes just to check..
Reply With Quote
  #6  
Old 12-02-2009, 08:16 PM
BBR-APBT's Avatar
BBR-APBT BBR-APBT is offline
 
Join Date: Feb 2009
Location: Maryland
Posts: 946
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

So you are saying that this worked:
Code:
{vb:raw vbphrase.EucTitle}
But the following two did not work?
Code:
{vb:phrase Euclength}
{vb:rawphrase Eucconvert}
Reply With Quote
  #7  
Old 12-02-2009, 08:18 PM
Vaupell's Avatar
Vaupell Vaupell is offline
 
Join Date: Apr 2008
Location: Esbjerg, Denmark
Posts: 1,036
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by BBR-APBT View Post
So you are saying that this worked:
Code:
{vb:raw vbphrase.EucTitle}
But the following two did not work?
Code:
{vb:phrase Euclength}
{vb:rawphrase Eucconvert}
yes excaktly. and to make things worse...

if i make this
Code:
{vb:raw vbphrase.Euclength}
it does not work.. and location means nothing, tryed to copy the working one to the
other location and there it worked fine aswell..

So im starting to think maybe my phrases are "broke" going to make some new
to test if a new one would work..
Reply With Quote
  #8  
Old 12-02-2009, 08:23 PM
BBR-APBT's Avatar
BBR-APBT BBR-APBT is offline
 
Join Date: Feb 2009
Location: Maryland
Posts: 946
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You know I started to think the phrases break on upgrade to 4.0 when I had problems the other day. I had to make a new phrase my self it was the only way to get it to work for me.

So yeah I was just about to say delete the old ones and make new ones. Should not have a problem then.

When I made my new phrase I just did it like this.
Code:
{vb:phrase Euclength}
Reply With Quote
  #9  
Old 12-02-2009, 08:24 PM
Vaupell's Avatar
Vaupell Vaupell is offline
 
Join Date: Apr 2008
Location: Esbjerg, Denmark
Posts: 1,036
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

omg.. found out what the hell is going on. .


the phrase that are working is registrere as global while the rest are in category
for the product.


so i need to register the product phrase group to make them work..
see img. Attachment 107095

and since moveing to templates from php

i used to call the phrasegroup inside the php file not the template

$phrasegroups = array('EviUnitConvert',
);

any suggestions on calling it in vb4 ?
Reply With Quote
  #10  
Old 12-02-2009, 08:27 PM
BBR-APBT's Avatar
BBR-APBT BBR-APBT is offline
 
Join Date: Feb 2009
Location: Maryland
Posts: 946
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Vaupell View Post
omg.. found out what the hell is going on. .


the phrase that are working is registrere as global while the rest are in category
for the product.


so i need to register the product phrase group to make them work..
see img. Attachment 107095
I said that in the beginning.

Quote:
Originally Posted by BBR-APBT View Post
You have to register the phrase group.
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 11:41 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.04158 seconds
  • Memory Usage 2,282KB
  • Queries Executed 14 (?)
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
  • (8)bbcode_code
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete