Archive for the 'WordPress'

The smilies. And the color green in general.
Outside, it germinates and sprouts everywhere, the trees produce delicate buds, the birds are in love wobble (just a duck broods on our balcony, as every year) - the world is green. Definitely green. (The so-called early awakening has begun on the left.)

Green is also represented in this blog so much. Lacked only green smilies. And you know what? I found some. And although here: Saturday Sunday as a WordPress plugin (beta) . I sincerely thank you!

The complete reference to the following emoticons. Am I the same time to leave one of the green send comrades to Rennenn? Well then: Because I am delighted to have found green smilies ... : Hurray:

In Part 1, Akismet, ExecPHP and All-in-one SEO pack were presented. Even those who follow, I consider now indispensable.

Part 2

The excursion into the world of plugins and widgets on this blog

AddQuicktag :
Tags "labels" are "labeling", "plaques", but also in the technical sense, "Markers." And with WordPress? There are so-called template or template commands given instructions that tell the blog to do what he has. (Incidentally, this also applies to other programming languages ​​such as HTML, CSS, Java ...)
AddQuicktag to its name (loosely translated: Added to joining Fast commands) all honor and adds to the Artikel-/Seiteneditor commands. Is something for 1st Lazy writing and 2 Quick bloggers and 3 People with memory loss. After installing the plugin, you can find it in the backend of WordPress , so the dashboard, under the "Settings". It looks like this:

aqt-ss

As you can see, there are fields for the name of the button that will appear in the bar of the editor, as well as the fields start date and end tag. The button "highlight box" for example, is then given by: <div class="highlight-box"> , when pressed, and then jumps to the end tag </div> , which completes the command. The result of this action can you see above: The green box with a brown border, which is equal in the eye, was in the style.css of the theme defined (color, border, font type and color, orientation) and will use this command in The article added. So you can add Allerweltsbefehle to a lack in the editor, but also our own creations, the WordPress can even know from home at all. The button "LinkIcon" for example, I create the link targets with the little green stars before - that I am doing, WordPress could not know when delivered.
Very useful, this plug-in. The HTML editor is currently the way this theme looks like this:

wp-html-edit1

Google XML Sitemaps :
A plug-in that is not in the front end (ie the end that your users will see) shows. It is similar to the all-in-one SEO pack, the discovery of your blog in addition to individual entries and pages. In the Dashboard, see "Settings", select "XML Sitemap". There, the configurations have to be made. The plug-in updated regularly, and then sends the data to search engines like Google and represents the hardworking Spährobotern information about your page.

Landing sites :
Many of your visitors will flatern via a search into the house. We are looking for certain terms, one of your article or a page fit into the scheme of the search, and read the user to. And then? They chirp away again, since they have found what you were looking for. To give away (so you as a blogger) potential readership. Unless you have something interesting to your visitors by installing landing sites. A scrap of code is your single.php

add, this file controls the appearance of your product-single view. This will be presenting via search einfliegenden readership suddenly as if by magic potentially relevant titles from your repertoire. However, the visitor browses around manually in your offer, he does not. You can even try it again: For example, type in Google the terms "black weekend constituted" one - the same as the first entry should be a hit. Then click on the, and you end up (hence Landings sites) directly from the article. There you will find at the foot of the entry this box:

ls-box

You can see items that could possibly be interesting for the collection flown. And to see the difference: Click here to land to be entered directly there, but the box is smaller, the "landing text" is missing and then offers only the default from me links to the homepage, the RSS Feed and to the imprint. How do you make it and where you want the text like, is left largely to your imagination as long as you choose the single.php.

This was part 2 of the plug-in series. If you like, then get your self but the RSS feed , because the small series continues. There is quite simply a lot of good and useful helpers for WordPress.

Plug-ins , this very very useful little things. For the sidebar the little add-on programs also are widgets called. (Ultimately, they are not very much different in function, it is also relatively small sections of code that just convenient and GAI are * safe home in the sidebar; be herumgepult it must not need the source code of the theme Finally shelling. not in the code for everyone.)
Some plugins have their own widgets on board to be able to spend something in the sidebar. Here's an example: The plugin ' StatPress "includes, among other things, which pages are visited and how often. About a widget in the sidebar of the blogging man can for example publish these results. Another example: Akismet (see below) filters out spam comments - in a widget then the number of filtered spam will be announced.

Plugins and widgets to make the life of a blogger using WordPress much easier. The functionality of the blog is (depending on the selected plugins partially or significantly) enhanced. Many of these add-ons work "out of the box", as the French say, that "right out of the box". Some are created must be a little obvious, but the perpetrators of these snippets give detailed information about it quite often.

There are many bloggers who share their experience with plugins and widgets you. Here are some examples, as a kind of inspiration and warm-up:

Part 1

the plugins and widgets on this page.

Not everything that exists is, for every blog alike. I raise no claims to infallibility, nor do I revel in absolute fantasy. I blog now a quarter of WordPress (previously I've worked with beta blogger). I'm still excited about the possibilities of this platform. And after I finally got my theme "environment" was the way I had imagined, it is now increasingly to the fine tuning ** with plugins and widgets.

What I consider it essential

Akismet :
One of the most effective spam filter at all. Here has been fished out plenty of spam. But the legal framework of the use seems to be uncertain in Germany. The problem: There are so good comments coming into the pot, but the poor can be sent to the spam Nirvana, data sent to a server in the USA. This compares certain parameters, these stores, but the Akismet user has no influence and do not know exactly what is stored as long why. ( Details on data security guards blog .) From my rErfahrung with the plugin but I can say that it filters very reliable and comments like this effectively keeps the neck. In all the concerns I continue to use him, but will set a clear reference to data protection.

All-in-one SEO Pack :
SEO - the acronym stands for Search Engine Optimization , Search Engine Optimization so. Time, be honest: Who wants to publish something on his blog, also read. (Optional heard or seen when it comes to podcasts, music or pictures.) Two visitors a day make the blogger carbon not fat. Because it helps a plugin that a largely decreases the work, even more real. But you can, if desired, belonging to the turn of the screw optimization optimization tools. Where knowledge of English is indispensable.

Exec-PHP :
PHP is basically the engine of dynamic Web content. As anyone who can read, is not difficult to recognize is given, a WordPress Theme from a majority. Php files, flanked by. Css, cascading styling sheets so that indicates the sound design. If one wants to install a scrap of PHP articles and / or the sidebar, it will be miserable without Exec-PHP differences Tern fail: Since WordPress denied any cooperation in the standard version. With this plugin, but it is simple PHP code to insert snap - and even running the story. The simple little text widgets will suddenly become powerful tools.

Warnung bei installiertem ExecPHP im Kopf des Editors

Warning ExecPHP installed in the head of the editor

But beware: WordPress has indeed *** This WYSIWYG editor. When writing is to help to understand the structure and the later appearance of the entry. For PHP code editor, but this is very dangerous. But let's be honest: Did you ever go to the article like this publication as the editor? No? Well, we do not feel it too.
It can certainly be the inexperienced user of some help to understand the gross structure, but it is not necessary. For this plugin it is even fatal, at least for the PHP code. The ratz is then, that breathes away when an article from the WYSIWYG interface (for WordPress is the "graphic") out of stores. But I have learned from experience that one can certainly meantime times change in the graphical view, if you can not just forget to come back before being stored in the HTML editor - some buttons (for example, to underline) there are in HTML editor not.

This can leave you with the buttons missing but - with the plugin AddQuicktag , with which it goes further in the next part .

A final personal thanks goes to Cindy that she has helped me in searching: The idea, in the search of the blog meadow times the name of the plugin , which they used, I was looking for, but always in the wrong version in the fingers, got enter, I am not come to my shower head.

nzunehmender I diotenanwender. * GAI = G rößter a nzunehmender I diotenanwender.

** This widget is LEO , following the way, translates as "thingy", "gimmicks" or "device". Not meaningful as the English name. Significantly, was the first (sub) title of my blog "artifice mätzchen photos and other blogs." "Other Antics" has to this day as a synonym for category "Miscellaneous".

*** WYSIWYG: Stands for "What you see is what you get". Freely translated: Guckste already in writing, how it looks later.

Yes, finally, here it is so for several weeks, but was always touched up (or verschlimmbessert how you have it). Now I have decided to publish! Of course, here and there still screwed, but also the final issues are resolved, this version runs on WordPress 2.7.1 stable and good.

Since I got the foundation as a GNU-licensed work also free, I give the modified and extended version of you.

The theme here is now available for download as a ZIP file!

Hechelbach It is you may have noticed here and there: Not only is the blog title is clickable, but also the description. You can also call this area of ​​subtitles. You have a visitor this is no real additional functionality - you just go from there to home than you would click on the blog title. The blogger, at least when he gets logged, but from there directly into the admin area. Maybe this gimmick is interesting for you - to get to the dashboard, you must not then shimmy to the Admin link, as the blog description is indeed the top of the page header and is thus always within easy reach. We were here a long time, until soft, blog title and description of the new design had, for the display of which we have abolished the title and description.

The good thing is that this can be achieved with very little code. The place where this is happening, the header.php. Just search <?php bloginfo('name'); ?> and <?php bloginfo('description');?> . The section that looks mostly like this:

<!-- No.1: USUAL WAY. CLICK ON BLOG TITLE LETS YOU RETURN HOME WHILE THE DESCRIPTION IS JUST A DESCRIPTION NOT A CLICKABLE AREA. -->
<div id="header">
<div id="headerimg">
<h1><a href="<?php echo get_option('home'); ?>/"><?php bloginfo('name'); ?></a></h1>
<div class="description"><?php bloginfo('description'); ?></div>
</div>
</div>
<!-- END of No.1 -->

just replace this by:

<!-- No.2: THE FOLLOWING COMMENTED PART IMPLEMENTS DIRECT ACCESS TO ADMININSTRATION BY CLICKING ON THE BLOG DESCRIPTION WHILE ANYONE WHO IS NOT LOGGED IN RETURNS BACK HOME -->
<div id="header">
<div id="headerimg">
<h1><a href="<?php echo get_option('home'); ?>/"><?php bloginfo('name'); ?></a></h1>
<div class="description">
<a href="<?php
if (current_user_can('level_10'))
echo get_settings('home').'/wp-admin/">';
else
echo get_settings('home').'/">';
bloginfo('description'); ?>
</a>
</div>
</div>
</div>
<!-- END of No.2 -->

What is the code? While clickable in Option 1, the standard header, blog title and description are displayed in the header, but only the title and the user back to home brings ( <a href="<?php echo get_option('home'); ?>/"><?php bloginfo('name'); ?></a>) , is in version 2, which also shows both polled by clicking on the description of the user's permission. current_user_can('level_10') is the highest authority, namely the administrators. That sits just in front of the computer is logged in, look to your own blog and would like to urgently go to the dashboard, so all he needs (or her, of course) clicking on the description for this blog. Users who are not registered and therefore does not have appropriate permissions, instead simply beamed to home.

Theoretically (and practically) the authorization request for other functions makes sense that only the administrator should be available. The range of privileges ranging from 0 (the registered user) through 1 (the employees), 2 (the blog author) and 7 (the publisher) to give 10 (the administrator). Of course, the permission bits are backward compatible: An admin can do everything (levels 10 to 0), because the publisher is already impaired (Level 7-0), etc.

Last night I analyzed the statistics (this can be finally cleared me, as I promised in the privacy policy for this blog). Somewhat startled, I have to say that the majority of readers via Microsoft's Internet Explorer comes in - and unfortunately not all look the way I was thinking it. There are just little things, the overall layout of the page goes so far in order. Still, I think it's still annoying to have to tinker a little stick for each piece of wood.

Thought of the head region is as it is for Firefox:

Post-Header in Firefox

Post-headers in Firefox

The Internet Explorer, at least to me, the most recent version shows, the story unfortunately so on (unwanted deviations are indicated):

Post-Header im IE 7

Post header in IE 7

In the navigation box below the article in the single view, there is also a mistake. So it has been programmed:

Post-Box in Firefox

Post box in Firefox

So it shows the Internet Explorer of the leading OS:

Post-Box in Firefox

PO Box in IE

Not dramatic, because there are very different disasters, thus annoying.

Addendum: Since March 19, 2009, the brand-new Internet Explorer 8 available. Of course, I immediately installed it, then he should be much safer and more compatible than its predecessors. Indeed, the previously displaced header display is now correct, but the extra point remains in the box.

Hechelbach Often, but not always, personal items, a success in view of the facts and responses is granted. One may hold some items especially, but not all visitors have the time or inclination to sift through everything, just to discover this article. But the solution is simple: It will delete all posts except those that should be read according to their own understanding of the users. Thank you for your attention! Until next time!

Well, you're right that can not be the solution! It will be different. And, yes, there is a possibility. Inspiration for that I'm self-taught somewhere on the net. (I'll post it as soon as I find them again.)

If you write an article, click below "special field". There you add something to your taste, we have "favarticle" is selected, you can also Che Guevara or Mickey Mouse or a phrase of your choice to add. The important thing is that you are either a word or an underscore ( _ ) Select a connection between multiple words. Then you assign another value, in this case we have a number 1 or 2 is used - the 1-listed candidates will be before the 2-candidates. It extends also to award only a number.

Now you need to add some code. First off is to be executed for the base code functions.php an appropriate place. Of course you can also insert it directly into the php file where you need it. Also recommended is a swap, because this preserves the clarity, and you are determined several points in your theme where you can insert a list of your favorites. Here's the code that we have pushed into the functions.php:

<?php function getFavArticles($count){ global $wpdb; $count = intval($count); $favarticles = $wpdb->get_results("SELECT post_id FROM $wpdb->postmeta WHERE meta_key ='favarticle' ORDER BY meta_value ASC LIMIT 0, $count"); if ($favarticles){ foreach ($favarticles as $favarticle){ $title = wptexturize(get_the_title($favarticle->post_id)); $link = get_permalink($favarticle->post_id); echo '<li><a href="'.$link.'" title="'.$title.'">'.$title.'</a></li>'; } }else{ echo '<li>...</li>'; } } ?>

What is the code? He calls a function getFavArticles on that you can refer to later somewhere in your theme. He is looking for a meta_key ='favarticle' , so the key. You have to define, and sorted according to the selected item to the value assigned according to ascending order. Below are the article titles as clickable links.

So, now you have prepared articles, the PHP function - you still need a place to run the function and the list of your treasures will be displayed. We have placed the Favorites list in the default sidebar, which is, however, the use of widgets set up content from scratch. So we screwed them (the list, do not you, the readers) also in single.php. The single view is formed at even without the sidebar, but with a representation that uses the available space better . We have an extra one color from the rest of the site clearly slipped box with the main navigation points installed, there is currently also the favorites list. Get the code for the sidebar (which is slightly different than the structured product view):

<?php }?> <?php if (function_exists('getFavArticles')): ?> <li><h3><?php _e('Top posts', 'kubrick'); ?></h3> <ul> <?php getFavArticles(10); ?> </ul> <?php endif; ?> </li>

and adapted for the code box:

<?php if (function_exists('getFavArticles')): ?>
<h2><?php _e('Top posts', 'kubrick'); ?></h2>
<ul><li>
<?php getFavArticles(10); ?>
</li></ul>
<?php endif; ?>

Due to the converted list instructions ( <ul> as an introduction of a list (ul = unordered list = unordered list), <li> as a new list item within that list (li = list item = list) by the terminating tags </li> and </ul> ) and the different headings ( <h3> or <h2> ) is the representation of the favorites list, something different, but adapted to the particular situation and the same content.

Determined you can think of other applications! Finally, you can make your article on stamps, on the clothes purchases or your wife - oh, what do I know! - With these kind of lists that you define special fields, specifically somewhere peddling.

Good light and good nuck!

My Flickr

By Erik Rasmussen
Made on a Gammelrechner Made on an Eee
Werbefreier Blog
Translator
German flagItalian flagPortuguese flagEnglish flagFrench flagSpanish flagDutch flagDanish flagFinnish flag
Polish flagSwedish flagNorwegian flagGalician flag     
By N2H