Skip to content

Commit

Permalink
RSS & Top Kills Cleanup
Browse files Browse the repository at this point in the history
RSS function was broken.  Cleaned it up to get it passing RSS
validation.
Fixed Top Kills page - background was solid black for somea reason.
Updated it to be more clean using the standard table design and
background.
Moved main content down to prevent login button from being covered up.
  • Loading branch information
paintballrefjosh committed Jan 30, 2017
1 parent 3a729a8 commit ad8518c
Show file tree
Hide file tree
Showing 10 changed files with 129 additions and 216 deletions.
5 changes: 4 additions & 1 deletion rss.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,11 @@

$write_file = array();
$write_file[] = "<?xml version=\"1.0\" encoding=\"UTF-8\" ?>";
$write_file[] = "<rss version=\"2.0\">";
$write_file[] = "<rss version=\"2.0\" xmlns:atom=\"http://www.w3.org/2005/Atom\">";
$write_file[] = " <channel>";
$write_file[] = " <title>".$Config->get('site_title')." RSS News Feed</title>";
$write_file[] = " <description>".$Config->get('site_title')." RSS News Feed</description>";
$write_file[] = " <atom:link href=\"http://".(str_replace('rss.php','index.php',($_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'])))."\" rel=\"self\" type=\"application/rss+xml\" />";
$write_file[] = " <link>http://".(str_replace('rss.php','index.php',($_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'])))."</link>";
$write_file[] = " <lastBuildDate>".date(DATE_RFC822_FIXED)."</lastBuildDate>";
$write_file[] = " <language>en-us</language>";
Expand All @@ -48,6 +50,7 @@
{

$write_file[] = " <item>";
$write_file[] = " <guid isPermaLink=\"false\">".$_SERVER['HTTP_HOST']."-".$topic['id']."</guid>";
$write_file[] = " <title>".htmlspecialchars($topic['title'])."</title>";
$write_file[] = " <pubDate>".(date(DATE_RFC822_FIXED, $topic['post_time']))."</pubDate>";
$write_file[] = " <description>Posted by ".htmlspecialchars($topic['posted_by']).": \n".htmlspecialchars($topic['message'])."</description>";
Expand Down
8 changes: 4 additions & 4 deletions templates/Cataclysm_1/css/additional_fp.css
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
div.fpdrop {positon:relative; left:57px; }
#right-bg { background: url('../images/page_rightbg.png') no-repeat; position: absolute; top: -103px; right: -1120px; height: 621px; width: 296px; z-index: -20; }
#droppf {position: absolute; right: -24px; top: 39px; z-index:99; width: 145px;}
#dropps {position: absolute; right: 124px; top: 39px; z-index:99; width: 145px;}
#droppt {position: absolute; right: 272px; top: 39px; z-index:99; width: 145px;}
#droppfo {position: absolute; right: 420px; top: 39px; z-index:99; width: 145px;}
#droppf {position: absolute; right: -24px; top: 62px; z-index:99; width: 145px;}
#dropps {position: absolute; right: 124px; top: 62px; z-index:99; width: 145px;}
#droppt {position: absolute; right: 272px; top: 62px; z-index:99; width: 145px;}
#droppfo {position: absolute; right: 420px; top: 62px; z-index:99; width: 145px;}
#loginbox {position:absolute; z-index:99; left: 561px; top: 3px; width:430px; height:34px;text-align:right;color: #FFAC04; font-size: 12px; font-weight: bold; }
#main { width:827px; background: url('../images/frontpage_bg_rpt.jpg') repeat-y; }
#main-top { height: 46px; width: 100%; background: none; position: relative; top:1px; }
Expand Down
8 changes: 4 additions & 4 deletions templates/Cataclysm_1/css/newhp.css
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@ ul.bullet-list li { list-style: none; background: url('../images/bullet.gif') no


/* === Drop Down Menu's === */
#droppf {position: absolute; right: 32px; top: 39px; z-index:99; width: 145px;}
#dropps {position: absolute; right: 180px; top: 39px; z-index:99; width: 145px;}
#droppt {position: absolute; right: 328px; top: 39px; z-index:99; width: 145px;}
#droppfo {position: absolute; right: 476px; top: 39px; z-index:99; width: 145px;}
#droppf {position: absolute; right: 32px; top: 62px; z-index:99; width: 145px;}
#dropps {position: absolute; right: 180px; top: 62px; z-index:99; width: 145px;}
#droppt {position: absolute; right: 328px; top: 62px; z-index:99; width: 145px;}
#droppfo {position: absolute; right: 476px; top: 62px; z-index:99; width: 145px;}
/* === END Drop Down Menu's === */

#rightbox { background: url(../images/plainbox/plainbox-bg.jpg) repeat-y 0 0; width: 305px; border-top: 1px solid #49402c; border-bottom: 1px solid #49402c; padding-bottom: 5px; padding-top: 5px; position: relative; z-index: 2; margin-top: 15px; margin-left: 6px;}
Expand Down
4 changes: 0 additions & 4 deletions templates/WotLK/css/additional_fp.css
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
div.fpdrop {positon:relative; left:57px; }
#right-bg { background: url('../images/page_rightbg.png') no-repeat; position: absolute; top: -85px; right: -1120px; height: 621px; width: 296px; z-index: -20; }
#droppf {position: absolute; right: -24px; top: 39px; z-index:99; width: 145px;}
#dropps {position: absolute; right: 124px; top: 39px; z-index:99; width: 145px;}
#droppt {position: absolute; right: 272px; top: 39px; z-index:99; width: 145px;}
#droppfo {position: absolute; right: 420px; top: 39px; z-index:99; width: 145px;}
#loginbox {position:absolute; z-index:99; left: 561px; top: 3px; width:430px; height:34px;text-align:right;color: #FFAC04; font-size: 12px; font-weight: bold; }
#main { width:827px; background: url('../images/frontpage_bg_rpt.jpg') repeat-y; }
#main-top { height: 46px; width: 100%; background: none; position: relative; top:1px; }
Expand Down
4 changes: 0 additions & 4 deletions templates/WotLK/css/newhp.css
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,6 @@ ul.bullet-list li { list-style: none; background: url('../images/bullet.gif') no


/* === Drop Down Menu's === */
#droppf {position: absolute; right: 32px; top: 39px; z-index:99; width: 145px;}
#dropps {position: absolute; right: 180px; top: 39px; z-index:99; width: 145px;}
#droppt {position: absolute; right: 328px; top: 39px; z-index:99; width: 145px;}
#droppfo {position: absolute; right: 476px; top: 39px; z-index:99; width: 145px;}
/* === END Drop Down Menu's === */

#rightbox { background: url(../images/plainbox/plainbox-bg.jpg) repeat-y 0 0; width: 305px; border-top: 1px solid #49402c; border-bottom: 1px solid #49402c; padding-bottom: 5px; padding-top: 5px; position: relative; z-index: 2; margin-top: 15px; margin-left: 6px;}
Expand Down
284 changes: 101 additions & 183 deletions templates/blizzlike/server/server.topkills.php
Original file line number Diff line number Diff line change
@@ -1,192 +1,110 @@
<style type="text/css">
#header { COLOR: white; FONT-WEIGHT: bold; FONT-VARIANT: small-caps; TEXT-DECORATION: none; LETTER-SPACING: 4px;}
input.button { background-color: transparent; border-style: none; }
.calendarDayHeading { width: 110px; height: 30px; color: FFFFFF; text-align: center; font-family: tahoma; font-weight: bold; background-image:url('/shared/wow-com/images/basics/raidcalendar/images/day.jpg');}
.calendarCell { width: 110px; height: 100px; vertical-align: top; color: dddddd; font-family: tahoma; font-weight: bold; }
.navigation{
position: absolute;
top:91px;
}
.button{
color:#FFFFFF;
font-size:9px;
letter-spacing:-1px;
}
a.nav:link{
font-family: arial,verdana, sans-serif;
color: CBA300;
font-size: 11px;
font-weight:normal;
}
a.nav:visited{
font-family: arial,verdana, sans-serif;
color: CBA300;
font-size: 11px;
font-weight:normal;
}
a.nav:hover{
font-family: arial,verdana, sans-serif;
color: FFFFFF;
font-size: 11px;
font-weight:normal;
}
a.nav:active{
font-family: arial,verdana, sans-serif;
color: CBA300;
font-size: 11px;
font-weight:normal;
}
a.server { border-style: solid; border-width: 0px 1px 1px 0px; border-color: #D8BF95; font-weight: bold; }
td.serverStatus1 { font-size: 0.8em; border-style: solid; border-width: 0px 1px 1px 0px; border-color: #D8BF95; }
td.serverStatus0 { font-size: 0.8em; border-style: solid; border-width: 0px 1px 1px 0px; border-color: #D8BF95; background-color: #C3AD89; }
td.rankingHeader { color: #C7C7C7; font-size: 10pt; font-family: arial,helvetica,sans-serif; font-weight: bold; background-color: #2E2D2B; border-style: solid; border-width: 1px; border-color: #5D5D5D #5D5D5D #1E1D1C #1E1D1C; padding: 3px;}
</style>
<center>
<div class="blogbody" style="background-image:url('<?php echo $Template['path']; ?>/images/light.jpg');">
<style media="screen" title="currentStyle" type="text/css">
#main { background: url('<?php echo $Template['path']; ?>/images/forum-bg.jpg') repeat-y; }
#main-top { background: none; }
#main-top div { background: none; }
#main-top div div { background: none; }
#main-content-wrapper { background: none; }
#main-content { background: none; }
#main-bottom { background: none; }
#main-bottom div { background: none; }
#main-bottom div div { background: none; }
#content {width: 716px; margin-left: -13px;}
#compcont,
#cnt-wrapper{ padding-right:0px !important; padding-left:0px !important; }
#honorbody select {background-color: #101010; color: #ffd200; font-family: tahoma, Arial,Helvetica,Sans-Serif; font-size: 11pt; font-weight: bold;}
#honorbody a:visited { color: #ffba16; text-decoration: underline; font-weight: bold;}
#honorbody a:hover { color: #ffffff; text-decoration: underline; font-weight: bold;}
#honorbody span { font-family: tahoma, Arial,Helvetica,Sans-Serif; color: #ffffff; font-size: 9pt; }
#honorbody td { font-family: tahoma, Arial,Helvetica,Sans-Serif; color: #ffffff; font-size: 7pt; }
</style>

<table border="0" cellpadding="0" cellspacing="0" width="100%" id="honorbody">
<tbody>
<br />
<!-- Build the top div -->
<?php
builddiv_start(0, "Top Kills");
write_metalborder_header();
?>
<table cellpadding='3' cellspacing='0' width='100%'>
<tbody>
<tr>
<td align='center' colspan='7'><img src="<?php echo $Template['path']; ?>/images/banners/alliance.jpg"></td>
</tr>
<tr>
<td class="rankingHeader" align="center" nowrap="nowrap">#</td>
<td class="rankingHeader" align="center" nowrap="nowrap"><?php echo $lang['name'];?></td>
<td class="rankingHeader" align="center" nowrap="nowrap"><?php echo $lang['race'];?></td>
<td class="rankingHeader" align="center" nowrap="nowrap"><?php echo $lang['class'];?></td>
<td class="rankingHeader" align="center" nowrap="nowrap"><?php echo $lang['level'];?></td>
<td class="rankingHeader" align="center" nowrap="nowrap">PvP Rank</td>
<td class="rankingHeader" align="center" nowrap="nowrap">Honorable Kills</td>
</tr>
<?php
if(isset($allhonor[1]))
{
$pos = 0;
foreach($allhonor[1] as $item)
{
$pos++;
?>
<tr>
<td colspan="3">
<table background="<?php echo $Template['path']; ?>/images/ss-border-top-bg.gif" border="0" cellpadding="0" cellspacing="0" width="100%">
<tbody>
<tr>
<td align="left"><img src="<?php echo $Template['path']; ?>/images/ss-border-top-left.gif" height="14" width="113"></td>
<td align="right"><img src="<?php echo $Template['path']; ?>/images/ss-border-top-right.gif" height="14" width="113"></td>
</tr>
</tbody>
</table>
<td class="serverStatus<?php echo $pos % 2; ?>" align="center"><b style="color: rgb(102, 13, 2);"><?php echo $pos; ?></b></td>
<td class="serverStatus<?php echo $pos % 2; ?>"><b style="color: rgb(35, 67, 3);"><center><?php echo $item['name']; ?></center></b></td>
<td class="serverStatus<?php echo $pos % 2; ?>" align="center"><small style="color: rgb(102, 13, 2);">
<img onmouseover="ddrivetip('<?php echo $item['race']; ?>','#ffffff')" onmouseout="hideddrivetip()"
src="<?php echo $item['race_icon'];?>" height="18" width="18" alt=""/></small>
</td>
</tr>
<tr>
<td background="<?php echo $Template['path']; ?>/images/ss-border-left.gif">
<img src="<?php echo $Template['path']; ?>/images/pixel_002.gif" height="1" width="21">
</td>

<!-- Main Content -->
<td style="padding-left: 6px; padding-right: 6px;" bgcolor="#000000">
<span class="lite">
<p>
<b><font color="#ffe400" size="3"><?php echo "Honor Ranking"; ?></font></b><br/>
<?php echo "Top "; echo $limit; echo " Fighters of each faction"; ?>
</p>
</span>
<table border="0" cellpadding="5" cellspacing="0" width="100%" align="center">
<tr>
<td align="center" width="50%" valign="top">
<img src="<?php echo $Template['path']; ?>/images/banners/alliance2.png">
<div>
<table border="0" cellpadding="2" cellspacing="0" width="100%" align="center">
<tr>
<td align="right" width="20"><b>#</b></td>
<td width="20">Rank</td>
<td width="20">Race</td>
<td width="20">Class</td>
<td>Name</td>
<td align="center"><b>Lvl</b></td>
<td align="center"><b>Kills</b></td>
</tr>
<?php
if(isset($allhonor[1]))
{
$pos = 0;
foreach($allhonor[1] as $item)
{
$pos++;
?>
<tr>
<td align="right" width="20" style="font-size:14px;"><b><?php echo $pos; ?></b></td>
<td width="20" align="center"><img src="<?php echo $item['rank_icon']; ?>" onmouseover="ddrivetip('<?php echo $item['rank']; ?>','#ffffff')"; onmouseout="hideddrivetip()"></td>
<td width="20" align="center"><img src="<?php echo $item['race_icon']; ?>" onmouseover="ddrivetip('<?php echo $item['race']; ?>','#ffffff')"; onmouseout="hideddrivetip()"></td>
<td width="20" align="center"><img src="<?php echo $item['class_icon']; ?>" onmouseover="ddrivetip('<?php echo $item['class']; ?>','#ffffff')"; onmouseout="hideddrivetip()"></td>
<td style="font-size:14px;"><b><?php echo $item['name']; ?></b></td>
<td width="20" align="center" style="font-size:12px;"><b><?php echo $item['level']; ?></b></td>
<td align="center" style="font-size:12px;"><font color="red"><b><?php echo $item['honorable_kills']; ?></b></font></td>
</tr>
<?php
}
}

?>
</table>
</div>
<br/>
</td>
<td align="center" valign="top">
<img src="<?php echo $Template['path']; ?>/images/banners/horde2.png">
<div>
<table border="0" cellpadding="2" cellspacing="0" width="100%" align="center">
<tr>
<td align="right" width="20"><b>#</b></td>
<td width="20">Rank</td>
<td width="20">Race</td>
<td width="20">Class</td>
<td>Name</td>
<td align="center"><b>Lvl</b></td>
<td align="center"><b>Kills</b></td>
</tr>
<?php
if(isset($allhonor[0]))
{
$pos = 0;
foreach($allhonor[0] as $item)
{
$pos++;
?>
<tr>
<td align="right" width="20" style="font-size:14px;"><b><?php echo $pos; ?></b></td>
<td width="20" align="center"><img src="<?php echo $item['rank_icon']; ?>" onmouseover="ddrivetip('<?php echo $item['rank']; ?>','#ffffff')"; onmouseout="hideddrivetip()"></td>
<td width="20" align="center"><img src="<?php echo $item['race_icon']; ?>" onmouseover="ddrivetip('<?php echo $item['race']; ?>','#ffffff')"; onmouseout="hideddrivetip()"></td>
<td width="20" align="center"><img src="<?php echo $item['class_icon']; ?>" onmouseover="ddrivetip('<?php echo $item['class']; ?>','#ffffff')"; onmouseout="hideddrivetip()"></td>
<td style="font-size:14px;"><b><?php echo $item['name']; ?></b></td>
<td width="20" align="center" style="font-size:12px;"><b><?php echo $item['level']; ?></b></td>
<td align="center" style="font-size:12px;"><font color="red"><b><?php echo $item['honorable_kills']; ?></b></font></td>
</tr>
<?php }
}
unset($item,$pos, $allhonor);
?>
</table>
</div>
<br/>
</td>
</tr>
</table>
</td>
<!-- End Main Content -->

<td background="<?php echo $Template['path']; ?>/images/ss-border-right.gif" width="10">
<img src="<?php echo $Template['path']; ?>/images/pixel_002.gif" height="1" width="21">
<td class="serverStatus<?php echo $pos % 2; ?>" align="center"><small style="color: (35, 67, 3);">
<img onmouseover="ddrivetip('<?php echo $item['class']; ?>','#ffffff')" onmouseout="hideddrivetip()"
src="<?php echo $item['class_icon'];?>" height="18" width="18" alt=""/></small>
</td>
<td class="serverStatus<?php echo $pos % 2; ?>" align="center"><b style="color: rgb(102, 13, 2);"><?php echo $item['level']; ?></b></td>
<td class="serverStatus<?php echo $pos % 2; ?>" align="center"><img src="<?php echo $item['rank_icon']; ?>" onmouseover="ddrivetip('<?php echo $item['rank']; ?>','#ffffff')"; onmouseout="hideddrivetip()"></td>
<td class="serverStatus<?php echo $pos % 2; ?>" align="center"><b style="color: rgb(35, 67, 3);"><?php echo $item['honorable_kills']; ?></b></td>
</tr>
<?php
}
}
?>
</tbody>
</table>
<?php
write_metalborder_footer();
?>
<br />
<?php
write_metalborder_header();
?>
<table cellpadding='3' cellspacing='0' width='100%'>
<tbody>
<tr>
<td align='center' colspan='7'><img src="<?php echo $Template['path']; ?>/images/banners/horde.jpg"></td>
</tr>
<tr>
<td class="rankingHeader" align="center" nowrap="nowrap">#</td>
<td class="rankingHeader" align="center" nowrap="nowrap"><?php echo $lang['name'];?></td>
<td class="rankingHeader" align="center" nowrap="nowrap"><?php echo $lang['race'];?></td>
<td class="rankingHeader" align="center" nowrap="nowrap"><?php echo $lang['class'];?></td>
<td class="rankingHeader" align="center" nowrap="nowrap"><?php echo $lang['level'];?></td>
<td class="rankingHeader" align="center" nowrap="nowrap">PvP Rank</td>
<td class="rankingHeader" align="center" nowrap="nowrap">Honorable Kills</td>
</tr>
<?php
if(isset($allhonor[0]))
{
$pos = 0;
foreach($allhonor[0] as $item)
{
$pos++;
?>
<tr>
<td colspan="3">
<table background="<?php echo $Template['path']; ?>/images/ss-border-bot-bg.gif" border="0" cellpadding="0" cellspacing="0" width="100%">
<tbody>
<tr>
<td valign="top"></td>
<td align="center"><br/><br/></td>
<td align="right" valign="top"></td>
</tr>
</tbody>
</table>
<td class="serverStatus<?php echo $pos % 2; ?>" align="center"><b style="color: rgb(102, 13, 2);"><?php echo $pos; ?></b></td>
<td class="serverStatus<?php echo $pos % 2; ?>"><b style="color: rgb(35, 67, 3);"><center><?php echo $item['name']; ?></center></b></td>
<td class="serverStatus<?php echo $pos % 2; ?>" align="center"><small style="color: rgb(102, 13, 2);">
<img onmouseover="ddrivetip('<?php echo $item['race']; ?>','#ffffff')" onmouseout="hideddrivetip()"
src="<?php echo $item['race_icon'];?>" height="18" width="18" alt=""/></small>
</td>
<td class="serverStatus<?php echo $pos % 2; ?>" align="center"><small style="color: (35, 67, 3);">
<img onmouseover="ddrivetip('<?php echo $item['class']; ?>','#ffffff')" onmouseout="hideddrivetip()"
src="<?php echo $item['class_icon'];?>" height="18" width="18" alt=""/></small>
</td>
<td class="serverStatus<?php echo $pos % 2;; ?>" align="center"><b style="color: rgb(102, 13, 2);"><?php echo $item['level']; ?></b></td>
<td class="serverStatus<?php echo $pos % 2;; ?>" align="center"><img src="<?php echo $item['rank_icon']; ?>" onmouseover="ddrivetip('<?php echo $item['rank']; ?>','#ffffff')"; onmouseout="hideddrivetip()"></td>
<td class="serverStatus<?php echo $pos % 2;; ?>" align="center"><b style="color: rgb(35, 67, 3);"><?php echo $item['honorable_kills']; ?></b></td>
</tr>
</tbody>
</table>
</center>
<?php
}
}
?>
</tbody>
</table>
<?php
write_metalborder_footer();

builddiv_end();
?>
8 changes: 4 additions & 4 deletions templates/illidan/css/additional_fp.css
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
div.fpdrop {positon:relative; left:57px; }
#droppf {position: absolute; right: -24px; top: 39px; z-index:99; width: 145px;}
#dropps {position: absolute; right: 124px; top: 39px; z-index:99; width: 145px;}
#droppt {position: absolute; right: 272px; top: 39px; z-index:99; width: 145px;}
#droppfo {position: absolute; right: 420px; top: 39px; z-index:99; width: 145px;}
#droppf {position: absolute; right: -24px; top: 62px; z-index:99; width: 145px;}
#dropps {position: absolute; right: 124px; top: 62px; z-index:99; width: 145px;}
#droppt {position: absolute; right: 272px; top: 62px; z-index:99; width: 145px;}
#droppfo {position: absolute; right: 420px; top: 62px; z-index:99; width: 145px;}
#loginbox {position:absolute; z-index:99; left: 561px; top: 3px; width:430px; height:34px;text-align:right;color: #FFAC04; font-size: 12px; font-weight: bold; }
#main { width:827px; background: url('../images/hp09_bg_rpt.jpg') repeat-y; }
#main-top { height: 46px; width: 100%; background: none; position: relative; top:1px; }
Expand Down
Loading

0 comments on commit ad8518c

Please sign in to comment.