|
|
Latest News |
Latest Threads |
|
 |
55.774 Posts & 4.945 Themen in 78 Foren |
|
|
|
 |
Forensuche |
|
Suchbegriff |
Benutzerauswahl |
Ergebnisse anzeigen |
 |
 |
Newsarchiv , Bild(er) stadt Text in Überschrift`? 5 Beiträge in diesem Thema |
|
|
 |
|
|
 |
|
 |
02.11.2008 - 15:25 Uhr |
|
|
|
Hi , meld mich auch ma wida 
SO nun hab ich mal ein Problem, und zwar möchte ich in meinem Newsarchiv da nicht immer der Pfad steht sondern einfach ein Bild eben ^^
( LINK zur HP: Klick mich )
Dort mal in der Topnavi auf "News" klicken, dann versteht ich es hoffendlich.
Habe selber schon probiert aber ich blick da net durch ^^
Meine news.php (die die für das archiv verantwortlich ist)
Hier klicken zum aufklappen
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 | | PHP-Quelltext
<?php
if ($_REQUEST['entries']=="") {$entries=0;}
else {$entries=$_REQUEST['entries'];}
if ($_REQUEST['contentid']!='') {$contentid=$_REQUEST['contentid'];}
if ($_REQUEST['catid']!='') {$catid=$_REQUEST['catid'];}
unset($sqlcommand);
$sqlcommand=" WHERE ".$db_tab['content'].".content_option='2' AND ".$db_tab['content'].".content_status='1' AND ".$db_tab['content'].".content_time<'".$time_now."' AND (".$db_tab['content'].".content_expire>'".$time_now."' OR ".$db_tab['content'].".content_expire='0')";
if ($contentid!="" && $contentid!="new") {$sqlcommand.=" AND ".$db_tab['content'].".content_id='".$contentid."'";}
if ($catid!="") {$sqlcommand.=" AND ".$db_tab['content'].".content_cat='".$catid."'";}
$sqlcommand=" FROM ".$db_tab['content']." LEFT JOIN ".$db_tab['contentcat']." ON ".$db_tab['contentcat'].".contentcat_id=".$db_tab['content'].".content_cat ".$sqlcommand." AND (".sqlrights($db_tab['contentcat'].".contentcat_rights").")";
$sqlcommand2="SELECT ".$db_tab['content'].".* ".$sqlcommand;
$sqlcommand.=" ORDER by ".$db_tab['content'].".content_time DESC LIMIT ".$entries.",";
if ($contentid!="") {$sqlcommand.=1;}
else {$sqlcommand.=$config[content_epp2];}
$sqlcommand="SELECT ".$db_tab['content'].".* ".$sqlcommand;
$getcontentinfo=$DB->query($sqlcommand);
unset($sqlcommand);
while ($contentinfo=$DB->fetch_array($getcontentinfo)) {
$contentinfo_cache[]=$contentinfo;
if ($contentinfo[content_autorid]!=0) {
if ($sqlcommand=="") {$sqlcommand="SELECT user_nick, user_id FROM ".$db_tab['user']." WHERE user_id='".$contentinfo['content_autorid']."'";}
else {$sqlcommand.=" OR user_id='".$contentinfo['content_autorid']."'";}
}
}
if ($sqlcommand!="") {
$getuserinfo=$DB->query($sqlcommand);
while($userinfo=$DB->fetch_array($getuserinfo)) {$userinfo_cache[$userinfo[user_id]]=$userinfo;}}
if (is_array($contentinfo_cache)) {
$contentcat=contentcats(); $contentcat_cache=$contentcat['0'];
foreach($contentinfo_cache as $contentinfo) {
$contentcatinfo=$contentcat_cache[$contentinfo[content_cat]];
if ($contentinfo['content_autorid']==0) {$autor_info=$newsinfo['content_autor'];}
else {
$userinfo=$userinfo_cache[$contentinfo[content_autorid]];
if ($userinfo[0]!="") {eval ("\$autor_info= \"".getTemplate("member_showprofil_textlink")."\";");}
else {$autor_info=$contentinfo['content_autor'];}
}
$news_time=formattime($contentinfo['content_time']);
$catimage_dimension=@getimagesize("images/catimages/".$contentcatinfo['contentcat_symbol']);
eval ("\$news_image= \"".getTemplate("content/cat_image_right")."\";");
if ($contentid=="") {$news_text=explode("<break>",$contentinfo['content_text']); $news_text=$news_text['0'];}
else {$news_text=str_replace("<break>","",$contentinfo[content_text]);}
$news_text=$PARSE->parse($news_text,$contentinfo['content_html'],$contentinfo['content_ubb'],$contentinfo['content_smilies'],1);
if ($contentid=="" && eregi("<break>",$contentinfo['content_text'])) {eval ("\$news_text.= \"".getTemplate("content/news_morelink")."\";");}
$news_text=str_replace("<break>","",$news_text);
if ($contentinfo['content_comment_status']==1) {
$commentcount=$DB->fetch_array($DB->query("SELECT COUNT(*) FROM ".$db_tab['comment']." WHERE comment_subid='".$contentinfo['content_id']."' AND comment_cat='cont'"));
if ($commentcount[0]>1) {$news_comments=$commentcount[0].' '.$lang['comments'];}
elseif ($commentcount[0]==1) {$news_comments=" 1 ".$lang['comment'];}
else {$news_comments=$lang['no_comments'];}
}
if ($contentinfo['content_altdat']!='') {
$source=explode("\n",$contentinfo['content_altdat']);
foreach($source as $s) {
if ($news_source!="") {$news_source.=", ";}
$news_source.=$PARSE->parse($s,0,1,0,0);
}
if ($news_source!='') {eval ("\$news_source= \"".getTemplate("content/news_source")."\";");}
}
$cont_title=stripslashes($contentinfo['content_title']);
$suggest_url=urlencode("path=content/news.php&contentid=".$contentinfo['content_id']);
eval ("\$site_body.= \"".getTemplate("content/news")."\";");
unset($news_source); unset($news_comments); unset($news_text); unset($news_text_cut);
}
}
if ($contentid=="") {
$counter=$DB->num_rows($DB->query($sqlcommand2));
if ($counter>$config['content_epp2']) {
$page_link=sidelinkfull($counter,$config['content_epp2'],$entries,"include.php?path=content/news.php&catid=".$catid,"sitebodysmall");}
}
eval ("\$site_body.= \"".getTemplate("content/news_navigation")."\";");
?>
| |  |
Wäre nice wenn mir jemand helfen könnte.
Benutze das PHPKIT 1.6.03
|
|
|
|
|
|
|
 |
|
 |
02.11.2008 - 16:31 Uhr |
|
|
|
Die content/news.php ist nicht für das News-Archiv verantwortlich. Das ist nämlich die content/overview.php.
Und den Teil, den du meinst, ist einfach die News-Ansicht, nicht direkt das Archiv.
Und ich denke, du meinst das Archiv, da dort ein Bild zu sehen, daß das Design zerreist.
Und da müsstest du nur die Templates bearbeiten, und dort das Bild erscheinen lassen (Kategorie- oder die Aufmacher-Grafik).
Und dann am besten noch untereinander, nicht nebeneinander.
|
|
|
|
|
|
|
 |
|
 |
02.11.2008 - 19:18 Uhr |
|
|
|
Nein ^^
auserdem verseh ich dein Post net so ganz 
Ich will das stadt "Klasse » Klassenarbeiten" eben die Grafik reinkommt!
finde aber nix -.-
|
|
|
|
|
|
|
 |
|
 |
02.11.2008 - 20:33 Uhr |
|
|
|
Dann sag auch, was du meinst. Ich ging von den dir erwähnten Archiv aus, was ja nun mal hier ist.
Das Template ist content/news, und gleich die erste Tabellen-Zeile. Da musste dann deine Grafik einsetzen, bzw. wenn es dynamisch ist, die Variable für die Grafik (Kategorie- oder Aufmacher-Grafik).
|
|
|
|
|
|
|
 |
|
 |
03.11.2008 - 18:05 Uhr |
|
|
|
ok danke versuchs , danke auch fürn den Link dann weis ich was ich da wieder wegmachen muss ^^
Melde mich wenns geht 
MfG
|
|
|
|
|
|
|
 |
Ähnliche Themen |
|
|
|
|
|
|
|
|