Jump to content

slapdashgrim

Members
  • Posts

    51
  • Joined

  • Last visited

    Never

Posts posted by slapdashgrim

  1. please help im trying to make a quick template but im stuck becuase in firefox the NAV bar's background image is at the top of the page.

     

    this is only my second layout that is tableless so its sorta new to me.

     

    it looks fine in IE tho (thats a first)

     

    here is a link to the page http://grimhq.com/slapdash/bluebusiness

     

    here is the CSS

    /*
    Author: Slapdashwebdesign.info
    Created: 10/29/08
    For: Style sheet for Blue Business template
    Copyright Slapdash Webdesign 2008
    */
    body {font: normal normal normal 13px arial; margin: 0; padding: 0; Background-color:#FFF; color:#565353;}
    
    #con_left h1, #con_right h1{text-align:right;background: #BBBBBB URL('images/headingbg.jpg') no-repeat right;width:100%;height:27px;padding:0 0 0 18px;border-bottom:1px solid #222;margin: 0;font: normal normal 600 17.5px arial;color:#444;}
    p{margin: 0 0px 1em 10px;}
    
    a:link,
    a:active,
    a:visited {color:#79BCFF;}
    a:hover {color:#3D3D3D;}
    
    img{border:0;}
    
    #loginboxtop {margin: 17px 0 auto 0; color:#8f8f90;}
    .input {font-size:15px; background-color:#e6f0f8;border:1px solid #b8b7b7; color:#cbcbcb;}
    .input:focus {border:1px solid #40759d; color:#adadad;}
    .submit {font-size:15px; background-color:#7491a8;border:1px solid #6b6a6a; color:#FFF;}
    
    #wrap {text-align: left; width:900px;}
    
    #headimg {width:900px; margin:0; padding:0;}
    
    #topbar {width:900px;background-color:#FFF;}
    #topbarleft {height:60px; width:447px; float:left; padding:1px 0px 1px 3px;}
    #topbarright {height:60px;width:443px; text-align:right; float:right; padding:1px 7px 1px 0px;}
    
    #nav {background-image:url("images/navbg.jpg"); background-repeat:repeat-x; background-position:20% 0%;height:41px; width:900px;}
    #nav ul {margin: 0 0 0 0;}
    #nav ul li {display: inline; height:41px;}
    #nav ul li a {padding:10px 1em 0px 1em; height:31px; font-size:18px; color:#E0E0E0; text-decoration: none; float: left;}
    #nav ul li a:hover{color:#FFF; background-image:url('images/monavbg.jpg'); background-repeat:no-repeat;background-position:top center;}
    #current{color:#546349; background-image:url('images/curnavbg.jpg'); background-repeat:no-repeat; background-position:top center;}
    
    .contentbg {}
    #content {min-height:37.5em;padding:0px 0px 5px 0px; width:900px;}
    #con_left {width:257.5px; float: left; margin: 0; padding-top: 5px; clear: both;}
    #con_right {min-height:37.5em;width:519px; margin-left: 328.5px; border-left: 1px solid gray; padding-top: 5px;}
    
    .thumb{margin:1px;}
    
    #footer {clear: both; padding-left:3px; width:897px; height:41px;color:#FFF;background-image:url("images/navbg.jpg");}
    

     

     

    and i have not worked on the content at all so dont judge me lol!

  2. this should be pretty simple.

    i have some code i did not write that was half written by image ready and half by another programer

    and i am having trouble understanding it.

    if you view the page in IE it looks fine but not in FF

    http://salvationsource.com/source/index.php

    i need to make the title boxes in the content center over each box.

    any help.

    this might be a CSS problem but i posted it here becuase the html is what is confusing me.

    it is REALLY messy and i am having trouble making sense of it.

    click view source or look at this

    <html>
    <head>
    <title>SalvationSource.com</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <link rel="stylesheet" type="text/css" href="ss2.css">
    <script type="text/javascript" src="ss2.js"></script>
    </head>
    <body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
    <!-- ImageReady Slices (ss2.psd) -->
    <table id="Table_01" width="951" height="100%" border="0" cellpadding="0" cellspacing="0" align="center" class="blackborderleft">
    <tr>
    	<td colspan="22" width="950" height="20" class="header" valign="center">
            <div align="left" id="digitalclock"> 
    
    	 <script language="javascript">
    function calctime()
    {
    var currenttime = new Date();
    var day = currenttime.getDay();
    var hours = currenttime.getHours();
    var minutes = currenttime.getMinutes();
    var seconds = currenttime.getSeconds();
    var day = currenttime.getDay();
    var month = currenttime.getMonth();
    var weekday= currenttime.getDate();
    var year= currenttime.getYear();
    
    if (year < 2000)
    year = year + 1900;
    
    hours = currenttime.getHours();
    if (hours >= 12) {
    hours = (hours == 12) ? 12 : hours - 12; timesuffix = " PM";
    }
    else {
    hours = (hours == 0) ? 12 : hours; timesuffix = " AM";
    }
    if (minutes < 10)
    {
    minutes = "0" + minutes;
    }
    if (seconds < 10)
    {
    seconds = "0" + seconds;
    };
    arday = new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday")
    armonth = new Array("January ","February ","March ","April ","May ","June ","July ","August ","September ", "October ","November ","December ")
    ardate = new Array("0th","1st","2nd","3rd","4th","5th","6th","7th","8th","9th","10th","11th","12th","13th","14th","15th","16th","17th","18th","19th","20th","21st","22nd","23rd","24th","25th","26th","27th","28th","29th","30th","31st");
    var clocklocation = document.getElementById('digitalclock');
    clocklocation.innerHTML = hours + ":" + minutes + ":" + seconds + " " + timesuffix + ", " + arday[day] +", " + armonth[month] +" "+ardate[weekday] + ", " + year;
    setTimeout("calctime()", 1000);
    }
    calctime();
    
    </script></div>
    <div align="right"><a href="#">Register</a> | <a href="#">Administration</a></div>			</td>
    	<td bgcolor="#000000">
    		<img src="images/spacer.gif" width="1" height="20" alt=""></td>
    </tr>
    <tr>
    	<td colspan="18" width="406" height="3" valign="bottom">	
            <table width="406" height="2" cellpadding="0" cellspacing="0" border="0" class="blackbordertop">
              <tr><td width="406" height="2"></td></tr></table>      	</td>
    	<td rowspan="9" background="images/banner_curve.gif" width="89" height="135">			</td>
    	<td rowspan="2" width="3" height="12" valign="bottom">	
            <table width="3" height="11" cellpadding="0" cellspacing="0" border="0" class="blackbordertop">
              <tr><td width="3" height="11"></td></tr></table>        </td>
    	<td colspan="2" rowspan="2" width="452" height="12" valign="bottom">
            <table cellpadding="0" cellspacing="0" width="452" height="11" border="0" class="blackbordertop">
              <tr><td width="452" height="11"></td></tr></table></td>
    	<td bgcolor="#000000">
    		<img src="images/spacer.gif" width="1" height="3" alt=""></td>
    </tr>
    <tr>
    	<td rowspan="3" width="10" height="31"></td>
    	<td rowspan="3">
    		<span onMouseOver="ropen('roll1'), mopen('menu1')" onMouseOut="rclosetime(), mclosetime()"><div id="roll1" style="position:absolute; visibility:hidden"><a href="index.html"><img src="images/homeB.gif" width="28" height="31" alt="home" border="0"></a></div><a href="index.html"><img src="images/home.gif" width="28" height="31" alt="home" border="0"></a></span></td>
    	<td rowspan="3" width="13" height="31" alt="">			</td>
    	<td colspan="2" rowspan="3"><span onMouseOver="ropen('roll2'), mopen('menub')" onMouseOut="rclosetime(), mclosetime()"><div id="roll2" style="position:absolute; visibility:hidden"><a href="#"><img src="images/bibleB.gif" width="44" height="31" alt="bible" border="0"></a></div><a href="#"><img src="images/bible.gif" width="44" height="31" alt="bible" border="0"></a></span></td>
      <td rowspan="3" width="29" height="31">			</td>
    	<td rowspan="3">
    		<span onMouseOver="ropen('roll3'), mopen('menu2')" onMouseOut="rclosetime(), mclosetime()"><div id="roll3" style="position:absolute; visibility:hidden"><a href="#"><img src="images/communityB.gif" width="24" height="31" alt="community" border="0"></a></div><a href="#"><img src="images/community.gif" width="24" height="31" alt="community" border="0"></a></span></td>
    	<td rowspan="3" width="43" height="31">			</td>
    	<td rowspan="3">
    		<span onMouseOver="ropen('roll4'), mopen('menu3')" onMouseOut="rclosetime(), mclosetime()"><div id="roll4" style="position:absolute; visibility:hidden"><a href="http://www.salvationsource.com/forums/"><img src="images/forumsB.gif" width="30" height="31" alt="forums" border="0"></a></div><a href="http://www.salvationsource.com/forums/"><img src="images/forums.gif" width="30" height="31" alt="forums" border="0"></a></span></td>
    	<td rowspan="3" width="32" height="31">			</td>
    	<td rowspan="3">
    		<span onMouseOver="ropen('roll5'), mopen('menu4')" onMouseOut="rclosetime(), mclosetime()"><div id="roll5" style="position:absolute; visibility:hidden"><a href="#"><img src="images/databaseB.gif" width="36" height="31" alt="database" border="0"></a></div><a href="#"><img src="images/database.gif" width="36" height="31" alt="database" border="0"></a></span></td>
    	<td rowspan="3" width="28" height="31">			</td>
    	<td rowspan="3">
    		<span onMouseOver="ropen('roll6'), mopen('menu5')" onMouseOut="rclosetime(), mclosetime()"><div id="roll6" style="position:absolute; visibility:hidden"><a href="#"><img src="images/radioB.gif" width="31" height="31" alt="radio" border="0"></a></div><a href="#"><img src="images/radio.gif" width="31" height="31" alt="radio" border="0"></a></span></td>
    	<td colspan="3" rowspan="3" width="19" height="31">			</td>
    	<td rowspan="3">
    		<span onMouseOver="ropen('roll7'), mopen('menu6')" onMouseOut="rclosetime(), mclosetime()"><div id="roll7" style="position:absolute; visibility:hidden"><a href="#"><img src="images/moreB.gif" width="25" height="31" alt="more" border="0"></a></div><a href="#"><img src="images/more.gif" width="25" height="31" alt="more" border="0"></a></span></td>
    	<td rowspan="3" width="14" height="31">			</td>
    	<td bgcolor="#000000">
    		<img src="images/spacer.gif" width="1" height="9" alt=""></td>
    </tr>
    <tr>
    	<td background="images/ss2_21.gif" width="3" height="9">			</td>
    	<td colspan="2" width="452" height="9" valign="center">
            <table width="452" height="7" cellpadding="0" cellspacing="0" border="0" class="bannerstripe1"><tr><td width="452" height="7"></td></tr></table>			</td>
    	<td bgcolor="#000000">
    		<img src="images/spacer.gif" width="1" height="9" alt=""></td>
    </tr>
    <tr>
    	<td colspan="2" rowspan="4" background="images/verse.gif" width="354" height="95">			</td>
    	<td rowspan="4" background="images/girl.gif" width="101" height="95">			</td>
    	<td bgcolor="#000000">
    		<img src="images/spacer.gif" width="1" height="13" alt=""></td>
    </tr>
    <tr>
    	<td colspan="18" width="406" height="19" class="eatme"><table cellpadding="0" cellspacing="0" border="0" width="406" height="19"><tr>
            <td rowspan="2" width="6" height="19">			</td>
    	<td  valign="top">
    		<ul id="list1">
               	  <li><table cellpadding="0" cellspacing="0" border="0"><tr><td valign="top" align="left"><span onMouseOver="mopen('menu1'), ropen('roll1')" onMouseOut="mclosetime(), rclosetime()"><a href="index.html"><img src="images/home_text.gif" width="39" height="16" alt="home" border="0"></a></span></td>
                	<td></td></tr>
                    <tr><td valign="top" align="left" colspan="2">
                    		<div id="menu1" onMouseOver="mcancelclosetime(), rcancelclosetime()" onMouseOut="mclosetime(), rclosetime()" class="upmenu">
    						 <table class="menu" width="177" cellpadding="0" cellspacing="0" border="0">
    
                                    <tr><td class="menucenter" align="center">
                                    
                                <a href="#" class="menulink">About Us</a>
                                <a href="#" class="menulink">Contact Us</a>
                               	<a href="#" class="menulink">Staff</a>
                                <a href="#" class="menulink">What We Believe</a>
                               	<a class="menulink" href="#">Make SalvationSource Your Homepage</a>
                                    
                                   
    							</td></tr>
                              </table>
    					</div>
                    </td></tr></table>
                	</li>           
            </ul>        </td>
    	<td  rowspan="2" width="12" height="19">			</td>
    	<td  valign="top">
    		<ul id="list2">
                	<li><table cellpadding="0" cellspacing="0" border="0"><tr><td valign="top" align="left"><span onMouseOver="ropen('roll2'), mopen('menub')" onMouseOut="rclosetime(), mclosetime()"><a href="#"><img src="images/bible_text.gif" width="32" height="16" alt="bible" border="0"></a></span></td><td></td></tr> <tr><td valign="top" align="left" colspan="2">
                    
                    <div id="menub" onMouseOver="mcancelclosetime(), rcancelclosetime()" onMouseOut="mclosetime(), rclosetime()" class="upmenu">
    						 <table class="menu" width="177" cellpadding="0" cellspacing="0" border="0">
    
                                    <tr><td class="menucenter" align="center">
                                    <a href="#" class="menulink">New International Version</a>
                                <a href="#" class="menulink">New King James Version</a>
                                                           
    							</td></tr>
                              </table>
    					</div>
                    
                    </td></tr></table></li>   </ul>                </td>
    	<td  rowspan="2" width="14" height="19">			</td>
    	<td  valign="top"><ul id="list3">
                	<li><table cellpadding="0" cellspacing="0" border="0"><tr><td valign="top" align="left"><span onMouseOver="ropen('roll3'), mopen('menu2')" onMouseOut="rclosetime(), mclosetime()"><a href="#"><img src="images/community_text.gif" width="67" height="16" alt="community" border="0"></a></span></td>
                	<td></td></tr>
                    <tr><td valign="top" align="left" colspan="2">
                    		<div id="menu2" onMouseOver="mcancelclosetime(), rcancelclosetime()" onMouseOut="mclosetime(), rclosetime()" class="upmenu">
    						<table class="menu" width="177" cellpadding="0" cellspacing="0" border="0">
    
                                    <tr><td class="menucenter" align="center">
                                    
                                <a href="#" class="menulink">Donate</a>
                                <a href="#" class="menulink">Praise Reports</a>
                               	<a href="#" class="menulink">Prayer Request</a>
                                <a href="#" class="menulink">Search</a>
                                  <a href="#" class="menulink">Surveys</a>
                               	<a href="#" class="menulink">Testimonies</a>
                                    
                                   
    							</td></tr>
                                  </table>
    					</div>
                    </td></tr></table>
               	  </li>   </ul>            </td>
    	<td rowspan="2" width="15" height="19">			</td>
    	<td valign="top"><ul id="list4">
                	<li><table cellpadding="0" cellspacing="0" border="0"><tr><td valign="top" align="left"><span onMouseOver="ropen('roll4'), mopen('menu3')" onMouseOut="rclosetime(), mclosetime()"><a href="http://www.salvationsource.com/forums/"><img src="images/forums_text.gif" width="44" height="16" alt="forum" border="0"></a></span></td>
                	<td></td></tr>
                    <tr><td valign="top" align="left" colspan="2">
                    		<div id="menu3" onMouseOver="mcancelclosetime(), rcancelclosetime()" onMouseOut="mclosetime(), rclosetime()" class="upmenu">
    						<table class="menu" width="177" cellpadding="0" cellspacing="0" border="0">
    
                                    <tr><td class="menucenter" align="center">
                                    <a href="http://salvationsource.com/forums/viewforum.php?f=3&sid=cc34cdee86a27e424241557eb5520db5" class="menulink">Forum Rules</a>
                                    <a href="http://salvationsource.com/forums/viewforum.php?f=4&sid=cc34cdee86a27e424241557eb5520db5" class="menulink">General</a>
    <a href="http://salvationsource.com/forums/viewforum.php?f=6&sid=cc34cdee86a27e424241557eb5520db5" class="menulink">Religion</a>
    <a href="http://salvationsource.com/forums/viewforum.php?f=7&sid=cc34cdee86a27e424241557eb5520db5" class="menulink">Emotional Distress</a>
    <a href="http://salvationsource.com/forums/viewforum.php?f=8&sid=cc34cdee86a27e424241557eb5520db5" class="menulink">Website</a>
                               <a href="http://www.salvationsource.com/forums/ucp.php?mode=register&sid=2f9abcaf5823b2c413a657b17cb25b14" class="menulink">Register</a>
    
                                    
                                   
    							</td></tr>
                              </table>
    					</div>
                    </td></tr></table>
           	  </li>   </ul>            </td>
    	<td rowspan="2" width="15" height="19">			</td>
    	<td  valign="top"><ul id="list5">
                	<li><table cellpadding="0" cellspacing="0" border="0"><tr><td valign="top" align="left">
    		<span onMouseOver="ropen('roll5'), mopen('menu4')" onMouseOut="rclosetime(), mclosetime()">
    		<a href="#"><img src="images/database_text.gif" width="56" height="16" alt="database" border="0"></a></span></td><td></td></tr>
                    <tr><td valign="top" align="left" colspan="2">
                    		<div id="menu4" onMouseOver="mcancelclosetime(), rcancelclosetime()" onMouseOut="mclosetime(), rclosetime()" class="upmenu">
    						<table class="menu" width="177" cellpadding="0" cellspacing="0" border="0">
    
                                    <tr><td class="menucenter" align="center">
                                    
                               
    								<a href="#" class="menulink">Downloads</a>
                               			<a href="#" class="menulink">Games</a>
                             
                                   
    							</td></tr>
                              </table>
    					</div>
              </td></tr></table></li>   </ul>                </td>
    	<td rowspan="2"  width="15" height="19">			</td>
    	<td  valign="top"><ul id="list6">
                	<li><table cellpadding="0" cellspacing="0" border="0"><tr><td valign="top" align="left">
    		<span onMouseOver="ropen('roll6'), mopen('menu5')" onMouseOut="rclosetime(), mclosetime()">
    		<a href="#"><img src="images/radio_text.gif" width="35" height="16" alt="radio" border="0"></a></span></td><td></td></tr>
                    <tr><td valign="top" align="left" colspan="2">
                    		<div id="menu5" onMouseOver="mcancelclosetime(), rcancelclosetime()" onMouseOut="mclosetime(), rclosetime()" class="upmenu">
    						<table class="menu" width="177" cellpadding="0" cellspacing="0" border="0">
    
                                    <tr><td class="menucenter" align="center">
                                    
                                <a href="#" class="menulink">Live Christian Radio</a>
    								   <a href="#" class="menulink">Request Line</a>
                                <a href="#" class="menulink">DJ of The Week</a>
                               	<a href="#" class="menulink">Schedule </a>
                                <a href="#" class="menulink">Jobs</a>
                                   
    							</td></tr>
                                    </table>
    					</div>
                    </td></tr></table></li>   </ul>                </td>
               
    	<td  rowspan="2" width="13" height="19">			</td>
    	<td valign="top"><ul id="list7">
                	<li><table cellpadding="0" cellspacing="0" border="0"><tr><td valign="top" align="left">
    		<span onMouseOver="ropen('roll7'), mopen('menu6')" onMouseOut="rclosetime(), mclosetime()">
    		<a href="#"><img src="images/more_text.gif" width="32" height="16" alt="radio" border="0"></a></span></td><td></td></tr>
                    <tr><td valign="top" align="left" colspan="2">
                    		<div id="menu6" onMouseOver="mcancelclosetime(), rcancelclosetime()" onMouseOut="mclosetime(), rclosetime()" class="upmenu">
    						<table class="menu" width="177" cellpadding="0" cellspacing="0" border="0">
    
                                    <tr><td class="menucenter" align="center">
                                    
                               
    							<a href="#" class="menulink">Frequently Asked Questions</a>
                                <a href="#" class="menulink">Link To Us</a>
                           		<a href="#" class="menulink">Disclaimer</a>
                             
                                   
    							</td></tr>
                              </table>
    					</div>
              </td></tr></table></li>   </ul>                </td>
    	<td rowspan="2" width="10" height="19">			</td>
    	<td>
    		<img src="images/spacer.gif" width="1" height="16" alt=""></td>
    </tr>
    <tr>
    	<td  width="39" height="3">			</td>
    	<td  width="32" height="3">			</td>
    	<td width="67" height="3">			</td>
    	<td  width="44" height="3">			</td>
    	<td  width="56" height="3">			</td>
    	<td  width="35" height="3">			</td>
    	<td  width="32" height="3">			</td>
    	<td>
    		<img src="images/spacer.gif" width="1" height="3" alt=""></td></tr></table>        			</td>
    	<td bgcolor="#000000">
    		<img src="images/spacer.gif" width="1" height="19" alt=""></td>
    </tr>
    <tr>
    	<td colspan="14" width="359" height="9">
            <table width="359" height="7" cellpadding="0" cellspacing="0" class="bannerstripe1" border="0">
              <tr><td width="359" height="7"></td></tr></table>	  </td>
    	<td colspan="4" background="images/ss2_27.gif" width="47" height="9">			</td>
    	<td bgcolor="#000000">
    		<img src="images/spacer.gif" width="1" height="9" alt=""></td>
    </tr>
    <tr>
    	<td colspan="4" rowspan="4" background="images/boy.gif" width="73" height="95">			</td>
    	<td colspan="14" rowspan="4"><a href="index.html"><img src="images/logo.gif" width="333" height="95" alt="SalvationSource.com" border="0"></a></td>
    <td bgcolor="#000000">
    		<img src="images/spacer.gif" width="1" height="54" alt=""></td>
    </tr>
    <tr>
    	<td colspan="3" width="455" height="9">
               <table width="455" height="7" cellpadding="0" cellspacing="0" class="bannerstripe2">
              <tr><td width="455" height="7"></td></tr></table>			</td>
    	<td bgcolor="#000000">
    		<img src="images/spacer.gif" width="1" height="9" alt=""></td>
    </tr>
    <tr>
    	<td colspan="3" width="455" height="10">			</td>
    	<td bgcolor="#000000">
    		<img src="images/spacer.gif" width="1" height="10" alt=""></td>
    </tr>
    <tr>
    	<td colspan="4" width="544" height="22">	
             <table width="544" height="22" cellpadding="0" cellspacing="0" border="0"><tr><td width="54" height="22" background="images/login_pane.gif" valign="top"><div class="login" align="left"><table cellpadding="0" cellspacing="0" border="0"><tr><td style="padding-left:2.90em;padding-top:0.24em;">Username:</td></tr></table></div></td><td width="490" height="22" background="images/login_pane_repeat.gif" valign="top"><div class="login" align="right" id="loginpane"><table cellpadding="0" cellspacing="0" border="0"><tr><td width="120" valign="top"><input class="textbox" name="username" type="text" size="24" maxlength="35"></td><td width="55">Password:</td><td width="118" valign="top"><input class="textbox" name="password" type="password" size="24"></td><td width="25" valign="top"><input name="Remember Me" type="checkbox" value=""></td><td width="76"> Remember Me</td><td width="60"><a href="#"><img src="images/login.gif" border="0" hspace="8"></a></td></tr></table></div>
             </td></tr></table>			</td>	
            
       </td>
      <td bgcolor="#000000">
    		<img src="images/spacer.gif" width="1" height="22" alt=""></td>
    </tr>
    <tr>
    	<td colspan="15" width="361" height="9">
             <table width="361" height="7" cellpadding="0" cellspacing="0" class="bannerstripe3">
              <tr><td width="361" height="7"></td></tr></table>			</td>
    	<td colspan="3" background="images/ss2_34.gif" width="45" height="9">			</td>
    	<td colspan="4" width="544" height="9" valign="bottom"> 
            <table width="544" height="8" cellpadding="0" cellspacing="0" class="blackbordertop">
              <tr><td width="544" height="8"></td></tr></table>      	</td>
    	<td bgcolor="#000000">
    		<img src="images/spacer.gif" width="1" height="9" alt=""></td>
    </tr>
    <tr>
    	<td colspan="22" width="950" height="100%" valign="top">		
            <table class="content" cellpadding="0" cellspacing="10" width="950" heigh="100%" border="0">
            <tr><td width="425" height="3" valign="bottom">
              <div width="425" height="18" class="floatbox">
                <table width="425" height="18" cellpadding="0" cellspacing="0" border="0" align="center">
                  <tr valign="top">
                    <td width="144" height="18" class="minibox" align="center"><table width="132" height="16" cellpadding="0" cellspacing="0" border="0" class="minibox">
                      <tr>
                        <td width="132" height="16" align="center" valign="middle">This Week's Verse</td>
                      </tr>
                    </table></td>
                    <td width="125" height="18" align="center"><table width="123" height="16" cellpadding="0" cellspacing="0" border="0" class="minibox">
                      <tr>
                        <td width="123" height="16" align="center" valign="middle">2 Corinthians 4:16-18</td>
                      </tr>
                    </table></td>
                    <td width="144" height="18" class="minibox" align="center"><table width="132" height="16" cellpadding="0" cellspacing="0" border="0" class="minibox">
                      <tr>
                        <td width="132" height="16" align="center" valign="middle"><a href="#">Previous</a></td>
                      </tr>
                    </table></td>
                  </tr>
                </table>
                </div></td>
                <td width="494" height="3" valign="bottom">
              <div width="494" height="18" class="floatbox" align="center">
                <table width="494" height="18" cellpadding="0" cellspacing="0" border="0">
                  <tr valign="top">
                    <td width="158" height="18" class="minibox" align="center"><table width="156" height="16" cellpadding="0" cellspacing="0" border="0" class="minibox">
                      <tr>
                        <td width="156" height="16" align="center" valign="middle">Tuesday, July 22, 2008</td>
                      </tr>
                    </table></td>
                    <td width="148" height="18" align="center"><table width="146" height="16" cellpadding="0" cellspacing="0" border="0" class="minibox">
                      <tr>
                        <td width="146" height="16" align="center" valign="middle">Daily News</td>
                      </tr>
                    </table></td>
                    <td width="158" height="18" class="minibox" align="center"><table width="156" height="16" cellpadding="0" cellspacing="0" border="0" class="minibox">
                      <tr>
                        <td width="156" height="16" align="center" valign="middle"><a href="#">Posted By BrotherJVK</a></td>
                      </tr>
                    </table></td>
                  </tr>
                </table>
                </div></td>
                </tr>
            <tr><td width="425" height="227" class="box">
            <table cellpadding="0" cellspacing="0" border="0" width="425" height="227" class="box"><tr>
            	<td width="425" height="227" valign="top" class="contentbox">
    	<?php include'verse.php';?>
               </td>
            </tr></table>
            </td><td width="494" height="100%" rowspan="7" valign="top" class="box">
            <table cellpadding="0" cellspacing="0" border="0" width="494" height="227" class="box"><tr>
            	<td width="494" height="227" valign="top" class="contentbox">       
                <?php include'news.php';?>                 </td></tr></table>
            </td></tr>
             <tr><td width="425" height="3" valign="bottom">
              <div width="425" height="18" class="floatbox">
                <table width="425" height="18" cellpadding="0" cellspacing="0" border="0" align="center">
                  <tr valign="top">
                    <td width="144" height="18" class="minibox" align="center"><table width="132" height="16" cellpadding="0" cellspacing="0" border="0" class="minibox">
                      <tr>
                        <td width="132" height="16" align="center" valign="middle">This Week's Words</td>
                      </tr>
                    </table></td>
                    <td width="125" height="18" align="center"><table width="123" height="16" cellpadding="0" cellspacing="0" border="0" class="minibox">
                      <tr>
                        <td width="123" height="16" align="center" valign="middle">John 15:5(KJV)</td>
                      </tr>
                    </table></td>
                    <td width="144" height="18" class="minibox" align="center"><table width="132" height="16" cellpadding="0" cellspacing="0" border="0" class="minibox">
                      <tr>
                        <td width="132" height="16" align="center" valign="middle"><a href="#">Previous</a></td>
                      </tr>
                    </table></td>
                  </tr>
                </table>
                </div></td></tr>
            
            
            <tr>
    
         	<td width="425" height="227" class="box">
            <table cellpadding="0" cellspacing="0" border="0" width="425" height="227" class="box"><tr>
            	<td width="425" height="227" valign="top" class="contentbox"><?php include'words.php';?> </td>
            </tr></table>        </td></tr>
            <tr><td width="425" height="3" valign="bottom">
              <div width="425" height="18" class="floatbox">
                <table width="425" height="18" cellpadding="0" cellspacing="0" border="0" align="center">
                  <tr valign="top">
                    <td width="144" height="18" class="minibox" align="center"><table width="132" height="16" cellpadding="0" cellspacing="0" border="0" class="minibox">
                      <tr>
                        <td width="132" height="16" align="center" valign="middle">SalvationSource.com</td>
                      </tr>
                    </table></td>
                    <td width="125" height="18" align="center"><table width="123" height="16" cellpadding="0" cellspacing="0" border="0" class="minibox">
                      <tr>
                        <td width="123" height="16" align="center" valign="middle">Live Christian Radio</td>
                      </tr>
                    </table></td>
                    <td width="144" height="18" class="minibox" align="center"><table width="132" height="16" cellpadding="0" cellspacing="0" border="0" class="minibox">
                      <tr>
                        <td width="132" height="16" align="center" valign="middle"><a href="#">Comments</a></td>
                      </tr>
                    </table></td>
                  </tr>
                </table>
                </div></td></tr>
            
            
            <tr><td width="425" height="227" class="box">
            <table cellpadding="0" cellspacing="0" border="0" width="425" height="227" class="box"><tr>
            	<td width="425" height="227" valign="top" class="contentbox"><?php include'box3.php';?> </td></tr>
                </table>
            </td></tr>
            <tr><td width="425" height="3" valign="bottom">
              <div width="425" height="18" class="floatbox">
                <table width="425" height="18" cellpadding="0" cellspacing="0" border="0" align="center">
                  <tr valign="top">
                    <td width="144" height="18" class="minibox" align="center"><table width="132" height="16" cellpadding="0" cellspacing="0" border="0" class="minibox">
                      <tr>
                        <td width="132" height="16" align="center" valign="middle">SalvationSource.com</td>
                      </tr>
                    </table></td>
                    <td width="125" height="18" align="center"><table width="123" height="16" cellpadding="0" cellspacing="0" border="0" class="minibox">
                      <tr>
                        <td width="123" height="16" align="center" valign="middle">Live Christian Radio</td>
                      </tr>
                    </table></td>
                    <td width="144" height="18" class="minibox" align="center"><table width="132" height="16" cellpadding="0" cellspacing="0" border="0" class="minibox">
                      <tr>
                        <td width="132" height="16" align="center" valign="middle"><a href="#">Comments</a></td>
                      </tr>
                    </table></td>
                  </tr>
                </table>
                </div></td></tr>
            
            
            <tr><td width="425" height="227" class="box">
            <table cellpadding="0" cellspacing="0" border="0" width="425" height="227" class="box"><tr>
            	<td width="425" height="227" valign="top" class="contentbox"><?php include'box4.php';?> </td></tr>
                </table>
            </td></tr>
            </table>   	  </td>
    	<td bgcolor="#000000">
    		<img src="images/spacer.gif" width="1" height="100%" alt=""></td>
    </tr>
    <tr>
    	<td colspan="22" background="images/footer.gif" width="950" height="40" class="footer"><div align="center">Any Unauthorized Use of These Materials At SalvationSource.com May Violate Copyrights and/or Trademarks.<br>Copyright © 2008 - 2009 SalvationSource.com. All Rights Reserved.</div>			</td>
    	<td bgcolor="#000000">
    		<img src="images/spacer.gif" width="1" height="40" alt=""></td>
    </tr>
    <tr>
    	<td>
    		<img src="images/spacer.gif" width="10" height="1" alt=""></td>
    	<td>
    		<img src="images/spacer.gif" width="28" height="1" alt=""></td>
    	<td>
    		<img src="images/spacer.gif" width="13" height="1" alt=""></td>
    	<td>
    		<img src="images/spacer.gif" width="22" height="1" alt=""></td>
    	<td>
    		<img src="images/spacer.gif" width="22" height="1" alt=""></td>
    	<td>
    		<img src="images/spacer.gif" width="29" height="1" alt=""></td>
    	<td>
    		<img src="images/spacer.gif" width="24" height="1" alt=""></td>
    	<td>
    		<img src="images/spacer.gif" width="43" height="1" alt=""></td>
    	<td>
    		<img src="images/spacer.gif" width="30" height="1" alt=""></td>
    	<td>
    		<img src="images/spacer.gif" width="32" height="1" alt=""></td>
    	<td>
    		<img src="images/spacer.gif" width="36" height="1" alt=""></td>
    	<td>
    		<img src="images/spacer.gif" width="28" height="1" alt=""></td>
    	<td>
    		<img src="images/spacer.gif" width="31" height="1" alt=""></td>
    	<td>
    		<img src="images/spacer.gif" width="11" height="1" alt=""></td>
    	<td>
    		<img src="images/spacer.gif" width="2" height="1" alt=""></td>
    	<td>
    		<img src="images/spacer.gif" width="6" height="1" alt=""></td>
    	<td>
    		<img src="images/spacer.gif" width="25" height="1" alt=""></td>
    	<td>
    		<img src="images/spacer.gif" width="14" height="1" alt=""></td>
    	<td>
    		<img src="images/spacer.gif" width="89" height="1" alt=""></td>
    	<td>
    		<img src="images/spacer.gif" width="3" height="1" alt=""></td>
    	<td>
    		<img src="images/spacer.gif" width="351" height="1" alt=""></td>
    	<td>
    		<img src="images/spacer.gif" width="101" height="1" alt=""></td>
    	<td></td>
    </tr>
    </table>
    <!-- End ImageReady Slices -->
    </body>
    </html>
    

  3. lol, umm, you could try absolute positioning possibly but that would require changing a few things about your display. If you use the bgimage as a table background than put the rank pic in the table normally and then use a div or something to put it where you want you could get some decent results.

    well im not doing this in html its in PHP.

    i cant have divs in a image.

    thankyou tho.

     

    and i will look up that GD function ty

  4. is  there a way to add a static image like

    1.png

    into my dynamic image that pulls a users info from a database?

    like this

    sig.php?id=2

    to the left of rank i want to put the image that signifys a rank.

     

    any help would be aprecheated.

    src code for my image

    <?php
    
    Header('Content-type: image/png');
    Header('Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0');
    Header('Expires: Thu, 19 Nov 1981 08:52:00 GMT');
    Header('Pragma: no-cache');
    
    //mysql
    if ($dbc = @mysql_connect ('grimhqco.dot5hostingmysql.com','grimhq','pass')) {
    
    
    
                            mysql_select_db('grimhqco_roster');
    
                            //query
                            $query = "SELECT player_name, player_id, player_rank, player_activity FROM roster_players";
    
                                if ($r = mysql_query ($query)) {
                                while ($row = mysql_fetch_array ($r)) {
                                      if ($row['player_id'] == $_GET['id']){
                                $name = $row['player_name'];
                                $rank1 = $row['player_rank'];
                                $activity = $row['player_activity'];
                                      }
                                }
                                }
    
                             mysql_close();
                             }
    
    //  get rank
    if ($rank1 == 1) {
    $rank ="Generaal";
    }
    if ($rank1 == 2) {
    $rank ="Luitenant-Generaal";
    }
    if ($rank1 == 3) {
    $rank ="Generaal-Majoor";
    }
    if ($rank1 == 4) {
    $rank ="Brigade-Generaal";
    }
    if ($rank1 == 5) {
    $rank ="Kolonel";
    }
    if ($rank1 == 6) {
    $rank ="Luitenant-Kolonel";
    }
    if ($rank1 == 7) {
    $rank ="Majoor";
    }
    if ($rank1 ==  {
    $rank ="Eerste-Luitenant";
    }
    if ($rank1 == 9) {
    $rank ="Tweede-Luitenant";
    }
    if ($rank1 == 10) {
    $rank ="Waandrig";
    }
    if ($rank1 == 11) {
    $rank ="Kapelmeester";
    }
    if ($rank1 == 12) {
    $rank ="Sergeant-Majoor";
    }
    if ($rank1 == 13) {
    $rank ="Sergeant der 1e klasse";
    }
    if ($rank1 == 14) {
    $rank ="Sergeant";
    }
    if ($rank1 == 15) {
    $rank ="Korporaal der 1e klasse";
    }
    if ($rank1 == 16) {
    $rank ="Korporaal";
    }
    if ($rank1 == 17) {
    $rank ="Soldaat der 1e klasse";
    }
    if ($rank1 == 18) {
    $rank ="Soldaat";
    }
    //end get rank
    
    //get active
    if ($activity == 1){
    $active = "In-active";
    }
    if ($activity == 2){
    $active = "Game activity";
    }
    if ($activity == 3){
    $active = "Forum activity";
    }
    if ($activity == 4){
    $active = "Full activity";
    }
    if ($activity == 5){
    $active = "LOA";
    }
    //end get active
    $sig_info = "Rank = $rank,  Activity = $active";
    
    // define sig dimentions
    $img_width = 555;
    $img_height = 250;
    
    // define background image (must match dimentions and must be png)
    $bgimage = imagecreatefrompng("bg.png");
    $rankimg = imagecreatefrompng("ranks/$rank1.png");
    
    // define text color
    $textcolor = imagecolorallocate ($bgimage, 255, 255, 255); // image, red, green, blue -- $bgimage, 255, 255, 255 would create white
    
    // output sig
    imagefilledrectangle($rankimg, 75, 100, 149, 160, $textcolor);
    imagestring($bgimage, 5, 86, 50, $name, $textcolor);
    imagestring($bgimage, 3, 149, 100, $sig_info, $textcolor);// image, text size, x pos, y pos, color
    
    imagepng($bgimage);
    imagedestroy($bgimage);
    
    ?>

     

    by the way i know the checking of the rank is not the way i should do it but i wrote this script along time ago.

    i will fix it if can find a way to put rank images within my image.

     

    Thankyou.

  5. this is one i am working on it might give you some guidence.

    $results1 = mysql_query("SELECT * FROM users WHERE id='".$_POST['user']."'");
    $user = mysql_fetch_array($results1);
    $results = mysql_query("SELECT * FROM usersinfo WHERE id='".$_POST['user']."'");
    $info = mysql_fetch_array($results);
    ?>
    <table>
    <tr>
    <td colspan="2">
    <center><h4>Edit <?print $user['username'];?>:</h4></center>
    <form method="post" action="handle.php">
    </tr>
    <tr>
    <td>Username:</td>
    <td>
    <input type="text" name="username" value="<?print $user['username'];?>">
    </td>
    </tr>
    <tr>
    <td>
    Admin:
    </td>
    <td>
    <input type="checkbox" <?if ($user['admin']==1){print'checked';}?> name="admin" value="1">
    </td>
    </tr>
    <tr>
    <td>
    Set new Password:
    </td>
    <td>
    <input type="text" name="password">
    </td>
    </tr>
    <tr>
    <td>
    Confirm Password:
    </td>
    <td>
    <input type="text" name="password1">
    </td>
    </tr>
    <tr>
    <td>
    Email:
    </td>
    <td>
    <input type="text" name="email" value="<?print $info['email'];?>">
    </td>
    </tr>
    <tr>
    <td>
    Gender:
    </td>
    <td>
    <select name="gender">
    <option value="1" <?if($info['gender']==1){print'selected';}?>>Male</option>
    <option value="2" <?if($info['gender']==2){print'selected';}?>>Female</option>
    </select>
    </td>
    </tr>
    <tr>
    <td>
    Birthdate:
    </td>
    <td>
    <input type="text" name="birthdate" value="<?print $info['birthdate'];?>">
    </td>
    </tr>
    <tr>
    <td colspan=2>
    <center>
    <input type="submit" name="submit" value="edit">
    </center></td>
    </tr>
    </table>
    

  6. i think this is sorta what you want

    might not be the best way to do it tho

    <?php
    if(!isset($_POST['submit'])) {
    ?>
    <form action="warped.php" method="post">
    <input type="text" name="field1" size="20" <?if (isset($_GET['field1'])){'value="'.$_GET['field1'].'"';}?>>
    <input type="submit" value="Guess!" name="submit">
    </form>
    <?php
    }else{
    if ($_POST['field1']==$warped_answer)
    {
    ?>
    
    Stuff for correct answer goes here...
    
    <?php } else {
    print'<h1>try again!</h1>
    <p>
    Oops, that\'s not the right answer!  Go <a href="warped.php?field1='.$_POST['field1'].'">back to the game</a> and try again.
    </p>';
    }
    }?>
    

  7. OMG IM SO SRY! that was the biggest mistake of my life.

    i was using an old link.

    i screwed up

    it was not using the script that i have been telling you about.

    thats why it would not update.

    it still logged out tho becuase it was the old version of the script

  8. okay

    the first query is used when a user logs in

    <?php
    if ($_POST['submit']=='Login'){
         $username = trim($_POST['username']);
         $password = mysql_escape_string(md5(trim($_POST['password'])));
         $results = mysql_query("SELECT id, username, password, admin FROM users WHERE username='$username'");
         if(mysql_num_rows($results) == 1){
              $values = mysql_fetch_array($results);
              if ($password == $values['password']){
                 $_SESSION['userName'] = $values['username'];
                 $_SESSION['admin'] = $values['admin'];
                 $_SESSION['auth'] = TRUE;
                 $_SESSION['id'] = $values['id'];
                 mysql_query("UPDATE users SET online=1 WHERE id='".$values['id']."'");
                 header('Location: ../index.php');
              }else{
                  header('Location: ../index.php?act=login&alert=1&message='.urlencode('check your Password again, we were unable to log you in.'));
              }
         } else{
              header('Location: ../index.php?act=login&alert=1&message='.urlencode('check your login information again, we were unable to log you in.'));
         }
    }
    ?>
    

    the second is for a log out

    <?php
    mysql_query("UPDATE users SET online=0 WHERE id='".$_SESSION['id']."'") or die(mysql_error());
    unset($_SESSION);
    session_destroy();
    header('location: ../index.php');
    ?>
    

     

    i tried to use or die(mysql_error()); in the second code to see why it wont update and it does not print an error it just continues

     

    and the second question

     

    it is a function

    <?php
    $dbuser = 'root';
    $dbpass = '';
    $dbhost = 'localhost';
    $dbname = 'slapdashcms';
    
    function dbmysqlcms(){
    if ($dbc = mysql_connect ("$dbhost", "$dbuser", "$dbpass")) {
       mysql_select_db ("slapdashcms");
       }
    }
    ?>
    

     

    but when i use the dbname var it alters the way mysql works.

    it creates errors in my scripts

  9. im pretty sure these 2 questions have simple fixes.

     

    Question 1:

     

    how come this query wont update?

    <?php
    mysql_query("UPDATE users SET online=0 WHERE id='".$_SESSION['id']."'");
    ?>
    

    where this one does

    <?php
    mysql_query("UPDATE users SET online=1 WHERE id='".$values['id']."'");
    ?>
    

    Question 2:

    how come i can't use a variable as a database?

    <?php
    if ($dbc = mysql_connect ("$dbhost", "$dbuser", "$dbpass")) {
       mysql_select_db ("$dbname");
       }
    ?>
    

     

  10. okay i almost have it fixed.

    it wont get past password authentication now.

    <?php
    if ($_POST['submit']=='Login'){
         $username = trim($_POST['username']);
         $password = md5(trim($_POST['password']));
         $results = mysql_query("SELECT username, admin, password FROM users WHERE username='$username'");
         if(mysql_num_rows($results) == 1){
              $values = mysql_fetch_array($results);
              if ($password == $values['password']){
                 $_SESSION['userName'] = $values['username'];
                 $_SESSION['admin'] = $values['admin'];
                 $_SESSION['auth'] = TRUE;
                 header('Location: ../index.php');
              }else{
                  header('Location: ../index.php?act=login&alert=1&message='.urlencode('check your Password again, we were unable to log you in.'));
              }
         } else{
              header('Location: ../index.php?act=login&alert=1&message='.urlencode('check your login information again, we were unable to log you in.'));
         }
    }
    ?>
    

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.