Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Image Path
Hi there!
I'm working in a custom template, I want to add an image to the "Howdy, Stranger!" panel, I create a folder called "modules" and a file "guest.php" inside of my theme folder, this work great because I can customize the view without touching the original code of vanilla, however I don't want to "hard code" the path to the image, so my question is:
Is there a constant that contains the path to my theme?
Right now I have this (and it works fine):
But I'd like to have something like this:
Best regards
I'm working in a custom template, I want to add an image to the "Howdy, Stranger!" panel, I create a folder called "modules" and a file "guest.php" inside of my theme folder, this work great because I can customize the view without touching the original code of vanilla, however I don't want to "hard code" the path to the image, so my question is:
Is there a constant that contains the path to my theme?
Right now I have this (and it works fine):
<img src="themes/mytheme/design/images/unknow-user.png" />
But I'd like to have something like this:
<img src="<?php echo PATH_TO_MY_THEME; ?>/design/images/unknow-user.png" />
Best regards
0
Comments
echo Img("themes/mytheme/design/images/unknow-user.jpg",array("class"=>"Howdy-image"));
I really like the vanilla forums code