[Blockierte Grafik: http://www.sternengarten.info/muell.gif]
Beiträge von sternenlicht
-
-
das z.b.
http://jp.jixor.com/archives/2005/…umb-trail-light
schau mal bei den üblichen verdächtigen unter breadcrumb, da gibt es diverse.
-
Zitat von Monika
wenn das so ist.... bitte thema löschen oder schließen.
-
-
Zitat von jottlieb
Ich sehDafür wird mir mein Fehler gemeldet:
[Blockierte Grafik: http://img68.imageshack.us/img68/9947/unbenannt13hn.gif]höööööööööööööööööööö??
-
Zitat
Ich sehe zwischen IE 6 SP2 und Firefox 1.5.0.3 keine Unterschiede. Wo sollen welche sein?
die sidebar widgets, in diesem Fall die Kategorie-käschtle ;-). Ich hab einzelne Boxen mit überschrift erstellt, die von einander getrennt sein sollen, so wie der "recent-posts und recent-comments-teil....
in Opera ist das so, im FF auch, im IE nicht.
Im spiegelland schauen, nicht in meinem normal-blog.
-
ich klopps echt bald in die Tonne!!
in Opera8.5 sieht es genau so aus, wie ich es möchte, auch im FF1.5.03 , aber im IE 6.0 nicht... Da ich auf meine Page kein "zu Cool für IE" pappen will, brauche ich hilfe ....:oops:
hierum gehts: http://www.spiegelland.de.hm
PHP
Alles anzeigen/* Note: To show various CSS properties specifically to Windows IE, the "star html" hack is used: .cssclass { ... } // Moz, Saf, Opera * html .cssclass { ... } // Win IE */ /* Basics ------------------------------------------*/ html { /* This forces the vertical scrollbar, preventing a page "jog" */ /* IE */ overflow-y: scroll; /* Moz */ height: 100%; margin-bottom: 0.0001em; } /* Reset Margins & Paddings for all */ * { margin: 0; padding: 0; } /* Positioning ------------------------------------------*/ body { text-align: center; /* Centers in IE 5 */ padding-bottom: 4em; /* Add some extra scroll space */ } #wrapper { margin: 0 auto; } #body { text-align: left; margin: 0 auto 0 auto; } #sidebar ul, #sidebar li { list-style: none; } #main { margin: 0 0 .8em 0; } #footer { clear: both; text-align: center; } #footer a { text-decoration: none; } .entry-meta { clear: both; } /* Sidebar ------------------------------------------*/ #sidebar ul.inner { margin: 0; } #sidebar ul.inner ul { margin: .4em .8em 1.6em .8em !important; } #sidebar ul.inner ul li { padding-bottom: 0 !important; } #sidebar ul.inner ul ul.children { margin: 0 1.6em !important; } #sidebar ul.inner ul ul.children li { margin: .4em 0 0 0; } /* Content box used everywhere */ .box, .box-blank, #sidebar ul.inner li { text-align: left; padding: .8em; margin: 0 0 .8em 0; } .box-blank { background: none; } .box::after, .box-blank::after { /* Auto clearing float for Moz */ content: "."; display: block; height: 0; clear: both; visibility: hidden; } * html .box { /* Auto clearing float for IE */ height: 1%; } /* Header ------------------------------------------*/ /* Logo */ h1 { text-align: left; margin: .8em 0 0 2em;display: none; } h1 a:link, h1 a:visited, h1 a:hover, h1 a:active { text-decoration: none; } #menu { margin: 1em 0 1em 2em; float: left; } * html #menu { margin: 1em 0 .8em .5em; } /* IE only */ #searchbox { vertical-align: top; margin: 1em 2.5em 0 0; float: right; text-align: right; padding: 2px 6px 2px 20px; top: -2px; position: relative; } * html #searchbox { margin: 1em .8em 0 0; width: 30%; } /* IE only */ #header { height: 200px; clear: both; margin: 0 0 .8em 0; } #menu, #searchbox { text-transform: lowercase; } #menu { max-width: 530px; } #menu ul, #menu ul li { list-style: none; display:inline; } #menu a { float: left; display: block; text-decoration: none; padding: 0 .6em; } #searchbox fieldset { border: 0; background: none; padding: 0; } #searchbox legend { display: none; } #searchbox form, #searchbox input { display: inline; } /* Text, Headings & Formatting ------------------------------------------*/ h2 { margin: .4em 0; } h2 a:link, h2 a:active, h2 a:visited { text-decoration: none; padding: .4em 0; } h2 a:hover, h2 a:focus { text-decoration: underline; } h3, h4 { margin: 0 0 0.6em 0; font-weight: bold; font-size: 100%; } #main h3 { margin: 1.6em 0 0.8em 0; } .noteworthy { display: block; float: right; margin: .4em; } .noteworthy a { padding: .4em; text-decoration: none !important; } .clear { clear: both; } /* Various ------------------------------------------*/ img { border: 0; } #main p a img { padding-bottom: 2px; } #main p a img:hover { padding-bottom: 2px; } hr { /* Shown only to CSS disabled browsers, making it slightly tidier */ display: none; } acronym, abbr { font-size: 100%; } acronym, abbr, span.caps { cursor: help; } small { font-size: 85%; line-height: 200%; } cite { font-size: 90%; font-style: normal; } strike, del { text-decoration: line-through; } ins { text-decoration: none; } label { cursor: pointer; } ul { margin: .8em; } #sidebar ul.inner ul { margin: .4em .8em; } #sidebar ul.inner ul li { margin: .4em 0; padding: .2em 0; } dl { margin: 0 .8em; } dt { font-weight: bold; } dd { margin: 0 1.6em; } code, pre, kbd { font-size: 105%; } p, pre, kbd, blockquote, .notice { margin: 1.6em 0; } #sidebar p { margin: 0 0 1.6em 0; } pre, blockquote { padding: 0 1.6em; margin-left: 3%; } pre { overflow: auto; } blockquote[cite]:after { content: "\00BB \0020 Source: " attr(cite); display: block; margin-top: 0.8em; font-size: 90%; } fieldset { padding: 0 .8em .4em .8em; } legend { font-weight: bold; padding: 0 .4em; } /* Feed Icons */ .feedicon { width: 16px; height: 16px; } #categorylist img { width: 10px; height: 10px; } .feeds a { padding: 1px 0 2px 0; } .feeds img { vertical-align: middle; margin-top: -3px; } #categorylist img { vertical-align: middle; margin: 0 .25em; } #sidebar .feedicon { position: relative; float: right; top: -2.4em; } /* Alignments (Use in Posts) ------------------------------------------*/ .align-left { padding-right: .8em; float: left; } .align-right { padding-left: .8em; float: right; } .align-center { margin: 0 auto; display: block; } .column-left { float: left; width: 50%; } .column-right { float: right; width: 50%; } ul.column-right, ul.column-left { margin: 0; padding: 0; } /* List Items ------------------------------------------*/ html>body #main ul { list-style: none; text-indent: -1em; } #main ul { margin-left: 0; padding-left: 1em; } * html #main ul { list-style: square; } /* IE only */ #main ul li { margin-left: 1em; margin-bottom: 1.6em; } #main ul li::before, #sidebar ul li.page_item::before { /* Show right angle quotes to cool browsers */ content: "\00BB \0020"; } ol { margin: 0 0 .8em 1em; padding-left: 2em; } #main ol li { margin-bottom: 1.6em; } /* Forms ------------------------------------------*/ input, select, textarea { font-size: 100%; line-height: 100%; } .inputbox, #commentform textarea, .searchbox { padding: 1px 2px; } #commentform { display: inline; } #commentform textarea { padding: 2px; -moz-box-sizing:border-box; /* Mozilla: Change Box Model Behaviour */ width: 100%; /* Moz Only */ } * html #commentform textarea { width: 97%; } /* IE only */ .inputbox { width: 160px; } .pushbutton, .pushbutton-wide { cursor: pointer; } .pushbutton-wide { padding: .6em 2em; } .checkbox { cursor: pointer; } /* Search Page */ .searchbox { width: 80%; } .search-results p { display: inline; } .highlight { text-decoration: none; color: #989D3C; } /* Main Entries ------------------------------------------*/ .entry-date { width: 120px; float: right; margin: 0; padding-left: .8em; } .entry-date p { overflow: hidden !important; margin: 0; } .entry-date p span { display: block; padding: 0.4em 0; } .entry-date p a:link, .entry-date p a:active, .entry-date p a:visited { border-bottom: 0; display: block; text-decoration: none; padding: 0.4em 0; } .entry-date p a:hover, .entry-date p a:focus { text-decoration: underline; } /* Trackbacks */ #trackbacklist { margin-left: 0; padding-left: 0; } #trackbacklist li { margin-left: 0; padding: 0; margin-top: .8em; list-style: none; } #trackbacklist li a { padding: .4em; display: block; text-decoration: none; } #trackbacklist li p { padding: 0 .4em; } #trackbacklist li a span { text-decoration: underline; } /* Wordpress Calendar ------------------------------------------*/ #wp-calendar { empty-cells: show; width: 100%; } #wp-calendar #next a { padding-right: 1em; text-align: right; } #wp-calendar #prev a { padding-left: 1em; text-align: left; } #wp-calendar a { display: block; font-weight: bold; } #wp-calendar a:hover { text-decoration: none !important; } #wp-calendar caption { text-align: left; width: 100%; } #wp-calendar td { padding: .3em 0; text-align: center; } /* For Plugins ------------------------------------------*/ /* Recent Activity */ ul#recent-activity { margin: 0 !important; padding: 0 !important; list-style: none; } ul#recent-activity li { font-size: 100%; margin: 0 !important; padding: 0 !important; } ul#recent-activity small { font-size: 85%; padding-left: .8em; } -
dann mach das so, wie gottlieb geschreiben hat, das funktionirt wunderbar auch auf seiten... kannst auf meiner pluginseite bewundern.
-
-
sodala....
öffne deine sidebar.php und füge an der stelle, ind der die widgets erscheinen sollen folgenden text ein:
PHP<?php /* Begin "If Widgets" */ if (is_home() || is_single()|| is_archive() ) { if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar() ) : ?> <?php /* End "If Widgets" */ endif; } ?>mit diesem code erscheinen deine widgets auf der
a) Startseite
b) bei jeder einezlpost-ansicht
c) in jeder rubrik (archiv)- ansicht.Jedoch nicht bei pages.
wenn du noch fragen hast, jederzeit :-)
-
wenn das zeit bis heute spät abend hat?
ich habs nämlich am we gemacht :-)
dann werd ich dir ein beispiel posten.
-
ist denn dein theme schon für widgets umgebaut?
eine liste findest du hier:
http://codex.wordpress.org/Plugins/WordPr…rdPress_Widgets -
auf deiner archiv-seite ist vermutlich iirgendwo te_excerpt hinterlegt, mußt du gegen the_content austauschen afaik.
-
*haarerauf*
das steht in meiner sidebar:
PHP
Alles anzeigen<? /* Pages with custom sidebar meta */ if (is_page() || is_single()) { ?> <? /* Included Scott Reilly's Get Custom Fields plugin, for custom use. Thanks Scott! Copyright (c) 2004-2005 by Scott Reilly (aka coffee2code) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ if (!isset($wpdb->posts)) { // For WP 1.2 compatibility global $tableposts, $tablepostmeta; $wpdb->posts = $tableposts; $wpdb->postmeta = $tablepostmeta; } // This works inside "the loop" function c2c_get_custom ($field, $before='', $after='', $none='', $between='', $before_last='') { return c2c__format_custom($field, (array)get_post_custom_values($field), $before, $after, $none, $between, $before_last); } //end c2c_get_custom() // This works outside "the loop" function c2c_get_recent_custom ($field, $before='', $after='', $none='', $between=', ', $before_last='', $limit=1, $unique=false, $order='DESC', $include_static=true, $show_pass_post=false) { global $wpdb; if (empty($between)) $limit = 1; if ($order != 'ASC') $order = 'DESC'; $now = current_time('mysql'); $sql = "SELECT "; if ($unique) $sql .= "DISTINCT "; $sql .= "meta_value FROM $wpdb->posts AS posts, $wpdb->postmeta AS postmeta "; $sql .= "WHERE posts.ID = postmeta.post_id AND postmeta.meta_key = '$field' "; $sql .= "AND ( posts.post_status = 'publish' "; if ($include_static) $sql .= " OR posts.post_status = 'static' "; $sql .= " ) AND posts.post_date < '$now' "; if (!$show_pass_post) $sql .= "AND posts.post_password = '' "; $sql .= "AND postmeta.meta_value != '' "; $sql .= "ORDER BY posts.post_date $order LIMIT $limit"; $results = array(); $values = array(); $results = $wpdb->get_results($sql); if (!empty($results)) foreach ($results as $result) { $values[] = $result->meta_value; }; return c2c__format_custom($field, $values, $before, $after, $none, $between, $before_last); } //end c2c_get_recent_custom() /* Helper function */ function c2c__format_custom ($field, $meta_values, $before='', $after='', $none='', $between='', $before_last='') { $values = array(); if (empty($between)) $meta_values = array_slice($meta_values,0,1); if (!empty($meta_values)) foreach ($meta_values as $meta) { $meta = apply_filters("the_meta_$field", $meta); $values[] = apply_filters('the_meta', $meta); } if (empty($values)) $value = ''; else { $values = array_map('trim', $values); if (empty($before_last)) $value = implode($values, $between); else { switch ($size = sizeof($values)) { case 1: $value = $values[0]; break; case 2: $value = $values[0] . $before_last . $values[1]; break; default: $value = implode(array_slice($values,0,$size-1), $between) . $before_last . $values[$size-1]; } } } if (empty($value)) { if (empty($none)) return; $value = $none; } return $before . $value . $after; } //end c2c__format_custom() // Some filters you may wish to perform: (these are filters typically done to 'the_content' (post content)) add_filter('the_meta', 'convert_chars'); // Other optional filters (you would need to obtain and activate these plugins before trying to use these) if (function_exists(do_textile)) { add_filter('the_meta', 'do_textile', 6); } else if (function_exists(textile)) { add_filter('the_meta', 'textile', 6); } else if (function_exists(Markdown)) { add_filter('the_meta', 'Markdown', 6); } else if (function_exists(wptexturize)) { add_filter('the_meta', 'wptexturize'); } ?> <?php rewind_posts(); ?> <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> <?php if (get_post_custom_values('sidebar') != "") { ?> <div class="box"> <?php echo c2c_get_custom('sidebar'); ?> </div> <? } ?> <?php if (get_post_custom_values('sidebar') != "") { ?> <div class="box"> <?php echo c2c_get_custom('reading', 'Ich lese :'); ?> </div>und ergibt diesen Fehler:
ZitatFatal error: Cannot redeclare c2c_get_custom() (previously declared in /www/htdocs/w00686b6/test/wp-content/plugins/get-custom.php:109) in /www/htdocs/w00686b6/test/wp-content/themes/fauna/sidebar.php on line 282
Leider ist mein Englisch nicht gut genug, um mit der Anleitung des Plugin-Autors klar zu kommen.
Kann mir jemand helfen, bitte?
-
Zitat
sternenlicht..
probiere es aus,an der thematik arbeite ich schon seit 4 monaten... fauna supportet ja coffeetoschießmichtot custom-fields, aber ich kriegs zum verplatzen nicht raus.
ist ja nicht so, daß ich nicht erst versuche, meine probleme selber zu lösen.
Zitatsuche Dir auch gleich ein Plugin, das php code Verwendung erlaubt,
obwohl ich run-php nutze. in den posts tut es ja auch, nur nicht in den custom-fields in der sidebar.
-
kann man in den custom fields eigentlich auch php-code zum laufen bringen?
ich dachte da so an get_link by cat oder so.
*neugierigguck*
-
jetzt hab ich nochmal alles ohne plugin gemacht, geht immer noch nicht.
ich gebs auf.
trotzdem danke.
-
aaargs... ich bin die ganze zeit davon ausgegangen, das das mit plugin ist...
werd es demnäxt mal testen, danke für die antwort.
-
http://codex.wordpress.org/Template_Tags/wp_get_archives
http://codex.wordpress.org/Template_Tags/get_archives
da dann den gewünschten tag zusammenstellen.
-
doch, das brauch ich, weil die anderen kategorien sind ja unterkategorien von lieblingsdinge". und in "lieblingsdinge soll halt nur der text..... siehe post Nr. 22
der von dir gepostet lösungsansatz ist ja schon richtig, nur meine archiv.php (in dem fall category.php )hat wohl noch ein paar zusatzfunktionen.