Menu

Possible Mods?

2002-08-31
2012-10-11
  • Jeremiah S. Junken

    1) Is there generalized information on creating your own themes?

    2) What sort of adjustment would you make to force external links to open in new browser windows?

    3) Is there a way to inline an HTML header to add javascript functions?

    4) If I should RTFM, where is the FM that has this info? ;-)

    replies by email appreciated: jeremiah@blackops.org

     
    • Geoffrey T. Dairiki

      > 1) Is there generalized information on creating your own themes?

      Sadly, no.

      > 2) What sort of adjustment would you make to force external links to
      > open in new browser windows?

      In the function LinkURL() which is is lib/stdlib.php, add something
      like:

         $link->setAttr('target', '_blank');
      right before the last line ("return $link;");

      > 3) Is there a way to inline an HTML header to add javascript functions?

      Do you mean you just want to add some boilerplate HTML (e.g. with a
      <script> tag) to the top of each page?

      The proper place to do that, I think is in the templates, probably
      in themes/defaults/templates/top.tmpl.  (If you want your changes
      to pertain only to a certain theme, then copy that file to
      themes/<your-theme>/templates/top.tmpl, and then edit it.)

      > 4) If I should RTFM, where is the FM that has this info? ;-)

      Nowhere.
      Feel free to ask questions.  The best place to ask is probably
      on the phpwiki-talk mailing list.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.