From b5037e1c335e597853bdaad1e69cfc6785ac766b Mon Sep 17 00:00:00 2001 From: iopietro Date: Sun, 8 Apr 2018 14:50:27 +0200 Subject: [PATCH] Fixed newsboxes Fixed some errors that should have appeared after adding a link Fixed some html formatting errors --- Templates/News/newsbox1.tpl | 46 ++++++++++++++++++------------------- Templates/News/newsbox2.tpl | 42 ++++++++++++++++----------------- Templates/News/newsbox3.tpl | 16 +++++-------- 3 files changed, 50 insertions(+), 54 deletions(-) diff --git a/Templates/News/newsbox1.tpl b/Templates/News/newsbox1.tpl index dd224e3f..be8ffcf6 100644 --- a/Templates/News/newsbox1.tpl +++ b/Templates/News/newsbox1.tpl @@ -1,16 +1,16 @@
newsbox 1
".(time() - (60*10))." AND tribe!=0 AND tribe!=4 AND tribe!=5"); -$top_rank = mysqli_fetch_assoc(mysqli_query($GLOBALS['link'],"SELECT username FROM ".TB_PREFIX."users WHERE ".(INCLUDE_ADMIN ? '' : 'access< 8 AND ')."id > 5 AND tribe<=3 AND tribe > 0 ORDER BY oldrank ASC Limit 1")); +$online = mysqli_query($database->dblink,"SELECT Count(*) as Total FROM " . TB_PREFIX . "users WHERE timestamp > ".(time() - (60*10))." AND tribe!=0 AND tribe!=4 AND tribe!=5"); +$top_rank = mysqli_fetch_assoc(mysqli_query($database->dblink,"SELECT username FROM ".TB_PREFIX."users WHERE ".(INCLUDE_ADMIN ? '' : 'access< 8 AND ')."id > 5 AND tribe<=3 AND tribe > 0 ORDER BY oldrank ASC Limit 1")); ?>
- +
- - + +?> users - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - +
Online Users: Online Users: users
Server Speed: Server Speed:
Troop Speed: xTroop Speed: x
Evasion Speed: Evasion Speed:
Map Size: xMap Size: x
Village Exp.: Village Exp.:
Beginners Prot.: hrsBeginners Prot.: hrs
Medal Interval: = 86400){ echo ''.(MEDALINTERVAL/86400).' Days'; } else if(MEDALINTERVAL < 86400){ echo ''.(MEDALINTERVAL/3600).' Hours'; } ?>Medal Interval: = 86400){ echo ''.(MEDALINTERVAL/86400).' Days'; } else if(MEDALINTERVAL < 86400){ echo ''.(MEDALINTERVAL/3600).' Hours'; } ?>
Server Start: Server Start:
Best Player: :
diff --git a/Templates/News/newsbox2.tpl b/Templates/News/newsbox2.tpl index 2787ee98..ebc56aa6 100644 --- a/Templates/News/newsbox2.tpl +++ b/Templates/News/newsbox2.tpl @@ -1,15 +1,15 @@
newsbox 2
".(time() - (60*10))." AND tribe!=0 AND tribe!=4 AND tribe!=5"); +$online = mysqli_query($database->dblink,"SELECT Count(*) as Total FROM " . TB_PREFIX . "users WHERE timestamp > ".(time() - (60*10))." AND tribe!=0 AND tribe!=4 AND tribe!=5"); ?>
- +
- - + +?> users - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + +
Online Users: Online Users: users
Server Speed: Server Speed:
Troop Speed: xTroop Speed: x
Evasion Speed: Evasion Speed:
Map Size: xMap Size: x
Village Exp.: Village Exp.:
Beginners Prot.: hrsBeginners Prot.: hrs
Medal Interval: = 86400){ echo ''.(MEDALINTERVAL/86400).' Days'; } else if(MEDALINTERVAL < 86400){ echo ''.(MEDALINTERVAL/3600).' Hours'; } ?>Medal Interval: = 86400){ echo ''.(MEDALINTERVAL/86400).' Days'; } else if(MEDALINTERVAL < 86400){ echo ''.(MEDALINTERVAL/3600).' Hours'; } ?>
Server Start: Server Start:
diff --git a/Templates/News/newsbox3.tpl b/Templates/News/newsbox3.tpl index 98a53ad2..3335b51a 100644 --- a/Templates/News/newsbox3.tpl +++ b/Templates/News/newsbox3.tpl @@ -1,15 +1,11 @@
newsbox 2
-
- - -
TravianZ by Shadow

+
+
TravianZ by Shadow

Version: v8.3.3
Major Changes: Cache all major files , rewrite some part of script , catapults fixed. See more in readme file!
Minor Changes: Admin panel updated , config updated, installation system updated
Script Price: FREE!

-
Released by: Shadow
- Visit: RageZone.com

-
Download from Github
- - -
+
Released by: Shadow

+
Visit: RageZone.com

+
Download from Github

+