1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

variable for gender, age, actual script

Discussion in 'XenForo Development Discussions' started by Marcus, Oct 17, 2011.

  1. Marcus

    Marcus Well-Known Member

    I am looking for these variables for my ad integration:

    - usergroup (solved)

    - script name
    Is there an equivalent in xenforo like "threads", "forum", "index page / forum start page? (In vbulletin it is forumhome, showthread, forumdisplay.

    - age

    - gender

  2. James

    James Well-Known Member

    What do you mean you're looking for them?

    Script name you can use $contentTemplate.
    Index page:
    <xen:if is="{$contentTemplate} == 'forum_list'">
    Forum page:
    <xen:if is="{$contentTemplate} == 'forum_view">
    Thread page:
    <xen:if is="{$contentTemplate} == 'thread_view'">
    {xen:number $birthday.age}
    (or $visitor.gender for the currently viewing user)
    Marcus likes this.
  3. Marcus

    Marcus Well-Known Member

    Hi James,

    thanks for your great help. I have some campaigns on thread pages, some campaigns on the index page. I need to target these campaigns on xenforo, therefore I submit the actual place the user is browsing and some basic user data to the ad program.

Share This Page