What is the "if" instruction for .....

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • BoYagoob
    Senior Member
    • Feb 2005
    • 229
    • 1.1.x

    What is the "if" instruction for .....

    Hello,

    I would like to know the if-instruction for the following discription:

    There are some links in the navbar. I would like to put this link: (www.mysite.com/forum) in the front page of my site (www.mysite.com).
    However, when the visitor or the member enter the forum, this link, appears in the navbar in the forum, will link to the front page of the site [ (www.mysite.com) in the forum pages ].


    If you didn't understand my request .. let me give you this example:

    MAIN = www.mysite.com.
    FORUM = www.mysite.com/forum.
    In the navbar in www.mysite.com, I want to put this link: FORUM only (without MAIN).
    In the navbar in www.mysite.com/forum, I want to put this link: MAIN only (without FORUM).

    .
    .

    How?

    Regards ..
  • Floris
    Senior Member
    • Dec 2001
    • 37767

    #2
    <if condition="THIS_SCRIPT == 'index'">This is the forum index.php<else />This is the frontpage</if>

    Of course, the frontpage shouldn't be index.php

    Comment

    • BoYagoob
      Senior Member
      • Feb 2005
      • 229
      • 1.1.x

      #3
      Unfortuantlly, both the frontpage and the forum have the index.php file.

      Is there any ability to fix that code?

      Comment

      • Floris
        Senior Member
        • Dec 2001
        • 37767

        #4
        We don't give support for third party code .. but I can ask you to change the define for the index.php of the frontpage

        define('THIS_SCRIPT', 'frontpage');

        I don't know if the frontpage script actually uses that define, but if not .. you could change it.

        Comment

        • BoYagoob
          Senior Member
          • Feb 2005
          • 229
          • 1.1.x

          #5
          Excellent work Mr. Floris ..

          This works very fine now ..

          I changed the word 'index' for the frontpage index.php file >> to 'frontpage' :

          define('THIS_SCRIPT', 'frontpage');

          so then, I used the if-instruction that you gave it to me, and it works fine ..

          Million thanks Mr. Floris

          Last edited by BoYagoob; Sat 5 Feb '05, 10:21am.

          Comment

          widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
          Working...
          😀
          😂
          🥰
          😘
          🤢
          😎
          😞
          😡
          👍
          👎