eva2000 Posted June 16, 2010 Share Posted June 16, 2010 ah cool seems can't set to list top 20 ? [noparse][hwbot=,20]teamranking[/hwbot][/noparse] Link to comment Share on other sites More sharing options...
richba5tard Posted June 16, 2010 Author Share Posted June 16, 2010 Yes, it could be that I drop the limit option all together in the final release. Otherwise a) it might be quite heavy to render b) people don't need to visit hwbot any more. I think I'm going to set it fixed to 10 or 20 and include a link "see all" in the tag. Link to comment Share on other sites More sharing options...
eva2000 Posted June 16, 2010 Share Posted June 16, 2010 haha true.. or you could pre-package a whitebox external edition for a license fee for folks wanting more customisation on their own forum/site. Another revenue stream to keep hwbot operating financially Link to comment Share on other sites More sharing options...
bazx Posted June 16, 2010 Share Posted June 16, 2010 (edited) [hwbot=bench_tec_uk]teamgoal,height=400px[/hwbot] i would like to have this feed at the side or top of the forum page @ benchtec so we could see it all the time RB do you have any mods to do this with VB or link me to such a mod/how to thanks baz Edited June 16, 2010 by bazx Link to comment Share on other sites More sharing options...
richba5tard Posted June 16, 2010 Author Share Posted June 16, 2010 That's possible bazx. Just insert the generated javascript in the appropriate php template. The javascript is the same as the replacement code you used for the vbulletin plugin. Link to comment Share on other sites More sharing options...
bazx Posted June 16, 2010 Share Posted June 16, 2010 thank i will have a try Link to comment Share on other sites More sharing options...
bazx Posted June 16, 2010 Share Posted June 16, 2010 (edited) lol have a look @ benchtec forum rb i get an error here is an image http://www.benchtec.co.uk/images/baz/tag2.gif text in the error Failure... Sorry, an error occured: Unkown category chosen, available categories: submissionranking, memberranking, teamranking, member, team, competition, submission, newsubmissions, teamgoal, membergoal, teamrank this is the code i should use ? <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.benchtec.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> Edited June 16, 2010 by bazx Link to comment Share on other sites More sharing options...
r1ch Posted June 17, 2010 Share Posted June 17, 2010 this is the code i should use ? _hwb.push(['type={param}']); _hwb.push(['params={option}']); If i read it right, you need to customise these options to pick what type of info to display mate. Try: _hwb.push(['type=teamrank']); _hwb.push(['params=bench_tec_uk']); And choose any of the following for the first one of the two: submissionranking, memberranking, teamranking, member, team, competition, submission, newsubmissions, teamgoal, membergoal, teamrank Link to comment Share on other sites More sharing options...
bazx Posted June 17, 2010 Share Posted June 17, 2010 starting to get somewhere now many thanks to RB http://www.benchtec.co.uk/forums/forumdisplay.php?f=30 Link to comment Share on other sites More sharing options...
richba5tard Posted June 17, 2010 Author Share Posted June 17, 2010 A known problem with iframes (the technology used for the tags) is that browser security prevents the iframe to resize itself. This can cause an issue as sometimes the tag takes a bit too much space (a lot of padding at the bottom) or too little (a scrollbar appears). There is a workaround though. If you copy this html file on the same server as the tag displays on, the tag can resize itself. <html> <head> <title>reply hwbot</title> </head> <body> <script type="text/javascript"> var targetFrame = getParam('tf'); var height = getParam('height'); if (height && targetFrame){ var parentdoc = window.parent.parent.document; var frames = parentdoc.getElementsByTagName('iframe'); var i = 0; while (i < frames.length){ if (frames[i].id == targetFrame){ frames[i].style.height=height; break; } i++; } } function getParam( name ) { name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]"); var regexS = "[\\?&]"+name+"=([^]*)"; var regex = new RegExp( regexS ); var results = regex.exec( window.location.href ); if( results == null ) return ""; else return results[1]; } </script> </body> </html> Adjust your script (notice var _hwbreply = 'http://<yourserver>/reply.html';): If you upload the html to http://benchtec.co.uk/forums/hwbotreply.html, you should add _hwbreply = 'http://benchtec.co.uk/forums/hwbotreply.html' 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 _hwbreply = 'http://<yourserver>/reply.html'; 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]teamranking[/hwbot ] (remove space in tag) Use {option} = YES And from now on the tag should always be the correct height. It's untested in IE, so feedback is appreciated. Link to comment Share on other sites More sharing options...
bazx Posted June 18, 2010 Share Posted June 18, 2010 thanks for the code i will let you know how i get on Link to comment Share on other sites More sharing options...
El Gappo Posted June 18, 2010 Share Posted June 18, 2010 Is there a tag for the team contribution ranks? http://hwbot.org/community/team/bench_tec_uk?tab=members Link to comment Share on other sites More sharing options...
bazx Posted June 19, 2010 Share Posted June 19, 2010 i have just noticed we have a new friend when posting Link to comment Share on other sites More sharing options...
richba5tard Posted June 19, 2010 Author Share Posted June 19, 2010 Little baby bot! @el gappo: if team allows, i'll add it. Link to comment Share on other sites More sharing options...
richba5tard Posted June 19, 2010 Author Share Posted June 19, 2010 Trying team members tag: [hwbot=bench_tec_uk]teammembers[/hwbot] Link to comment Share on other sites More sharing options...
bazx Posted June 19, 2010 Share Posted June 19, 2010 (edited) [ hwbot=massman]member[/hwbot] the tags it puts out are in complete @ benchtec when asked i enter bazx and this is the resulting string [ HWBOT=bazx][/HWBOT] but if i manually add "member" [ HWBOT=bazx]member[/HWBOT] it out puts my stats fine Edited June 19, 2010 by bazx Link to comment Share on other sites More sharing options...
richba5tard Posted June 19, 2010 Author Share Posted June 19, 2010 I'm sorry, I don't follow you. "member" is in the list it outputs. "teammembers" is not publicly available, it's on the test server. - edit - You mean when using the vbulleting editor, bot icon? I have no control over what the editor exactly does when you click the button... so you will have to enter member/team/etc manually. Link to comment Share on other sites More sharing options...
bazx Posted June 19, 2010 Share Posted June 19, 2010 (edited) when i press the baby bot it opens a dialog box so i enter my name=bazx is that the way to use it edit so the baby bot is not there by design Edited June 19, 2010 by bazx Link to comment Share on other sites More sharing options...
richba5tard Posted June 20, 2010 Author Share Posted June 20, 2010 Summary of first draft is available here: http://hwbot.org/forum/showthread.php?p=61069#post61069 Closing this topic, comments can go in the new one. Link to comment Share on other sites More sharing options...
Recommended Posts