richba5tard Posted June 10, 2010 Share Posted June 10, 2010 Due to high demand, we're trying to get updated forum topics back into the engine. Working example: [ hwbot=teamname,application]teamrank[/hwbot ] eg [ hwbot=oc_forums,wprime_32m]teamrank[/hwbot ] renders: => [hwbot=oc_forums,wprime_32m,30]teamrank[/hwbot] Link to comment Share on other sites More sharing options...
richba5tard Posted June 10, 2010 Author Share Posted June 10, 2010 I still have a security issue to iron out. It won't be easy. But if i'ts fixed you can display pretty much any ranking / status on your own forum/site. Link to comment Share on other sites More sharing options...
Jor3llBR/Elano Posted June 10, 2010 Share Posted June 10, 2010 Finally!!! Looking good man... Link to comment Share on other sites More sharing options...
Crew Antinomy Posted June 10, 2010 Crew Share Posted June 10, 2010 Oh, I thought that the forum engine for result sumbmussion is going to be back - that would be bad. But this is a very nice one Link to comment Share on other sites More sharing options...
richba5tard Posted June 10, 2010 Author Share Posted June 10, 2010 Trying another approach to bypass browser security settings: [framebot=oc_forums,wprime_32m,10]teamrank,height=100px[/framebot] Link to comment Share on other sites More sharing options...
I.M.O.G. Posted June 10, 2010 Share Posted June 10, 2010 Looking good Link to comment Share on other sites More sharing options...
jmke Posted June 10, 2010 Share Posted June 10, 2010 get this error with FF 3.6 on the "other approach" Link to comment Share on other sites More sharing options...
richba5tard Posted June 10, 2010 Author Share Posted June 10, 2010 get this error with FF 3.6 on the "other approach" correct, i'm debugging it at the moment Link to comment Share on other sites More sharing options...
richba5tard Posted June 10, 2010 Author Share Posted June 10, 2010 The new api can also be used for integrating the ranking on your website. Just paste this code into html: <html> <h3>hwbot test</h3> <script type="text/javascript"> var _hwbtarget = 'hwb_' + Math.round((Math.random() * 100000)); document.write("<div id='"+ _hwbtarget +"'><img src='http://hwbot.org/img/loader.gif' alt='loading'/> Loading…</div>"); // uncomment for custom css var _hwbcss = "http://hwbot.org/css/style.external.custom.ocforums.css"; var _hwb = _hwb || []; _hwb.push(['type=teamrank']); _hwb.push(['params=oc_forums,superpi,10']); _hwb.push([_hwbtarget]); (function() { var hwbex = document.createElement('script'); hwbex.type = 'text/javascript'; hwbex.async = true; hwbex.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'hwbot.org/js/exf2.js'; var s = document.getElementById(_hwbtarget); s.parentNode.insertBefore(hwbex, s); })(); </script> </html> Remember to set the correct team name and app name. Link to comment Share on other sites More sharing options...
richba5tard Posted June 10, 2010 Author Share Posted June 10, 2010 (edited) For those who want to try it as a vbulletin tag, go to the admin panel en choose "add new bb code". BB Code Tag Name = hwbot Replacement = <script type="text/javascript"> var _hwbtarget = 'hwb_' + Math.round((Math.random() * 100000)); document.write("<div id='"+ _hwbtarget +"'><img src='http://hwbot.org/img/loader.gif' alt='loading'/> Loading…</div>"); // uncomment for custom css // var _hwbcss = "http://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://' : 'http://') + 'hwbot.org/js/exf2.js'; var s = document.getElementById(_hwbtarget); s.parentNode.insertBefore(hwbex, s); })(); </script> Example = [ hwbot=oc_forums,wprime_32m,10]teamrank,height=100px[/hwbot ] (remove space in tag) Use {option} = YES When added, you can post the following tag in the forums: [ hwbot=oc_forums,wprime_32m,10]teamrank,height=100px[/ hwbot] => [hwbot=oc_forums,wprime_32m,10]teamrank,height=340px[/hwbot] :celebration: Edited June 11, 2010 by richba5tard replacement script updated Link to comment Share on other sites More sharing options...
I.M.O.G. Posted June 11, 2010 Share Posted June 11, 2010 (edited) Doing it now, I'll provide links to examples on Overclockers.com shortly. Thank you Frederik, I really appreciate your PMs and the way you whipped this together so quickly! Example on OCF: http://www.overclockers.com/forums/showpost.php?p=6521438&postcount=23 Edited June 11, 2010 by I.M.O.G. Link to comment Share on other sites More sharing options...
jmke Posted June 11, 2010 Share Posted June 11, 2010 I would make all links open in a new window, otherwise HWBot site opens in that iframe Link to comment Share on other sites More sharing options...
Monstru Posted June 11, 2010 Share Posted June 11, 2010 So we have to define the BB code into the admin panel first? Link to comment Share on other sites More sharing options...
richba5tard Posted June 11, 2010 Author Share Posted June 11, 2010 Yes, you have to define the BB code in the admin panel. Version 2: - multiple tags on same page work - custom css available - heigth not necessary For those who want to try it as a vbulletin tag, go to the admin panel en choose "add new bb code". BB Code Tag Name = hwbot Replacement = <script type="text/javascript"> var _hwbtarget = 'hwb_' + Math.round((Math.random() * 100000)); document.write("<div id='"+ _hwbtarget +"'><img src='http://hwbot.org/img/loader.gif' alt='loading'/> Loading…</div>"); // uncomment for custom css // var _hwbcss = "http://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://' : 'http://') + 'hwbot.org/js/exf2.js'; var s = document.getElementById(_hwbtarget); s.parentNode.insertBefore(hwbex, s); })(); </script> Example = [ hwbot=oc_forums,wprime_32m,10]teamrank,height=100px[/hwbot ] (remove space in tag) Use {option} = YES When added, you can post the following tag in the forums: [ hwbot=oc_forums,wprime_32m,10]teamrank[/ hwbot] => [hwbot=oc_forums,wprime_32m,10]teamrank[/hwbot] :celebration: Link to comment Share on other sites More sharing options...
richba5tard Posted June 11, 2010 Author Share Posted June 11, 2010 Forumbot v2 works super duper on other fora too. integration is seamless. :celebration: Link to comment Share on other sites More sharing options...
voidn Posted June 11, 2010 Share Posted June 11, 2010 Saweeeeeeeeeeeeeeeet. Thanks for this! Link to comment Share on other sites More sharing options...
Gautam Posted June 11, 2010 Share Posted June 11, 2010 Trying to get it to work on kingpincooling...all it shows is "Loading" indefinitely. Any suggestions? Link to comment Share on other sites More sharing options...
richba5tard Posted June 12, 2010 Author Share Posted June 12, 2010 Can you point me to the page in question? Otherwise I can not troubleshoot it. Link to comment Share on other sites More sharing options...
Gautam Posted June 12, 2010 Share Posted June 12, 2010 http://www.kingpincooling.com/forum/misc.php?do=bbcode#hwbot Note, I used the ocforums example just to be safe. Link to comment Share on other sites More sharing options...
richba5tard Posted June 12, 2010 Author Share Posted June 12, 2010 Fixed and made a kingpincooling specific stylesheet available. Put this css in the script: <script type="text/javascript"> var _hwbtarget = 'hwb_' + Math.round((Math.random() * 100000)); document.write("<div id='"+ _hwbtarget +"'><img src='http://hwbot.org/img/loader.gif' alt='loading'/> Loading…</div>"); // uncomment for custom css var _hwbcss = "http://hwbot.org/css/style.external.custom.kingpincooling.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> Link to comment Share on other sites More sharing options...
Gautam Posted June 12, 2010 Share Posted June 12, 2010 woot! Link to comment Share on other sites More sharing options...
Kal-EL Posted June 12, 2010 Share Posted June 12, 2010 Nice stuff Fred, you got a small baby bot button image we can use? Link to comment Share on other sites More sharing options...
richba5tard Posted June 12, 2010 Author Share Posted June 12, 2010 This one? http://hwbot.org/images/robot%20icon.png Link to comment Share on other sites More sharing options...
|ron Posted June 12, 2010 Share Posted June 12, 2010 Hei Frederick, great feature, I just included it on hwproject, but I can't modify the height... if I change between 100, 400, 500px, nothing changes... How can I work out this? Thanks! Link to comment Share on other sites More sharing options...
richba5tard Posted June 12, 2010 Author Share Posted June 12, 2010 Do not specify height, it's deprecated. The tag can guess it's height ± correctly. Also, keep in mind this is a work in progress, I'll do my best to keep everything backwards compatible but I need to add a lot more stuff. Link to comment Share on other sites More sharing options...
Recommended Posts