Hey @richba5tard, we recently moved to XenForo and I'm trying to get our BBCode working again. Let me know if you need any other info and I'll be glad to get it!
HTML in use:
<script type="text/javascript">
var _hwbtarget = 'hwb_' + Math.round((Math.random() * 100000));
document.write("<div id='"+ _hwbtarget +"'><img src='https://hwbot.org/img/loader.gif' alt='loading'/> Loading…</div>");
// uncomment for custom css
var _hwbcss = "https://hwbot.org/css/style.external.custom.ocforums.css";
var _hwb = _hwb || [];
_hwb.push(['type={text}']);
_hwb.push(['params={option}']);
_hwb.push([_hwbtarget]);
(function() {
var hwbex = document.createElement('script'); hwbex.type = 'text/javascript'; hwbex.async = true;
hwbex.src = 'https://hwbot.org/js/exf2.js';
var s = document.getElementById(_hwbtarget); s.parentNode.insertBefore(hwbex, s);
})();
</script>
Example BBCode usage:
[hwbot=overclockers.com,CPU-Z,20]teamrank[/hwbot]
What happens on the browser is I get the loading.gif showing, and this in the dev console:
<script type="text/javascript">
var _hwbtarget = 'hwb_' + Math.round((Math.random() * 100000));
document.write("<div id='"+ _hwbtarget +"'><img src='https://hwbot.org/img/loader.gif' alt='loading'/> Loading…</div>");
// uncomment for custom css
var _hwbcss = "https://hwbot.org/css/style.external.custom.ocforums.css";
var _hwb = _hwb || [];
_hwb.push(['type=teamrank']);
_hwb.push(['params=overclockers.com,CPU-Z,20']);
_hwb.push([_hwbtarget]);
(function() {
var hwbex = document.createElement('script'); hwbex.type = 'text/javascript'; hwbex.async = true;
hwbex.src = 'https://hwbot.org/js/exf2.js';
var s = document.getElementById(_hwbtarget); s.parentNode.insertBefore(hwbex, s);
})();
</script>
This page has my test usage on it: https://www.overclockers.com/forums/help/bb-codes/#hwbot