ATMINSIDE Posted July 16, 2018 Share Posted July 16, 2018 2 minutes ago, richba5tard said: You might! Please check if you have a reference to https://ssl somewhere in the hwbot code snippet. Here's what I have in my BB Code entry for the HWBot code, should it be something different now? <script type="text/javascript"> var _hwbtarget = 'hwb_' + Math.round((Math.random() * 100000)); document.write("<div id='"+ _hwbtarget +"'><img src='//62.182.59.107/img/loader.gif' alt='loading'/> Loading…</div>"); // uncomment for custom css var _hwbcss = "//hwbot.org/css/style.external.custom.ocforums.css"; var _hwb = _hwb || []; _hwb.push(['type={param}']); _hwb.push(['params={option}']); _hwb.push([_hwbtarget]); (function() { var hwbex = document.createElement('script'); hwbex.type = 'text/javascript'; hwbex.async = true; hwbex.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://') + 'hwbot.org/js/exf2.js'; var s = document.getElementById(_hwbtarget); s.parentNode.insertBefore(hwbex, s); })(); </script> Quote Link to comment Share on other sites More sharing options...
richba5tard Posted July 16, 2018 Share Posted July 16, 2018 Please replace: hwbex.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://') + 'hwbot.org/js/exf2.js'; With: hwbex.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'hwbot.org/js/exf2.js'; Quote Link to comment Share on other sites More sharing options...
ATMINSIDE Posted July 16, 2018 Share Posted July 16, 2018 43 minutes ago, richba5tard said: Please replace: hwbex.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://') + 'hwbot.org/js/exf2.js'; With: hwbex.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'hwbot.org/js/exf2.js'; OK sorry for the delay, got waylaid. I made that change, which took the result from "loading" to a blank element in the thread. https://www.overclockers.com/forums/showthread.php/646030-HWBOT-Rankings Quote Link to comment Share on other sites More sharing options...
richba5tard Posted July 18, 2018 Share Posted July 18, 2018 On 7/16/2018 at 5:11 PM, ATMINSIDE said: OK sorry for the delay, got waylaid. I made that change, which took the result from "loading" to a blank element in the thread. https://www.overclockers.com/forums/showthread.php/646030-HWBOT-Rankings Sorry, not sure why but it keeps using the non https version. You can't mix https with http, the browser will prevent that. Can you force https by changing above line to: wbex.src = 'https://hwbot.org/js/exf2.js'; Quote Link to comment Share on other sites More sharing options...
ATMINSIDE Posted July 18, 2018 Share Posted July 18, 2018 50 minutes ago, richba5tard said: Sorry, not sure why but it keeps using the non https version. You can't mix https with http, the browser will prevent that. Can you force https by changing above line to: wbex.src = 'https://hwbot.org/js/exf2.js'; Doesn't look like that's fixed it either. I did manage to get the loader.gif to work though, for some reason it was set to a static IP instead of hwbot.org Here's where I'm at right now: <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={param}']); _hwb.push(['params={option}']); _hwb.push([_hwbtarget]); (function() { var hwbex = document.createElement('script'); hwbex.type = 'text/javascript'; hwbex.async = true; wbex.src = 'https://www.hwbot.org/js/exf2.js'; var s = document.getElementById(_hwbtarget); s.parentNode.insertBefore(hwbex, s); })(); </script> Quote Link to comment Share on other sites More sharing options...
richba5tard Posted July 19, 2018 Share Posted July 19, 2018 Typo, it's hwbex.src = 'https://www.hwbot.org/js/exf2.js'; not wbex.src = 'https://www.hwbot.org/js/exf2.js'; The h got lost with copy pasting the code. Quote Link to comment Share on other sites More sharing options...
ObscureParadox_3XS Posted July 19, 2018 Share Posted July 19, 2018 @richba5tard does this make it an easy fix for the old hall of fame threads for the old school sockets? Quote Link to comment Share on other sites More sharing options...
richba5tard Posted July 19, 2018 Share Posted July 19, 2018 6 minutes ago, ObscureParadox said: @richba5tard does this make it an easy fix for the old hall of fame threads for the old school sockets? can you help me out and link to the page you are referring to? Quote Link to comment Share on other sites More sharing options...
ObscureParadox_3XS Posted July 19, 2018 Share Posted July 19, 2018 @richba5tard Pages such as the following Quote Link to comment Share on other sites More sharing options...
richba5tard Posted July 19, 2018 Share Posted July 19, 2018 1 hour ago, ObscureParadox said: @richba5tard Pages such as the following No, we have not yet written a invisionpb plugin. : / Quote Link to comment Share on other sites More sharing options...
ObscureParadox_3XS Posted July 19, 2018 Share Posted July 19, 2018 Not to worry, thanks for the reply Quote Link to comment Share on other sites More sharing options...
ATMINSIDE Posted July 19, 2018 Share Posted July 19, 2018 3 hours ago, richba5tard said: Typo, it's hwbex.src = 'https://www.hwbot.org/js/exf2.js'; not wbex.src = 'https://www.hwbot.org/js/exf2.js'; The h got lost with copy pasting the code. Sorry, must have made a typo there... still having the same result for some reason though after updating to hwbex.src Quote Link to comment Share on other sites More sharing options...
richba5tard Posted July 19, 2018 Share Posted July 19, 2018 Can you try https://hwbot.org/js/exf2.js ? (drop the www.) 1 Quote Link to comment Share on other sites More sharing options...
ATMINSIDE Posted July 19, 2018 Share Posted July 19, 2018 8 minutes ago, richba5tard said: Can you try https://hwbot.org/js/exf2.js ? (drop the www.) THAT did it!!! Thanks a ton Quote Link to comment Share on other sites More sharing options...
richba5tard Posted July 19, 2018 Share Posted July 19, 2018 Quote Link to comment Share on other sites More sharing options...
ATMINSIDE Posted January 26, 2022 Share Posted January 26, 2022 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 1 Quote Link to comment Share on other sites More sharing options...
ATMINSIDE Posted May 16, 2022 Share Posted May 16, 2022 FYI to anyone still using this, who might be on XenForo. Figured this one out today. Apparently, XF does not like links without www. in some instances. Just adding that in, shown below, to the HTML Replacement got this one working. <script type="text/javascript"> var _hwbtarget = 'hwb_' + Math.round((Math.random() * 100000)); document.write("<div id='"+ _hwbtarget +"'><img src='https://www.hwbot.org/img/loader.gif' alt='loading'/> Loading…</div>"); // uncomment for custom css var _hwbcss = "https://www.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://www.hwbot.org/js/exf2.js'; var s = document.getElementById(_hwbtarget); s.parentNode.insertBefore(hwbex, s); })(); </script> 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.