PDA

View Full Version : reinvigorate.net nametags problem


Domenico
04-13-2011, 03:27 PM
Just as with vB3 (then it worked) I want to use the nametags feature but with vB4 it doesn't work anymore.

This is the code I use in the footer:

<script type="text/javascript" src="http://include.reinvigorate.net/re_.js"></script>
<script type="text/javascript">
try {
var re_name_tag = "{vb:raw bbuserinfo.username}";
reinvigorate.track("xxxxx-xxxxxxxxxx");
} catch(err) {}
</script>


But when I submit:

The following error occurred when attempting to evaluate this template:
Unclosed Curly Brace Expression

This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish.


I can use the <vb:literal> tag but then the nametag doesn’t work and every user is $bbuserinfo[username]

Please help.

Zachery
04-13-2011, 03:47 PM
Simple trick would be

<vb:literal><script type="text/javascript" src="http://include.reinvigorate.net/re_.js"></script>
<script type="text/javascript">
try {
var re_name_tag = "</vb:literal>{vb:raw bbuserinfo.username}<vb:literal>";
reinvigorate.track("xxxxx-xxxxxxxxxx");
} catch(err) {}
</script></vb:literal>

Domenico
04-13-2011, 04:13 PM
Yes futureaudio already pmmed me with this solution and it worked. Thanks to you to Zachery.

techanalyst
07-07-2011, 11:51 AM
Your lucky, I get only myself as a user and i know i have 60+ people :P