Scritto da Massimo Petrossi USER il . Pubblicato in Non categorizzato.

test

 Questo testo è visibile a tutti

Questo testo è con stile boxed-text

Qui si saluta l'utente:

 

 

avatar di piccole dimensioni: [cb:userfield field="avatar" reason="list" /]
Questo è l'avatar dell'utente corrente: [cb:userfield field="avatar" /]
username dell'utente: [username]
nome dell'utente (completo e formattato, nome e cognome): [name]
nome dell'utente: [firstname]
ID dell'utente: [user_id]
città dell'utente  [cb:userdata field="cb_citystate" /] 
chiama l'utente per nome:  [cb:userdata field="name" user="#me" /]
se l'utente è nel gruppo Super Administrato  [cb:if user="#me" usertype="Super Administrator"]User of type: Super Administrator[/cb:if]
   
   

 da https://www.joomlapolis.com/documentation/18353-using-substitutions-throughout-cb

[cb:if username="demo"]This is Demo being displayed.[/cb:if]
[cb:if user_id="myid"]This is Me being displayed.[/cb:if]
[cb:if user="#displayed" username="test"]This is Test being displayed.[/cb:if]
[cb:if user="#me" username="demo"]This is Demo watching.[/cb:if]
[cb:if user="#me" usertype="Super Administrator"]User of type: Super Administrator[/cb:if]
[cb:if user="#displayedOrMe" user_id<="0"]I am A GUEST.[/cb:if]
[cb:if user="#displayedOrMe" user_id>"0"]I am NOT A GUEST.[/cb:if]
[cb:if user="#me" username!="admin"]This is NOT Admin watching.[/cb:if]
[cb:if viewaccesslevel includes "1"]I am Public[/cb:if]
[cb:if viewaccesslevel !includes "1"]I am NOT Public[/cb:if]
[cb:if usergroup includes "2"]I have Registered Usergroup[/cb:if]
[cb:if usergroup !includes "2"]I do NOT have Registered Usergroup[/cb:if]
[cb:if username="demo" or username="admin"]This is Demo or Admin being displayed.[/cb:if]
[cb:if username="demo" and cb_country="USA"]This is Demo being displayed from the USA.[/cb:if]
[cb:if application_context="frontend"]Frontend Only[/cb:if]
[cb:if application_context="administrator"]Backend Only[/cb:if]
[cb:if language_code="en"]English Only[/cb:if]
[cb:if language_tag="en-GB"]English Only[/cb:if]

Additionally you can nest multiple IF statements inside of one another as follows.

[cb:if username="demo"]This is Demo being displayed.[cb:if language_code="en"]English Only[/cb:if][/cb:if]

Elseifs
[cb:if username="demo"]This is Demo being displayed.[cb:elseif PARAMETER="REPLACEMENT"]TEXT/CODE[/cb:elseif][/cb:if]

You can chain together as many ELSEIF usages as necessary. This is similar behavior to using elseif in PHP and will stop at the first match that it can.

Elses
[cb:if username="demo"]This is Demo being displayed.[cb:else]TEXT/CODE[/cb:else][/cb:if]

Only one ELSE statement can be supplied per IF usage. If the IF and all ELSEIF conditions fail the ELSE content will be output.

 

questo qui sotto mostra informazioni su piani e sottoscrizioni:


Nome del piano: plans [cbsubs:plans plan="16" /]

status [cbsubs:plans plan="16" status="A|R|X|C|U|I" /] 

[cbsubs:plans plan="16" status="A" /]

, 17, 4, 8, 16


subscriptions :

[cbsubs:subscriptions plan="16" /]


 qui sotto c'è il leggi tutto ---

Questo contenuto è riservato agli utenti registrati e agli abbonati digitali e premium.

Registrati GRATIS o abbonati ora!

Sei già abbonato o registrato?
Accedi per continuare a leggere.