Go Back   hwbot.org > News > HWBOT Frontpage News

HWBOT Frontpage News Official HWBOT articles and frontpage news

Reply
 
Thread Tools

HWBOT Integrated forum/website rankings

Back in 2005 HWBOT started as a service which scanned forum submissions and posted an up to date ranking in the first post of the forum topic. It made the bot popular but due to high maintenance cost, and a lot of poorly scanned submissions, we decided to drop support late 2009.

Now they are back, but in a different form. You still need to make submissions on hwbot.org, but we now offer a handful of tags to be able to show up to date rankings on your local forum.

We provide guidelines how to install this on vbulletin, but it can be installed on any forum, blog or website.

Example

When the hwbot tag is installed on vbulletin, you can post the following tag in the forums:
[hwbot=oc_forums]team[/hwbot]
will render:

Forums which already implement this feature:

How to install tags on vbulletin

If you 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>

If you want custom css, uncomment // var _hwbcss = "http://hwbot.org/css/style.external.custom.ocforums.css"; and replace with own css.

Example = [hwbot=team=oc_forums,app=wprime_32m]submissionranking[/hwbot] (remove space in tag)
Use {option} = YES

With custom css, the integration with your forum is seamless:

How to install tags on blog/html site

You can use the new tags on your blog or website, if you directly use the javascript. For blogs, you need to be sure the blog engine allows use of javascript.

Copy and paste the following code:

<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>

Replace {param} with team, member, membergoal, teamgoal, submission, etc. Available tags are below.
Replace {option} with the parameters, eg "bench_tec_uk" or "app=wprime,cooling=air". Parameters are below.

Layout customization:

The HWBOT script will produce XHTML which can be formatted with css. If you want to override the default css, you need to add a “_hwbcss” variable in the script which points to a custom css file.

The default css file is "http://hwbot.org/css/style.external.css". If you want to customize it, copy this file, make the adjustments and put it on your own host. If you don’t have a host, we can host it for you.

Example:
var _hwbcss = "http://hwbot.org/css/style.external.custom.ocforums.css";

Full set of supported tags:

display member info:

Tag: member
Options: member name

[hwbot=massman]member[/hwbot]
Renders as (removed space in [hwbot]):

display team info:

Tag: team
Options: team name

[hwbot=oc_forums]team[/hwbot]
Renders as:

display submission ranking

Tag: submissionranking
Options: app=benchmark name, cooling= cooling type, country = country name, region = ussr,europe,…, team=team name

[hwbot=app=wprime 32m,cooling=Water Cooling,country=germany]submissionranking[/hwbot]
Renders as:

display member ranking

Tag: memberranking
Options: app=benchmark name, country=country name, region=region name, team=team name

[hwbot=app=CPU-Z,country=us,team=pure]memberranking[/hwbot]
Renders as:

display team ranking

Tag: teamranking
Options: country=country name, region=region name

[hwbot=region=europe]teamranking[/hwbot]
Renders as:

display submission info:

Tag: submission
Options: submission id

[hwbot=949325]submission[/hwbot]
Renders as:

display team objective (beat next best ranked team)

[hwbot=pure]teamgoal[/hwbot]
Tag: teamgoal
Options: team name

Renders as:

display user objective (beat next best ranked user)

Tag: membergoal
Options: member name

[hwbot=gautam]membergoal[/hwbot]
Renders as:

team members tag

Tag: teammembers
Options: team name

[hwbot=bench_tec_uk]teammembers[/hwbot]
Renders as:

new submissions tag

Tag: newsubmissions
Options: none

[hwbot=]newsubmissions[/hwbot]
or [hwbot=team=oc_forums]newsubmissions[/hwbot]
Renders as:


Jul 7, 2010 - Guides - HWBOT
  #12  
Old 07-13-2010, 18:57
OCPerformance's Avatar
OCPerformance OCPerformance is offline
construction bot
 
Join Date: Jan 2008
Location: GERMANY
Posts: 56
Default

ok i have to write it. in which folder should I upload it?

Main Folder where the index.php is?
__________________
Sorry for my English. I'm German.

Reply With Quote
  #13  
Old 07-13-2010, 20:57
richba5tard's Avatar
richba5tard richba5tard is offline
HWBOT Forum Administrators
 
Join Date: Mar 2006
Location: Belgium
Posts: 5,931
Blog Entries: 1
Default

Anywhere, doesn't matter. As long as you can access the file from your webbrowser. Replace the _hwbcss = xxx with the new url.
__________________
Reply With Quote
  #14  
Old 07-13-2010, 22:32
johnamd johnamd is offline
construction bot
 
Join Date: Apr 2010
Location: GREECE
Posts: 66
Blog Entries: 1
Default

<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>
__________________
Reply With Quote
  #15  
Old 07-13-2010, 22:37
johnamd johnamd is offline
construction bot
 
Join Date: Apr 2010
Location: GREECE
Posts: 66
Blog Entries: 1
Default

<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>
__________________
Reply With Quote
  #16  
Old 07-23-2010, 15:41
xandelly xandelly is offline
kitchen robot
 
Join Date: Nov 2007
Location: BRAZIL
Posts: 14
Default

Hello friends. Sorry bad English writing.

I want to give congratulations for the excellent mod, and installed 100% ok.

Below the image, and the link of our forum with direct link HWBOT

and thank you all and continue improving HwBot


Image example:



Link example:
http://forum.overbr.com.br/forum.php


Link Imagem Example and install
http://www.overbr.com.br/portal_images/hwbot_css.jpg

Congratulations,
best regards,

X@ndellY
__________________
http://www.overbr.com.br

Reply With Quote
  #17  
Old 09-27-2010, 01:44
redmax redmax is offline
construction bot
 
Join Date: Mar 2009
Location: UNITED STATES
Posts: 66
Default

For PHPBB you need to get creative with your BBCODE tag. I re-wrote it to use [hwbot]{TEXT1}|{TEXT2}[/hwbot] Then mapped TEXT1 and TEXT2 to param and type (respective)

You also need to replace the single ticks with ' when you create the tag since what is in there currently is invalid JavaScript.
__________________
Reply With Quote
  #18  
Old 04-07-2012, 12:44
Asmola Asmola is offline
kitchen robot
 
Join Date: May 2009
Location: FINLAND
Posts: 14
Default

So how this should work on phpbb? Yes, im noob with these things.
__________________
Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 08:24.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Copyright COLARDYN IT GCV 2004 - 2013