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.
[Solved] I am unable to modify the default.master.tpl file
fahadkz
New
Hi guys,
I am new to this community and also new the vanilla forums and I hope to get solutions from you guys. I have installed vanilla forum 2.0.18 and also have installed a theme vanillabootstrap but the issue I am facing is whenever I try changing default.master.tpl it does not change anything. I have no clue why. I tried adding a div which will contain a small message but it does not show up. So, please guys help me out with this one.
Thank you
0
Comments
Welcome to the community!
What version of Vanilla are you running?
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.
2.0.18
in what directory are you modifying default.master.tpl
and post your change to your code.
and learn how to identify your version of vanilla properly, as well as theme version #, and clear your ini files in the cache directory when modifying themes.
There are several 2.0.18 versions. for the record you can find your version # here.
to find your vanilla version http://vanillaforums.org/discussion/comment/191960/#Comment_191960
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
I have installed 2.0.18.8 and as for the directory its in the views directory of the theme and for the code I will post it soon. But as you know I am new to this stuff so can you tell me how to clear the ini files? Do I delete them?
Yes, delete the .ini files. Did you download the VanillaBootstrap theme or get it from Github?
There was an error rendering this rich post.
I would like to give you every info needed it is as follows
Vanilla : 2.0.18.8
Theme : Bootstrap 1.1b-2.0 (Downloaded here and not from github)
Deleted ini files : Yes
Deleted files in compile directory : Yes
My modified master.tpl code
`
<!DOCTYPE html>
{asset name='Head'}
`
still the markup does not change
Do you have any duplicate copies of the theme or duplicates of tpl files.
Do you know if it is reading the one you want.
How come you have no header or body tags?
And what change did you make specifically.
Perhaps remove the theme and delete folders relating to vanilla bootstrap and start over by downloading again and follow all necessary instructions
your jquery version is what?
you could switch to another theme and modify the ,tpl and see if a change works in a different theme - just for grins.
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
No duplicate copies of theme or tpl files
No it does not read the file that I modified. I inspected it with the developer tool. Even if I rename the tpl file to something else it still remains the same. So, I believe it is not reading the file.
I pasted the whole code but I do not know what happened.
I have added a div with a class of info just below the container div where the container starts.
Yes I have deleted the theme and re-installed it and the change did work but the test will be after some days when I would like to modify the file again and see if it does change because when I freshly installed vanilla and the theme the changes were done but after some days when I tried modifying nothing changed.
I read the instructions so I have jquery 1.7.2
I have switched other theme and the change is taking place but as I said earlier I would like to test it after some days.
when you make changes in themes - often you need to delete ini files in /cache folder AFTER you make the change or it may not take effect. Also if you have minify or some pagespeed caching you will also have issues. But as it stands
so it worked so far. but you want to be certain correct
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
ok after some days now that i have made some changes and that have worked so, thank you everyone who have helped me to solve this issue.