Jump to content

jesse23

New Members
  • Posts

    9
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

jesse23's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. so i am trying to customize a forum much like this one and i am having trouble figuring out where this string is being called from. Ok so in my data base i have this code that is for the body. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <!-- Powered By: <conf:application> <conf:version> --> <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en" dir="<lang:text_direction>"> <head> <title><conf:title> - <lang:powered_by> <conf:application> <conf:version></title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <meta name="generator" content="editplus" /> <meta name="author" content="Campusgoal, jeast@campusgoal.com, http://www.campusgoal.com" /> <meta name="keywords" content="<conf:application> <conf:version>" /> <meta name="description" content="" /> <script src="<sys:skinPath>/js/main.js" type="text/javascript"></script> <link href="<sys:skinPath>/styles.css" rel="stylesheet" type="text/css" title="default" /> </head> <body> {$content} </body> </html> Between the body tags it calls for {$content} I have searched through the db and all of the php files and cant seem to figure out what this is. Any ideas would be very appreciated.
  2. Hey guys whats up, pardon if my question is sloppy ive just been working on my site for like 6 or 7 hours straight and have got caught up on a css issue. Im not very familiar with and have been researching with no apparent answers. ok here goes. I am trying to eliminate the padding or boarder width im not sure from a box so i can make this yahoo news ticker fit into a box with maximum size without breaking up my site. my website is http://www.campusgoal.com so you can see what i mean. /* CSS Document */ /* Global Styles */ html, body, form, fieldset, h1, h2, h3, h4, h5, h6, p, pre, blockquote, ul, ol, dl, address { margin: 0; padding: 0; font-family: Arial, sans-serif; font-size: 10px; color: #333333; background-color: #FFFFFF; text-align: left; } a { text-decoration: none; color: #B50C00; font-weight: normal; } a:hover { text-decoration:underline; } img { border-width: 0; } .box1TextBG { } .text1ABG { background: url(images/1TextABG.jpg) no-repeat top; } .main2BG { background: url(images/2MainBG.jpg) repeat-x; } .left3ABG { background: url(images/3LeftABG.jpg) repeat-y; } .left3BBG { background: url(images/3LeftBBG.jpg) repeat-y; } .box1LBG { background: url(images/box1LBG.jpg) repeat-y; } .box1RBG { background: url(images/box1RBG.jpg) repeat-y; } .mid3BG { background: url(images/3MidBG.jpg) repeat-y; } .box2LBG { background: url(images/box2LBG.jpg) repeat-y; } .box2RBG { background: url(images/box2RBG.jpg) repeat-y; } .right3BG { background: url(images/3RightBG.jpg) repeat-y; } .bot4BG { background: url(images/4botBG.jpg) repeat-x; } .left5BG { background: url(images/5Left.jpg) no-repeat top; } .main5BG { background: url(images/5BG.jpg) repeat-x; } .topNav { font-family: arial, verdana; font-size: 10px; color: #ffffff; font-weight: normal; padding: 0px 12px; text-decoration: none; } school { background-color: #000000; font-size: 12px; border-width: 0; margin: 0; padding: 0; color: #ffffff; } .titleText { font-size: 14px; font-weight: bold; margin: 10px 10px; text-align: left; color: #B50C00; } .mainText { font-weight: normal; margin: 10px 10px; text-align: left; } .amazines a { text-decoration: none; color: #B50C00 ; font: 15px Arial, sans-serif; font-weight: bold; } a:hover { text-decoration: underline; } /* Logoworks link back */ .logoworks { font-family: arial, verdana; font-size: 9px; color: #FFFFFF; font-weight: normal; padding: 0px 40px; text-decoration: none; text-align: left; } .logoworksLink { font-family: arial, verdana; font-size: 9px; color: #FFFFFF; font-weight: normal; text-decoration: none; text-align: left; } im not sure if you need the whole css sheet but just in case i posted it above. Also here is the table in question. <td width="339"><table cellpadding="0" cellspacing="0" border="0" width="309" height="87%"> <tr> <td width="15"><img src="images/box1TL2 copy.jpg" width="15" height="15" /></td> <td colspan="2"><img src="images/box1T.jpg" width="308" height="15" /></td> <td width="15"><img src="images/box1TR2 copy.jpg" width="15" height="15" /></td> </tr> <tr> <td class="box1LBG" valign="top" height="100%"><img src="images/box1L1.jpg" width="15" height="224" /></td> <td class="box1TextBG" valign="top" width="1" height="25"> <br /> <br /> <div class="mainText"> <script src= "http://www.tickermyfeed.com/feed.php?P3RpdGxlX2ZvbnRmYW1pbGx5PVZlcmRhbmEsIEFyaWFsLCBIZWx2ZXRpY2EsIHNhbnMtc2VyaWYmdGl0bGVfZm9udHNpemU9MTEmdGl0bGVfdGV4dGNvbG9yPSMwMDAwQ0MmdGl0bGVfaG92ZXJjb2xvcj0jRkYwMDAwJnRpdGxlX2FsaWdtZW50PWxlZnQmdGl0bGVfZm9udHN0eWxlPXJlZ3VsYXImYWxpZ21lbnQ9bGVmdCZib3h3aWR0aD0yNTAmYm94aGVpZ2h0PTE1MCZmb250c3R5bGU9cmVndWxhciZmb250ZmFtaWxseT1WZXJkYW5hLCBBcmlhbCwgSGVsdmV0aWNhLCBzYW5zLXNlcmlmJnRleHRjb2xvcj0jMDAwMDAwJmhvdmVyY29sb3I9I0ZGMDAwMCZiZ2NvbG9yPSNGRkZGRkYmZm9udHNpemU9MTEmYm94d2lkdGg9MjUwJmJveGhlaWdodD0xNTAmYm94aXRlbXM9OSZzaG93aW1nPTEmc2hvd3Njcm9sbD0xJmJvcmRlcnNpemU9JnNob3dib3JkZXI9MCZib3JkZXJjb2xvcj0jMDAwMDAwJnJ1bm5pbmc9MCZzcGVlZD0xJnJzc195YWhvbz0xJnJzc2xpbmtfeWFob289Ulc1MFpYSWdTMlY1ZDI5eVpITWdTR1Z5WlE9PSZyc3NsaW5rX2dvb2dsZT1SVzUwWlhJZ1MyVjVkMjl5WkhNZ1NHVnlaUT09JnJzc2xpbms9Ulc1MFpYSWdWVkpNSUVobGNtVT0mc291cmNlPWh0bWwmanNjcmlwdD0x"> </script> <br /> <div align="left"> </div> </div> </td> <td width="307"></td> <td class="box1LBG" valign="top" height="100%"><img src="images/box1R.jpg" width="15" height="224" /></td> </tr> <tr> <td><img src="images/Box1BL1 copy.jpg" width="15" height="15" /></td> <td colspan="2"><img src="images/box1B.jpg" width="308" /></td> <td><img src="images/box1BR.jpg" width="15" height="15" /></td> </tr> </table></td> Thanks again for your help.
  3. So i have a php code that will set a cookie for my website. the problem is that when i close my browser the cookie dissapears. How would change that? below i have posted the php code. [code] <fieldset><legend>Select School</legend> <form action="setcookie.php" method="post"> <? echo '<p><label for="school"><strong>School : </strong></label><select name="school" id="school">'."\n"; $sql = "SELECT ID, School FROM School"; $result = mysql_query($sql, $db); $count = mysql_num_rows($result); if($count == 0) {     echo '<option>No Schools added yet.</option>'; } while($row = mysql_fetch_assoc($result)) {     echo '<option value="'.$row['ID'].'"';     if($_COOKIE[Cookie]['SchoolID'] == $row['ID']) { echo ' selected'; }     echo '>'.$row['School'].'</option>'."\n"; } echo '</select>'; ?><input type="submit" name="submit" value="Go" /></p> </form> </fieldset> <p><? $var = $_COOKIE[Cookie]['SchoolID']; $sql = "SELECT ID, School, Address, Image FROM School WHERE ID = '$var'"; $result = mysql_query($sql, $db); $count = mysql_num_rows($result); while($row = mysql_fetch_assoc($result)) { echo '<a href="'.$row['Address'].'" title="'.$row['School'].'"><img src="'.$row['Image'].'" /></a>'; } ?></p>[/code] Above is the code i put in my php document. The piece of code below i have in a different document called setcookie.php. [code]<?php $School = $_POST['school']; setcookie("Cookie[SchoolID]", $School); header('Location: school.php'); ?>[/code] Any help with this would be greatly appreciated.
  4. AHH safari, i cant tell you how many times i have had problems with previewing my site in safari and firefox and IE. They just cant seem to display the net the same. Yeah it dosent work in safari. I know i think it looks kind of cool like that too. 
  5. so close, it changed the actual drop down to black. Is there anything else that might change that outside black? ;D
  6. So i have just recently installed a drop down menu that uses php to set a cookie. That page can be seen here.[url=http://www.campusgoal.com/school.php]www.campusgoal.com/school.php[/url] i am wondering how would i change the background of this to black and where is says school to white? Below i have posted the php code. [code]<form action="setcookie.php"  method="post"> <? echo '<p><label for="school"><strong>School : </strong></label><select name="school" id="school">'."\n"; $sql = "SELECT ID, School FROM School"; $result = mysql_query($sql, $db); $count = mysql_num_rows($result); if($count == 0) {     echo '<option>No Schools added yet.</option>'; } while($row = mysql_fetch_assoc($result)) {     echo '<option value="'.$row['ID'].'"';     if($_COOKIE[Cookie]['SchoolID'] == $row['ID']) { echo ' selected'; }     echo '>'.$row['School'].'</option>'."\n"; } echo '</select>'; ?><input type="submit" name="submit" value="Go" /></p> </form>[/code] Any help with this would be greatly appreciated.
  7. Ok so i have a script that i think will work but trying to get it working is a different story. I put the php code in and where i want my cookie to show up i get this message [quote]Warning: Cannot modify header information - headers already sent by (output started at /home/campusgo/public_html/phptest2.php:9) in /home/campusgo/public_html/phptest2.php on line 256 Warning: Cannot modify header information - headers already sent by (output started at /home/campusgo/public_html/phptest2.php:9) in /home/campusgo/public_html/phptest2.php on line 257 [/quote] I am just wondering what does it mean cannot modify header?
  8. Thanks for helping me out with this. I am wondering what part of the code would i change to use the mysql_fetch_array
  9. Hey everybody, this is my first post here and im excited because this looks like a great site. So im trying to implement a php code for my site that uses a drop down list. The purpose for the drop down is two do to things but i'll just focus on the one for now. The first is to put a zip code into this piece of html. [code]<!--Weather image provided by www.areacodehelp.com--><a href="http://www.areacodehelp.com/cgi-bin/weather/weather.cgi?pands=greeley, co" target="_blank"><img src="http://www.areacodehelp.com/cgi-bin/weather/weather.cgi?config=png&forecast=zone&alt=hwizone&pands=greeley, co&hwvbg=FFFFFF&hwvtc=B5OCOO&hwvusettf=0" alt="Zone Forecast for Greeley, CO" border="0" /></a>  [/code] to do this i have this piece of php code.   [code]  <?php         $dbHost = 'localhost'; // Database Host     $dbUser = ''; // Database Username     $dbPass = ''; // Database Password     $dbName = ''; // Database Name         $db = mysql_connect("$dbHost","$dbUser","$dbPass"); // Connect to the database.     if (!$db) { die('Error : ' . mysql_error()); } // Database connection error checking.         $select_db = mysql_select_db($dbName,$db); // Select database.     if (!$select_db) { die('Error : ' . mysql_error()); } // More error checking.         if(!isset($_POST['submit'])) { // If the form hasn't been submitted, display the form.         ?>     <form method="post" action="<?=$_SERVER['PHP_SELF'];?>">         <p><label for="weather">Select Your School: <br />     <?php     $sql = "SELECT * FROM school ORDER BY City";     $result = mysql_query($sql);         $dropdown  = '<select name="weather">';     while ($row = mysql_fetch_assoc($result))     {         $dropdown .= '<option value="'. $row['zip'] .'">' . $row['School'] . '</option>';     }     $dropdown .= '</select>';         echo $dropdown;     ?>     </label>     </p>         <p><input type="submit" name="submit" value="Submit" /></p>     </form>     <?php } else { // If it has been submitted, process the form.         $var = $_GET['weather']; // Get user choice from select box and assign variable.     setcookie("Cookie[weather]", $var); // Put variable inside cookie.         // echo the HTML with the variable inserted within the code.     echo '<a href="http://www.areacodehelp.com/cgi-bin/weather/weather.cgi?pands=' .$var. '" target="_blank"><img src="http://www.areacodehelp.com/cgi-bin/weather/weather.cgi?config=png&forecast=zone&alt=hwizone&pands=' .$var. '&hwvbg=FFFFFF&hwvtc=B5OCOO&hwvusettf=0" alt="Zone Forecast for ' .$var. '" border="0" /></a>';     // you replace all instances of where the city or county would be in the code and replace it with the variable that contains the user inputted data.         } ?>[/code] I have a test php page for my website to help get this up here[url=http://www.campusgoal.com/phptest2.php]http://www.campusgoal.com/phptest2.php[/url] Im trying to figure out why this script isnt working. I have my table set up like so in my phpmyadmin [table][tr][td]ID[/td] [td]School[/td] [td]zip[/td] [td]Address[/td] [td]Image[/td][/tr] [tr][td]1 [/td] [td]Customize Campusgoal to your School[/td] [td]0[/td] [td]0 [/td][td]0[/td][/tr] [tr][td]9[/td] [td]University of Northern Colorado, Greeley[/td] [td]80631 [/td] [td]www.unco.ed[/td] [td]unco.jpg[/td][/tr] [tr][td]8 [/td] [td]Colorado University, Boulder [/td] [td]80301[/td] [td]www.colorado.edu[/td] [td]cu.jpg[/td][/tr] [tr][td]10 [/td] [td]Colorado State University, Fort Collins[/td] [td]80521[/td] [td]www.colostate.edu [/td] [td]csu.jpg[/td][/tr][/table] Any help with this would be greatly appreciated. Thanks again. Jesse
×
×
  • 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.