kann mir jemand genauer erklären wie das geht mit den seiten? bin nicht so das genie in php :D
Beiträge von julius
-
-
gut thread kann geshclossen werden, hab den alten css-stil genommen und meine sachen eingefügt... :D geht wieder, worans lag... irgendwo in der css...das ist schonmal klar :D
-
EDIT: Dieses übrige DIV am Ende ist der Grund warum mein problem mit dem Magazin unten bei Kategorien gelöst ist. Aber das Problem nummero uno lösts nicht :( HILFE!
also ok. ich hab jetzt die css überprüft aber eigentlich keinen fehler gefunden. vermute,dass ich mich vertan habe. in der php werde ich das mit dem zuklappen der divs mal in dreamweaver versuchen und mal sehen, was da wo übrig bleibt. das komische ist: das mit dem first-tag hat sich erledigt irgendwie, der wird nur noch oben verwendet, hab aber eigentlich nichts gemacht :)
HILFE :(
-
also ok. ich hab jetzt die css überprüft aber eigentlich keinen fehler gefunden. vermute,dass ich mich vertan habe. in der php werde ich das mit dem zuklappen der divs mal in dreamweaver versuchen und mal sehen, was da wo übrig bleibt. das komische ist: das mit dem first-tag hat sich erledigt irgendwie, der wird nur noch oben verwendet, hab aber eigentlich nichts gemacht :) :) :)
HILFE :(
-
Zitat von telekommander
Hm, Sackgasse ? Von vorn anfangen ?
Zumindest ist dieser Fehler weg.
Was funktioniert denn noch nicht ?Btw.:
Dann ändere das noch:HTML<div id="header"> <a href="http://www.stereopoly.de" alt="Home"> <div id="headerlogobild"></div></a>
Tausche mal die Endtags [FONT="Courier New"]</div>[/FONT] und [FONT="Courier New"]</a>[/FONT] . ( header.php ? )Edit:
Tu es nicht, verstehe denn Sinn nicht. Zumindest nörgelt der Validator darüber!
Du hast denn Container verlinkt ?moment :D
neu anfangen? womit? endtags tauschen ok :) verlinkt habe ich weil ich keine ahnung hab :) den rest versteh ich nicht von dir :(
-
es ist das original :D
dies ist das hemingway original, meins war etwas tiefergelegt ... :D
PHP
Alles anzeigen<?php get_header(); ?> <div id="primary" class="twocol-stories"> <div class="inside"> <?php // Here is the call to only make two posts show up on the homepage REGARDLESS of your options in the control panel query_posts('showposts=2'); ?> <?php if (have_posts()) : ?> <?php $first = true; ?> <?php while (have_posts()) : the_post(); ?> <div class="story<?php if($first == true) echo " first" ?>"> <h3><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h3> <?php $hemingway->excerpt() ?> <div class="details"> <?= _('Posted at') ?> <?php the_time('ga \o\n ' . $hemingway->date_format(true) . '/y') ?> | <?php comments_popup_link('no comments', '1 comment', '% comments'); ?> | Filed Under: <?php the_category(', ') ?> <span class="read-on"><a href="<?php the_permalink() ?>">read on</a></span> </div> </div> <?php $first = false; ?> <?php endwhile; ?> </div> <?php else : ?> <h2 class="center">Not Found</h2> <p class="center">Sorry, but you are looking for something that isn't here.</p> <?php include (TEMPLATEPATH . "/searchform.php"); ?> <?php endif; ?> <div class="clear"></div> </div> <!-- [END] #primary --> <?php get_sidebar(); ?> <?php get_footer(); ?> -
so habsch gemacht :D nur leider hat sich nichts verändert!
hier meine php:
PHP
Alles anzeigen<?php get_header(); ?> <div id="primary" class="twocol-stories"> <div class="inside"> <?php // Here is the call to only make two posts show up on the homepage REGARDLESS of your options in the control panel query_posts('cat=11&showposts=1'); ?> <?php if (have_posts()) : ?> <?php while (have_posts()) : the_post(); ?> <div class="story first"> <h3><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link zu <?php the_title(); ?>"><?php the_title(); ?></a></h3> <?php $hemingway->excerpt() ?> <div class="details"> <?php the_time('ga \a\m j/n/y') ?> | <?php comments_popup_link('Keine Kommentare', '1 Kommentar', '% Kommentare'); ?> | <span class="read-on"><a href="<?php the_permalink() ?>">Artikel lesen...</a></span> </div> </div> <?php endwhile; ?> <?php $my_query = new WP_Query('cat=10&showposts=1'); ?> <?php if($my_query->have_posts()) : ?> <?php while ($my_query->have_posts()) : $my_query->the_post(); ?> <div class="story"> <h3><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h3> <?php $hemingway->excerpt() ?> <div id="podcast"><div class="details"> <?php the_time('ga \a\m j/n/y') ?> | <?php comments_popup_link('Keine Kommentare', '1 Kommentar', '% Kommentare'); ?> | <span class="read-on"><a href="<?php the_permalink() ?>">Zur Folge...</a></span> </div> </div> <?php endwhile; endif; ?> </div> <?php else: ?> <h2 class="center">Nicht gefunden</h2> <p class="center">Sorry, aber du suchst nach etwas, was nicht vorhanden ist.</p> <?php include (TEMPLATEPATH . "/searchform.php"); ?> <?php endif; ?> <div class="clear"></div> </div> </div> <!-- [END] #primary --> <?php get_sidebar(); ?> <?php get_footer(); ?> -
wo genau? ich such grad wie ein verrückter... auf http://www.stereopoly.de siehts wüst aus :D
-
tut mir leid, die domain lautet http://www.stereopoly.de
-
soll ich das ganz simpel darunter kopieren oder wie sieht das aus? kanns ja nich so gut :(
mmhhh... kanns leider nich so prickelnd... wüsste leider auch nicht wie das ginge :(
-
(anhang css gezippt weil text zu lang :D )
-
Hey Leute,
ich arbeite seit geraumer Zeit mit Hemingway und verzweifle langsam. Ich möchte in der linken Box "Magazin" stheen haben und in der rechten "Podcast". Das klappt auch soweit, bis auf das er das plötzlich das auch in "kategorien" schmeisst. ARGH! Punkt zwei: Normalerweise ist bei Hemingway Der Hingergrund grau unten. Bei mir war er irgendwann plötzlich schwarz und ich weiß nicht warum. ich brauche hilfe :(
-
leider habe ich weder ersteres noch letzteres. auch veränderungen an der "a img" verändern was! was muss ich amchen um dieses content img auf alle bilder im inhalt anzuwenden?
-
komisch, ich hab in meinem theme keine "category.php" . er macht das alles über die single.php!
-
wohin verlinkt der denn nun genau? weil ich muss ja die bestehende kopieren und dann bearbeiten... die pages.php?
-
Hey Leute,
ich hab da eine Frage. Ich hab ein Wordpress Blog und unterscheide zwischen zwei Arten von Beiträgen. Einmal den Podcastbeiträgen und einmal den Magazinbeiträgen. Wenn man auf weiterlesen klickt verlinken beide ja zu einer Seite basierend auf dem Layout der Beitrags-PHP. Da ich aber zwei verschiedene Arten von Beiträgen habe, würde ich gerne, dass Beiträge aus dem Bereich "Magazin" weiterhin auf dem Layout (standartmäßig) des normalen Beitragsschemas basieren aber Podcastbeiträge (kategorie Podcast) ein anderes Layout nehmen. Ich seh es nämlich so, dass derzeit meine Beiträge (wenn man auf weiterlesen klickt) mit der Pages.php angezeigt werden. Derzeit tuen ALLE Beiträge das. Da ich aber die Podcastbeiträge gerne anders formatiert haben wollen würde (es sich aber nicht auf die Magazinbeiträge auswirken darf) dachte ich wäre es möglich eine Pages_podcast.php zu erstellen und alle Beiträge der Kategorie Podcast zeigen ihre Beiträge in dieser an.
Ich weiß, ein wenig komplex und ein wenig schlecht beschrieben. Die Page gibts hier:
PHP
Alles anzeigen<?php get_header(); ?> <div id="primary" class="twocol-stories"> <div class="inside"> <?php // Here is the call to only make two posts show up on the homepage REGARDLESS of your options in the control panel query_posts('cat=11&showposts=1'); ?> <?php if (have_posts()) : ?> <?php while (have_posts()) : the_post(); ?> <div class="story first"> <h3><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link zu <?php the_title(); ?>"><?php the_title(); ?></a></h3> <?php $hemingway->excerpt() ?> <div class="details"> <?php the_time('ga \a\m j/n/y') ?> | <?php comments_popup_link('Keine Kommentare', '1 Kommentar', '% Kommentare'); ?> | <span class="read-on"><a href="<?php the_permalink() ?>">Artikel lesen...</a></span> </div> </div> <?php endwhile; ?> <?php $my_query = new WP_Query('cat=10&showposts=1'); ?> <?php if($my_query->have_posts()) : ?> <?php while ($my_query->have_posts()) : $my_query->the_post(); ?> <div class="story"> <h3><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h3> <?php $hemingway->excerpt() ?> <div class="details"><div id="podcast"></div> <?php the_time('ga \a\m j/n/y') ?> | <?php comments_popup_link('Keine Kommentare', '1 Kommentar', '% Kommentare'); ?> | <span class="read-on"><a href="<?php the_permalink() ?>">Zur Folge...</a></span> </div> </div> <?php endwhile; endif; ?> </div> <?php else: ?> <h2 class="center">Nicht gefunden</h2> <p class="center">Sorry, aber du suchst nach etwas, was nicht vorhanden ist.</p> <?php include (TEMPLATEPATH . "/searchform.php"); ?> <?php endif; ?> <div class="clear"></div> </div> <!-- [END] #primary --> <?php get_sidebar(); ?> <?php get_footer(); ?>Machts gut
-
Hey Leute,
ich habe (wie bekannt :D ) Hemingway und hätte gerne um jeden Post das angehängte Gestrüp. Also runde Ecken und dieses Bild oben rechts. Wie stelle ich das an und wichtig ist auch das Box 2 das ganze mit einem anderen Bild bekommt, also kein "Magazin" sondern "Podcast". Sprich in Box 1 auf der Page steht "Magazin" und in der rechten Box "Podcast".
hier meine index.php:
PHP
Alles anzeigen<?php get_header(); ?> <div id="primary" class="twocol-stories"> <div class="inside"> <?php // Here is the call to only make two posts show up on the homepage REGARDLESS of your options in the control panel query_posts('cat=4&showposts=1'); ?> <?php if (have_posts()) : ?> <?php while (have_posts()) : the_post(); ?> <div class="story first"> <h3><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link zu <?php the_title(); ?>"><?php the_title(); ?></a></h3> <?php $hemingway->excerpt() ?> <div class="details"> Geschrieben um <?php the_time('ga \o\n n/j/y') ?> | <?php comments_popup_link('Keine Kommentare', '1 Kommentar', '% Kommentare'); ?> | <span class="read-on"><a href="<?php the_permalink() ?>">weiterlesen</a></span> </div> </div> <?php endwhile; ?> <?php $my_query = new WP_Query('cat=10&showposts=1'); ?> <?php if($my_query->have_posts()) : ?> <?php while ($my_query->have_posts()) : $my_query->the_post(); ?> <div class="story"> <h3><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h3> <?php $hemingway->excerpt() ?> <div class="details"> Geschrieben um <?php the_time('ga \o\n n/j/y') ?> | <?php comments_popup_link('Keine Kommentare', '1 Kommentar', '% Kommentare'); ?> | <span class="read-on"><a href="<?php the_permalink() ?>">weiterlesen</a></span> </div> </div> <?php endwhile; endif; ?> </div> <?php else: ?> <h2 class="center">Nicht gefunden</h2> <p class="center">Sorry, aber du suchst nach etwas, was nicht vorhanden ist.</p> <?php include (TEMPLATEPATH . "/searchform.php"); ?> <?php endif; ?> <div class="clear"></div> </div> <!-- [END] #primary --> <?php get_sidebar(); ?> <?php get_footer(); ?> -
ich danke euch SOOOOOO sehr, es hat geklappt! ihr seid klasse, hier bleib ich... ;)
-
heey hey hey moment, habs jetzt folgendermaßen geändert:
PHP
Alles anzeigen<?php get_header(); ?> <div class="headerlogo"></div> <div id="primary" class="twocol-stories"> <div class="inside"> <?php // Here is the call to only make two posts show up on the homepage REGARDLESS of your options in the control panel query_posts('cat=4&showposts=1'); ?> <?php if (have_posts()) : ?> <?php while (have_posts()) : the_post(); ?> <div class="story first"> <h3><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h3> <?php $hemingway->excerpt() ?> <div class="details"> Posted at <?php the_time('ga \o\n n/j/y') ?> | <?php comments_popup_link('no comments;', '1 comment', '% comments'); ?> | Filed Under: <?php the_category(', ') ?> | <span class="read-on"><a href="<?php the_permalink() ?>">read on</a></span> </div> </div> <?php endwhile; ?> <?php $my_query = new WP_Query('cat=10&showposts=1'); ?> <?php if($my_query->have_posts()) : ?> <?php while ($my_query->have_posts()) : $my_query->the_post(); ?> <div class="story"> <h3><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h3> <?php $hemingway_excerpt() ?> <div class="details"> Posted at <?php the_time('ga \o\n n/j/y') ?> | <?php comments_popup_link('no comments;', '1 comment', '% comments'); ?> | Filed Under: <?php the_category(', ') ?> | <span class="read-on"><a href="<?php the_permalink() ?>">read on</a></span> </div> </div> <?php endwhile; endif; ?> </div> <?php else: ?> <h2 class="center">Nicht gefunden</h2> <p class="center">Sorry, aber du suchst nach etwas, was nicht vorhanden ist.</p> <?php include (TEMPLATEPATH . "/searchform.php"); ?> <?php endif; ?> <div class="clear"></div> </div> <!-- [END] #primary --> <?php get_sidebar(); ?> <?php get_footer(); ?>und er wirft ( http://www.stereopoly.de ) folgenden Fehler aus:
ZitatFatal error: Call to undefined function: () in /var/www/web1/html/wp-content/themes/hemingway/index.php on line 26
-
derweil sieht es so aus... nach dem ich ein endif weiter oben herausgenommen habe!
PHP
Alles anzeigen<?php get_header(); ?> <div class="headerlogo"></div> <div id="primary" class="twocol-stories"> <div class="inside"> <?php // Here is the call to only make two posts show up on the homepage REGARDLESS of your options in the control panel query_posts('cat=1&showposts=1'); ?> <?php if (have_posts()) : ?> <?php while (have_posts()) : the_post(); ?> <div class="story first"> <h3><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h3> <?php $hemingwayexcerpt() ?> <div class="details"> Posted at <?php the_time('ga \o\n n/j/y') ?> | <?php comments_popup_link('no comments;', '1 comment', '% comments'); ?> | Filed Under: <?php the_category(', ') ?> | <span class="read-on"><a href="<?php the_permalink() ?>">read on</a></span> </div> </div> <?php endwhile; ?> <?php $my_query = new WP_Query('cat=2&showposts=1'); ?> <?php if($my_query->have_posts()) : ?> <?php while ($my_query->have_posts()) : $my_query->the_post(); ?> <div class="story"> <h3><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h3> <?php $hemmingway_excerpt() ?> <div class="details"> Posted at <?php the_time('ga \o\n n/j/y') ?> | <?php comments_popup_link('no comments;', '1 comment', '% comments'); ?> | Filed Under: <?php the_category(', ') ?> | <span class="read-on"><a href="<?php the_permalink() ?>">read on</a></span> </div> </div> <?php endwhile; endif; ?> </div> <?php else: ?> <h2 class="center">Nicht gefunden</h2> <p class="center">Sorry, aber du suchst nach etwas, was nicht vorhanden ist.</p> <?php include (TEMPLATEPATH . "/searchform.php"); ?> <?php endif; ?> <div class="clear"></div> </div> <!-- [END] #primary --> <?php get_sidebar(); ?> <?php get_footer(); ?>