tutorials.de Buch-Aktion 05/2012
ERLEDIGT
NEIN
ANTWORTEN
2
ZUGRIFFE
3459
EMPFEHLEN
  • An Twitter übertragen
  • An Facebook übertragen
AUF DIESES THEMA
ANTWORTEN
  1. #1
    BOSS3339 Tutorials.de Gastzugang
    Hallo zusammen,

    ich hab erst ganz frisch mit durch Wordpress mit PHP angefangen, daher bin ich mir nicht sicher, ob bei mir eine Anfängerfehler vorliegt oder, was da sonst los ist.

    Ich kriege immer folgende Fehlermeldeung:
    Code :
    1
    
    Parse error: syntax error, unexpected $end in /data/multiserv/users/293650/projects/372284/www/wp-content/themes/PRiNZ_BranfordMagazine_latest/branfordmagazine/index.php on line 53

    Beim nachstehenden Code handelt es sich also um die Zeile:

    </div><!--END SIDEBAR-->

    Und da liegt das Problem. ich sehe nicht, wo da was falsch sein soll. Daher wäre ich für Tipps sehr dankbar.

    PHP-Code:
    <?php get_header(); ?>
    <div id="content">

       <?php
     
    // Include tabs with the lead story 
        
    include(TEMPLATEPATH '/ui.tabs.php'); ?>
       

      <div id="leftcol">
        <?php 
    // "Featured articles" module begins      
        
    query_posts('showposts=3&cat=1'); ?>
        <h3><?php _e('Aktuelle Meldungen','branfordmagazine');?></h3>
        <?php while (have_posts()) : the_post(); ?>
        <div class="feature"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><img src="<?php bloginfo('url'); ?>/wp-content/uploads/
        <?php 
    // this is where the custom field prints images for each Feature      
        
    $values get_post_custom_values("featuredarticleimage"); echo $values[0]; ?>" alt="" /></a><a href="<?php the_permalink() ?>" rel="bookmark" class="title">
          <?php 
    // title of the "featured articles"      
          
    the_title(); ?></a>
    <p><?php the_content_rss(''TRUE''20); ?></p>
          </div>
        <?php endwhile; ?>
              
      </div><!--END LEFTCOL-->
      
      
      <div id="rightcol">

    <div id="sidebar">
      <ul id="sidelist">
        <?php     /* Widgetized sidebar, if you have the plugin installed. */
                        
    if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar(1) ) : ?>
        <?php endif; ?>
        <?php
    // this is where 10 headlines from the current category get printed      
    if ( is_single() ) :
    global 
    $post;
    $categories get_the_category();
    foreach (
    $categories as $category) :
    ?>
     <li>
          <h3><?php _e('Trunews-Videos','branfordmagazine');?></h3>
    <object width="250" height="202"><param name="movie" value="http://www.youtube.com/v/SOWyA6yHNCk&hl=de_DE&fs=1&"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/SOWyA6yHNCk&hl=de_DE&fs=1&" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="250" height="202"></embed></object>
    </li>   
    </ul><!--END SIDELIST-->
    </div><!--END SIDEBAR-->
    </div><!--END RIGHTCOL-->
    </div><!--END CONTENT-->
    <?php get_sidebar(); ?>
    <?php get_footer
    (); ?>
    Geändert von Maik (24.01.10 um 09:56 Uhr) Grund: Quellcode in Syntax-Highlighter gepackt
     

  2. #2
    Avatar von saftmeister
    saftmeister saftmeister ist gerade online Der Saft sei mit dir
    tutorials.de Premium-User
    Registriert seit
    May 2006
    Ort
    There is no place like 127.0.0.1
    Beiträge
    3.521
    Moin,

    für dieses foreach
    PHP-Code:
    foreach ($categories as $category) : 
    existiert kein
    PHP-Code:
    endforeach; 
    Zumindest kann ich im Source keines finden.
     
    Grüße
    --
    Qualität des Codes wird in WTF's/Min gemessen: Je mehr, desto schlechter der Code ;-)

  3. #3
    BOSS3339 Tutorials.de Gastzugang
    Alles klar t. Vielen Dank für die Antwort.
     

Ähnliche Themen

  1. Antworten: 19
    Letzter Beitrag: 11.02.10, 11:18
  2. Antworten: 1
    Letzter Beitrag: 30.04.09, 14:46
  3. Antworten: 14
    Letzter Beitrag: 18.03.09, 21:58
  4. Antworten: 3
    Letzter Beitrag: 03.02.09, 23:13
  5. Antworten: 2
    Letzter Beitrag: 11.01.08, 13:39