my own templates in the forum

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • nnacho
    Member
    • Jan 2001
    • 50

    my own templates in the forum

    I have created 5 templates $comment_1 $comment_2
    $comment_3 $comment_4 $comment_5

    I would like to use them in different forums, but I don't know what I should change to make them work.

    Thanks
  • PeF
    Senior Member
    • Oct 2000
    • 767

    #2
    I suppose you created templates without $ - comment_1, comment_2, and so on.

    In global.php you may put this:
    eval("\$comment_1 = \"".gettemplate("comment_1")."\";");
    eval("\$comment_2 = \"".gettemplate("comment_2")."\";");
    eval("\$comment_3 = \"".gettemplate("comment_4")."\";");
    ...
    ...
    ...

    under this:
    eval("\$fivelinks = \"".gettemplate("fivelinks")."\";");

    Hope this helps.
    Correct me if wrong.

    Comment

    • nnacho
      Member
      • Jan 2001
      • 50

      #3
      Originally posted by PeF
      I suppose you created templates without $ - comment_1, comment_2, and so on.
      Yeah, I created without $


      In global.php you may put this:
      eval("\$comment_1 = \"".gettemplate("comment_1")."\";");
      eval("\$comment_2 = \"".gettemplate("comment_2")."\";");
      eval("\$comment_3 = \"".gettemplate("comment_4")."\";");
      ...
      ...
      ...

      under this:
      eval("\$fivelinks = \"".gettemplate("fivelinks")."\";");

      then I'll have something like that in my www.domain.com/global.php3



      }

      eval("\$fivelinks = \"".gettemplate("fivelinks")."\";");

      eval("\$comment_1 = \"".gettemplate("comment_1")."\";");
      eval("\$comment_2 = \"".gettemplate("comment_2")."\";");
      eval("\$comment_3 = \"".gettemplate("comment_3")."\";");

      if ($url=="") {
      $url=getenv("HTTP_REFERER");
      }




      is it correct?

      thanks

      Comment

      • PeF
        Senior Member
        • Oct 2000
        • 767

        #4
        Yes. If it won't work, I gave you bad advice.

        Comment

        • nnacho
          Member
          • Jan 2001
          • 50

          #5
          YES !!

          It works


          thanks a lot

          Comment

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