Hi,
ich möchte das so haben wie auf dieser Seite in der Navigation rechts:
Kanzlei Hoenig Info Blog Archive Die dritte Sachverständige
Wenn ich das so wie oben beschrieben mache, dann verfärbt sich nur der Hintergrund des links und nicht die komplette Zelle....
Beiträge von cester
-
-
Hallo zusammen,
was muss ich im Quelltext ändern, dass ich in der Navigation in der Tabelle einen Rollover erzeugen kann?
Der Link soll grau sein und wenn man mit der Maus über die Zelle fährt, soll diese violett und der Link weiß werden...
Hier mein Quelltext der CSS (Sidebar):Code
Alles anzeigen#sidebar { position: relative; margin-top: 300px; width: 220px; float: right; } #sidebar h2 { position: relative; font-size: 18px; color: #808080; padding:0 0 15px 0 ; margin: 10px 0; font-family:Times New Roman; } img.profile { position: relative; top: -2px; background: url(images/a26.gif) no-repeat; width: 146px; height: 75px; padding: 7px; } #sidebar ul { list-style:none; padding: 0 0px; margin: 0 0 20px 0; } #sidebar ul li { padding: 0px 0; margin:0; } #sidebar ul ul { padding-top: 4px; padding-bottom: 4px; border-top: 1px solid #cccccc; margin:0; } #sidebar ul a { background-color: transparent; background-repeat: repeat-x; padding: 5px; font-size: 12px; color: #fff; font-weight: bold; border-bottom:none; } #sidebar ul a:hover, #sidebar ul.current_page_item a { background: #000000 url(images/a18.gif) repeat-x top; color: #4A4A24; text-decoration: none; } #sidebar ul.feeds { margin-left:20px; } #sidebar ul.feeds li { list-style-image:url(images/feed.gif); margin:5px 0; padding:0; }
Und hier mein Code der Sidebar.php:
Code
Alles anzeigen<div id="sidebar"> <ul> <li> <h2>Navigation</h2> <ul><a href="#">01 - Startseite</a></ul> <ul><a href="#">02 - Aktuelles</a></ul> <ul><a href="#">03 - Profil</a></ul> <ul><a href="#">04 - Gutachten</a></ul> <ul><a href="#">05 - Verbraucherinfo</a></ul> <ul><a href="#">06 - Kontakt</a></ul> </li> </ul> </div>
Ich bedanke mich vielmals für die Hilfe! -
Ja, da ist eine Grafik und ein dazugehöriges Feld... wenn ich die Zahlen- und Buchstabenkombination abtippe und dann auf senden klicke, dann erscheint die Fehlermeldung...
Wurde jetzt schon von mehreren Leuten ausprobiert und bei niemandem geht es...
Wenn du willst kann ich dir den Link mal als PM mailen... -
Wenn irgendjemand eine Vermutung hat, was es sein könnte, wäre das auch schon eine große Hilfe für mich...
-
Hallo zusammen,
habe vor geraumer Zeit das Plugin "DMSguestbook" installiert und es hat auch funktioniert!
Seit ein paar Tagen erscheint aber immer folgende Fehlermeldung beim Verfassen eines neuen Eintrags "Die Buchstaben -und Zahlenkombination ist falsch!"
Weiß jemand woran das Problem liegt? Habe auch schon Wordpress und das Plugin geupdatet - funktioniert aber immer noch nicht!!! Hm...
Danke im Voraus! -
Hallo,
ich möchte gerne bei einem Projekt Rosi Schade die obere Navigation so haben, dass wenn ich auf der Startseite in der Sidebar eine Neuigkeit anklicke, der graue Balken bei "Willkommen" stehen bleibt... wie kann ich das realisieren ohne einen neuen Header definieren zu müssen?
Gruß und Danke! -
Hallo zusammen,
auf der Internetseite Nachrichten und Hintergrundanalysen aus Politik, Wirtschaft, Wissen, Kultur und Sport | ZEIT ONLINE gibt es ziemlich in der Mitte eine "Drehscheibe". Gibt es solch ein Plugin zur Newsdarstellung auf für Wordpress?
Gruß -
Hat niemand eine Idee oder Erfahrungen?
Gibt es vielleicht ein Plugin, das ich einem einfachen "Artikel" einfügen kann... z.B. ich verfasse einen Beitrag (Produktbeschreibung) und kann dann darunter einen Button einfügen (Artikel kaufen)... wenn der Kunde dann auf den Button klickt, kommt er zu einem Kontaktformular, das er ausfüllen muss und die AGB bestätigen muss... danach kann er den Artikel mit Paypal oder Vorkasse bezahlen...
Gibt es sowas? Dann könnte ich mir nämlich den ganzen Shop sparen... -
Hm... nee, das ist nicht das was ich suche... es müsste doch eine Version des "E-commerce" geben, welches fehlerfrei läuft???
-
Davon habe ich noch nie etwas gehört! Ist das ein Plugin für Wordpress?
Der Shop soll halt direkt im Blog eingebunden werden. Der Blog soll ein Bastelblog werden und hier werden Tipps und Anregungen veröffentlicht und nebenbei soll ein kleiner Shop eingerichtet werden, wo Kunden z.b. Bastelzubehör kaufen können. -
Hallo,
kann mir vielleicht jemand eine Version des "WP-Shopping-Cart" (E-Commerce) Plugins nennen, das einwandfrei mit 2.7 läuft?
Habe das aktuelle installiert, jedoch scheint selbst hier die englische Sprachdatei erhebliche Mängel aufzuweisen.
Von der deutschen Sprachdatei möchte ich erst gar nicht reden.
Oder kennt jemand ein vergleichbares Plugin, mit dem ich einen Onlineshop einfach realisieren kann? Produkte sollen max. 20 Stück sein, unterteilt in verschiedene Kategorien und als Zahlungsart Paypal oder Vorkasse...
Ich wäre euch echt sehr dankbar! -
Hi,
kann mir jemand sagen, warum ich die Links auf meiner Webseite nur teilweise anklicken kann?
Hier ist der Link: http://www.die-persoenliche-note.de
Das Problem besteht im FireFox....
Vielen Dank! -
Ist der angebliche Fehler in der shopping_cart_functions.php oder in der wp-includes/pluggable.php???
Wie gesagt, dass ist sehr seltsam, weil ich wirklich nichts in beiden Dateien geändert habe... -
Woran liegt das jetzt, dass jetzt diese Meldung kommt? Ich habe in den Dateien nichts verändert!!!
Vor ca. einer Stunde ging es noch und jetzt auf einmal nicht mehr???
Warning: Cannot modify header information - headers already sent by (output started at /kunden/90642_71088/die-persoenliche-note.de/site/wp-content/plugins/wp-shopping-cart/shopping_cart_functions.php:1) in /kunden/90642_71088/die-persoenliche-note.de/site/wp-includes/pluggable.php on line 850 -
Wo find ich hier die Funktion für die Categorieliste? Tut mir leid, aber ich finde das gerade etwas verwirrend....
PHP
Alles anzeigen<?php function widget_wpsc_categorisation( $args, $widget_args = 1 ) { global $wpdb; extract( $args, EXTR_SKIP ); if ( is_numeric($widget_args) ) $widget_args = array( 'number' => $widget_args ); $widget_args = wp_parse_args( $widget_args, array( 'number' => -1 ) ); extract( $widget_args, EXTR_SKIP ); // Data should be stored as array: array( number => data for that instance of the widget, ... ) $option_name = 'widget_wpsc_categorisation'; $options = get_option($option_name); if ( !isset($options[$number]) ) return; $my_options = $options[$number]; $title = empty($my_options['title']) ? TXT_WPSC_CATEGORISATION : $my_options['title']; echo $before_widget; $full_title = $before_title . $title . $after_title; echo $full_title; $selected_categorisations = array_keys($my_options['categorisation'], true); if($selected_categorisations != null) { foreach($selected_categorisations as $key => $selected_categorisation) { $selected_categorisations[$key] = (int)$selected_categorisation; } $selected_values = implode(',',$selected_categorisations); $categorisation_groups = $wpdb->get_results("SELECT * FROM `{$wpdb->prefix}wpsc_categorisation_groups` WHERE `id` IN ({$selected_values}) AND `active` IN ('1')", ARRAY_A); foreach($categorisation_groups as $categorisation_group) { echo "<div id='categorisation_group_".$categorisation_group['id']."'>\n\r"; if(count($categorisation_groups) > 1) { // no title unless multiple category groups echo "<h2 class='categorytitle'>{$categorisation_group['name']}</h2>\n\r"; } show_cats_brands($categorisation_group['id'], 'sidebar', 'name', $my_options['image']); echo "\n\r"; echo "</div>\n\r"; } //echo("<pre>".print_r($selected_categorisations,true)."</pre>"); } else { show_cats_brands(null, 'sidebar'); } echo $after_widget; } // Displays form for a particular instance of the widget. Also updates the data after a POST submit // $widget_args: number // number: which of the several widgets of this type do we mean function widget_wpsc_categorisation_control( $widget_args = 1 ) { global $wp_registered_widgets, $wpdb; static $updated = false; // Whether or not we have already updated the data after a POST submit $option_name = 'widget_wpsc_categorisation'; if ( is_numeric($widget_args) ) $widget_args = array( 'number' => $widget_args ); $widget_args = wp_parse_args( $widget_args, array( 'number' => -1 ) ); extract( $widget_args, EXTR_SKIP ); // Data should be stored as array: array( number => data for that instance of the widget, ... ) $options = get_option($option_name); if ( !is_array($options) ) $options = array(); // We need to update the data if ( !$updated && !empty($_POST['sidebar']) ) { // Tells us what sidebar to put the data in $sidebar = (string) $_POST['sidebar']; $sidebars_widgets = wp_get_sidebars_widgets(); if ( isset($sidebars_widgets[$sidebar]) ) $this_sidebar =& $sidebars_widgets[$sidebar]; else $this_sidebar = array(); foreach ( $this_sidebar as $_widget_id ) { // Remove all widgets of this type from the sidebar. We'll add the new data in a second. This makes sure we don't get any duplicate data // since widget ids aren't necessarily persistent across multiple updates if ( $option_name == $wp_registered_widgets[$_widget_id]['callback'] && isset($wp_registered_widgets[$_widget_id]['params'][0]['number']) ) { $widget_number = $wp_registered_widgets[$_widget_id]['params'][0]['number']; if ( !in_array( "categorisation-$widget_number", $_POST['widget-id'] ) ) // the widget has been removed. "categorisation-$widget_number" is "{id_base}-{widget_number} unset($options[$widget_number]); } } foreach ( (array) $_POST[$option_name] as $widget_number => $widget_wpsc_categorisation_instance ) { // compile data from $widget_wpsc_categorisation_instance if ( !isset($widget_wpsc_categorisation_instance['title']) && isset($options[$widget_number]) ) // user clicked cancel continue; $options[$widget_number]['title'] = wp_specialchars($widget_wpsc_categorisation_instance['title']); $categorisation_groups = $wpdb->get_results("SELECT * FROM `{$wpdb->prefix}wpsc_categorisation_groups` WHERE `active` IN ('1')", ARRAY_A); foreach($categorisation_groups as $cat_group){ if($widget_wpsc_categorisation_instance['categorisation'][$cat_group['id']] == "true") { $options[$widget_number]['categorisation'][$cat_group['id']] = true; } else { $options[$widget_number]['categorisation'][$cat_group['id']] = false; } } if ($widget_wpsc_categorisation_instance['image'] == "true") { $options[$widget_number]['image'] = true; } else { $options[$widget_number]['image'] = false; } } update_option($option_name, $options); $updated = true; // So that we don't go through this more than once } // Here we echo out the form if ( -1 == $number ) { // We echo out a template for a form which can be converted to a specific form later via JS $something = ''; $number = '%i%'; } else { $title = attribute_escape($options[$number]['title']); } //echo "<pre>".print_r($_POST,true)."</pre>"; //echo "<pre>".print_r($options,true)."</pre>"; echo "<p>\n\r"; echo " <label for='{$option_name}-{$number}-title'>".__('Title:')."<input class='widefat' id='{$option_name}-{$number}-title' name='{$option_name}[{$number}][title]' type='text' value='{$title}' /></label>\n\r"; echo " <input type='hidden' id='widget-categorisation-submit-$number' name='{$option_name}[$number][submit]' value='1' />\n\r"; echo "</p>\n\r"; echo "<p>\n\r"; $categorisation_groups = $wpdb->get_results("SELECT * FROM `{$wpdb->prefix}wpsc_categorisation_groups` WHERE `active` IN ('1')", ARRAY_A); foreach($categorisation_groups as $cat_group){ $checked = ''; //$checked = "checked='true'"; $category_count = $wpdb->get_var("SELECT COUNT(*) FROM `{$wpdb->prefix}product_categories` WHERE `group_id` IN ('{$cat_group['id']}')"); $category_group_name = str_replace("[categorisation]", $cat_group['name'], TXT_WPSC_DISPLAY_PRODUCT_CATEGORIES); if($options[$number]['categorisation'][$cat_group['id']] == true) { $checked = "checked='true'"; } if($category_count <1) { // if count of items is less than 1, disable it, but do it later, not a vital feture //$checked = "disabled='true' "; } $form_id = "{$option_name}-{$number}-group{$cat_group['id']}"; echo " <label for='{$form_id}'>\n\r"; echo " <input type='checkbox' name='{$option_name}[$number][categorisation][{$cat_group['id']}]' id='{$form_id}' value='true' class='checkbox' {$checked} />\n\r"; echo " {$category_group_name}</label>\n\r"; echo " <br/>\n\r"; } if ($options[$number]['image'] == true) { $checked = "checked='true'"; } echo " <label for='sidebar_category_image'>\n\r"; echo " <input type='checkbox' name='{$option_name}[$number][image]' id='sidebar_category_image' value='true' class='checkbox' {$checked} />\n\r"; echo " Display Images</label>\n\r"; echo " <br/>\n\r"; } // Registers each instance of our widget on startup function widget_wpsc_categorisation_register() { $option_name = 'widget_wpsc_categorisation'; if ( !$options = get_option($option_name)) $options = array(); $widget_ops = array('classname' => 'widget_wpsc_categorisation', 'description' => __(TXT_WPSC_CATEGORISATION_DESCR)); $control_ops = array('width' => 232, 'height' => 350, 'id_base' => 'wpsc_categorisation'); $name = __(TXT_WPSC_CATEGORISATION); $registered = false; foreach ( array_keys($options) as $o ) { // Old widgets can have null values for some reason if ( !isset($options[$o]['title']) ) // we used 'something' above in our example. Replace with with whatever your real data are. continue; // $id should look like {$id_base}-{$o} $id = "wpsc_categorisation-$o"; // Never never never translate an id $registered = true; wp_register_sidebar_widget( $id, $name, 'widget_wpsc_categorisation', $widget_ops, array( 'number' => $o ) ); wp_register_widget_control( $id, $name, 'widget_wpsc_categorisation_control', $control_ops, array( 'number' => $o ) ); } // If there are none, we register the widget's existance with a generic template if ( !$registered ) { wp_register_sidebar_widget( 'wpsc_categorisation-1', $name, 'widget_wpsc_categorisation', $widget_ops, array( 'number' => -1 ) ); wp_register_widget_control( 'wpsc_categorisation-1', $name, 'widget_wpsc_categorisation_control', $control_ops, array( 'number' => -1 ) ); } } // This is important add_action( 'widgets_init', 'widget_wpsc_categorisation_register' ); ?> -
Hallo zusammen, kann mir jemand sagen wie die Funktion heißt, um eine Kategorieliste der Produkte in der Sidebar anzeigen zu lassen?
Ich nutze folgedes Plugin:
WordPress e-Commerce Plugin a WordPress Shopping Cart Plugin by Instinct | Instinct Entertainment
Das Plugin bietet zwar hierfür ein Widget an, ich möchte aber die Funktion direkt in der Sidebar.php einbinden.
Vielen Dank für eure Hilfe! -
Niemand eine Idee??
-
Ich möchte gerne den Warenkorb ohne Widget in der Sidebar einbauen.
Der Code des "Shopping-Cart-Widget" sieht so aus:
PHP
Alles anzeigen<?php function widget_wp_shopping_cart($args) { extract($args); $options = get_option('widget_wp_shopping_cart'); if(get_option('show_sliding_cart') == 1) { if(is_numeric($_SESSION['slider_state'])) { if($_SESSION['slider_state'] == 0) { $collapser_image = 'plus.png'; } else { $collapser_image = 'minus.png'; } $fancy_collapser = "<a href='#' onclick='return shopping_cart_collapser()' id='fancy_collapser_link'><img src='".WPSC_URL."/images/$collapser_image' title='' alt='' id='fancy_collapser' /></a>"; } else { if($_SESSION['nzshpcrt_cart'] == null) { $collapser_image = 'plus.png'; } else { $collapser_image = 'minus.png'; } $fancy_collapser = "<a href='#' onclick='return shopping_cart_collapser()' id='fancy_collapser_link'><img src='".WPSC_URL."/images/$collapser_image' title='' alt='' id='fancy_collapser' /></a>"; } } else { $fancy_collapser = ""; } $title = empty($options['title']) ? __('Shopping Cart') : $options['title']; //$title .= $fancy_collapser; echo $before_widget; $full_title = $before_title . $title . $fancy_collapser . $after_title; echo $full_title; echo "<ul>\n\r"; echo " <li>\n\r"; nzshpcrt_shopping_basket("", 4); echo " </li>\n\r"; echo "</ul>\n\r"; echo $after_widget; } function widget_wp_shopping_cart_control() { $options = $newoptions = get_option('widget_wp_shopping_cart'); if ( $_POST["wp_shopping_cart-submit"] ) { $newoptions['title'] = strip_tags(stripslashes($_POST["wp_shopping_cart-title"])); } if ( $options != $newoptions ) { $options = $newoptions; update_option('widget_wp_shopping_cart', $options); } $title = htmlspecialchars($options['title'], ENT_QUOTES); echo "<p>\n\r"; echo " <label for='wp_shopping_cart-title'>"._e('Title:')."<input class='widefat' id='wp_shopping_cart-title' name='wp_shopping_cart-title' type='text' value='{$title}' />\n\r"; echo " <input type='hidden' id='wp_shopping_cart-submit' name='wp_shopping_cart-submit' value='1' />\n\r"; echo " </label>\n\r"; echo "</p>\n\r"; } function widget_wp_shopping_cart_init() { if(function_exists('register_sidebar_widget')) { $widget_ops['description'] = "Your most used tags in cloud format"; register_sidebar_widget('Shopping Cart', 'widget_wp_shopping_cart', $widget_ops); register_widget_control('Shopping Cart', 'widget_wp_shopping_cart_control'); $GLOBALS['wpsc_cart_widget'] = true; if(get_option('cart_location') == 1) { update_option('cart_location', 4); remove_action('wp_list_pages','nzshpcrt_shopping_basket'); } #register_widget_control('Shopping Cart', 'widget_wp_shopping_cart_control', 300, 90); } return; } ?>
Ich habe jetzt versucht die Shopping-Cart-Funktion folgendermaßen in die Sidebar einzubauen:
PHP<ul> <?php if (function_exists("widget_wp_shopping_cart")) { widget_wp_shopping_cart ($args); } ;?> </ul>
Der Warenkorb wird zwar angezeigt, jedoch kommt noch zusätzlich folgende Meldung:
Warning: extract() [[COLOR=#837d72]function.extract[/COLOR]]: First argument should be an array in /kunden/90642_71088/die-persoenliche-note.de/site/wp-content/plugins/wp-shopping-cart/widgets/shopping_cart_widget.php on line 3
Was muss ich verändern, dass es funktioniert? -
Hab das jetzt so gemacht mit:
- archiv-7.php
- index-7.php
- categorie.php gibt es bei mir nicht...
Funktioniert auch nicht... siehe http://www.akgez.de/category/presseberichte -
Kleine Frage noch:
Muss ich die Datei dann zum Beispiel so nennen "category-presseberichte.php", also direkt den Kategorie-Namen oder "category-7.php"...
Muss ich dann noch etwas umstellen bzw. beim Artikel auswählen oder wo kann ich der Kategorie "Presseberichte" das Template zuweisen?