_________________ Feed a man a fish and you feed him for a day. Teach a man to fish and you feed him for a lifetime.
ScriptHeaven | NukeResources
sebobby2 Private
Joined: Sep 06, 2003
Posts: 38
Location: Altus, Ok = |
Posted:
Sun Sep 14, 2003 10:24 am
is there also a fix so when i go to my forums, it doesnt make the font on the Wars To Come! Block www.cosclan.com/se ?????
_________________ [SE]Bobby - SystemElite.com - #1 Battle Field 1942 Player =)
chatserv General
Joined: Jan 12, 2003
Posts: 3128
Location: Puerto Rico
Posted:
Sun Sep 14, 2003 12:11 pm
make the font on the Wars To Come! Block ???
_________________ Feed a man a fish and you feed him for a day. Teach a man to fish and you feed him for a lifetime.
ScriptHeaven | NukeResources
sebobby2 Private
Joined: Sep 06, 2003
Posts: 38
Location: Altus, Ok = |
Posted:
Sun Sep 14, 2003 1:00 pm
like when you go to Forums, you see the Wars To Come! Block, and it is on the top left, and when you go home it goes back to its regular size, but my question is, when you go to the forums, can i some how make the font stay small, or does it have to get all big like that?
_________________ [SE]Bobby - SystemElite.com - #1 Battle Field 1942 Player =)
chatserv General
Joined: Jan 12, 2003
Posts: 3128
Location: Puerto Rico
Posted:
Sun Sep 14, 2003 1:21 pm
Maybe you could try making it into a file block:
Code:
<?php
if (eregi("block-Wars_To_Come.php", $_SERVER['PHP_SELF'])) {
Header("Location: index.php");
die();
}
$content .= "<br><center><font class=\"content\">";
$content .= "No Next Actions<br>";
$content .= "--------------------------------------------------------------------------------<br>";
$content .= "No Last Actions <br>";
$content .= "</font></center>";
?>
_________________ Feed a man a fish and you feed him for a day. Teach a man to fish and you feed him for a lifetime.
ScriptHeaven | NukeResources
sebobby2 Private
Joined: Sep 06, 2003
Posts: 38
Location: Altus, Ok = |
Posted:
Sun Sep 14, 2003 3:24 pm
well it is all programmed with vwar, how would i do it with this code
Quote:
<?php
if (eregi("block-vWarActions.php",$PHP_SELF)) {
Header("Location: index.php");
die();
}
$vwar_modulename = "vWar";
$numnextactions = "1"; // limit display to x next actions
$numlastactions = "1"; // limit display to x last actions
include("config.php");
global $db;
require("modules/$vwar_modulename/_config.inc.php");
$result = $db->sql_query("SELECT ownnameshort,ownhomepage,waroverlap,longdateformat FROM vwar".$n."_settings");
$ownnameshort=$result[0];
$content = "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" align=\"center\">";
$numnextwars=$db->sql_numrows($db->sql_query("SELECT * FROM vwar WHERE status='0' AND dateline > '".time()."'"));
if($numnextwars>0) {
$result=$db->sql_query("SELECT vwar.gameid, vwar.gametypeid,vwar.matchtypeid,status,dateline,oppnameshort,matchtypename,gametypename,ownnameshort FROM vwar,vwar_matchtype,vwar_gametype,vwar_opponents,vwar_settings WHERE vwar.oppid=vwar_opponents.oppid AND vwar.gametypeid=vwar_gametype.gametypeid AND vwar_matchtype.matchtypeid=vwar.matchtypeid AND status='0' AND dateline > '".time()."' ORDER BY dateline ASC LIMIT 0,$numnextactions");
while(list($gameid, $gametypeid,$matchtypeid,$status,$dateline,$oppname,$matchtype,$gametype,$ownname)=$db->sql_fetchrow($result)) {
$icon = $db->sql_fetchrow($db->sql_query("SELECT gameicon FROM vwar_games WHERE gameid = '$gameid'"));
$content .= "<tr>";
$content .= "<td align=\"center\"><img src=\"modules/$vwar_modulename/images/icons/$icon[0]\" border=\"0\"> ".date("d.m.Y H:i",$dateline)."</td>";
$content .= "</tr>";
$content .= "<tr>";
$content .= "<td align=\"center\"><a href=\"modules.php?name=$vwar_modulename&mod=nextaction\">$ownname vs. $oppname</a></td>";
$content .= "</tr>";
$content .= "<tr>";
$content .= "<td align=\"center\">$matchtype</td>";
$content .= "</tr>";
$content .= "<tr>";
$content .= "<td align=\"center\">$gametype<br><br></td>";
$content .= "</tr>";
}
}else{
$content .= "<tr>";
$content .= "<td align=\"center\">No Next Actions</td>";
$content .= "</tr>";
}
$content .= "</TABLE><HR hight=\"0\" WIDTH=\"100%\">";
$content .= "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" align=\"center\">";
$numlastwars=$db->sql_numrows($db->sql_query("SELECT * FROM vwar WHERE status='1' AND dateline <= '".time()."'"));
if($numlastwars>0) {
$result=$db->sql_query("SELECT vwar.gameid, vwar.warid,vwar.gametypeid,vwar.matchtypeid,vwar.resultbylocations,status,dateline,oppnameshort,matchtypename,gametypename FROM vwar,vwar_matchtype,vwar_gametype,vwar_opponents WHERE vwar.oppid=vwar_opponents.oppid AND vwar.gametypeid=vwar_gametype.gametypeid AND vwar_matchtype.matchtypeid=vwar.matchtypeid AND dateline <= '".time()."' AND status='1' ORDER BY dateline DESC LIMIT 0,$numlastactions");
while($row=$db->sql_fetchrow($result)) {
$icon = $db->sql_fetchrow($db->sql_query("SELECT gameicon FROM vwar_games WHERE gameid = '$row[gameid]'"));
$content .= "<tr>";
$content .= "<td align=\"center\"><img src=\"modules/$vwar_modulename/images/icons/$icon[0]\" border=\"0\"> ".date("d.m.Y H:i",$dateline)."</td>";
// $content .= "<td align=\"center\"><li style=\"list-style: square\"> ".date("d.m.Y H:i",$row[dateline])."</td>";
$content .= "</tr>";
$content .= "<tr>";
$content .= "<td align=\"center\"><a href=\"modules.php?name=$vwar_modulename&mod=wars&action=details&warid==".$row[warid]."\">$ownnameshort vs. $row[oppnameshort]</a></td>";
$content .= "</tr>";
$content .= "<tr>";
$content .= "<td align=\"center\">$row[matchtypename]</td>";
$content .= "</tr>";
$content .= "<tr>";
$content .= "<td align=\"center\">$row[gametypename]</td>";
$content .= "</tr>";
$total[opp]=0;
$total[own]=0;
$result2=$db->sql_query("SELECT ownscore,oppscore FROM vwar_scores WHERE warid='".$row[warid]."'");
while($scores=$db->sql_fetchrow($result2)) {
if($row[resultbylocations]==0) {
$total[own]=$total[own]+$scores[ownscore];
$total[opp]=$total[opp]+$scores[oppscore];
}elseif($row[resultbylocations]==1) {
if($scores[ownscore] < $scores[oppscore]) $total[opp]=$total[opp]+1;
elseif($scores[ownscore] > $scores[oppscore]) $total[own]=$total[own]+1;
}
}
change the font from 12 to 10
Do the same in the forums.css file, although I'm pretty sure the first change should give you the results you're looking for.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum