Hello, I have a custom theme and wanted to override the way discussions are laid out. So I copied the discussions folder from "applications\vanilla\views\" and put it in my theme's folder "themes\mytheme\views\", but none of the changes I have made to the layout in table.php are showing up on my discussions page. All I have done is add "THIS IS A TEST" before the discussions thread title is printed but that doesn't show up. I have tried clearing my browsers cache, and I'm pretty sure the server doesn't do any caching. Any ideas why my theme isnt overriding the discussions view? I have attached a screenshot so you can see exactly what I have done.
Comments
how have you included table.php?
Show us your code.
Don't PM about development, I'm not currently taking on clients.
grep is your friend.
- Spam
- Abuse
- Troll
1 • Off Topic 1Insightful Awesome LOL •Do I have to include it somewhere? I thought I just copied the view's folder over to my theme and that vanilla automatically used/included everything inside that view instead of the default. I have only done what was outlined in the vanilla readme about creating themes and on the site.
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •Sorry if I am being to vague, this is my first time creating a theme for Vanilla and I'm still learning how to work with it, if theres any specific code you would like to see just let me know and ill pastebin it (or can I use the code bbtag here?). If I have to define my views somewhere inside of the theme (default.master.tpl or about.php) I have not done that. Since im wanting to override the view "vanilla\applications\vanilla\views\discussions"
do I just mimic that directory entirely inside my theme
(vanilla\themes\mytheme\applications\vanilla\views\discussions) ?
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •what is this table.php? I've never heard of it.
Don't PM about development, I'm not currently taking on clients.
grep is your friend.
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •Ok, I think I just figured out what the problem was. It was one of those ID-10-T errors I get sometimes lol. I was modifying the file discussions/table.php when I should have been modifying helper_functions.php to get the result I was looking for, thanks for helping!
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •In your theme/vanilla/views/discussions you generally modify the existing files in the folder (they each have a purpose and override the ones in default, and the one withthe same name will all be picked up. If you add files with different names in the views folder you have to include it as x00 says.
The easiest thing to do is modify helper_functions.php to do what you want to do. If that is not enough, modify the other in your theme folder.
Download the traditional chocolate theme to see how its done.
factoid: Most questions have been previously answered, try the search box first, please provide your Vanilla version Number!
Peregrine's Addons - donations gladly accepted for "successful solutions" and addons - kind of like tipping a waiter at a restaurant
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •Thanks for the help, that is what the problem turned out to be..I had just looked over table.php thinking it was the file that handled the entire layout of an entry into the discussions table but that functionality is actually inside of helper_functions.php as you pointed out. Now that problem is out of the way, pretty excited to work with forum software that actually supports this kind of functionality, I hate editing core files in other software like wordpress only to have conflicts during updates.
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •