Webmastersite.net
Register Log In

function templatesdir()

Title function templatesdir()
Message Text I have a wsn links installation, that, on the admin panel, in the menu frame, the small bullet.png image is not being called becuase the path to it is incorrect. The first item on the menu is "main" with this code: <a href="index.php?show=main" target="frameright" class="menu"><img src="../templates/default/images/bullet.png" border="0" alt="bullet"> Main</a> If I change the ../ to be ./ the bullet.png image works. I see in the classes folder a file settings.php which has this: function templatesdir() { global $inadmindir; if ($inadmindir) $dir = '../'. $this->templatesdir; else $dir = $this->templatesdir; return $dir; } I believe this is the source of the ../ This same installation also had a problem finding the css for the admin menus, causing them to look awful. I was able to "correct " that by making an edit in the menu.tpl file as follows: Original: <link rel="stylesheet" href="[IFADMIN../]templates/default/admin/style.css" type="text/css"> I edited to: <link rel="stylesheet" href="templates/default/admin/style.css" type="text/css"> I assume both these problems are related to an incorrect path. Any ideas where this problem is coming from. At this point the wsn links install is working ok as far as the public view is concerned, but I would like to correct this admin path problem so I can use unaltered code in the files. I guess it is obvious that I know very little about PHP at this point.
Rating
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5
0/5 based on 0 votes.
Ownership Rik
Views 790 views. Averaging 0 views per day.
Similar Topics
Submission Date Apr 11, 2006 - 9:47 PM