+ Reply to Thread
Results 1 to 4 of 4

Thread: <if condition="THIS_SCRIPT == 'vbtube'">

  1. #1
    soprano is offline vBTubePRO-User BF
    Join Date
    Jun 2008
    Posts
    106

    Default <if condition="THIS_SCRIPT == 'vbtube'">

    I am trying to add extra links in the navbar if a user is inside vBTube by using

    HTML Code:
    <if condition="THIS_SCRIPT == 'vbtube'">
    but it only works on the main page of vBTube, not inside video, category or anything.

  2. #2
    soprano is offline vBTubePRO-User BF
    Join Date
    Jun 2008
    Posts
    106

    Default

    I solved this by using:

    HTML Code:
    <if condition="in_array(THIS_SCRIPT, array('vbtube', 'vbtube_action', 'vbtube_add', 'vbtube_admin', 'vbtube_admin', 'vbtube_browser', 'vbtube_cat', 'vbtube_comment', 'vbtube_favourites', 'vbtube_lastkey_admin', 'vbtube_mytubes', 'newreply', 'vbtube_report', 'vbtube_search', 'vbtube_sendfriend', 'vbtube_show', 'vbtube_toplist', 'vbtube_install', 'vbtube_youtubebrowser'))">
    However, that's not very clean. Why don't all vBTube php files have the same name? Can that be fixed in future version?

  3. #3
    s7v7n's Avatar
    s7v7n is offline Administrator
    Join Date
    Jan 2008
    Posts
    7,665

    Default

    Ill change that in next Versions...
    Kind Regards
    Murat K. aka - s7v7n

    Please use only original and licensed copies of vBTubePRO. Only legal installations will guarantee you support and updates.

  4. #4
    pein87 is offline vBTubePRO-User BF
    Join Date
    Sep 2008
    Posts
    32

    Default

    You can always use it so it displays it perpage. Check the scripts to see if this is in the top of it.
    define(THIS_SCRIPT, vbtube); if not it wont work if you type the if condition in yout templates.

+ Reply to Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts