vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   vb:raw inside language phrases (https://vborg.vbsupport.ru/showthread.php?t=232272)

odonel 01-05-2010 05:49 PM

vb:raw inside language phrases
 
hi all,

Is it possible to have this inside a global phrase,

can I have a phrase call greeting with the following:
Good morning, {vb:raw bbuserinfo.musername} How are you?

and call it like that in a template?

{vb:rawphrase greeting}

if not, what is the best way to to this
<if condition="$bbuserinfo[languageid]== '3' OR $bbuserinfo[languageid]== '2'"> in vb4

i tried <vb:if condition="$bbuserinfo[languageid]== '3' OR $bbuserinfo[languageid]== '2'">

no luck

derfelix 01-06-2010 04:02 AM

I think (not at home so i cant check)
in template:
{vb:rawphrase greeting, {vb:raw bbuserinfo.musername}}

where phrase greeting is:
Good morning, {1}. How are you

F

odonel 01-06-2010 11:03 AM

no need to go home derf, works like a charm..

Thank you

ndL 05-19-2010 06:28 AM

having the same problem. in language phrase i want to insert {vb.raw bbuserinfo.userid}

Code:

<p>You have been banned for the following reason:<br />
{1}</p>

<p>Date the ban will be lifted: {2}</p>

<p><div align="center"><b>Become VIP and ban will be lifted now!
<br /><a href="vip.php?id={vb:raw bbuserinfo.userid}&email={vb:raw bbuserinfo.email}">BECOME NOW!</a></b></div><br /></p>

but in present when the user is banned, and if he wants to become a vip, the link does not change {vb:raw bbuserinfo.userid} to its real value.

need help.

Lynne 05-19-2010 01:42 PM

What does the template code look like that calls the phrase? (and what template?)

ndL 05-19-2010 02:56 PM

its a language phrase " nopermission_banned "

i want to add some more information on it....

TheInsaneManiac 04-07-2011 12:06 AM

{vb:raw bbuserinfo.field, {vb:raw vboptions.customoption}}

it don't work for me.


All times are GMT. The time now is 11:38 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.01028 seconds
  • Memory Usage 1,717KB
  • 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_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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