Zurück   WordPress Deutschland Forum > Support > Design > Theme-Entwicklung

Antwort
 
Themen-Optionen Ansicht
Alt 24.05.2008, 09:33   #81 (permalink)
PostRank: 4
 
Registriert seit: 24.03.2007
Beiträge: 191
Poste mal Deine index.php hier und ich schau´s mir an. Im Moment kann ich leider nicht auf Deine Seite schauen, da ich einen 403 Fehler erhalte (Zugriff nicht erlaubt)
__________________
www.der-prinz.com
michael.oeser ist offline   Mit Zitat antworten
Alt 25.05.2008, 01:52   #82 (permalink)
PostRank: 0
 
Registriert seit: 22.05.2008
Beiträge: 8
Danke Michael, dass ist wirklich nett.

Zur Info: Das in den Punkten 2. und 3. hat gepasst und ist erledigt - Thanks!!! Nur halt mit dem Bild klappet noch net.
Das die Seite nicht zu erreichen war ist richtig, hatte die Adresse gewechselt und das dauerte erst einmal. Sollte jetzt aber gehen - guckst Du hier.
Es kann sein dass zwischenzeitlich die Bilder ebenfalls nicht angezeigt werden. Bei mir dreht es sich jedoch nur um Bereich #fragment-1

Hier der Code von meiner Index.php

<?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=6'); ?>
<h3>
<?php
// name of the "Featured articles" category gets printed
wp_list_categories('include=6&title_li=&style=none '); ?></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">
<?php
// enter the IDs of which categories you want to display
$display_categories = array(3,4,5,6);
foreach ($display_categories as $category) { ?>
<div class="clearfloat">
<?php query_posts("showposts=1&cat=$category");
$wp_query->is_category = false;
$wp_query->is_archive = false;
$wp_query->is_home = true;
?>
<h3><a href="<?php echo get_category_link($category);?>"><?php
// name of each category gets printed
single_cat_title(); ?></a></h3>
<?php while (have_posts()) : the_post(); ?>
<?php
// this grabs the image filename
$values = get_post_custom_values("rightcolimage");
// this checks to see if an image file exists
if (isset($values[0])) {
?>
<a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><img src="<?php bloginfo('url'); ?>/wp-content/uploads/<?php $values = get_post_custom_values("rightcolimage"); echo $values[0]; ?>" alt="" /></a>
<?php } ?>
<a href="<?php the_permalink() ?>" rel="bookmark" class="title"><?php
// this is where title of the article gets printed
the_title(); ?></a><br />
<?php the_content(__('(weiter...)')); ?>
<?php endwhile; ?>
</div>
<?php } ?>
</div><!--END RIGHTCOL-->
</div><!--END CONTENT-->
<?php get_sidebar(); ?>
<?php get_footer(); ?>
SultanAdmin ist offline   Mit Zitat antworten
Alt 25.05.2008, 11:27   #83 (permalink)
PostRank: 6
 
Registriert seit: 15.06.2007
Beiträge: 569
@SultanAdmin

ganz nebenbei würde mich interessieren was du mit dem theme gemacht hast?
bei mir werden auf deiner startseite 121 fehler angezeigt..bei der demo von michael sind nur 7 vorhanden.
Silencer ist offline   Mit Zitat antworten
Alt 25.05.2008, 11:49   #84 (permalink)
PostRank: 4
 
Registriert seit: 24.03.2007
Beiträge: 191
@Sultanadmin: Sorry, kannst Du bitte die ui.tabs.php auch noch posten
__________________
www.der-prinz.com
michael.oeser ist offline   Mit Zitat antworten
Alt 26.05.2008, 23:27   #85 (permalink)
PostRank: 0
 
Registriert seit: 22.05.2008
Beiträge: 8
@Silencer - die Frage, was ich nicht gemacht hab wär angebrachter. aber um Ehrlich zu sein, hab ich keine Ahnung warum soviel Fehler angezeigt werden.

Eigentlich habe und wollte ich nur die Farben, Schriften und die Grafiken ändern, was ich nebenbei falsch gemacht habe kann ich leider nicht sagen.

Hier ist der Code Michael:

<!-- START TABBED SECTION -->
<div id="container-4">
<ul>
<li><a class="ui-tabs" href="#fragment-1">Neuste</a></li>
<li><a class="ui-tabs" href="#fragment-2">Letzte News</a></li>
<li><a class="ui-tabs" href="#fragment-3">Anleitung</a></li>
<!-- Just add tabs as you like by following this scheme:
<li><a class="ui-tabs" href="#fragment-X">Link name here</a></li> -->
</ul>
<!-- LEAD ARTICLE -->
<div id="fragment-1">
<ul id="leadarticle">
<?php
// Lead Story module begins
query_posts('showposts=1&cat=1'); //selects 1 article of the category with ID 1 ?>
<?php while (have_posts()) : the_post(); ?>
<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 Lead Story image gets printed
$values = get_post_custom_values("leadimage"); echo $values[0]; ?>" alt="" id="leadpic" /></a>
<h3>
<?php
// this is where the name of the Lead Story category gets printed
wp_list_categories('include=1&title_li=&style=none '); ?>
</h3>
<a href="<?php the_permalink() ?>" rel="bookmark" title="<?php __('Permanent Link to','branfordmagazine')?> <?php the_title(); ?>" class="title">
<?php
// this is where the title of the Lead Story gets printed
the_title(); ?>
</a>
<?php
// this is where the excerpt of the Lead Story gets printed
the_content('weiter...'); ?>
<?php endwhile; ?>
</ul>
</div>
<!-- END LEAD ARTICLE -->
<!-- RECENT POSTS -->
<div id="fragment-2" class="bullets">
<h3 class="title">Letzte News</h3>
<p>Hier werden die letzten 4 verfassten Artikel aufgelistet. ....</p>
<?php wp_get_archives('type=postbypost&limit=4'); ?>
</div>
<!-- END RECENT POSTS -->
<!-- ABOUT -->
<div id="fragment-3">
<ul class="about">
<h3 class="title">Anleitung</h3>
<p>SultanWorld News - ...</p>
</ul>
</div>
<!-- END ABOUT -->
</div>
<!-- END TABBED SECTION -->
SultanAdmin ist offline   Mit Zitat antworten
Alt 27.05.2008, 21:16   #86 (permalink)
PostRank: 4
 
Registriert seit: 24.03.2007
Beiträge: 191
Bau mal den Code in der ui.tabs.php für das fragment 1 ein
PHP-Code:
  <!-- LEAD ARTICLE -->
  <div id="fragment-1">
    <ul id="leadarticle">
      <?php 
// Lead Story module begins   
   
query_posts('showposts=1&cat=1'); //selects 1 article of the category with ID 1 ?>
      <?php while (have_posts()) : the_post(); ?>
      <?php
// this grabs the image filename
    
$values get_post_custom_values("leadimage");
// this checks to see if an image file exists
    
if (isset($values[0])) {                        
?>
      <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><img src="<?php bloginfo('url'); echo '/'; echo get_option('upload_path'); echo '/'
// this is where the Lead Story image gets printed    
    
$values get_post_custom_values("leadimage"); echo $values[0]; ?>" alt="leadimage" id="leadpic" /></a>
      <?php ?>
      <h3>
        <?php 
    
// this is where the name of the Lead Story category gets printed      
    
wp_list_categories('include=1&title_li=&style=none'); ?>
      </h3>
      <a href="<?php the_permalink() ?>" rel="bookmark" title="<?php __('Permanent Link to','branfordmagazine')?> <?php the_title(); ?>" class="title">
      <?php 
// this is where the title of the Lead Story gets printed      
    
the_title(); ?>
      </a>
      <?php 
// this is where the excerpt of the Lead Story gets printed      
    
the_excerpt() ; ?>
      <?php endwhile; ?>
    </ul>
  </div>
  <!-- END LEAD ARTICLE -->
Damit wird abgefragt, ob überhaupt ein Bild existiert und wenn nicht, dann wird auch kein leerer Image Tag geschrieben. Dadurch zeigt es auch kein "Broken Image" an.

Sollte zwar eigentlich standardmäßig so im Theme sein, aber manchmal schleichen sich komische Sachen rein (oder raus) die ich auch nicht immer erklären kann

Nebenbei: Ich kann immer noch nicht auf die Seite zugreifen...
__________________
www.der-prinz.com
michael.oeser ist offline   Mit Zitat antworten
Alt 28.05.2008, 06:37   #87 (permalink)
PostRank: 0
 
Registriert seit: 22.05.2008
Beiträge: 8
Hallo Michael, das hat geholfen - Dankeeee

Aber jetzt habe ich die Dinger noch in der linken Spalte bei der Featured Page (hoffe das ist die richtige Seite die ich meine)

Hier ist der Code
PHP-Code:
<?php
/*
Template Name: Featured Page
*/
?>
<?php get_header
(); ?>
<div id="featured-top">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div id="featured-leftcol"> <img class="left" src="<?php bloginfo('url'); ?>/wp-content/uploads/<?php $values get_post_custom_values("featuredpagepic"); echo $values[0]; ?>" alt="" id="featuredpagepic" />
  <h2>
    <?php $values get_post_custom_values("featuredpageheadline"); echo $values[0]; ?>
  </h2>
  <span id="featured-text">
  <?php $values get_post_custom_values("featuredpagetext"); echo $values[0]; ?>
  </span> </div>
  
<div id="featured-rightcol">
  <h3><?php _e('Recent Posts','branfordmagazine');?></h3>
  <li id="featured-recent">
    <ul class="bullets">
      <?php wp_get_archives('type=postbypost&limit=5'); ?>
    </ul>
  </li>
</div>
</div>
<div id="featured-content">
  
  <div class="featured_post" id="post-<?php the_ID(); ?>">
    <h2>
      <?php the_title(); ?>
    </h2>
    
    <div class="entry">
      <?php the_content("<p class=\"serif\">" __('Read the rest of this page''branfordmagazine') ." &raquo;</p>"); ?>
   <?php wp_link_pages("<p><strong>" __('Pages''branfordmagazine') . ":</strong>"'</p>'__('number','branfordmagazine')); ?>
    </div>
    
  </div>
  
  <?php endwhile; endif; ?>
  
  <?php edit_post_link('Edit''<p>''</p>'); ?>
  
</div>
<div id="featured-sidebar">
    <?php  /* Widgetized sidebar, if you have the plugin installed. */
     
if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar(2) ) : ?>
    <?php endif; ?>
</div>
<?php get_footer(); ?>
Aber warum du nicht auf die Seite kommst versteh ich ehrlich gesagt nicht...
Silencer nach zu beurteilen ist es doch möglich

Ich bin jetzt extra ins InternetCafe gegangen um zu testen ob die Seite aufzurufen ist Michael - es geht...

ganz normal mit SultanWorld News

Geändert von SultanAdmin (28.05.2008 um 15:33 Uhr). Grund: Bzgl. Test
SultanAdmin ist offline   Mit Zitat antworten
Alt 28.05.2008, 20:49   #88 (permalink)
PostRank: 4
 
Registriert seit: 24.03.2007
Beiträge: 191
@SultanAdmin: *Kreuzdonnerwettersackzementzefixmalakkagazohimmel nocheins*...und ich sach noch: "hol Dir die Version 2.51 von MEINER Website" aber der Herr meint ja er hat die bereits. WordPress 2.51 hast Du, von meinem Theme verwendest Du noch die Version 2.0. Kein Wunder, dass die "Fehler" drin sind.

Hol Dir die neue Version unter Downloads » Free Premium Word Press Themes » DER PRiNZ
und wechsle die index.php aus oder schau Dir den Code im Bereich "featured articles" an und tausch ihn aus.

Und das nächste Mal wird gemacht, was der Pappa sagt

Nebenbei: Das fetaured page Template hat damit nix zu tun. Das ist ein zusätzliches Seitentemplate. Einfach mal die Demo anschauen.
__________________
www.der-prinz.com
michael.oeser ist offline   Mit Zitat antworten
Alt 29.05.2008, 00:43   #89 (permalink)
PostRank: 0
 
Registriert seit: 22.05.2008
Beiträge: 8
Riztrabtirivan-reiztiram-trimtram sorryyyyyyyyyyyyyyyyyyyyyyyy

a - ab - aber Pappa, wie Dumm können Söhne eigentlich sein??? Ich dachte das ist nur bei Töchtern so

Auf jeden Fall hab ich das jetzt auch geschnallt - denn das was ich als Deine Version vom Theme meinte, war die WordPress Version 2.5.1

So wie es im Adminbereich steht:

Dein aktuelles Theme ist PRiNZ BranfordMagazine mit 0 Widgets. Theme ändern Du nutzt WordPress Version 2.5.1.

Da hab ich einfach zu schnell und unüberlegt über den ganzen Text geschaut und nur die 2.5 gesehen PEINLICH, PEINLICH - ich hoffe Du kürz jetzt nicht mein Taschengeld als Strafe.

Oh Mann (lach)
SultanAdmin ist offline   Mit Zitat antworten
Alt 29.05.2008, 13:16   #90 (permalink)
PostRank: 4
 
Registriert seit: 24.03.2007
Beiträge: 191
Is schon OK, Bub
__________________
www.der-prinz.com
michael.oeser ist offline   Mit Zitat antworten
Antwort

Lesezeichen

Themen-Optionen
Ansicht

Forumregeln
Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist aus.
HTML-Code ist aus.
Trackbacks are aus
Pingbacks are aus
Refbacks are aus


Alle Zeitangaben in WEZ +1. Es ist jetzt 12:32 Uhr.


Powered by vBulletin® Version 3.7.4 (Deutsch)
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 | Impressum | Ein Inpsyde.com Projekt