* LoadedGun we shoud have a small tag or code to show number of joined users anywhere in our site.
2014-04-29 16:13 · (0)
* SupAlpuket * LoadedGun i guess with mr. TechnoSparks .. and then you give me an idea.. we may use javascript for extract these highlighted links, :yay:
2014-04-30 08:27 · (0)
* SupAlpuket .
I want read xtscript variable in xtforum's twig, since xtscript parsed first
maybe
@XtScript
var $name = value

@xtforum.twig
{% if name %}
 hello {{name}}
{% endif %}

use 'name' only or namespaced instead, like 'xtvar_name'

Copy code


it may usefull play with cookie, get-post variable, etc

please add it,
2014-05-08 03:16 · (0)
* Graham * SupAlpuket It will not work for the forum as it is parsed after the xtscript and is not parsed in the xtscript
It will however vaguely work on the blog as that is parsed before and during xtscript
2014-05-08 04:48 · (0)
* SupAlpuket * Graham .
Maybe, you haven't understand,


Yes, XtScript Code Parsed First
var $name = value
Copy code

as we know, that can outputed at outer xtscript
like {_$$name|}

and why not try pass that '$name' to internal twig API

and we can do something
{% if name %}
  hello {{name}}
{% endif %}

Copy code


use 'name' only or namespaced instead, like 'xtvar_name'

.
i hope you understand now
2014-05-08 05:12 · (0)
* Graham * SupAlpuket I have already tested the use of xtscript variables in the forums twig file and they do not work
nor can they ever work the parsing order is completely wrong
2014-05-08 05:38 · (0)
* SupAlpuket * Graham i am still curious with your test

does it use something such this
<?php
//XtScript first
$xtscript = new script();

// here processing page with any xtscript.

// $xtforum_vars and $xtscript->vars should merged here

$twig = new Twig_Environment(...);

echo 
$twig->render($xtscript_output$xtforum_vars);

Copy code
2014-05-08 06:29 · (0)
* SupAlpuket update to my question, mr. graham/povilas please
2014-05-10 20:56 · (0)
* SupAlpuket add param "page" <xt:forum page="forum.mysite.xtgem.com"> let links deal with subdomain system or domain parking
2014-05-11 10:45 (edited 2014-05-11 10:47 by SupAlpuket ) · (0)

Online: Guests: 1