Hello! Im using vanilla 2.1 and bootstramp slate thema, the chat appears botoom of my website i want it above the search? How do i move it upp there?
I believe the search box is not a module. This means you will have to edit that theme's master tpl file: https://github.com/kasperisager/vanilla-bootstrap/blob/5e7ec7dad31794548d2ac62955aa7036b7a732a0/views/default.master.tpl#L52-L54
You will then have to include the Van2Shout module on the discussions page only. E.g.:
{if $BodyID == 'vanilla_discussions_index'} {module name="Van2ShoutDiscussionsModule"} {/if}
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.
@hgtonight said: I believe the search box is not a module. This means you will have to edit that theme's master tpl file: https://github.com/kasperisager/vanilla-bootstrap/blob/5e7ec7dad31794548d2ac62955aa7036b7a732a0/views/default.master.tpl#L52-L54 You will then have to include the Van2Shout module on the discussions page only. E.g.: {if $BodyID == 'vanilla_discussions_index'} {module name="Van2ShoutDiscussionsModule"} {/if}
@hgtonight said: I believe the search box is not a module. This means you will have to edit that theme's master tpl file: https://github.com/kasperisager/vanilla-bootstrap/blob/5e7ec7dad31794548d2ac62955aa7036b7a732a0/views/default.master.tpl#L52-L54
Great!! thank you but there is one problem, I now have one chat on top, and one on bottom?
@perhane said: Great!! thank you but there is one problem, I now have one chat on top, and one on bottom?
You need to prevent Van2Shout from adding the module itself. Comment out or remove the following lines:
https://github.com/Caerostris/Van2Shout/blob/c06bde832cd60feb7610e779e571ccca4929756c/class.van2shout.plugin.php#L51-L53
@hgtonight said:
Thank you!! I removed the lines and now everything looks great
@hgtonight : Thank you for your advice here. I came here to do something similar like @perhane , and your advice works perfectly.
Comments
I believe the search box is not a module. This means you will have to edit that theme's master tpl file: https://github.com/kasperisager/vanilla-bootstrap/blob/5e7ec7dad31794548d2ac62955aa7036b7a732a0/views/default.master.tpl#L52-L54
You will then have to include the Van2Shout module on the discussions page only. E.g.:
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.
Great!! thank you but there is one problem, I now have one chat on top, and one on bottom?
You need to prevent Van2Shout from adding the module itself. Comment out or remove the following lines:
https://github.com/Caerostris/Van2Shout/blob/c06bde832cd60feb7610e779e571ccca4929756c/class.van2shout.plugin.php#L51-L53
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.
Thank you!! I removed the lines and now everything looks great
@hgtonight : Thank you for your advice here. I came here to do something similar like @perhane , and your advice works perfectly.