Announcement

Collapse
No announcement yet.

THIS_SCRIPT alternatives?

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

  • 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'">

  • #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

    TalkNewsUK - My vBulletin 5.5.6 Demo
    AdminAmmo - My Cloud Demo

    Comment


    • #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

      widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
      Working...
      X