mirror of
https://github.com/e107inc/e107.git
synced 2025-04-21 13:11:52 +02:00
imode fixes
This commit is contained in:
parent
e00ff9dec0
commit
6a9d84cf34
@ -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 = "
|
||||
<table style='width:100%'>
|
||||
<tr>
|
||||
@ -292,10 +292,10 @@ global $dl;
|
||||
|
||||
if ($ratearray = $rater->getrating("download", $dl['download_id'])) {
|
||||
for($c = 1; $c <= $ratearray[1]; $c++) {
|
||||
$text .= "<img src='".e_IMAGE."rate/".IMODE."/star.png' alt='' />";
|
||||
$text .= "<img src='".e_IMAGE."packs/".$imode."/rate/star.png' alt='' />";
|
||||
}
|
||||
if ($ratearray[2]) {
|
||||
$text .= "<img src='".e_IMAGE."rate/".IMODE."/".$ratearray[2].".png' alt='' />";
|
||||
$text .= "<img src='".e_IMAGE."packs/".$imode."/rate/".$ratearray[2].".png' alt='' />";
|
||||
}
|
||||
if ($ratearray[2] == "") {
|
||||
$ratearray[2] = 0;
|
||||
|
@ -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])
|
||||
|
11
page.php
11
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 .= "<img src='".e_IMAGE."rate/box/box".$ratearray[1].".png' alt='' style='vertical-align:middle;' />\n";
|
||||
$rate_text .= "<img src='".e_IMAGE."packs/".$imode."/rate/box/box".$ratearray[1].".png' alt='' style='vertical-align:middle;' />\n";
|
||||
$rate_text .= " ".$ratearray[1].".".$ratearray[2]." - ".$ratearray[0]." ";
|
||||
$rate_text .= ($ratearray[0] == 1 ? "vote" : "votes");
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user