Moin,
am einfachsten bringst das in der footer.php Datei unter. Damit ist sichergestellt, das die Buttons immer auf allen Seiten zu sehen sind.
Gruß Stefan
Ergebnis 1 bis 10 von 15
- 05.08.2008, 18:37 #1
WordPress PHP Hallo

Ich schlage mich nun schon seit Stunden mit WP herum. Im Forum dort habe ich mich bereits angemeldet, aber die Bestätigungsmail ist bisher nicht eingetroffen. Möglicherweise kann mir von euch einer helfen. WP ist ja durchaus sehr weit verbreitet.
Zu meinem Problem: Ich habe hier zwei Buttons die ich gerne in meinen Blog einbauen möchte. Zum einen ist es ein PayPal-Button ($-)) und zum anderen ein CC-Label-Button. Die beiden Buttons sollen hier hin ->

Die PHP-Templates in den Theme-Editor habe ich schon versucht zu durchschauen, hab es leider aber noch nicht geblickt wo ich die Codezeilen der beiden Buttons einfügen muss.
Danke für eure Unterstützung
Geändert von ZENcom (05.08.2008 um 19:38 Uhr)
Wir sind Anonymous - Wir sind VIELE - Wir vergessen Nicht - Wir Vergeben Nicht - Erwartet UNS!
Keine Krise ohne Machiavelli: Die wohlgeordneten Freistaaten müssen den Staat reich und den Bürger arm halten.
Bitte hier anschreiben: Gegen menschenverachtende Filme im Fernsehen! (z.B. SAW)
- 05.08.2008, 18:48 #2Wenn Sie mich suchen, ich halte mich in der Nähe des Wahnsinns auf, genauer gesagt
auf der schmalen Linie zwischen Wahnsinn und Panik, gleich um die Ecke
von Todesangst, nicht weit weg von Irrwitz und Idiotie!
- 05.08.2008, 19:06 #3
Bild ist leider nicht zu sehen. Link 404
Macindy - Apfeltalk Admin
- 05.08.2008, 20:00 #4
excuse!
Nebenbei stecke ich an einer Lösung für ein FTProblem…
Ok, den Footer hab ich, aber wo da?
Code:<?php /* Hi, Please DO NOT remove the link to my website from the footer. I have been working hard to make this theme and you have downloaded it for FREE. This is all I ask from you in return for Mandigo which didn't cost you a cent. Thank you. tom */ global $mandigo_options, $dirs, $wpmu; ?> </tr> </table> <?php // HTML Inserts: footer echo get_option('mandigo_inserts_footer'); ?> </div> <div id="footer" class="png"> <p> <?php // if this is WordPress MU if ($wpmu) { $current_site = get_current_site(); ?> <?php _e('Powered by <a href="http://mu.wordpress.org/">WordPress MU</a>', 'mandigo'); ?> & hosted by <a href="http://<?php echo $current_site->domain . $current_site->path ?>"><?php echo $current_site->site_name ?></a><br /> <a href="http://<?php echo $current_site->domain . $current_site->path ?>wp-signup.php">Create a new blog</a> and join in the fun! <a href="http://www.onehertz.com/portfolio/wordpress/" target="_blank" title="WordPress MU themes">Mandigo theme</a> by tom <?php } // if this is a regular WordPress else { ?> <?php _e('Powered by <a href="http://wordpress.org/">WordPress</a>', 'mandigo'); ?>, <a href="http://www.onehertz.com/portfolio/wordpress/" target="_blank" title="WordPress themes">Mandigo theme</a> by tom. <?php } // the rss links ?> <br /><a href="<?php bloginfo('rss2_url'); ?>"><img src="<?php echo $dirs['www']['scheme']; ?>images/rss_s.gif" alt="" /> <?php _e('Entries (RSS)', 'mandigo'); ?></a> <?php _e('and', 'mandigo'); ?> <a href="<?php bloginfo('comments_rss2_url'); ?>"><img src="<?php echo $dirs['www']['scheme']; ?>images/rss_s.gif" alt="" /> <?php _e('Comments (RSS)', 'mandigo'); ?></a>. <?php // if we chose to display statistics at the bottom if ($mandigo_options['footer_statistics']) { ?> <br /><?php echo get_num_queries(); ?> queries. <?php timer_stop(1); ?> seconds. <?php } ?> </p> </div> </div> <?php // WordPress footer wp_footer(); // set the theorical max-width value for the content column switch ($mandigo_options['layout_width']) { case 1024: switch ($mandigo_options['sidebar_count']) { case 0: $maxw = 915; break; case 1: $maxw = 685; break; case 2: $maxw = 455; break; } break; case 800: switch ($mandigo_options['sidebar_count']) { case 0: $maxw = 691; break; case 1: case 2: $maxw = 461; break; } break; } ?> <script type="text/javascript"> <!-- // <![CDATA[ jQuery(document).ready(function() { jQuery('#rssicon, #searchsubmit').hover( function() { this.src = this.src.replace('.gif','_hover.gif'); }, function() { this.src = this.src.replace('_hover.gif','.gif'); } ); jQuery('.entry img[align=left]' ).addClass('alignleft' ); jQuery('.entry img[align=right]').addClass('alignright'); if (jQuery.browser.msie) { if (/^[56]/.test(jQuery.browser.version)) { jQuery.ifixpng('<?php echo $dirs['www']['images']; ?>1x1.gif'); jQuery('body, .png').ifixpng(); jQuery('.commentlist .avatar').height(36); } <?php // if the 'pre whitespace' fix is enabled if ($mandigo_options['fixes_whitespace_pre']) { ?> jQuery('*').each(function() { if (this.style.whiteSpace == 'pre') jQuery(this).css({'white-space':'normal'}); }); <?php } ?> } jQuery('p:has(.dropcap)').append('<br class="clear"/>'); <?php // if the 'strip url in comments' fix is enabled if ($mandigo_options['fixes_comments_1']) { ?> jQuery('.commentlist p a').each(function() { if (jQuery(this).width() > <?php echo $maxw; ?>) jQuery(this).text(this.innerHTML.replace(/\/([^\/])/g, '/\n$1')); }); <?php } // if the 'replace url in comments' fix is enabled if ($mandigo_options['fixes_comments_2']) { ?> jQuery('.commentlist p a').each(function() { if (jQuery(this).width() > <?php echo $maxw; ?>) jQuery(this).text('link'); }); <?php } // unless we disabled animations if (!$mandigo_options['disable_animations']) { // if we chose to collapse all posts by default, // have jquery hide all containers which have the .entry class if ($mandigo_options['collapse_posts']) { ?> jQuery('.entry').hide(); <?php } ?> togglePost = function(id) { if (!id) return; icon = jQuery('#switch-post-'+ id +' img'); icon.attr('src', /minus/.test(icon.attr('src')) ? icon.attr('src').replace('minus', 'plus') : icon.attr('src').replace('plus', 'minus')); jQuery('#post-'+ id +' .entry').animate({ height: 'toggle', opacity: 'toggle' }, 1000); } toggleComment = function(id) { if (!id) return; icon = jQuery('#switch-comment-'+ id +' img'); icon.attr('src', /minus/.test(icon.attr('src')) ? icon.attr('src').replace('minus', 'plus') : icon.attr('src').replace('plus', 'minus')); jQuery('#comment-'+ id +' div.comment').animate({ height: 'toggle', opacity: 'toggle' }, 1000); } toggleSidebars = function() { icon = jQuery('.switch-sidebars img'); icon.attr('src', /hide/.test(icon.attr('src')) ? icon.attr('src').replace('hide', 'show') : icon.attr('src').replace('show', 'hide')); jQuery('.sidebars').animate({ width: 'toggle', height: 'toggle', padding: 'toggle', border: 'toggle' }, 1000); } <?php /* there's also "#wp-calendar caption", but it doesn't work too well */ ?> jQuery('.widgettitle, .linkcat *:first, .wpg2blockwidget h3').click(function() { jQuery(this).siblings().animate({ height: 'toggle', opacity: 'toggle' }, 1000); }).css({cursor: 'n-resize'}); <?php } // end of 'unless animations are disabled' condition // if we chose to apply a drop shadow to blog name & description if ($mandigo_options['header_blogname_shadow']) { ?> jQuery('#blogname').after('<span class="blogname text-shadow">'+ jQuery('#blogname a').html() +"<\/span>"); jQuery('#blogdesc').after('<span class="blogdesc text-shadow">'+ jQuery('#blogdesc' ).html() +'<\/span>'); <?php } // if we chose to apply a text stroke to blog name & description if ($mandigo_options['header_blogname_stroke']) { ?> jQuery.each(['tl','tr','bl','br'],function() { jQuery('#blogname').after('<span class="blogname text-stroke-'+ this +'">'+ jQuery('#blogname a').html() +'<\/span>'); jQuery('#blogdesc').after('<span class="blogdesc text-stroke-'+ this +'">'+ jQuery('#blogdesc' ).html() +'<\/span>'); }); <?php } // if sidebar1 should go to the left if ($mandigo_options['sidebar_1_position'] == 'left') { ?> jQuery('#sidebar1 script[src@=googlesyndication]').remove(); t = jQuery('#sidebar1').clone(); jQuery('#sidebar1').remove(); jQuery('td#content').before(t); <?php } // if sidebar2 should go to the left if ($mandigo_options['sidebar_2_position'] == 'left') { ?> jQuery('#sidebar2 script[src@=googlesyndication]').remove(); t = jQuery('#sidebar2').clone(); jQuery('#sidebar2').remove(); jQuery('td#content').before(t); <?php } // if the 'touch content' fix is enabled if ($mandigo_options['fixes_touch_content']) { ?> jQuery('#content').css({verticalAlign:'top'}); window.onLoad = function() { jQuery('#content').css({verticalAlign:'top'}); } <?php } // header navigation submenus ?> jQuery('#header .page_item').hover( function() { a = jQuery(this).find('a' ); ul = jQuery(this).find('ul'); y = a.position().top + a.height(); <?php // apply the same alignment as the top navigation items to submenus if ($mandigo_options['header_navigation_position'] == 'left') { ?> x = a.position().left; <?php } elseif ($mandigo_options['header_navigation_position'] == 'right') { ?> x = a.position().left + a.width() - ul.width(); <?php } else { ?> x = a.position().left + a.width() / 2 - ul.width() / 2; <?php } ?> ul.css({left:x, top:y}).slideDown(); }, function() { jQuery(this).find('ul').slideUp(); } ); <?php // fix the shifted footer in the signup form on WPMU if ($wpmu && function_exists('signup_blog')) { ?> jQuery('#page').css({marginBottom:0}); <?php } // fix the gap between the sidebox and the sidebars in IE if (mandigo_sidebox_conditions()) { ?> if (jQuery.browser.msie) { h = jQuery('#content').height() - jQuery('#sidebox .sidebars').height() - jQuery('#sidebar1 .sidebars').height() - parseInt(jQuery('#sidebox').css('padding-bottom')) - parseInt(jQuery('#sidebox .sidebars').css('padding-top')) - parseInt(jQuery('#sidebox .sidebars').css('padding-bottom')) - parseInt(jQuery('#sidebar1 .sidebars').css('padding-top')) - parseInt(jQuery('#sidebar1 .sidebars').css('padding-bottom')); if (h > 0) jQuery('#sidebar1').append('<div style="height: '+ h +'px"><\/div>'); } <?php } // alternate coloring of comments ?> jQuery('.commentlist li:even').addClass('alt'); }); // ]]> --> </script> <?php // HTML Inserts: very end of the page echo get_option('mandigo_inserts_veryend'); ?> </body> </html>Wir sind Anonymous - Wir sind VIELE - Wir vergessen Nicht - Wir Vergeben Nicht - Erwartet UNS!
Keine Krise ohne Machiavelli: Die wohlgeordneten Freistaaten müssen den Staat reich und den Bürger arm halten.
Bitte hier anschreiben: Gegen menschenverachtende Filme im Fernsehen! (z.B. SAW)
- 06.08.2008, 10:46 #5Klarapfel
- Registriert
- 06.2007
- Beiträge
- 277
Also mit Firefox kann man relativ schnell solche Stellen finden.
Man muss versuchen diese Boxen/Text/Bilder zu markieren, Rechtsklick: "Auswahl-Quelltext anzeigen"
und dann zeigt Firefox den Quellcode der von den markierten Elementen betroffen ist.
edit: Ich könnte mir vorstellen dass es hier rein muss:
Das sollte natürlich innerhalb des footer-Containers beliebig verschoben werden können.Code:<div id="footer" class="png"> <p> <?php // if this is WordPress MU if ($wpmu) { $current_site = get_current_site(); ?> <?php _e('Powered by <a href="http://mu.wordpress.org/">WordPress MU</a>', 'mandigo'); ?> & hosted by <a href="http://<?php echo $current_site->domain . $current_site->path ?>"><?php echo $current_site->site_name ?></a><br /> <a href="http://<?php echo $current_site->domain . $current_site->path ?>wp-signup.php">Create a new blog</a> and join in the fun! <a href="http://www.onehertz.com/portfolio/wordpress/" target="_blank" title="WordPress MU themes">Mandigo theme</a> by tom <?php } // if this is a regular WordPress else { ?> <?php _e('Powered by <a href="http://wordpress.org/">WordPress</a>', 'mandigo'); ?>, <a href="http://www.onehertz.com/portfolio/wordpress/" target="_blank" title="WordPress themes">Mandigo theme</a> by tom. <?php echo "Dies ist ein Test"; ?> <?php } // the rss links ?> <br /><a href="<?php bloginfo('rss2_url'); ?>"><img src="<?php echo $dirs['www']['scheme']; ?>http://www.apfeltalk.de/forum/images/rss_s.gif" alt="" /> <?php _e('Entries (RSS)', 'mandigo'); ?></a> <?php _e('and', 'mandigo'); ?> <a href="<?php bloginfo('comments_rss2_url'); ?>"><img src="<?php echo $dirs['www']['scheme']; ?>http://www.apfeltalk.de/forum/images/rss_s.gif" alt="" /> <?php _e('Comments (RSS)', 'mandigo'); ?></a>. <?php // if we chose to display statistics at the bottom if ($mandigo_options['footer_statistics']) { ?> <br /><?php echo get_num_queries(); ?> queries. <?php timer_stop(1); ?> seconds. <?php } ?> </p> </div>Geändert von drok (06.08.2008 um 10:59 Uhr)
- 08.08.2008, 13:41 #6
So, jetzt hab ich das mal ausprobiert…
…aber leider wird nach dem speichern nichts desp. angezeigt.
An sich sollte es ja nicht sooo schwer sein diesen:
und diesen:

Button, dort:
unterzubringen.
Meine PHP5 Kenntnisse sind imho ziemlich bescheiden, aber ich lerne bereits fleissig.
Wir sind Anonymous - Wir sind VIELE - Wir vergessen Nicht - Wir Vergeben Nicht - Erwartet UNS!
Keine Krise ohne Machiavelli: Die wohlgeordneten Freistaaten müssen den Staat reich und den Bürger arm halten.
Bitte hier anschreiben: Gegen menschenverachtende Filme im Fernsehen! (z.B. SAW)
- 08.08.2008, 13:56 #7
Ich vermute mal dass das was dein Screenshot zeigt das Sidebar ist, richtig? Vielleicht zeigst du ja dazu mal den Code oder besser, verlinke doch einfach das passende Theme. Ich meine du schreibst das du eher nicht so viel Ahnung von PHP hast, da vermute ich mal dass dies kein Geheimnis ist.
Benutzt du Widgets für dein Theme oder die konventionellen Seitenelemente?
NoaHMacBook Pro 15",Core2Duo 2.4GHz, 4GB RAM, 500GB HDiMac 27", Core i5 2.8GHz, 16GB RAM, 2.000GB HDMacPro, 2x2.8GHz, 16GB RAM, 4x1.500GB HD…If it's mirage against no meaning, like I think it is,
I'll be a child of entertainment...
- 08.08.2008, 13:59 #8Bismarckapfel
- Registriert
- 12.2007
- Beiträge
- 142
sieht mir auch nach sidebar.php aus. Was der button im footer soll weiß ich nicht. Bin allerdings kein WP Experte.
- 08.08.2008, 14:03 #9
Das war ein Vorschlag weiter oben, mit der Begründung das es dann ja die ganze Zeit zu sehen wäre (die ich nicht verstehe, da sich das auch im Sidebar so einrichten lässt).
Ich habe da auch eigene Button in meinem Wordpress drin und das ist eigentlich nicht wirklich kompliziert, hängt allerdings vom Theme ab und ob Widgets im Spiel sind, weil dann wird es etwas komplexer.
Ich bin zwar auch nicht der wahnwitzige PHP Freak, aber zum anpassen und umbauen von Wordpress Themes hat es bisher immer noch sehr gut gepasst.
NoaHMacBook Pro 15",Core2Duo 2.4GHz, 4GB RAM, 500GB HDiMac 27", Core i5 2.8GHz, 16GB RAM, 2.000GB HDMacPro, 2x2.8GHz, 16GB RAM, 4x1.500GB HD…If it's mirage against no meaning, like I think it is,
I'll be a child of entertainment...
- 08.08.2008, 14:09 #10
Sidebar! Richtig.
Ich benutze Widgets.
Den Footer-Code dazu hab ich im w.o. gepostet. Möglicherweise muss man )ich) aus dem html-Code ein Widget-PHP machen?
Hier mal der Link zum Blog [-->Klick<---]Wir sind Anonymous - Wir sind VIELE - Wir vergessen Nicht - Wir Vergeben Nicht - Erwartet UNS!
Keine Krise ohne Machiavelli: Die wohlgeordneten Freistaaten müssen den Staat reich und den Bürger arm halten.
Bitte hier anschreiben: Gegen menschenverachtende Filme im Fernsehen! (z.B. SAW)
Ähnliche Themen
-
lokales Wordpress
Von iMacuser91 im Forum CMSAntworten: 5Letzter Beitrag: 03.04.2008, 14:23 -
Wordpress und .mac
Von MKL1987 im Forum Webhosting/DSL-AnbieterAntworten: 2Letzter Beitrag: 06.02.2008, 12:50 -
Wordpress Header
Von mschoening im Forum CMSAntworten: 3Letzter Beitrag: 13.07.2007, 15:20 -
Wordpress und .mac?!
Von chiemseer im Forum CMSAntworten: 4Letzter Beitrag: 19.12.2006, 11:13 -
Wordpress will nicht!
Von niggel im Forum CMSAntworten: 14Letzter Beitrag: 24.06.2006, 04:17


Zitieren
