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.
Template Errors
![Xarcell](https://us.v-cdn.net/5018160/uploads/userpics/346/nHNNXHVQJA1ME.jpg)
How do I properly add javascript or PHP to the default.master.tpl? I'm struggling trying to figure this out.
0
Comments
That covers the JS part of your question. I don't know about PHP though![:) :)](https://open.vanillaforums.com/plugins/emojiextender/emoji/little/smile.png)
Kasper Kronborg Isager (kasperisager) | Freelance Developer @Vanilla | Hit me up: Google Mail or Vanilla Mail | Find me on GitHub
http://stackoverflow.com/questions/9601547/how-to-add-php-code-to-tpl-file
There was an error rendering this rich post.
for php make your own function in smarty - see my signature and follow all the links.
probably easier to make a plugin.
what you really want to do is probably modify your views though.
so you are going to need to download some themes and look in the views folders.
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
Thanks for the help, I see how to do it. Got it working...
@R_J said:
It's so easy, let's do it here together![:) :)](https://open.vanillaforums.com/plugins/emojiextender/emoji/little/smile.png)
@R_J instead of relying on moderators who may or may not change things. It would certainly be easier to find with a new title under Tutorials, for others to find.
you could just duplicate and create a new tutorial in the tutorials category.
you could also duplicate this and add it to tutorials.
http://vanillaforums.org/discussion/26793/translation-candidate
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
Done
Search first
Check out the Documentation! We are always looking for new content and pull requests.
Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.
thx.
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
Yes, I should have created a new discussion by myself, but I was so eager to write that HowTo, that I have completely forgotten, that it would be at the wrong place...