From 6a9d84cf34f3dd715a3eb963c41bc4a4424f8612 Mon Sep 17 00:00:00 2001 From: sweetas Date: Wed, 27 Jun 2007 13:27:25 +0000 Subject: [PATCH] imode fixes --- e107_files/shortcode/batch/download_shortcodes.php | 12 ++++++------ e107_handlers/level_handler.php | 10 +++++----- page.php | 11 ++++++----- 3 files changed, 17 insertions(+), 16 deletions(-) diff --git a/e107_files/shortcode/batch/download_shortcodes.php b/e107_files/shortcode/batch/download_shortcodes.php index 1bfb7b358..914d2e9bf 100644 --- a/e107_files/shortcode/batch/download_shortcodes.php +++ b/e107_files/shortcode/batch/download_shortcodes.php @@ -11,9 +11,9 @@ | GNU General Public License (http://gnu.org). | | $Source: /cvs_backup/e107_0.8/e107_files/shortcode/batch/download_shortcodes.php,v $ -| $Revision: 1.9 $ -| $Date: 2007-02-04 15:27:49 $ -| $Author: e107steved $ +| $Revision: 1.10 $ +| $Date: 2007-06-27 13:27:19 $ +| $Author: sweetas $ +----------------------------------------------------------------------------+ */ if (!defined('e107_INIT')) { exit; } @@ -284,7 +284,7 @@ SC_END SC_BEGIN DOWNLOAD_VIEW_RATING require_once(e_HANDLER."rate_class.php"); $rater = new rater; -global $dl; + global $dl, $imode; $text = " @@ -292,10 +292,10 @@ global $dl; if ($ratearray = $rater->getrating("download", $dl['download_id'])) { for($c = 1; $c <= $ratearray[1]; $c++) { - $text .= ""; + $text .= ""; } if ($ratearray[2]) { - $text .= ""; + $text .= ""; } if ($ratearray[2] == "") { $ratearray[2] = 0; diff --git a/e107_handlers/level_handler.php b/e107_handlers/level_handler.php index af83603ff..02468044e 100644 --- a/e107_handlers/level_handler.php +++ b/e107_handlers/level_handler.php @@ -11,9 +11,9 @@ | GNU General Public License (http://gnu.org). | | $Source: /cvs_backup/e107_0.8/e107_handlers/level_handler.php,v $ -| $Revision: 1.3 $ -| $Date: 2007-02-24 09:38:06 $ -| $Author: e107steved $ +| $Revision: 1.4 $ +| $Date: 2007-06-27 13:27:25 $ +| $Author: sweetas $ +----------------------------------------------------------------------------+ */ @@ -22,7 +22,7 @@ if (!defined('e107_INIT')) { exit; } function get_level($user_id, $user_forums, $user_comments, $user_chats, $user_visits, $user_join, $user_admin, $user_perms, $pref, $fmod = "") { - global $tp; + global $tp, $imode; if (!$user_id) { return FALSE; @@ -95,7 +95,7 @@ function get_level($user_id, $user_forums, $user_comments, $user_chats, $user_vi $rank = 9; } - $data['pic'] = (file_exists(THEME."forum/".$level_images[$rank]) ? THEME."forum/".$level_images[$rank] : e_IMAGE."rate/".IMODE."/".$level_images[$rank]); + $data['pic'] = (file_exists(THEME."forum/".$level_images[$rank]) ? THEME."forum/".$level_images[$rank] : e_IMAGE."packs/".$imode."/rate/".$level_images[$rank]); $data['name'] = "[ ".$tp->toHTML($level_names[$rank], FALSE, 'defs')." ]"; if($level_names[$rank]) diff --git a/page.php b/page.php index 718684e57..c2b3755b6 100644 --- a/page.php +++ b/page.php @@ -11,9 +11,9 @@ | GNU General Public License (http://gnu.org). | | $Source: /cvs_backup/e107_0.8/page.php,v $ -| $Revision: 1.9 $ -| $Date: 2007-01-20 14:52:41 $ -| $Author: mrpete $ +| $Revision: 1.10 $ +| $Date: 2007-06-27 13:27:19 $ +| $Author: sweetas $ | +----------------------------------------------------------------------------+ */ @@ -299,7 +299,8 @@ class pageClass function pageRating($page_rating_flag) { - $rate_text = ''; // Notice removal + global $imode; + $rate_text = ''; // Notice removal if($page_rating_flag) { require_once(e_HANDLER."rate_class.php"); @@ -312,7 +313,7 @@ class pageClass { $ratearray[2] = 0; } - $rate_text .= "\n"; + $rate_text .= "\n"; $rate_text .= " ".$ratearray[1].".".$ratearray[2]." - ".$ratearray[0]." "; $rate_text .= ($ratearray[0] == 1 ? "vote" : "votes"); }