ilch Forum » Allgemein » HTML, PHP, SQL,... » Beckgroun ändern wie?

Geschlossen
  1. #1
    User Pic
    Kyuubi Mitglied
    Registriert seit
    12.06.2007
    Beiträge
    76
    Beitragswertungen
    0 Beitragspunkte
    hier ind die news ein bisschen zuw eiß lachen
    des passt einfach nciht zum hintergrund ich würde den auch gerne schwarz haben
    kann mir jemand sagen wass ich ändern muss und wo ichs ändern muss
    ich find hier nirgends einen zahlencode... traurig also für die hintergrundfarbe
    $action = $_GET['action'];
    if($action=="new") {
    	include("_mysql.php");
    	include("_settings.php");
    	include("_functions.php");
    	if(!isnewsadmin($userID)) die('No access.');
    
      echo '<html><head>';
    	echo'<script src="js/bbcode.js" language="jscript" type="text/javascript"></script>
    		 <link href="_stylesheet.css" rel="stylesheet" type="text/css"></head><body>';
    	
    	if(isnewsadmin($userID)) {
    		safe_query("DELETE FROM ".PREFIX."news WHERE headline1='' AND lang1='' AND lang2='' AND headline2=''");		
    		safe_query("INSERT INTO ".PREFIX."news (date, poster, saved) VALUES ('".time()."', '$userID', '0')");
    		$newsID=mysql_insert_id();
    		
    		$newsrubrics=safe_query("SELECT rubricID, rubric FROM ".PREFIX."news_rubrics ORDER BY rubric");
    	    while($dr=mysql_fetch_array($newsrubrics)) {
    		    $rubrics.='<option value="'.$dr[rubricID].'">'.$dr[rubric].'</option>';
    		}
    		
      	if($_POST['topnews']) safe_query("UPDATE ".PREFIX."settings SET topnewsID='$newsID'");
    
    		$lang=safe_query("SELECT lang, language FROM ".PREFIX."news_languages ORDER BY language");
    		while($dl=mysql_fetch_array($lang)) {
    		    if($dl[lang]=="de") $langs1.='<option value="'.$dl[lang].'" selected>'.$dl[language].'</option>';
    			else $langs1.='<option value="'.$dl[lang].'">'.$dl[language].'</option>';
    			
    			if($dl[lang]=="uk") $langs2.='<option value="'.$dl[lang].'" selected>'.$dl[language].'</option>';
    			else $langs2.='<option value="'.$dl[lang].'">'.$dl[language].'</option>';
    		}
    		$url1="http://";
    		$url2="http://";
    		$url3="http://";
    		$url4="http://";
    		
    		$bg1=BG_1;
    		eval ("\$addbbcode = \"".gettemplate("addbbcode")."\";");
    		eval ("\$addflags = \"".gettemplate("flags")."\";");
    		
    		eval ("\$news_post = \"".gettemplate("news_post")."\";");
    	    echo $news_post;  
    	}
    	else redirect('index.php?site=news', 'no access!');
    }
    elseif($action=="save") {
     	include("_mysql.php");
    	include("_settings.php");
    	include("_functions.php");
    	if(!isnewsadmin($userID)) die('No access.');
    
      $newsID = $_POST['newsID'];
      $save = $_POST['save'];
      $preview = $_POST['preview'];
      
      $rubric = $_POST['rubric'];
    
    	$lang1 = $_POST['lang1'];
    	$headline1 = $_POST['headline1'];
    	$message = $_POST['message'];
    
    	$lang2 = $_POST['lang2'];
    	$headline2 = $_POST['headline2'];
    	$content2 = $_POST['content2'];
    
    	$link1 = $_POST['link1'];
    	$url1 = $_POST['url1'];
    	$window1 = $_POST['window1'];
    
    	$link2 = $_POST['link2'];
    	$url2 = $_POST['url2'];
    	$window2 = $_POST['window2'];
    
    	$link3 = $_POST['link3'];
    	$url3 = $_POST['url3'];
    	$window3 = $_POST['window3'];
    
    	$link4 = $_POST['link4'];
    	$url4 = $_POST['url4'];
    	$window4 = $_POST['window4'];
    	
    	$intern = $_POST['intern'];
    	$comments = $_POST['comments'];
    	
    	safe_query("UPDATE ".PREFIX."news SET rubric='$rubric',
                          lang1='$lang1',
                          headline1='".mysql_escape_string($headline1)."',
                          content1='".mysql_escape_string($message)."',
                          lang2='$lang2',
                          headline2='".mysql_escape_string($headline2)."',
                          content2='".mysql_escape_string($content2)."',
                          link1='$link1',
                          url1='$url1',
                          window1='$window1',
                          link2='$link2',
                          url2='$url2',
                          window2='$window2',
                          link3='$link3',
                          url3='$url3',
                          window3='$window3',
                          link4='$link4',
                          url4='$url4',
                          window4='$window4',
                          saved='1',
                          intern='$intern',
                          comments='$comments' WHERE newsID='$newsID'");
    							 
    	// löschen der einträge die älter als 1 stunde sind und keinen text enthalten
    	$ergebnis=safe_query("SELECT * FROM ".PREFIX."news WHERE headline1='' OR content1=''");
    	while($ds=mysql_fetch_array($ergebnis)) {
    		if((time()-$ds[date]) > (60*60)) safe_query("DELETE FROM ".PREFIX."news WHERE newsID='$ds[newsID]'");
    	}
    	
    	
    	if($_POST['topnews']) safe_query("UPDATE ".PREFIX."settings SET topnewsID='$newsID'");
    
    	if($save) echo'<body onLoad="window.close()"></body>';
    	if($preview) header("Location: news.php?action=preview&newsID=$newsID");
    	
    	
    }
    elseif($action=="preview") {
    	include("_mysql.php");
    	include("_settings.php");
    	include("_functions.php");
    	if(!isnewsadmin($userID)) die('No access.');
    
    
      $newsID = $_GET['newsID'];
    
    	echo'<script src="js/bbcode.js" language="jscript" type="text/javascript"></script>
    		 <link href="_stylesheet.css" rel="stylesheet" type="text/css">';
    
    	$bg1=BG_1;
    	
    	eval ("\$title_news = \"".gettemplate("title_news")."\";");
    	echo $title_news;
    
    	$result=safe_query("SELECT * FROM ".PREFIX."news WHERE newsID='$newsID'");
        $ds=mysql_fetch_array($result);
    	    $bgcolor=BG_1;
    		$date = date("d.m.Y", $ds[date]);
    		$time = date("H:i", $ds[date]);
    		$rubrikname=getrubricname($ds[rubric]);
    		$rubricpic='<img src="images/news-rubrics/'.getrubricpic($ds[rubric]).'">';
    		if(!file_exists($rubricpic)) $rubricpic = '';
    			
    		$lang=$ds[lang1];
    		$language1="[flag]".$ds[lang1]."[/flag]";
    		$language2="[flag]".$ds[lang2]."[/flag]";
    			
    		if($lang==$ds[lang1]) {
    		    if($ds[headline1]) $headline = $ds[headline1];
    			else $headline = $ds[headline2];
    				
    			if($ds[content1]) $content = $ds[content1];
    			else $content='[b]no version in selected language available![/b].[br][br]'.$ds[content2];
    				
    			$langs='';
    			if($ds[headline2]) {
    			    $langs='<a href="news.php?action=preview&newsID='.$ds[newsID].'&lang='.$ds[lang2].'">'.flags($language2).'</a>';
    	            $language=getlanguage($ds[lang2]);
    				$langs = eregi_replace ('(alt=")(.*)(")',"\\1 news in $language\\3",$langs);
    			}	
    		}
    		else {
    		    if($ds[headline2]) $headline = $ds[headline2];
    			else $headline = $ds[headline1];
    			
    			if($ds[content2]) $content = $ds[content2];
    			else $content='[b]no version in selected language available![/b].[br][br]'.$ds[content1];
    					
    			$langs='';
    			if($ds[headline1]) {
    			    $langs='<a href="news.php?action=preview&newsID='.$ds[newsID].'&lang='.$ds[lang1].'">'.flags($language1).'</a>';
    				$language=getlanguage($ds[lang1]);
    				$langs = eregi_replace ('(alt=")(.*)(")',"\\1 news in $language\\3",$langs);
    			}	
    		}
    	
    		$content = htmloutput($content);
    		$content = toggle($content, $ds[newsID]);
    		$poster='<a href="index.php?site=profile&id='.$ds[poster].'"><b>'.getnickname($ds[poster]).'</b></a>';
    		if($ds[link1] && $ds[url1]!="http://" && $ds[window1]) $related.='&#8226; <a href="'.$ds[url1].'" target="_blank">'.$ds[link1].'</a> ';
    		if($ds[link1] && $ds[url1]!="http://" && !$ds[window1]) $related.='&#8226; <a href="'.$ds[url1].'">'.$ds[link1].'</a> ';
    		
    		if($ds[link2] && $ds[url2]!="http://" && $ds[window2]) $related.='&#8226; <a href="'.$ds[url2].'" target="_blank">'.$ds[link2].'</a> ';
    		if($ds[link2] && $ds[url2]!="http://" && !$ds[window2]) $related.='&#8226; <a href="'.$ds[url2].'">'.$ds[link2].'</a> ';
    				
    		if($ds[link3] && $ds[url3]!="http://" && $ds[window3]) $related.='&#8226; <a href="'.$ds[url3].'" target="_blank">'.$ds[link3].'</a> ';
    		if($ds[link3] && $ds[url3]!="http://" && !$ds[window3]) $related.='&#8226; <a href="'.$ds[url3].'">'.$ds[link3].'</a> ';
    				
    		if($ds[link4] && $ds[url4]!="http://" && $ds[window4]) $related.='&#8226; <a href="'.$ds[url4].'" target="_blank">'.$ds[link4].'</a> ';
    		if($ds[link4] && $ds[url4]!="http://" && !$ds[window4]) $related.='&#8226; <a href="'.$ds[url4].'">'.$ds[link4].'</a> ';
    				
    	    eval ("\$news = \"".gettemplate("news")."\";");
    	    echo $news;
    		
    		echo'<hr noshade size="1" color="'.BORDER.'">
    		     <input type="button" class="button" onClick="MM_goToURL(\'parent\',\'news.php?action=edit&newsID='.$newsID.'\');return document.MM_returnValue" value="edit news"> 
    			 <input type="button" class="button" onClick="javascript:self.close()" value="save news"> 
    			 <input type="button" class="button" onClick="MM_confirm(\'really delete this entry?\', \'news.php?action=delete&id=$newsID&close=true\')" value="cancel">';
    }
    elseif($_POST['quickactiontype']=="publish" OR $_GET['quickactiontype']=="publish") {
    	include("_mysql.php");
    	include("_settings.php");
    	include("_functions.php");
    	if(!isnewsadmin($userID)) die('No access.');
    
      $newsID = $_POST['newsID'];
    	
    	if(is_array($newsID)) {
    		foreach($newsID as $id) {
    			safe_query("UPDATE ".PREFIX."news SET published='1' WHERE newsID='$id'");
    		}
    	}
    	header("Location: index.php?site=news");
    }
    elseif($_POST['quickactiontype']=="unpublish" OR $_GET['quickactiontype']=="unpublish") {
    	include("_mysql.php");
    	include("_settings.php");
    	include("_functions.php");
    	if(!isnewsadmin($userID)) die('No access.');
    
      $newsID = $_POST['newsID'];
      if(!$newsID) $newsID[] = $_GET['newsID'];
    	
    	foreach($newsID as $id) {
    		safe_query("UPDATE ".PREFIX."news SET published='0' WHERE newsID='$id'");
    	}
    	header("Location: index.php?site=news");
    }
    elseif($_POST['quickactiontype']=="delete") {
    	include("_mysql.php");
    	include("_settings.php");
    	include("_functions.php");
    	if(!isnewsadmin($userID)) die('No access.');
    
      $newsID = $_POST['newsID'];
    		
    	foreach($newsID as $id) {
        	$ds=mysql_fetch_array(safe_query("SELECT screens FROM ".PREFIX."news WHERE newsID='$id'"));
    		if($ds[screens]) {
    			$screens=explode("|", $ds[screens]);
    			if(is_array($screens)) {
    				$filepath = "./images/news-pics/";
    				foreach($screens as $screen) {
    					if(file_exists($filepath.$screen)) @unlink($filepath.$screen);
    				}
    			}
    		}	
    		safe_query("DELETE FROM ".PREFIX."news WHERE newsID='$id'");
    		safe_query("DELETE FROM ".PREFIX."comments WHERE parentID='$id' AND type='ne'");
    	}
    	header("Location: index.php?site=news");
    }
    elseif($action=="delete") {
    	include("_mysql.php");
    	include("_settings.php");
    	include("_functions.php");
    	if(!isnewsadmin($userID)) die('No access.');
    
      $id = $_GET['id'];
    	
    	$ds=mysql_fetch_array(safe_query("SELECT screens FROM ".PREFIX."news WHERE newsID='$id'"));
    	if($ds[screens]) {
    		$screens=explode("|", $ds[screens]);
    		if(is_array($screens)) {
    			$filepath = "./images/news-pics/";
    			foreach($screens as $screen) {
    				if(file_exists($filepath.$screen)) @unlink($filepath.$screen);
    			}
    		}
    	}
       	
    	safe_query("DELETE FROM ".PREFIX."news WHERE newsID='$id'");
    	safe_query("DELETE FROM ".PREFIX."comments WHERE parentID='$id' AND type='ne'");
    
    	if($close) echo'<body onLoad="window.close()"></body>';
    	else header("Location: index.php?site=news");
    }
    elseif($action=="edit") {
    	include("_mysql.php");
    	include("_settings.php");
    	include("_functions.php");
    	if(!isnewsadmin($userID)) die('No access.');
    	
      $newsID = $_GET['newsID'];
    
    	echo'<script src="js/bbcode.js" language="jscript" type="text/javascript"></script>
    		 <link href="_stylesheet.css" rel="stylesheet" type="text/css">';
    		
    	$ds=mysql_fetch_array(safe_query("SELECT * FROM ".PREFIX."news WHERE newsID='$newsID'"));
    	$lang=safe_query("SELECT lang, language FROM ".PREFIX."news_languages ORDER BY language");
    	while($dl=mysql_fetch_array($lang)) {
    	    if($dl[lang]==$ds[lang1]) $langs1.='<option value="'.$dl[lang].'" selected>'.$dl[language].'</option>';
    		else $langs1.='<option value="'.$dl[lang].'">'.$dl[language].'</option>';
    		
    		if($dl[lang]==$ds[lang2]) $langs2.='<option value="'.$dl[lang].'" selected>'.$dl[language].'</option>';
    		else $langs2.='<option value="'.$dl[lang].'">'.$dl[language].'</option>';
    	}
    		
    	$headline1=getinput($ds[headline1]);
    	$message=getinput($ds[content1]);
    	$headline2=getinput($ds[headline2]);
    	$content2=getinput($ds[content2]);
    		
    	$newsrubrics=safe_query("SELECT * FROM ".PREFIX."news_rubrics ORDER BY rubric");
        while($dr=mysql_fetch_array($newsrubrics)) {
    	    if($ds[rubric]==$dr[rubricID]) $rubrics.='<option value="'.$dr[rubricID].'" selected>'.$dr[rubric].'</option>';
    		else $rubrics.='<option value="'.$dr[rubricID].'">'.$dr[rubric].'</option>';
    	}
    
      if($ds[intern]) $intern = '<option value="0">No</option><option value="1" selected>Yes</option>';
      else $intern = '<option value="0" selected>No</option><option value="1">Yes</option>';
    
    	$link1=$ds[link1];
    	$link2=$ds[link2];
    	$link3=$ds[link3];
    	$link4=$ds[link4];
    	
    	$url1="http://";
    	$url2="http://";
    	$url3="http://";
    	$url4="http://";
    	
    	if($ds[url1]!="http://") $url1=$ds[url1];
    	if($ds[url2]!="http://") $url2=$ds[url2];
    	if($ds[url3]!="http://") $url3=$ds[url3];
    	if($ds[url4]!="http://") $url4=$ds[url4];
    		
    	if($ds[window1]) $window1='<input class="input" name="window1" type="radio" value="1" checked> new window <input class="input" type="radio" name="window1" value="0"> _self';
    	else $window1='<input class="input" name="window1" type="radio" value="1"> new window <input class="input" type="radio" name="window1" value="0" checked> _self';
    		
    	if($ds[window2]) $window2='<input class="input" name="window2" type="radio" value="1" checked> new window <input class="input" type="radio" name="window2" value="0"> _self';
    	else $window2='<input class="input" name="window2" type="radio" value="1"> new window <input class="input" type="radio" name="window2" value="0" checked> _self';
    		
    	if($ds[window3]) $window3='<input class="input" name="window3" type="radio" value="1" checked> new window <input class="input" type="radio" name="window3" value="0"> _self';
    	else $window3='<input class="input" name="window3" type="radio" value="1"> new window <input class="input" type="radio" name="window3" value="0" checked> _self';
    		
    	if($ds[window4]) $window4='<input class="input" name="window4" type="radio" value="1" checked> new window <input class="input" type="radio" name="window4" value="0"> _self';
    	else $window4='<input class="input" name="window4" type="radio" value="1"> new window <input class="input" type="radio" name="window4" value="0" checked> _self';
    		
    	if($ds[picalign]=="left") $align='<input class="input" type="radio" name="align" value="left" checked> left 
    	                                <input class="input" type="radio" name="align" value="right"> right';
    	else $align='<input class="input" type="radio" name="align" value="left"> left 
    	             <input class="input" type="radio" name="align" value="right" checked> right';
    	
    	$comments='<option value="0">disable comments</option><option value="1">enable user comments</option><option value="2">enable visitor comments</option>';								
    	$comments=str_replace('value="'.$ds[comments].'"', 'value="'.$ds[comments].'" selected', $comments);
    		
    	$bg1=BG_1;
    	
    	eval ("\$addbbcode = \"".gettemplate("addbbcode")."\";");
    	eval ("\$addflags = \"".gettemplate("flags")."\";");
    	
    	eval ("\$news_edit = \"".gettemplate("news_edit")."\";");
        echo $news_edit;
    }
    elseif($action=="unpublished") {
    	eval ("\$title_news = \"".gettemplate("title_news")."\";");
    	echo $title_news;
    
    	if(isnewsadmin($userID)) $post='<input type="button" class="button" onClick="MM_openBrWindow(\'news.php?action=new\',\'News\',\'toolbar=no,status=no,scrollbars=yes,width=800,height=600\')" value="post News">';
    
    	echo $post.' <input type="button" class="button" onClick="MM_goToURL(\'parent\',\'index.php?site=news\');return document.MM_returnValue" value="show News"><hr noshade size="1" color="'.BORDER.'">';
    	
    	// Not published News
    	if(isnewsadmin($userID)) {
    		$ergebnis=safe_query("SELECT * FROM ".PREFIX."news WHERE published='0' AND saved='1' ORDER BY date ASC");
    		if(mysql_num_rows($ergebnis)) {
    			echo'<h2>NOT PUBLISHED NEWS:</h2>';
    			
    			echo'<form method="post" name="form" action="news.php">';
    			eval ("\$news_archive_head = \"".gettemplate("news_archive_head")."\";");
    		    echo $news_archive_head;	   
    		    
    			$i=1;
    			while($ds=mysql_fetch_array($ergebnis)) {
    				if($i%2) {
    					$bg1=BG_1;
    					$bg2=BG_2;
    				}
    				else {
    					$bg1=BG_3;
    					$bg2=BG_4;
    				}
    				
    				$date=date("d.m.Y", $ds[date]);
    				$rubric=getrubricname($ds[rubric]);
    				$language1="[flag]".$ds[lang1]."[/flag]";
    				$language2="[flag]".$ds[lang2]."[/flag]";
    			
    				if($ds[headline1]) {
    				    $langs='<a href="index.php?site=news_comments&newsID='.$ds[newsID].'&lang='.$ds[lang1].'">'.flags($language1).'</a>';
    					$language=getlanguage($ds[lang1]);
    					$langs = eregi_replace ('(alt=")(.*)(")',"\\1 news in $language\\3",$langs);
    					$headline='<a href="index.php?site=news_comments&newsID='.$ds[newsID].'&lang='.$ds[lang1].'">'.clearfromtags($ds[headline1]).'</a>';
    				}  
    				if($ds[headline2]) {
    				    $lang2=' <a href="index.php?site=news_comments&newsID='.$ds[newsID].'&lang='.$ds[lang2].'">'.flags($language2).'</a>';
    					$language=getlanguage($ds[lang2]);
    					$lang2 = eregi_replace ('(alt=")(.*)(")',"\\1 news in $language\\3",$lang2);
    					$langs.=$lang2;
    					$headline.=' - <a href="index.php?site=news_comments&newsID='.$ds[newsID].'&lang='.$ds[lang2].'">'.clearfromtags($ds[headline2]).'</a>';
    				}	
    
    				$poster='<a href="index.php?site=profile&id='.$ds[poster].'">'.getnickname($ds[poster]).'</a>';
    
    				$multiple='';
    				$admdel='';
    				if(isnewsadmin($userID)) {
    					$multiple='<input class="input" type="checkbox" name="newsID[]" value="'.$ds[newsID].'">';
    					$admdel='<table width="100%" border="0" cellspacing="0" cellpadding="4">
    							<tr>
    							<td><input class="input" type="checkbox" name="ALL" value="ALL" onClick="SelectAll(this.form);"> select all</td>
    							    <td align="right"><select name="quickactiontype">
    								<option value="publish">publish selected</option>
    								<option value="delete">delete selected</option>
    								</select> 
    							<input type="submit" name="quickaction" value="go"></td>
    							</tr>
    							</table></form>';
    
    				}
    				eval ("\$news_archive_content = \"".gettemplate("news_archive_content")."\";");
    		        echo $news_archive_content;
    				$i++;
    			}
    			eval ("\$news_archive_foot = \"".gettemplate("news_archive_foot")."\";");
    		    echo $news_archive_foot;
    
    			unset($ds);
    		}
    	}
    }
    elseif($action=="archive") {
    	eval ("\$title_news = \"".gettemplate("title_news")."\";");
    	echo $title_news;
    	
      $page=$_GET['page'];
      $sort=$_GET['sort'];
      $type=$_GET['type'];
    	$post='';
    	$publish='';
    	if(isnewsadmin($userID)) {
    		$post='<input type="button" class="button" onClick="MM_openBrWindow(\'news.php?action=new\',\'News\',\'toolbar=no,status=no,scrollbars=yes,width=800,height=600\')" value="post News">';
    		$unpublished=safe_query("SELECT newsID FROM ".PREFIX."news WHERE published='0' AND saved='1'");
    		$unpublished=mysql_num_rows($unpublished);
    		if($unpublished) $publish='<input type="button" class="button" onClick="MM_goToURL(\'parent\',\'index.php?site=news&action=unpublished\');return document.MM_returnValue" value="'.$unpublished.' unpublished News"> ';
    	}
    	echo $post.' '.$publish.' <input type="button" class="button" onClick="MM_goToURL(\'parent\',\'index.php?site=news\');return document.MM_returnValue" value="show News"><hr noshade size="1" color="'.BORDER.'">';
    	
    	$all=safe_query("SELECT newsID FROM ".PREFIX."news WHERE published='1' AND intern<=".isclanmember($userID));
    	$all=mysql_num_rows($all);
    	$pages=1;
    	if(!isset($page)) $page = 1;
    	if(!isset($sort)) $sort = "date";
    	if(!isset($type)) $type = "DESC";
    	
    	$max = empty($maxnewsarchiv) ? 20 : $maxnewsarchiv;
    	
    
    	for ($n=$max; $n<=$all; $n+=$max) {
    	    if($all>$n) $pages++;
    	}
    		 	
    	if($pages>1) $page_link = makepagelink("index.php?site=news&action=archive&sort=$sort&type=$type", $page, $pages);
    		
    	if ($page == "1") {
            $ergebnis = safe_query("SELECT * FROM ".PREFIX."news WHERE published='1' AND intern<=".isclanmember($userID)." ORDER BY $sort $type LIMIT 0,$max");
    	    if($type=="DESC") $n=$gesamt;
    		else $n=1;
    	}
    	else {
    	    $start=$page*$max-$max;
    	    $ergebnis = safe_query("SELECT * FROM ".PREFIX."news WHERE published='1' AND intern<=".isclanmember($userID)." ORDER BY $sort $type LIMIT $start,$max");
    	    if($type=="DESC") $n = ($gesamt)-$page*$max+$max;
    		else $n = ($gesamt+1)-$page*$max+$max;
    	}
    	if($all) {
    	    if($type=="ASC") 
    		        echo'<a href="index.php?site=news&action=archive&page='.$page.'&sort='.$sort.'&type=DESC">Sort:</a> <img src="images/icons/asc.gif" width="9" height="7" border="0">&nbsp;&nbsp;&nbsp;';
    		    else 
    		        echo'<a href="index.php?site=news&action=archive&page='.$page.'&sort='.$sort.'&type=ASC">Sort:</a> <img src="images/icons/desc.gif" width="9" height="7" border="0">&nbsp;&nbsp;&nbsp;';
    
    		
    		if($pages>1) echo $page_link;
    		if(isnewsadmin($userID)) echo'<form method="post" name="form" action="news.php">';
    		eval ("\$news_archive_head = \"".gettemplate("news_archive_head")."\";");
    	    echo $news_archive_head;
    		$i=1;
    		while($ds=mysql_fetch_array($ergebnis)) {
    			if($i%2) {
    				$bg1=BG_1;
    				$bg2=BG_2;
    			}
    			else {
    				$bg1=BG_3;
    				$bg2=BG_4;
    			}
    			
    			$date=date("d.m.Y", $ds[date]);
    			$rubric=getrubricname($ds[rubric]);
    			$language1="[flag]".$ds[lang1]."[/flag]";
    			$language2="[flag]".$ds[lang2]."[/flag]";
    			
    			$comms = getanzcomments($ds[newsID], 'ne');
    			
    			if($ds[headline1]) {
    			    $langs='<a href="index.php?site=news_comments&newsID='.$ds[newsID].'&lang='.$ds[lang1].'">'.flags($language1).'</a>';
    				$language=getlanguage($ds[lang1]);
    				$langs = eregi_replace ('(alt=")(.*)(")',"\\1 news in $language\\3",$langs);
    					
    				$headline='<a href="index.php?site=news_comments&newsID='.$ds[newsID].'&lang='.$ds[lang1].'"><b>'.getinput($ds[headline1]).'</b></a>';
    			}  
    			if($ds[headline2]) {
    			    $lang2=' <a href="index.php?site=news_comments&newsID='.$ds[newsID].'&lang='.$ds[lang2].'">'.flags($language2).'</a>';
    				$language=getlanguage($ds[lang2]);
    				$lang2 = eregi_replace ('(alt=")(.*)(")',"\\1 news in $language\\3",$lang2);
    				$langs.=$lang2;
    				
    				$headline.=' - <a href="index.php?site=news_comments&newsID='.$ds[newsID].'&lang='.$ds[lang2].'"><b>'.getinput($ds[headline2]).'</b></a>';
    			}	
    
    			$poster='<a href="index.php?site=profile&id='.$ds[poster].'">'.getnickname($ds[poster]).'</a>';
    			
    			$multiple='';
    			$admdel='';
    			if(isnewsadmin($userID)) $multiple='<input class="input" type="checkbox" name="newsID[]" value="'.$ds[newsID].'">';
    			
    			eval ("\$news_archive_content = \"".gettemplate("news_archive_content")."\";");
    	        echo $news_archive_content;
    			$i++;
    		}
    		if(isnewsadmin($userID)) $admdel='<table width="100%" border="0" cellspacing="0" cellpadding="4">
    							<tr>
    							<td><input class="input" type="checkbox" name="ALL" value="ALL" onClick="SelectAll(this.form);"> select all</td>
    							    <td align="right"><select name="quickactiontype">
    								<option value="delete">delete selected</option>
    								<option value="unpublish">unpublish selected</option>
    								</select> 
    							<input type="submit" name="quickaction" value="go"></td>
    							</tr>
    							</table></form>';
    		
    		eval ("\$news_archive_foot = \"".gettemplate("news_archive_foot")."\";");
    	    echo $news_archive_foot;
    		unset($ds);
    		
    	}
    	else echo'no entries';
    }
    else {
    	eval ("\$title_news = \"".gettemplate("title_news")."\";");
    	echo $title_news;
    
    	$post='';
    	$publish='';
    	if(isnewsadmin($userID)) {
    		$post='<input type="button" class="button" onClick="MM_openBrWindow(\'news.php?action=new\',\'News\',\'toolbar=no,status=no,scrollbars=yes,width=800,height=600\')" value="post News">';
    		$unpublished=safe_query("SELECT newsID FROM ".PREFIX."news WHERE published='0' AND saved='1'");
    		$unpublished=mysql_num_rows($unpublished);
    		if($unpublished) $publish='<input type="button" class="button" onClick="MM_goToURL(\'parent\',\'index.php?site=news&action=unpublished\');return document.MM_returnValue" value="'.$unpublished.' unpublished News"> ';
    	}
    	echo $post.' '.$publish.'<input type="button" class="button" onClick="MM_goToURL(\'parent\',\'index.php?site=news&action=archive\');return document.MM_returnValue" value="News-Archive"><hr noshade size="1" color="'.BORDER.'">';
    	
    	if($_GET['show']) {
       $result=safe_query("SELECT rubricID FROM ".PREFIX."news_rubrics WHERE rubric='".$_GET['show']."' LIMIT 0,1");
       $dv=mysql_fetch_array($result);
       $showonly = "AND rubric='".$dv[rubricID]."'";
      }
    
    	$result=safe_query("SELECT * FROM ".PREFIX."news WHERE published='1' AND intern<=".isclanmember($userID)." $showonly ORDER BY date DESC LIMIT 0,$maxshownnews");
        $i=1;
    	while($ds=mysql_fetch_array($result)) {
    	    if($i%2) $bg1=BG_1;
    		else $bg1=BG_2;
    		
    		$date = date("d.m.Y", $ds[date]);
    		$time = date("H:i", $ds[date]);
    		$rubrikname=getrubricname($ds[rubric]);
    		$rubricpic_path = "images/news-rubrics/".getrubricpic($ds[rubric]);
    		$rubricpic='<img src="'.$rubricpic_path.'" border="0">';
    		echo $rubripic;
    		if(!is_file($rubricpic_path)) $rubricpic='';
    			
    		$lang=$ds[lang1];
    		$language1="[flag]".$ds[lang1]."[/flag]";
    		$language2="[flag]".$ds[lang2]."[/flag]";
    			
    		if($lang==$ds[lang1]) {
    		    if($ds[headline1]) $headline = $ds[headline1];
    			else $headline = $ds[headline2];
    				
    			if($ds[content1]) $content = $ds[content1];
    			else $content='[b]no version in selected language available![/b].[br][br]'.$ds[content2];
    				
    			if($ds[headline2]) {
    			    $langs='<a href="index.php?site=news_comments&newsID='.$ds[newsID].'&lang='.$ds[lang2].'">'.flags($language2).'</a>';
    	            $language=getlanguage($ds[lang2]);
    				$langs = eregi_replace ('(alt=")(.*)(")',"\\1 news in $language\\3",$langs);
    			}	
    			else $langs='';
    		}
    		else {
    		    if($ds[headline2]) $headline = $ds[headline2];
    			else $headline = $ds[headline1];
    			
    			if($ds[content2]) $content = $ds[content2];
    			else $content='[b]no version in selected language available![/b].[br][br]'.$ds[content1];
    					
    			if($ds[headline1]) {
    			    $langs='<a href="index.php?site=news_comments&newsID='.$ds[newsID].'&lang='.$ds[lang1].'">'.flags($language1).'</a>';
    				$language=getlanguage($ds[lang1]);
    				$langs = eregi_replace ('(alt=")(.*)(")',"\\1 news in $language\\3",$langs);
    			}	
    			else $langs='';
    		}
    	
    		$content = htmloutput($content);
    		$content = toggle($content, $ds[newsID]);	
    		$headline = clearfromtags($headline);	
    		$poster='<a href="index.php?site=profile&id='.$ds[poster].'"><b>'.getnickname($ds[poster]).'</b></a>';
    		if($ds[link1] && $ds[url1]!="http://" && $ds[window1]) $related.='&#8226; <a href="'.$ds[url1].'" target="_blank">'.$ds[link1].'</a> ';
    		if($ds[link1] && $ds[url1]!="http://" && !$ds[window1]) $related.='&#8226; <a href="'.$ds[url1].'">'.$ds[link1].'</a> ';
    		
    		if($ds[link2] && $ds[url2]!="http://" && $ds[window2]) $related.='&#8226; <a href="'.$ds[url2].'" target="_blank">'.$ds[link2].'</a> ';
    		if($ds[link2] && $ds[url2]!="http://" && !$ds[window2]) $related.='&#8226; <a href="'.$ds[url2].'">'.$ds[link2].'</a> ';
    				
    		if($ds[link3] && $ds[url3]!="http://" && $ds[window3]) $related.='&#8226; <a href="'.$ds[url3].'" target="_blank">'.$ds[link3].'</a> ';
    		if($ds[link3] && $ds[url3]!="http://" && !$ds[window3]) $related.='&#8226; <a href="'.$ds[url3].'">'.$ds[link3].'</a> ';
    				
    		if($ds[link4] && $ds[url4]!="http://" && $ds[window4]) $related.='&#8226; <a href="'.$ds[url4].'" target="_blank">'.$ds[link4].'</a> ';
    		if($ds[link4] && $ds[url4]!="http://" && !$ds[window4]) $related.='&#8226; <a href="'.$ds[url4].'">'.$ds[link4].'</a> ';
    				
    		if(empty($related)) $related="n/a"; 
    		
    		if($ds[comments]) {
    			if($ds[cwID]) {  // CLANWAR-NEWS
    				$anzcomments = getanzcomments($ds[cwID], 'cw');
    				if($anzcomments) $comments='<a href="index.php?site=clanwars_details&cwID='.$ds[cwID].'">['.$anzcomments.'] comments</a> latest by '.getlastcommentposter($ds[cwID], 'cw').' - '.date("d.m.Y - H:i", getlastcommentdate($ds[cwID], 'cw'));
    				else $comments='<a href="index.php?site=clanwars_details&cwID='.$ds[cwID].'">[0] comments</a>';
    			}
    			else {
    				$anzcomments = getanzcomments($ds[newsID], 'ne');
    				if($anzcomments) $comments='<a href="index.php?site=news_comments&newsID='.$ds[newsID].'">['.$anzcomments.'] comments</a> latest by '.getlastcommentposter($ds[newsID], 'ne').' - '.date("d.m.Y - H:i", getlastcommentdate($ds[newsID], 'ne'));
    				else $comments='<a href="index.php?site=news_comments&newsID='.$ds[newsID].'">[0] comments</a>';
    			}
    		}
    		else $comments='';	
    				
    		if(isnewsadmin($userID)) $adminaction='<input type="button" class="button" onClick="MM_goToURL(\'parent\',\'news.php?quickactiontype=unpublish&newsID='.$ds[newsID].'\');return document.MM_returnValue" value="unpublish">
    																					 <input type="button" class="button" onClick="MM_openBrWindow(\'news.php?action=edit&newsID='.$ds[newsID].'\',\'News\',\'toolbar=no,status=no,scrollbars=yes,width=800,height=600\')" value="edit"> 
    		                                       <input type="button" class="button" onClick="MM_confirm(\'really delete this entry?\', \'news.php?action=delete&id='.$ds[newsID].'\')" value="delete">';
    		else $adminaction='';
    
    		eval ("\$news = \"".gettemplate("news")."\";");
    	    echo $news;
    
    		$i++;
    		
    		unset($related);
    		unset($comments);
    		unset($lang);
    		unset($ds);
    	}
    }
    
    ?>


    betroffene Homepage: hd-clan.de.ms
    0 Mitglieder finden den Beitrag gut.
  2. #2
    User Pic
    Moniwoll Hall Of Fame
    Registriert seit
    18.08.2006
    Beiträge
    1.573
    Beitragswertungen
    0 Beitragspunkte
    ja das ist dann wahrscheinlich ein HEX code, finde den nur gerade net
    0 Mitglieder finden den Beitrag gut.
  3. #3
    User Pic
    Dazzel Mitglied
    Registriert seit
    28.10.2006
    Beiträge
    236
    Beitragswertungen
    1 Beitragspunkte
    Ich finde da nur das hier: &#8226 und das ist ganz sicher kein Hex Code zunge
    www.team-alcyon.com || Clanpage
    dazzit.de || Meine Hompage
    0 Mitglieder finden den Beitrag gut.
  4. #4
    User Pic
    Kyuubi Mitglied
    Registriert seit
    12.06.2007
    Beiträge
    76
    Beitragswertungen
    0 Beitragspunkte
    OMG beckground hab ich geschrieben
    dafür gehlör ich geschagen lachen
    background meinte ihc na..
    hmm schade naja wenn den jemand finden solltewäres nett mich darauf aufmerksam zu machen lachen
    @Dazzel
    für n farbcode is es bisschen u klein oder
    normalerwiße hat der 6 ziffern...


    Zuletzt modifiziert von Kyuubi am 19.08.2007 - 18:44:58
    0 Mitglieder finden den Beitrag gut.
  5. #5
    User Pic
    Kyuubi Mitglied
    Registriert seit
    12.06.2007
    Beiträge
    76
    Beitragswertungen
    0 Beitragspunkte
    weiß denn niemand wie das geht??
    de wäre echt wichtig traurig
    0 Mitglieder finden den Beitrag gut.
  6. #6
    User Pic
    Jan Hall Of Fame
    Registriert seit
    17.01.2007
    Beiträge
    3.646
    Beitragswertungen
    54 Beitragspunkte
    Die Hintergrundfarben sind in der style.css festgelegt.
    0 Mitglieder finden den Beitrag gut.
  7. #7
    User Pic
    assault Hall Of Fame
    Registriert seit
    03.11.2006
    Beiträge
    2.925
    Beitragswertungen
    1 Beitragspunkte
    ich würd eher sagen, das is im template
    farben sind selten in den php-dateien
    0 Mitglieder finden den Beitrag gut.
  8. #8
    User Pic
    Kyuubi Mitglied
    Registriert seit
    12.06.2007
    Beiträge
    76
    Beitragswertungen
    0 Beitragspunkte
    also ich hab mir jetzt mal die template datei angesehen
    aber das einzige was da mit farben angedeutet ist sind diese zeilen
    <td bgcolor="$pagebg"></td>
      </tr>
      <tr bgcolor="$bg1">

    also der pagebackground ist schwarz also in der style.ccs ist der 000000
    des heißt dass das ding hier eig auch schwarz sein müsste oder?
    aber darunter steht was mir bg1 was bedeutet das?
    also ich denk auch jedenfall was mit background nur was?


    Zuletzt modifiziert von Kyuubi am 20.08.2007 - 11:42:23
    0 Mitglieder finden den Beitrag gut.
  9. #9
    User Pic
    Jan Hall Of Fame
    Registriert seit
    17.01.2007
    Beiträge
    3.646
    Beitragswertungen
    54 Beitragspunkte
    Probiers einfach mal so:

    <td bgcolor="#FFFFFF"></td> 
      </tr> 
      <tr bgcolor="#FFFFFF">

    Sollte jetzt weiß werden.
    0 Mitglieder finden den Beitrag gut.
  10. #10
    User Pic
    Kyuubi Mitglied
    Registriert seit
    12.06.2007
    Beiträge
    76
    Beitragswertungen
    0 Beitragspunkte
    astrein lachen

    vielen dank und bevor ich ein neuen thread aufmache frag ich hier gleich
    ich will so nen newsticker einbauen lachen
    also nciht wirklich sp ne nachricht halt ich hab das skript schon ich weiß nur nicht wie ichs einbauen soll kann mir jemand helfen??
    also hier das skript:
    <tr>
                    <td> <marquee direction="left" scrollamount ="4">
                    <span class="Stil1">Wilcome to &lt;|{HD}|&gt; . A Rifle-Clan in Call of Duty!</span>
                    </marquee></td>
                  </tr>

    und hier die index
    <?php
    include("_mysql.php");
    include("_settings.php");
    include("_functions.php");
    ?>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <meta name="author" content="GFXXL.de">
    <meta name="keywords" content="Template, GFXXL09, DZCP Designs, Webspell Designs, Free Templates, Designs ">
    <meta name="copyright" content="Copyright © 2006 by www.gfxxl.de">
    <link href="_stylesheet.css" rel="stylesheet" type="text/css">
    <script src="js/bbcode.js" language="jscript" type="text/javascript"></script>
    <link rel="SHORTCUT ICON" href="http://harddef.ha.funpic.de/icon.ico" type="image/x-icon">
    <embed type="audio/mpeg" src="/entermusik2.mp3" hidden="true" loop="true" autostart="true">
    <title>Welcome to &lt;|{HD}|&gt; Clan page</title>
    <style type="text/css">
    <!--
    body {
    	background-color: #000000;
    }
    .Stil9 {color: #FFFFFF}
    -->
    </style>
    <script type="text/JavaScript">
    <!--
    function MM_swapImgRestore() { //v3.0
      var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
    }
    
    function MM_preloadImages() { //v3.0
      var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
        var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
        if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
    }
    
    function MM_findObj(n, d) { //v4.01
      var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
        d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
      if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
      for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
      if(!x && d.getElementById) x=d.getElementById(n); return x;
    }
    
    function MM_swapImage() { //v3.0
      var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
       if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
    }
    //-->
    </script>
    </head>
    
    <body onLoad="MM_preloadImages('images/Buttons/news-mo.jpg','images/Buttons/newsarchive-mo.jpg','images/Buttons/newsletter-mo.jpg','images/Buttons/articles-mo.jpg','images/Buttons/events-mo.jpg','images/Buttons/members-mo.jpg','images/Buttons/clanwars-mo.jpg','images/Buttons/awards-mo.jpg','images/Buttons/history-mo.jpg','images/Buttons/sponsor-mo.jpg','images/Buttons/joinus-mo.jpg','images/Buttons/fightus-mo.jpg','images/Buttons/linkus-mo.jpg','images/Buttons/forum-mo.jpg','images/Buttons/guestbook-mo.jpg','images/Buttons/whoisonline-mo.jpg','images/Buttons/users-mo.jpg','images/Buttons/poll-mo.jpg','images/Buttons/downloads-mo.jpg','images/Buttons/demos-mo.jpg','images/Buttons/links-mo.jpg','images/Buttons/gallery-mo.jpg','images/Buttons/servers-mo.jpg','images/Buttons/imprint-mo.jpg')">
    <div align="center">
      <table width="980" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td width="980" align="left" valign="top"><table width="980" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td width="980" align="left" valign="top"><img src="images/header.jpg" width="980" height="200"></td>
            </tr>
            <tr>
              <td align="left" valign="top"><img src="images/blueline.gif" width="490" height="10"><img src="images/blueline.gif" width="490" height="10"></td>
            </tr>
            
            <tr>
              <td width="980" align="left" valign="top"><table width="980" border="0" cellspacing="0" cellpadding="0">
                <tr align="left" valign="top">
                  <td width="176" background="images/gfxxl.de-buffer-1.jpg"><table width="176" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td width="176" align="left" valign="top"><img src="images/main_02.jpg" width="176" height="24"></td>
                    </tr>
                    <tr>
                      <td width="176" align="left" valign="top"><a href="index.php?site=news" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image45','','images/Buttons/news-mo.jpg',1)"><img src="images/Buttons/news.jpg" name="Image45" width="176" height="20" border="0"></a><a href="index.php?site=news"></a></td>
                    </tr>
                    <tr>
                      <td width="176" align="left" valign="top"><a href="index.php?site=newsarchive" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image46','','images/Buttons/newsarchive-mo.jpg',1)"><img src="images/Buttons/newarchive.jpg" name="Image46" width="176" height="20" border="0"></a><a href="index.php?site=news&action=archive"></a></td>
                    </tr>
                    <tr>
                      <td width="176" align="left" valign="top"><a href="index.php?site=newsletter" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image47','','images/Buttons/newsletter-mo.jpg',1)"><img src="images/Buttons/newsletter.jpg" name="Image47" width="176" height="20" border="0"></a><a href="index.php?site=newsletter"></a></td>
                    </tr>
                    <tr>
                      <td width="176" align="left" valign="top"><a href="index.php?site=articles" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image48','','images/Buttons/articles-mo.jpg',1)"><img src="images/Buttons/articles.jpg" name="Image48" width="176" height="20" border="0"></a><a href="index.php?site=articles"></a></td>
                    </tr>
                    <tr>
                      <td width="176" align="left" valign="top"><a href="index.php?site=calendar" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image49','','images/Buttons/events-mo.jpg',1)"><img src="images/Buttons/events.jpg" name="Image49" width="176" height="20" border="0"></a><a href="index.php?site=calendar"></a></td>
                    </tr>
                    <tr>
                      <td width="176" align="left" valign="top" bordercolor="0"><a href="index.php?site=gallery"><img src="images/clan_02.jpg" width="176" height="24" border="0"></a></td>
                    </tr>
                    <tr>
                      <td width="176" align="left" valign="top"><a href="index.php?site=squads" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image50','','images/Buttons/members-mo.jpg',1)"><img src="images/Buttons/members.jpg" name="Image50" width="176" height="20" border="0"></a><a href="index.php?site=members"></a></td>
                    </tr>
                    <tr>
                      <td width="176" align="left" valign="top"><a href="index.php?site=clanwars" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image51','','images/Buttons/clanwars-mo.jpg',1)"><img src="images/Buttons/clanwars.jpg" name="Image51" width="176" height="20" border="0"></a><a href="index.php?site=clanwars"></a></td>
                    </tr>
                    <tr>
                      <td width="176" align="left" valign="top"><a href="index.php?site=awards" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image52','','images/Buttons/awards-mo.jpg',1)"><img src="images/Buttons/awards.jpg" name="Image52" width="176" height="20" border="0"></a><a href="index.php?site=awards"></a></td>
                    </tr>
                    <tr>
                      <td width="176" align="left" valign="top"><a href="index.php?site=history" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image53','','images/Buttons/history-mo.jpg',1)"><img src="images/Buttons/history.jpg" name="Image53" width="176" height="20" border="0"></a><a href="index.php?site=history"></a></td>
                    </tr>
                    <tr>
                      <td width="176" align="left" valign="top"><a href="index.php?site=sponsors" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image54','','images/Buttons/sponsor-mo.jpg',1)"><img src="images/Buttons/sponsor.jpg" name="Image54" width="176" height="20" border="0"></a><a href="index.php?site=sponsors"></a></td>
                    </tr>
                    <tr>
                      <td width="176" align="left" valign="top"><a href="index.php?site=joinus" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image55','','images/Buttons/joinus-mo.jpg',1)"><img src="images/Buttons/joinus.jpg" name="Image55" width="176" height="20" border="0"></a><a href="index.php?site=joinus"></a></td>
                    </tr>
                    <tr>
                      <td width="176" align="left" valign="top"><a href="index.php?site=challenges" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image56','','images/Buttons/fightus-mo.jpg',1)"><img src="images/Buttons/fightus.jpg" name="Image56" width="176" height="20" border="0"></a><a href="index.php?site=fightus"></a></td>
                    </tr>
                    <tr>
                      <td width="176" align="left" valign="top"><a href="index.php?site=linkus" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image57','','images/Buttons/linkus-mo.jpg',1)"><img src="images/Buttons/linkus.jpg" name="Image57" width="176" height="20" border="0"></a><a href="index.php?site=linkus"></a></td>
                    </tr>
                    <tr>
                      <td width="176" align="left" valign="top"><img src="images/com_02.jpg" width="176" height="24"></td>
                    </tr>
                    <tr>
                      <td align="left" valign="top"><a href="index.php?site=forum" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image58','','images/Buttons/forum-mo.jpg',1)"><img src="images/Buttons/forum.jpg" name="Image58" width="176" height="20" border="0"></a><a href="index.php?site=forum"></a></td>
                    </tr>
                    <tr>
                      <td align="left" valign="top"><a href="index.php?site=guestbook" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image59','','images/Buttons/guestbook-mo.jpg',1)"><img src="images/Buttons/guestbook.jpg" name="Image59" width="176" height="20" border="0"></a><a href="index.php?site=guestbook"></a></td>
                    </tr>
                    <tr>
                      <td align="left" valign="top"><a href="index.php?site=whoisonline" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image60','','images/Buttons/whoisonline-mo.jpg',1)"><img src="images/Buttons/whoisonline.jpg" name="Image60" width="176" height="20" border="0"></a><a href="index.php?site=whoisonline"></a></td>
                    </tr>
                    <tr>
                      <td align="left" valign="top"><a href="index.php?site=registered_users" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image61','','images/Buttons/users-mo.jpg',1)"><img src="images/Buttons/users.jpg" name="Image61" width="176" height="20" border="0"></a><a href="index.php?site=registered_users"></a></td>
                    </tr>
                    <tr>
                      <td align="left" valign="top"><img src="images/media_02.jpg" width="176" height="24"></td>
                    </tr>
                    <tr>
                      <td width="176" align="left" valign="top"><a href="index.php?site=polls" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image62','','images/Buttons/poll-mo.jpg',1)"><img src="images/Buttons/pool.jpg" name="Image62" width="176" height="20" border="0"></a><a href="index.php?site=polls"></a></td>
                    </tr>
                    <tr>
                      <td width="176" align="left" valign="top"><a href="index.php?site=files" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image63','','images/Buttons/downloads-mo.jpg',1)"><img src="images/Buttons/downloads.jpg" name="Image63" width="176" height="20" border="0"></a><a href="index.php?site=files"></a></td>
                    </tr>
                    <tr>
                      <td width="176" align="left" valign="top"><a href="index.php?site=demos" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image64','','images/Buttons/demos-mo.jpg',1)"><img src="images/Buttons/demos.jpg" name="Image64" width="176" height="20" border="0"></a><a href="index.php?site=demos"></a></td>
                    </tr>
                    <tr>
                      <td width="176" align="left" valign="top"><a href="index.php?site=links" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image65','','images/Buttons/links-mo.jpg',1)"><img src="images/Buttons/links.jpg" name="Image65" width="176" height="20" border="0"></a><a href="index.php?site=links"></a></td>
                    </tr>
                    <tr>
                      <td width="176" align="left" valign="top"><a href="index.php?site=gallery" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image66','','images/Buttons/gallery-mo.jpg',1)"><img src="images/Buttons/gallery.jpg" name="Image66" width="176" height="20" border="0"></a><a href="index.php?site=gallery"></a></td>
                    </tr>
                    <tr>
                      <td width="176" align="left" valign="top"><a href="index.php?site=server" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image67','','images/Buttons/servers-mo.jpg',1)"><img src="images/Buttons/servers.jpg" name="Image67" width="176" height="20" border="0"></a><a href="index.php?site=server"></a></td>
                    </tr>
                    <tr>
                      <td width="176" align="left" valign="top"><a href="index.php?site=imprint" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image68','','images/Buttons/imprint-mo.jpg',1)"><img src="images/Buttons/imprint.jpg" name="Image68" width="176" height="20" border="0"></a><a href="index.php?site=imprint"></a></td>
                    </tr>
                    <tr>
                      <td width="176" align="left" valign="top"><a href="index.php?site=sponsors"></a><a href="index.php?site=clanwars"></a><a href="index.php?site=members"></a><img src="images/parnter_02.jpg" width="176" height="24" border="0"></td>
                    </tr>
                    
                    <tr>
                      <td width="176" align="left" valign="top"><div align="center">
                        <p>&nbsp;</p>
                        <p>
                          <?
    			include("sc_partners.php"); 
    			?>
                        </p>
                      </div></td>
                    </tr>
                  </table></td>
                  <td width="564"><table width="564" border="0" cellpadding="0" cellspacing="0">
    			  
                    <tr>
                      <td width="564" align="left" valign="top"><img src="images/banner_02.jpg" width="564" height="24"></td>
                    </tr>
                    <tr>
                      <td width="564" align="left" valign="top"><table width="564" border="0" cellspacing="0" cellpadding="0">
                        <tr align="left" valign="top">
                          <td width="48" height="60"><img src="images/3D_307_03_06.jpg" width="48" height="60"></td>
                          <td width="468" height="60" background="images/gfxxl.de-banner-2.jpg"><?
    			include("sc_bannerrotation.php"); 
    			?></td>
                          <td width="48" height="60"><img src="images/3D_307_03_03.jpg" width="48" height="60"></td>
                        </tr>
                      </table></td>
                    </tr>
                    <tr>
                      <td width="564" align="left" valign="top"><img src="images/content_02.jpg" width="564" height="24"></td>
                    </tr>
                    
                    
                    <tr>
                      <td width="564" align="left" valign="top"><table width="564" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                          <td width="564" align="left" valign="top">&nbsp;</td>
                        </tr>
                        <tr>
                          <td width="564" align="center" valign="top"><table width="545" border="0" cellspacing="0" cellpadding="0">
                            <tr>
                              <td align="center" valign="top"><?
        if(!isset($site)) $site="news";
        //Sichheitsl&uuml;cke beheben
        $invalide = array('/','/\/',':','.');
        $site = str_replace($invalide,' ',$site);
        if(!file_exists($site.".php")) $site = "news";
        include($site.".php");
        ?></td>
                            </tr>
                          </table></td>
                        </tr>
                      </table></td>
                    </tr>
                  </table></td>
                  <td width="240" background="images/gfxxl.de-buffer-3.jpg"><table width="240" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td width="240" align="left" valign="top"><img src="images/member_login_02.jpg" width="240" height="24"></td>
                    </tr>
                    <tr>
                      <td width="240" height="100" align="left" valign="top" background="images/gfxxl.de-buffer-4.jpg"><table width="219" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                          <td width="25">&nbsp;</td>
                          <td width="194" align="left" valign="top"><span class="Stil9">
                            <? include("login.php"); ?>
                          </span></td>
                        </tr>
                      </table></td>
                    </tr>
                    <tr>
                      <td width="240" align="left" valign="top"><img src="images/latest_news_02.jpg" width="240" height="24"></td>
                    </tr>
                    <tr>
                      <td width="240" height="50" align="left" valign="top" background="images/gfxxl.de-buffer-4.jpg"><table width="219" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                          <td width="23">&nbsp;</td>
                          <td width="217" height="0" align="center" valign="middle"><div align="left"><span class="Stil9">
                            <? include("sc_headlines.php"); ?>
                          </span></div></td>
                        </tr>
                      </table></td>
                    </tr>
                    <tr>
                      <td width="240" align="left" valign="top"><img src="images/latest_wars_02.jpg" width="240" height="24"></td>
                    </tr>
                    <tr>
                      <td width="240" height="50" align="left" valign="top" background="images/gfxxl.de-buffer-4.jpg"><table width="219" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                          <td width="27">&nbsp;</td>
                          <td width="192" align="left" valign="top"><? include("sc_results.php"); ?></td>
                        </tr>
                      </table></td>
                    </tr>
                    <tr>
                      <td width="240" align="left" valign="top"><img src="images/nextwar_02.jpg" width="240" height="24"></td>
                    </tr>
                    <tr>
                      <td width="240" height="100" align="left" valign="top" background="images/gfxxl.de-buffer-4.jpg"><table width="219" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                          <td width="26">&nbsp;</td>
                          <td width="193" align="left" valign="top"><? include("sc_upcoming.php"); ?></td>
                        </tr>
                      </table></td>
                    </tr>
                    <tr>
                      <td width="240" align="left" valign="top"><img src="images/current_poll_02.jpg" width="240" height="24"></td>
                    </tr>
                    <tr>
                      <td width="240" height="50" align="left" valign="top" background="images/gfxxl.de-buffer-4.jpg"><table width="219" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                          <td width="23">&nbsp;</td>
                          <td width="217" align="center" valign="top"><? include("poll.php"); ?></td>
                        </tr>
                      </table></td>
                    </tr>
                    <tr>
                      <td width="240" align="left" valign="top"><img src="images/potm_02.jpg" width="240" height="24"></td>
                    </tr>
                    <tr>
                      <td width="240" height="50" align="left" valign="top" background="images/gfxxl.de-buffer-4.jpg"><table width="216" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                          <td width="24">&nbsp;</td>
                          <td width="192" height="100" align="center" valign="middle"><? include("sc_potm.php"); ?></td>
                        </tr>
                      </table></td>
                    </tr>
                    <tr>
                      <td width="240" align="left" valign="top"><img src="images/page_counter_02.jpg" width="240" height="24"></td>
                    </tr>
                    <tr>
                      <td width="240" align="left" valign="top" background="images/gfxxl.de-buffer-4.jpg"><table width="219" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                          <td width="54">&nbsp;</td>
                          <td width="165" align="left" valign="top"><span class="Stil9">
                            <? include("counter.php"); ?>
                          </span></td>
                        </tr>
                      </table></td>
                    </tr>
                    
                  </table></td>
                </tr>
              </table></td>
            </tr>
          </table></td>
        </tr>
        <tr>
          <td width="980" height="50" align="left" valign="top"><table width="980" height="0" border="0" cellpadding="0" cellspacing="0">
            <tr>
              <td height="28" align="left" valign="top"><img src="images/footer_01.jpg" alt="f" width="980" height="24" border="0"></td>
            </tr>
          </table></td>
        </tr>
      </table>
    </div>
    </body>
    </html>

    ich will das das direkt unter dem header ist wie geht das??
    kanns mir jemand schnell einbauen lachen
    0 Mitglieder finden den Beitrag gut.
  11. #11
    User Pic
    Jan Hall Of Fame
    Registriert seit
    17.01.2007
    Beiträge
    3.646
    Beitragswertungen
    54 Beitragspunkte
    ZitatZitat geschrieben von Kyuubi
    kanns mir jemand schnell einbauen lachen

    Schnell wirds höchstwahrscheinlich nicht gehen, weil für den Lauftext eine neue Tabelle (eventuell nur eine Zeile) angelegt werden muss.
    Abhängig vom Design kann das unterschiedlich lange dauern.
    Dann wird das Design durch den Lauftext um ca. 10-15px verschoben.
    Für diese Lücke müssen fertige Bilder angepasst, oder ein neues angelegt werden. Wobei dafür ein kleiner Farbverlauf ausreichen würde.

    Zeig mal welches Design das ist. Dann ist es leichter einzuschätzen, wieviel Freizeit dafür "geopfert" werden muss und du erhält eher eine Antwort.
    0 Mitglieder finden den Beitrag gut.
  12. #12
    User Pic
    Kyuubi Mitglied
    Registriert seit
    12.06.2007
    Beiträge
    76
    Beitragswertungen
    0 Beitragspunkte
    sihe es dir selbst an
    www.hd-clan.de.ms
    0 Mitglieder finden den Beitrag gut.
  13. #13
    User Pic
    Kyuubi Mitglied
    Registriert seit
    12.06.2007
    Beiträge
    76
    Beitragswertungen
    0 Beitragspunkte
    also der lauftext ist nun eig egal
    mir st wichtiger, dass in der shoutbox die schriftfarbe schwarz ist und der hintergrund auch schwarz ist.
    aber komischweiße ist die schift nur in der shoutbox schwarz...
    ich hab mal nachgesehn und folgendes versucht aber das funlktionierte nicht knan mir jemand helfen dass die schriftfarbe der shoutbox anders wird?
    <form name="shout" method="post" target="shoutbox" action="shoutbox_content.php?action=save">
    <iframe allowtransparency="true" src="shoutbox_content.php" style="color: #FFFFFF;" width="160" height="180" name="shoutbox" frameborder="0"> 
    	<p>Ihr Browser kann leider keine eingebetteten Frames anzeigen</p>
    	</iframe><br>
    	
    	  &#8226; <a href="index.php?site=shoutbox_content&action=showall">all messages</a><br>
    	  <input type="text" name="name" size="24" onFocus="this.className='form_on';" onBlur="this.className='form_name'" maxlength="255" $name_settings>
    	  <br>
    	  <input type="text" name="message" size="24" class="form_text" onFocus="this.className='form_on';" onBlur="this.className='form_text'" maxlength="255">
    	  <br>
    	  &#8226; <a href="javascript:document.shout.submit()">shout!</a> 
    	</form>

    also habe ich diesen code eingefügt:
    style="color:#FFFFFF;

    dann sah das so aus:
    <form name="shout" method="post" target="shoutbox" action="shoutbox_content.php?action=save">
    <iframe allowtransparency="true" src="shoutbox_content.php" style="color:#ff0000;" width="160" height="180" name="shoutbox" frameborder="0"> 
    	<p>Ihr Browser kann leider keine eingebetteten Frames anzeigen</p>
    	</iframe><br>
    	
    	  &#8226; <a href="index.php?site=shoutbox_content&action=showall">all messages</a><br>
    	  <input type="text" name="name" size="24" onFocus="this.className='form_on';" onBlur="this.className='form_name'" maxlength="255" $name_settings>
    	  <br>
    	  <input type="text" name="message" size="24" class="form_text" onFocus="this.className='form_on';" onBlur="this.className='form_text'" maxlength="255">
    	  <br>
    	  &#8226; <a href="javascript:document.shout.submit()">shout!</a> 
    	</form>
    was ist daran falsch ist style für da script der falsche code oder was`?
    bitte hilfe
    0 Mitglieder finden den Beitrag gut.
Geschlossen

Zurück zu HTML, PHP, SQL,...

Optionen: Bei einer Antwort zu diesem Thema eine eMail erhalten