THIS_SCRIPT alternatives?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Matheeus
    New Member
    • Jan 2015
    • 6
    • 4.2.x

    THIS_SCRIPT alternatives?

    Hi,

    actually if I want to know in what page I am i use this script:

    <vb:if condition="THIS_SCRIPT == 'group'">

    But, exists a variable that could tell me what template i'm using, like:

    <vb:if condition="THIS_SCRIPT == 'socialgroups_overview'">

    or

    <vb:if condition="THIS_SCRIPT == 'socialgroups_group'">
  • Mark.B
    vBulletin Support
    • Feb 2004
    • 24288
    • 6.0.X

    #2
    You can't do that without a plugin of some sort.
    THIS_SCRIPT only reads the name given to the php file that is used to generate the page.
    MARK.B
    vBulletin Support
    ------------
    My Unofficial vBulletin 6.0.0 Demo: https://www.talknewsuk.com
    My Unofficial vBulletin Cloud Demo: https://www.adminammo.com

    Comment

    • Boothby
      Member
      • Aug 2002
      • 81
      • 3.8.x

      #3
      For what reason do you need to know the name of the template? I mean to say. When you edit a template you know it's name and that name will never change at runtime for that particular template or a special part of a template. So there is no need to ask for something that you already know.
      Stefan

      Scott me up, Beamie!

      Comment

      Related Topics

      Collapse

      Working...