Announcement

Collapse
No announcement yet.

Output Username and Usergroup to javascript

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • [Forum] Output Username and Usergroup to javascript

    Hi All.

    I'm wanting to add usernames and usergroups to my stats if possible.

    Reading the help files for the stats I need to add the following code to my pages.

    PHP Code:
    sc ript type="text/javascript">
      var 
    clicky_custom = {};
      
    clicky_custom.session = {
        
    username"bobjones",
        
    group"sales"
      
    };
    </
    sc ipt>

    <!-- 
    your hypothetical tracking codewhich must go after clicky_custom -->
    <
    scr ipt src="http://static.getclicky.com/js" type="text/javascript"></scr  ipt
    If I add this to my footer template is it possible to get vb to automatically add the users username and usergroup into the bits about.

    Also is it possible to put this in a if statement so that it only adds it to users that are logged in.

    I've tried to post this on .org but I keep getting a bad request message.
widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
Working...
X