vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   Vbphrases - how do i register from template instead of php (https://vborg.vbsupport.ru/showthread.php?t=229366)

Vaupell 12-02-2009 07:39 PM

Vbphrases - how do i register from template instead of php
 
EDIT : read last post first please.. :D

*** 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.

BBR-APBT 12-02-2009 07:40 PM

You have to register the phrase group.


Edit:
Try it like this.
Code:

{vb:phrase Euclength}

Vaupell 12-02-2009 07:42 PM

Quote:

Originally Posted by BBR-APBT (Post 1924264)
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.

BBR-APBT 12-02-2009 07:45 PM

I edited my post above.

Vaupell 12-02-2009 08:09 PM

1 Attachment(s)
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..

BBR-APBT 12-02-2009 08:16 PM

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}


Vaupell 12-02-2009 08:18 PM

Quote:

Originally Posted by BBR-APBT (Post 1924285)
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.. :confused:

BBR-APBT 12-02-2009 08:23 PM

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}

Vaupell 12-02-2009 08:24 PM

1 Attachment(s)
omg.. found out what the hell is going on. . :D


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 :D

$phrasegroups = array('EviUnitConvert',
);

any suggestions on calling it in vb4 ?

BBR-APBT 12-02-2009 08:27 PM

Quote:

Originally Posted by Vaupell (Post 1924292)
omg.. found out what the hell is going on. . :D


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 (Post 1924264)
You have to register the phrase group.



All times are GMT. The time now is 10:54 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.01176 seconds
  • Memory Usage 1,739KB
  • 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
  • (8)bbcode_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete