It looks like you're new here. If you want to get involved, click one of these buttons!
I'm trying to paste code into my forum and was told I needed to place it:
before the tag of your site's HTML file
Does anyone know where that would be in Vanilla Forums?
Really appreciate any help.
Cheers Michael
x00
Don't PM about development, I'm not currently taking on clients MVP
Get the pockets plugin and enable it. Then go to plugin/pockets/add
Name
enter in Body:
<script type="text/javascript" charset="utf-8">
var _btq = _btq || [];
var _punchtab_settings_badges = {
key: "15b7d6babf70b0b7eb6f1ebf3564d914",
position: {x: "right", y: "top"}
};
(function() {
var pt = document.createElement('script'); pt.type = 'text/javascript'; pt.async = true;
pt.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'static.punchtab.com/js/pb.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(pt, s);
})();
</script>
Select Head
Select Before
Save
Don't PM about development, I'm not currently taking on clients.
grep is your friend.
Answers
Duplicate post? http://vanillaforums.org/discussion/19832/how-to-put-source-code-sample-into-the-post
continued here (please)
What to do if I get a Bonk Error?
Vanilla Wiki : Join and help edit our Wiki! | View all Vanilla issues on GitHub | Report a new Vanilla issue on GitHub
Deploying a new Forum and adding a Theme | Give thanks to the Vanilla Developers!
- Spam
- Abuse
0 · Insightful Awesome LOL ·I don't think these are related @UnderDog, different question which happen to have some of the same words in them.
Don't PM about development, I'm not currently taking on clients.
grep is your friend.
- Spam
- Abuse
1 · Insightful 1Awesome LOL ·yeah I think they are different. I want to know where I have to and place a code that I have been given. So what folder would I place a code so that it appears before the equivalent of the body tag of the HTML file.
I am a newbie so if there is a HTML file inside vanilla forums then if someone can tell me where that is so I can just paste the code there that would be great.
Cheers Michael
- Spam
- Abuse
0 · Insightful Awesome LOL ·what is the code first, then i will tell you how to do correctly.
Don't PM about development, I'm not currently taking on clients.
grep is your friend.
- Spam
- Abuse
1 · Insightful 1Awesome LOL ·That would be awesome x00. Really appreciate it.
var _btq = _btq || []; var _punchtab_settings_badges = { key: "15b7d6babf70b0b7eb6f1ebf3564d914", position: {x: "right", y: "top"} }; (function() { var pt = document.createElement('script'); pt.type = 'text/javascript'; pt.async = true; pt.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'static.punchtab.com/js/pb.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(pt, s); })();- Spam
- Abuse
0 · Insightful Awesome LOL ·this is not strictly speaking before the body tag but it doesn't need to be, you could also use theme hooks file using
Base_Render_Beforehook and$Sender->Head->AddStringDon't PM about development, I'm not currently taking on clients.
grep is your friend.
- Spam
- Abuse
1 · Insightful 1Awesome LOL ·ok doing that sent my site crazy but Im guessing it is because I did something wrong.
All I get is huge yellow banners everywhere now at the top, middle and bottom of the page saying Head (before) Head (After) Content (Before) Content (After) Foot (Before) Foot (After) etc
- Spam
- Abuse
0 · Insightful Awesome LOL ·haha. Your a champion x00. That worked perfect.
Just wanted to thank you for taking the time to help me with this.
It is really nice to know there are people like yourself out there who are are kind enough to help.
Thank You!
Cheers Michael
- Spam
- Abuse
0 · Insightful Awesome LOL ·