Nochmal Hallo!
Ich habe festgestellt, dass auch Umfragen nicht mehr funktionieren. Woran kann das liegen?
Danke :)
Um schreiben oder kommentieren zu können, benötigen Sie ein Benutzerkonto.
Sie haben schon ein Benutzerkonto? Melden Sie sich hier an.
Jetzt anmeldenHier können Sie ein neues Benutzerkonto erstellen.
Neues Benutzerkonto erstellenNochmal Hallo!
Ich habe festgestellt, dass auch Umfragen nicht mehr funktionieren. Woran kann das liegen?
Danke :)
Hallo!
Ich habe kürzlich auf WP 3.3.2 umgestellt und auf der Homepage
http://www.meinemarie.org
festgestellt, dass ich im Backend kein manuelles Feld für Textauszug mehr habe. Jetzt wird the_excerpt() also wieder automatisch aus dem Artikel generiert.
Wie kann ich dagegen vorgehen? Wo kann ich den Auszug doch noch einfügen?
Zudem funktioniert die Generierung von Kategorie-Seiten nicht mehr (wenn man runterscrollt, kommen die zur Auswahl).
Es wäre super, wenn sich das jemand angucken könnte, da unsere Schülerzeitung nur online erscheint und deshlab von einer funktionierenden HP abhängig ist...
Danke!
Danke super, jetzt klappt es:)
Aber es bleibt das Problem mit den Umlauten
Ja okay aber irgendwie versteh ich trotzdem nicht wo ich da was einbauen muss damit der <!--nextpage--> wieder funktioniert... Bzw. damit die anderen Seiten halt angezeigt werden´, sodass man unten auf 1,2,3,4.. klicken kann
Danke für den Link, aber ich versteh die Seite nicht ganz...
Könnte man das kurz erläutern? Danke
Hallo Leute,
auf dieser Seite gibt es
1. Ein Problem mit den Umlauten und ß, die werden im Zeichensatz UTF-8 nicht korrekt dargestellt. Alles andere in dieser Richtung scheint zu funktionieren.
2. Der Seitenumbruch mit <!--nextpage--> funktioniert trotz definitiv richtiger Anwendung nicht.
Könnt ihr da ne erste Diagnose liefern?
Vielen Dank:)
Ja, aber dann wird doch anstatt eines Vorschaubildes immer nur Name des Autors etc. angezeigt:(
Stimmt, habe das alakhnors-post-thumb deaktiviert.
Aber auch nach Reaktivierung ändert sich nichts...
Habe jetz überall the_thumb(); rausgenommen, die Funktion sollte jedoch auf Dauer schon verfügbar sein...
Okay nach Umstellung auf PHP 5 ist schon ein teil der Seite wieder da.
Aber n bisschen was ist immernoch kaputt.
Liegt das an WP 2.7? Wird nämlich bald auf 2.9 umgestellt...
LINK
Hallo,
ihr wisst ja alle wie das Dashboard aussieht, und ich beziehe mich jetz auf die rechte Seite, wo (zumindest bei mir) die Kästen erscheinen mit: QuickPress, Aktuelle Entwürfe, WP Blog Deutschland und Weitere WP News. Hier würde ich jetzt gerne noch einen weiteren Kasten haben, der folgenden Code enthält:
<?php
if(count($_POST)) {
file_put_contents('ticker.txt', $_POST['d']);
}
$data = file_get_contents('ticker.txt');
?>
<form action="<?php $_SERVER['PHP_SELF']; ?>" method="post">
Tickerdaten: <input type="text" name="d"><br>
<button type="submit">Ok!</button>
</form>
Wie geht das? MfG, Tobias
Lässt sich ein Update von Wordpress im Backend durchführen? Und wie kann ich PHP updaten???
Habe besagte Plugins deaktiviert...Keine Änderung
Hallo,
vor kurzem hatten wir einen kleinen Serverausfall auf unserem Schulserver. Soweit, so schlecht, unsere SchulHP sowie die unserer Schülerzeitung waren kurz weg, jetzt ist die SchulHP wieder da (LINK), aber unsere Schülerzeitung ist immernoch weg (LINK) bzw. nur das headerbild wird geladen.
Woran kann das liegen? Dies alles scheint okay zu sein...
index.php im Startverzeichnis
<?php
/**
* Front to the WordPress application. This file doesn't do anything, but loads
* wp-blog-header.php which does and tells WordPress to load the theme.
*
* @package WordPress
*/
/**
* Tells WordPress to load the WordPress theme and output it.
*
* @var bool
*/
define('WP_USE_THEMES', true);
/** Loads the WordPress Environment and Template */
require('./wp-blog-header.php');
?>
Alles anzeigen
wp-blog-header.php
<?php
/**
* Loads the WordPress environment and template.
*
* @package WordPress
*/
if ( !isset($wp_did_header) ) {
$wp_did_header = true;
require_once( dirname(__FILE__) . '/wp-load.php' );
wp();
require_once( ABSPATH . WPINC . '/template-loader.php' );
}
?>
Alles anzeigen
Was braucht ihr als nächstes?
ZitatPHP-Code:
[COLOR=#000000]#page { background: url("[COLOR=#0000BB]<?php bloginfo[/COLOR][COLOR=#007700]([/COLOR][COLOR=#DD0000]'stylesheet_directory'[/COLOR][COLOR=#007700]); [/COLOR][COLOR=#0000BB]?>[/COLOR]/images/kubrickbg-[COLOR=#0000BB]<?php bloginfo[/COLOR][COLOR=#007700]([/COLOR][COLOR=#DD0000]'text_direction'[/COLOR][COLOR=#007700]); [/COLOR][COLOR=#0000BB]?>[/COLOR].jpg") repeat-y top; border: none; }[/COLOR]
Wo muss der denn rein? In style.css?
Update: Oh f***
Auf Artikeln tritt jetz ein ganz komischer Fehler auf:
LINK
Wie kann das jetz sein?
<?php
/**
* @package WordPress
* @subpackage Default_Theme
*/
?>
<div id="sidebar" role="complementary">
<ul>
<?php /* Widgetized sidebar, if you have the plugin installed. */
if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar() ) : ?>
<li>
<?php get_search_form(); ?>
</li>
<!-- Author information is disabled per default. Uncomment and fill in your details if you want to use it.
<li><h2><?php _e('Author', 'kubrick'); ?></h2>
<p>A little something about you, the author. Nothing lengthy, just an overview.</p>
</li>
-->
<?php if ( is_404() || is_category() || is_day() || is_month() ||
is_year() || is_search() || is_paged() ) {
?> <li>
<?php /* If this is a 404 page */ if (is_404()) { ?>
<?php /* If this is a category archive */ } elseif (is_category()) { ?>
<p><?php printf(__('You are currently browsing the archives for the %s category.', 'kubrick'), single_cat_title('', false)); ?></p>
<?php /* If this is a daily archive */ } elseif (is_day()) { ?>
<p><?php printf(__('You are currently browsing the <a href="%1$s/">%2$s</a> blog archives for the day %3$s.', 'kubrick'), get_bloginfo('url'), get_bloginfo('name'), get_the_time(__('l, F jS, Y', 'kubrick'))); ?></p>
<?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
<p><?php printf(__('You are currently browsing the <a href="%1$s/">%2$s</a> blog archives for %3$s.', 'kubrick'), get_bloginfo('url'), get_bloginfo('name'), get_the_time(__('F, Y', 'kubrick'))); ?></p>
<?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
<p><?php printf(__('You are currently browsing the <a href="%1$s/">%2$s</a> blog archives for the year %3$s.', 'kubrick'), get_bloginfo('url'), get_bloginfo('name'), get_the_time('Y')); ?></p>
<?php /* If this is a search result */ } elseif (is_search()) { ?>
<p><?php printf(__('You have searched the <a href="%1$s/">%2$s</a> blog archives for <strong>‘%3$s’</strong>. If you are unable to find anything in these search results, you can try one of these links.', 'kubrick'), get_bloginfo('url'), get_bloginfo('name'), wp_specialchars(get_search_query(), true)); ?></p>
<?php /* If this set is paginated */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
<p><?php printf(__('You are currently browsing the <a href="%1$s/">%2$s</a> blog archives.', 'kubrick'), get_bloginfo('url'), get_bloginfo('name')); ?></p>
<?php } ?>
</li>
<?php } ?>
</ul>
<div align="center">
<a href="javascript:history.back()"><img src="http://www.vfl-ramsdorf-tischtennis.de/test/wp-content/themes/default/images/back.png" border="0" width="40" heigth="40" alt="zurück"></a>
<a href="http://www.vfl-ramsdorf-tischtennis.de/test"><img src="http://www.vfl-ramsdorf-tischtennis.de/test/wp-content/themes/default/images/home.jpg" border="0" width="40" heigth="40" alt="Startseite"></a>
<a href="javascript:history.forward()"><img src="http://www.vfl-ramsdorf-tischtennis.de/test/wp-content/themes/default/images/forward.jpg" border="1" width="40" heigth="40" alt="vorwärts"></a>
<br>
<a href="http://wttv.click-tt.de"><img src="http://www.vfl-ramsdorf-tischtennis.de/test/wp-content/themes/default/images/click-tt.jpg" border="0"></a></div>
<ul role="navigation">
<li>
<?php
$output = wp_list_pages('echo=0&depth=1&title_li=<div align="center"><h3>Seiten</h3></div>' );
if (is_page( )) {
$page = $post->ID;
if ($post->post_parent) {
$page = $post->post_parent;
}
$children=wp_list_pages( 'echo=0&child_of=' . $page . '&title_li=' );
if ($children) {
$output = wp_list_pages ('echo=0&child_of=' . $page . '&title_li=<h2></h2>');
}
}
echo $output;
?></li>
<li><div align="center"><h3>Termine</h3></div> <?php
ec3_get_events(
'360 days', // limit
'%DATE%: <br><a href="%LINK%">%TITLE%</a>', // template_event
'' // template_day
);
?></li></ul>
<ul>
<?php /* If this is the frontpage */ if ( is_home() || is_page() ) { ?>
<?php wp_list_bookmarks(); ?>
<?php } ?>
<?php endif; ?>
</ul>
</div>
Alles anzeigen
Ich dachte der Fehler sei behoben, aber was ist da jetz los?
Liegt es vielleicht auch an den Bildern?
style.css
alchymyth, du bist mein HELD!
Dank danke, an alle die hier mitdiskutiert haben:)
Es funktioniert!
Ich glaub für die Invaliiden bin ich selbst verantwortlich, allerdings sieht das für mich garnicht so schlim aus, aber ich habe den ganz großen Plan von php auch leider nicht.
Habe versucht einiges zu korrigieren:
<?php
/**
* @package WordPress
* @subpackage Default_Theme
*/
?>
<div id="sidebar" role="complementary">
<ul>
<?php /* Widgetized sidebar, if you have the plugin installed. */
if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar() ) : ?>
<li>
<?php get_search_form(); ?>
</li>
<!-- Author information is disabled per default. Uncomment and fill in your details if you want to use it.
<li><h2><?php _e('Author', 'kubrick'); ?></h2>
<p>A little something about you, the author. Nothing lengthy, just an overview.</p>
</li>
-->
<?php if ( is_404() || is_category() || is_day() || is_month() ||
is_year() || is_search() || is_paged() ) {
?> <li>
<?php /* If this is a 404 page */ if (is_404()) { ?>
<?php /* If this is a category archive */ } elseif (is_category()) { ?>
<p><?php printf(__('You are currently browsing the archives for the %s category.', 'kubrick'), single_cat_title('', false)); ?></p>
<?php /* If this is a daily archive */ } elseif (is_day()) { ?>
<p><?php printf(__('You are currently browsing the <a href="%1$s/">%2$s</a> blog archives for the day %3$s.', 'kubrick'), get_bloginfo('url'), get_bloginfo('name'), get_the_time(__('l, F jS, Y', 'kubrick'))); ?></p>
<?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
<p><?php printf(__('You are currently browsing the <a href="%1$s/">%2$s</a> blog archives for %3$s.', 'kubrick'), get_bloginfo('url'), get_bloginfo('name'), get_the_time(__('F, Y', 'kubrick'))); ?></p>
<?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
<p><?php printf(__('You are currently browsing the <a href="%1$s/">%2$s</a> blog archives for the year %3$s.', 'kubrick'), get_bloginfo('url'), get_bloginfo('name'), get_the_time('Y')); ?></p>
<?php /* If this is a search result */ } elseif (is_search()) { ?>
<p><?php printf(__('You have searched the <a href="%1$s/">%2$s</a> blog archives for <strong>‘%3$s’</strong>. If you are unable to find anything in these search results, you can try one of these links.', 'kubrick'), get_bloginfo('url'), get_bloginfo('name'), wp_specialchars(get_search_query(), true)); ?></p>
<?php /* If this set is paginated */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
<p><?php printf(__('You are currently browsing the <a href="%1$s/">%2$s</a> blog archives.', 'kubrick'), get_bloginfo('url'), get_bloginfo('name')); ?></p>
<?php } ?>
</li>
<?php } ?>
</ul>
<div align="center">
<a href="javascript:history.back()"><img src="http://www.vfl-ramsdorf-tischtennis.de/test/wp-content/themes/default/images/back.png" border="0" width="40" heigth="40" alt="zurück"></a>
<a href="http://www.vfl-ramsdorf-tischtennis.de/test"><img src="http://www.vfl-ramsdorf-tischtennis.de/test/wp-content/themes/default/images/home.jpg" border="0" width="40" heigth="40" alt="Startseite"></a>
<a href="javascript:history.forward()"><img src="http://www.vfl-ramsdorf-tischtennis.de/test/wp-content/themes/default/images/forward.jpg" border="1" width="40" heigth="40" alt="vorwärts"></a>
<br>
<a href="http://wttv.click-tt.de"><img src="http://www.vfl-ramsdorf-tischtennis.de/test/wp-content/themes/default/images/click-tt.jpg" border="0"></a></div>
<ul role="navigation">
<li>
<?php
$output = wp_list_pages('echo=0&depth=1&title_li=<div align="center"><h3>Seiten</h3></div>' );
if (is_page( )) {
$page = $post->ID;
if ($post->post_parent) {
$page = $post->post_parent;
}
$children=wp_list_pages( 'echo=0&child_of=' . $page . '&title_li=' );
if ($children) {
$output = wp_list_pages ('echo=0&child_of=' . $page . '&title_li=<h2></h2>');
}
}
echo $output;
?></li>
<li><div align="center"><h3>Termine</h3></div> <?php
ec3_get_events(
'360 days', // limit
'%DATE%: <br><a href="%LINK%">%TITLE%</a>', // template_event
'' // template_day
);
?></li></ul> </div>
<ul>
<?php /* If this is the frontpage */ if ( is_home() || is_page() ) { ?>
<?php wp_list_bookmarks(); ?>
<?php } ?>
<?php endif; ?>
</ul>
</div>
Alles anzeigen
Hallo,
habe die Idee für eine Ticker Zeile bekommen für diese HP: Homepage
Habe sie bereits manuell in der index.php eingefügt, kann ich sie aber auch ins Dashboard integrieren und dort verwaltbar machen? Möglichst mit marquee Checkbox, also dass ich das ganze auch als Laufband darstellen kann.
Danke! Tobi
Okay ich denke dass ihr vielleicht mit diesen Quelltexten was anfangen könnt.
Index.php
<?php
/**
* @package WordPress
* @subpackage Default_Theme
*/
get_header(); ?>
<div id="content" class="narrowcolumn" role="main">
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<div <?php post_class(); ?> id="post-<?php the_ID(); ?>">
<hr noshade width="630" size="3" style="color:blue">
<h3><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php printf(__('Permanent Link to %s', 'kubrick'), the_title_attribute('echo=0')); ?>"><?php the_title(); ?></a></h3>
<small><?php the_time(__('F jS, Y', 'kubrick')) ?> <!-- by <?php the_author() ?> --></small>
<div class="entry">
<?php the_excerpt(__('Read the rest of this entry »', 'kubrick')); ?><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>">WEITERLESEN</a>
</div>
<p class="postmetadata"><?php the_tags(__('Tags:', 'kubrick') . ' ', ', ', '<br />'); ?> </div>
<?php endwhile; ?>
<div class="navigation">
<div class="alignleft"><?php next_posts_link(__('« Older Entries', 'kubrick')) ?></div>
<div class="alignright"><?php previous_posts_link(__('Newer Entries »', 'kubrick')) ?></div>
</div>
<?php else : ?>
<h2 class="center"><?php _e('Not Found', 'kubrick'); ?></h2>
<p class="center"><?php _e('Sorry, but you are looking for something that isn’t here.', 'kubrick'); ?></p>
<?php get_search_form(); ?>
<?php endif; ?>
</div>
<?php get_sidebar(); ?>
<?php get_footer(); ?>
Alles anzeigen
Ausschnitt aus style.css
#sidebar
{
background: #e6e6fa;
padding: 20px 0 10px 0;
margin-left: 720px;
width: 230px;
heigth: 100%;
}
Und noch Sidebar.php
<?php
/**
* @package WordPress
* @subpackage Default_Theme
*/
?>
<div id="sidebar" role="complementary">
<ul>
<?php /* Widgetized sidebar, if you have the plugin installed. */
if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar() ) : ?>
<li>
<?php get_search_form(); ?>
</li>
<!-- Author information is disabled per default. Uncomment and fill in your details if you want to use it.
<li><h2><?php _e('Author', 'kubrick'); ?></h2>
<p>A little something about you, the author. Nothing lengthy, just an overview.</p>
</li>
-->
<?php if ( is_404() || is_category() || is_day() || is_month() ||
is_year() || is_search() || is_paged() ) {
?> <li>
<?php /* If this is a 404 page */ if (is_404()) { ?>
<?php /* If this is a category archive */ } elseif (is_category()) { ?>
<p><?php printf(__('You are currently browsing the archives for the %s category.', 'kubrick'), single_cat_title('', false)); ?></p>
<?php /* If this is a daily archive */ } elseif (is_day()) { ?>
<p><?php printf(__('You are currently browsing the <a href="%1$s/">%2$s</a> blog archives for the day %3$s.', 'kubrick'), get_bloginfo('url'), get_bloginfo('name'), get_the_time(__('l, F jS, Y', 'kubrick'))); ?></p>
<?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
<p><?php printf(__('You are currently browsing the <a href="%1$s/">%2$s</a> blog archives for %3$s.', 'kubrick'), get_bloginfo('url'), get_bloginfo('name'), get_the_time(__('F, Y', 'kubrick'))); ?></p>
<?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
<p><?php printf(__('You are currently browsing the <a href="%1$s/">%2$s</a> blog archives for the year %3$s.', 'kubrick'), get_bloginfo('url'), get_bloginfo('name'), get_the_time('Y')); ?></p>
<?php /* If this is a search result */ } elseif (is_search()) { ?>
<p><?php printf(__('You have searched the <a href="%1$s/">%2$s</a> blog archives for <strong>‘%3$s’</strong>. If you are unable to find anything in these search results, you can try one of these links.', 'kubrick'), get_bloginfo('url'), get_bloginfo('name'), wp_specialchars(get_search_query(), true)); ?></p>
<?php /* If this set is paginated */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
<p><?php printf(__('You are currently browsing the <a href="%1$s/">%2$s</a> blog archives.', 'kubrick'), get_bloginfo('url'), get_bloginfo('name')); ?></p>
<?php } ?>
</li>
<?php }?>
</ul>
<ul>
<div align="center">
<a href="javascript:history.back()"><img src="http://www.vfl-ramsdorf-tischtennis.de/test/wp-content/themes/default/images/back.png" border="0" width="40" heigth="40" alt="zurück"></a>
<a href="http://www.vfl-ramsdorf-tischtennis.de/test"><img src="http://www.vfl-ramsdorf-tischtennis.de/test/wp-content/themes/default/images/home.jpg" border="0" width="40" heigth="40" alt="Startseite"></a>
<a href="javascript:history.forward()"><img src="http://www.vfl-ramsdorf-tischtennis.de/test/wp-content/themes/default/images/forward.jpg" border="1" width="40" heigth="40" alt="vorwärts"></a>
<br>
<a href="http://wttv.click-tt.de"><img src="http://www.vfl-ramsdorf-tischtennis.de/test/wp-content/themes/default/images/click-tt.jpg" border="0"></a></ul>
<ul role="navigation">
<?php
$output = wp_list_pages('echo=0&depth=1&title_li=<div align="center"><h3>Seiten</h3></div>' );
if (is_page( )) {
$page = $post->ID;
if ($post->post_parent) {
$page = $post->post_parent;
}
$children=wp_list_pages( 'echo=0&child_of=' . $page . '&title_li=' );
if ($children) {
$output = wp_list_pages ('echo=0&child_of=' . $page . '&title_li=<h2></h2>');
}
}
echo $output;
?>
<li><div align="center"><h3>Termine</h3></div> <?php
ec3_get_events(
'360 days', // limit
'%DATE%: <br><a href="%LINK%">%TITLE%</a>', // template_event
'' // template_day
);
?></li> </div>
<ul>
<?php /* If this is the frontpage */ if ( is_home() || is_page() ) { ?>
<?php wp_list_bookmarks(); ?>
<?php } ?>
<?php endif; ?>
</ul>
<div id="empty">
</div>
</div>
Alles anzeigen
Okay...
Aber gibt es nicht eine php Kombination in der ich eine maximale Zeilenanzahl festlege, und sobald diese überschritten wird foltg der Seitenumbruch.
Also wenn bei einem halt ein kleines Browserfenster ist bekommt er (sagen wir mal) 40 Zeilen angeziegt. Ein anderer Surfer bekommt bei großem Fenster 30 Zeilen hin. Seitenumbruch erfolgt nun nach 15 Zeilen. Dann bekommt der erste halt den Artikel/die Seite in 3 Teilen und der andere in 2.
Ist das realisierbar?