From e70234033fc02b825198ea92d55632292ac836c6 Mon Sep 17 00:00:00 2001 From: "Janus B. Kristensen" Date: Sat, 30 Apr 2005 09:04:00 +0000 Subject: [PATCH] Rating +/- links now are images svn path=/trunk/boinc/; revision=5988 --- html/inc/forum.inc | 6 +++++- html/user/img/rate_negative.png | Bin 0 -> 220 bytes html/user/img/rate_positive.png | Bin 0 -> 257 bytes 3 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 html/user/img/rate_negative.png create mode 100644 html/user/img/rate_positive.png diff --git a/html/inc/forum.inc b/html/inc/forum.inc index 4cbeb88500..5c44ad7f61 100644 --- a/html/inc/forum.inc +++ b/html/inc/forum.inc @@ -37,6 +37,10 @@ define('EMPHASIZE_IMAGE', 'img/emphasized_post.png'); define('EMPHASIZE_IMAGE_HEIGHT','15'); define('FILTER_IMAGE', 'img/filtered_post.png'); define('FILTER_IMAGE_HEIGHT','15'); +define('RATE_POSITIVE_IMAGE', 'img/rate_positive.png'); +define('RATE_POSITIVE_IMAGE_HEIGHT','9'); +define('RATE_NEGATIVE_IMAGE', 'img/rate_negative.png'); +define('RATE_NEGATIVE_IMAGE_HEIGHT','9'); define ('SOLUTION', 'This answered my question'); define ('SUFFERER', 'I also have this question'); @@ -624,7 +628,7 @@ function show_post($post, $thread, $logged_in_user, $n, $controls=FORUM_CONTROLS } else if ($controls == HELPDESK_CONTROLS && !$separate) { echo " / Score: ", round(($post->score * $post->votes),0), ""; } else { - echo " / Rating: ", round(intval(($post->score * $post->votes)+0.01),0), " - rate: id."&choice=p\">+ / id."&choice=n\">-"; + echo " / Rating: ", round(intval(($post->score * $post->votes)+0.01),0), " - rate: id."&choice=p\">\"+\" / id."&choice=n\">\"-\""; } if ($controls == FORUM_CONTROLS) { diff --git a/html/user/img/rate_negative.png b/html/user/img/rate_negative.png new file mode 100644 index 0000000000000000000000000000000000000000..5ae34148c6f97687c7aa5b24081a8d30f2370be9 GIT binary patch literal 220 zcmeAS@N?(olHy`uVBq!ia0vp^oFL4>1|%O$WD@{VY)RhkE)0?k{}~vxw5t+9(ghxo z#S9F5^MLpeV_r%V4^WW3#M9T6{VIzbhmp|j-B&LHg)%)|9780gmQJ|Hc|d{3#eV|N zLz#EsTxE*SPfT}C>G-`-e(ALZd*`bZ?6DT|(wwW}!lJ^M@aBDwO5w8}``ERLT_=i{ zZm~LJcj-coiS)&05wnSV!~9>Z(mr`+^0SV}eV30tu##PMI{(@JyE;pqx}#T1e+62~ N;OXk;vd$@?2>|F;Oe+8Y literal 0 HcmV?d00001 diff --git a/html/user/img/rate_positive.png b/html/user/img/rate_positive.png new file mode 100644 index 0000000000000000000000000000000000000000..b26163907c6f3c2e01b83ed6fc610717f09585fe GIT binary patch literal 257 zcmeAS@N?(olHy`uVBq!ia0vp^oFL4>1|%O$WD@{VY)RhkE)0?k{}~vxw5t+9(ghxo z#S9F5^MLpeV_r%V4^WW3#M9T6{VIzbhq$WrLjeLV_xTg^ z7iPQ`4SJfQRC9i!*>;bq+7X-+JEqS_(@oiL-*NlQAs*w+vy0B@aT+@dIoxE9_MD^V z{_pJHUyDqQ8OmfBUId+gBh270=dq}>BT7Qz;?b4fwTjgTe~DWM4f