Amount of points displayed in surfbar, more fixes
authorRoland Häder <roland@mxchange.org>
Mon, 8 Sep 2008 11:27:15 +0000 (11:27 +0000)
committerRoland Häder <roland@mxchange.org>
Mon, 8 Sep 2008 11:27:15 +0000 (11:27 +0000)
surfbar.php
templates/de/html/member/member_surfbar_link.tpl
templates/de/html/surfbar/surfbar_frame_top.tpl
theme/business/css/surfbar.css
theme/default/css/surfbar.css
theme/desert/css/surfbar.css

index 3c23ad4..703e39b 100644 (file)
@@ -55,7 +55,10 @@ if (defined('mxchange_installed') && (isBooleanConstantAndTrue('mxchange_install
        if (!IS_LOGGED_IN()) {
                // Redirect
                LOAD_URL(URL."/modules.php?module=index");
-       } // END - if
+       } elseif (!EXT_IS_ACTIVE("surfbar")) {
+               // Surfbar deactivated
+               LOAD_URL(URL."/modules.php?module=login&msg=".CODE_EXTENSION_PROBLEM);
+       }
 
        // Is there a check value?
        if ((SURFBAR_CHECK_RELOAD_FULL()) || ((isset($_GET['frame'])) && (($_GET['frame'] == "stop") || ($_GET['frame'] == "stop2")))) {
@@ -123,6 +126,9 @@ if (defined('mxchange_installed') && (isBooleanConstantAndTrue('mxchange_install
 
                        // Is there a valid id?
                        if ($nextId > 0) {
+                               // Get total points amount
+                               $points = GET_TOTAL_DATA($GLOBALS['userid'], "user_points", "points") - GET_TOTAL_DATA($GLOBALS['userid'], "user_data", "used_points");
+
                                // Then prepare other content
                                $content = array(
                                        'id'          => $nextId,
@@ -132,7 +138,8 @@ if (defined('mxchange_installed') && (isBooleanConstantAndTrue('mxchange_install
                                        'url'         => SURFBAR_GET_URL($nextId),
                                        'curr_reload' => SURFBAR_GET_USER_RELOAD_LOCK(),
                                        'max_urls'    => SURFBAR_GET_TOTAL_URLS(),
-                                       'reload'      => SURFBAR_GET_RELOAD_TIME($nextId)
+                                       'reload'      => SURFBAR_GET_RELOAD_TIME($nextId),
+                                       'points'      => TRANSLATE_COMMA($points)
                                );
 
                                // Update salt (double-call lock!)
index 4ff666d..c971391 100644 (file)
@@ -1,3 +1,3 @@
 <div class="member_title2 dashed" style="width:600px;margin-top:10px">
-       &gt;&gt;&nbsp;<strong><a href="{!URL!}/surfbar.php" target="_blank">Jetzt die Surfbar starten!</a></strong>&nbsp;&lt;&lt;
+       &gt;&gt;&nbsp;<strong><a href="{!URL!}/surfbar.php">Jetzt die Surfbar starten!</a></strong>&nbsp;&lt;&lt;
 </div>
index d6f48f9..b61239b 100644 (file)
@@ -8,9 +8,12 @@
                 class="surfbar_max">$content[max_urls]</span> im Reload&laquo;<br />
 
                &raquo;<a href="$content[url]" target="_blank">Aktuelle Seite in neuem
-               Fenster &ouml;ffnen</a>&laquo;<br />&nbsp;[<a target="_parent"
-                href="{!URL!}/modules.php?module=login&amp;what=logout">Ausloggen</a>|<a
-                href="javascript:window.close()">Schliessen</a>]
+               Fenster &ouml;ffnen</a>&laquo;<br />
+               [<a target="_parent" href="{!URL!}/modules.php?module=login">Loginbereich</a>|<a
+                target="_parent" href="{!URL!}/modules.php?module=login&amp;what=logout">Ausloggen</a>|<a
+                href="javascript:window.close()">Schliessen</a>]&nbsp;&raquo;Guthaben:&nbsp;<span
+                class="surfbar_points">$content[points]&nbsp;{!POINTS!}</span>&laquo;
+               <br />
 
                &raquo;{!MAIN_TITLE!} ist f&uuml;r den Inhalt nicht verantwortlich!&laquo;
        </td>
index 1f1f41d..c8ced30 100644 (file)
@@ -16,3 +16,6 @@
 }
 .surfbar_max {
 }
+.surfbar_points {
+       font-weight             : bold;
+}
\ No newline at end of file
index a1329e5..5baf67c 100644 (file)
@@ -16,3 +16,6 @@
 }
 .surfbar_max {
 }
+.surfbar_points {
+       font-weight             : bold;
+}
index 03743ce..9759d97 100644 (file)
@@ -17,3 +17,6 @@
 }
 .surfbar_max {
 }
+.surfbar_points {
+       font-weight             : bold;
+}