Archive for the 'WordPress' Category
Who would have thought….I’ve been grumping about the lack of buttons in TinyMCE, the “visual editor” or WYSIWYG editor in Wordpress, and come to find out, all this time there is so much more!
I went hunting for a plugin I’d seen that allowed custom buttons, and discovered that the standard installation of WordPress actually has a keyboard command that toggles some extra goodies off and on. Obviously, mine have all been off!
Turns out, you can Show/Hide the Advanced Editor Toolbar in the standard Wordpress installation and unlock a dozen or so extra buttons, including “Paste as Plain Text” and “Paste from Word”. When the Advanced Editor Toolbar is enabled, there is a toggle button available to turn it off. However, when it is off, you must use Alt-V (IE) or Shift-Alt-V (Firefox) to toggle the advanced buttons back “on”.
Adding Buttons is something I haven’t delved into yet. I need to play with this new toy first. But I learned from the Codex that under “Rich Editor Filters” in the Plugin_API/Hooks page, you can see a simple means of adding your own buttons to TinyMCE in WordPress.
http://codex.wordpress.org/Plugin_API/Filter_Reference#Rich_Text_Editor_Filters
Advanced Editing Plugins
If the Advanced Editing Toolbar buttons are not sufficient, perhaps you’re looking for a plugin to extend the functionality of the TinyMCE editor, or to add custom code snippets. Here are two you can try:
Custom TinyMCE Buttons (for WordPress 2.1)
Advanced TinyMCE Editor (for Wordpress 2.2)
It was the former that I recalled having seen, which started me on this quest, and the latter which I discovered in the process, and informed me of the advanced toggle option. Surprised that I had never heard of it in two years of hanging out on the WordPress forums, I personally added the information to the Codex. I also added links to these two amazing plugins, which I’m sure will come in handy for others.
An intriguing discussion has been taking place on the wp-hackers list, regarding what to call the “links manager” a.k.a. “blogroll” a.k.a. “bookmarks” function in WordPress. At the core of the discussion are two sides: the “links” gang says links is a universal term, understood by every novice internet user, and that’s what they are, so let’s call ‘em that — even if they can dance and sing. The “bookmarks” camp says they are much more than links, and have much more potential, so let’s give ‘em a more meaningful name that causes folks to notice how much more they can do. What do you think? What makes most sense to you? Which one is more practical, useful, understandable, sensible…??? We are all very curious what the WordPress community of users has to say on this! So if you’re a WordPress user, visit Scot Hacker’s site and vote for your preference.
If you’ve tried to use wp_link_pages outside your sidebar (for example, at the end of your Page content, to list child Pages), you’ve probably noticed that it creates it’s own set of LI tags before the title….which is non-standard code for a standalone list.
This manifests itself in an unexpected (and probably unwanted) bullet before your list title (or a lone bullet alongside your first Page link, if you used the title_li=0 argument), and often by making the “bullet” for all subsequent Page links appear as something other than a bullet (in mine, it looks like this: >> ) because it’s reading them as sub-nested list items. What a mess!
Maybe this is convenient if you only use wp_list_pages inside of an existing ordered or unordered list, but I generally don’t….so I have been fighting this strange bullet problem for quite some time.
It may be possible for you to style away this problem by adding CSS classes for .pagenav and .page_item, but if that’s not working for you, then you might want to edit the function itself. Editing the core of WordPress isn’t generally recommended, but sometimes it becomes necessary.
Here are instructions for WordPress 2.1.3. Other versions are probably similar. Don’t forget to make a back up before you do this!!!
You’ll be changing this file:
/wp-includes/post_functions.php.
Locate “function wp_list_pages” (line 265 in my 2.1.3)
Look for the “if” statement and remove the opening and closing LI tags in the two lines that begin with ?output= (one of them includes class=pagenav), so it reads as follows:
if ( !empty($pages) ) {
if ( $r['title_li'] )
$output .= '' . $r['title_li'] . '<ul>';
global $wp_query;
if ( is_page() )
$current_page = $wp_query->get_queried_object_id();
$output .= walk_page_tree($pages, $r['depth'], $current_page, $r);
if ( $r['title_li'] )
$output .= '</ul>';
}
When looking at the whole function, you’ll see you can also remove the page_item class for the inner nested LIs if you want, but you can also just not define that class in CSS and it won’t do anything.
I just started using Cimy User Extra Fields on a site I’m working on, and it has some really fantastic features if you want to add information to your registration form, and your author bio or profile pages.
The one thing I have struggled with is getting the contents of a field to appear outside the Loop. I am using get_cimyFieldValue, which is disabled by default (so the first step is to enable it!). The readme explains how to get a field value to display in the Loop, but not outside of it.
The following instructions explain what to do, provided you are working with an Author Template file (author.php) per the instructions in the WordPress codex. Read the rest of this entry »
How to set up WordPress is something I will leave to the experts at WordPress. But there are a few things I do immediately after setting up WordPress, before I make any posts or even change the theme.
- The very first thing I do is go to Users –> Authors & Users (default tab) and click “edit” for my new admin profile….and CHANGE THE PASSWORD. I will never remember the random one WordPress gives me. (If you installed WordPress with Fantastico, you chose your own password, so you can skip this step.)
- Next, I set privacy settings in Options –> Privacy. If I have a lot of set up to do and don’t want visitors yet, I will opt for a private blog for now. This prevents WordPress from pinging Update Services every time I make a test post.
- Another important step before you start posting is your Permalinks options (Options –> Permalinks). I prefer “pretty permalinks” and so do search engines. They look nicer, are more memorable to users, and can tell the search engines more about the content of your site than a link with ?p=4 in it. Be sure you have a file in your root (top level) WordPress directory (same place as index.php) named .htaccess (it can be completely blank, but it must exist) which is CHMOD 666, so that WordPress can update the file for you.
- If this site will allow comments, I enable the Akismet plugin to prevent comment spam. You’d be amazed at how fast spammers find new installations of WordPress and start spamming them.
Once these preliminary set up steps are completed, I install the theme, start adding plugins and making test posts. The plugins usually lead to theme modifications, so now the real fun begins. ![]()
Security is a huge buzz word on the internet because of the many threats to privacy that exist in the online world. Here are a few things you can do to protect your privacy when you use WordPress. This list is by no means complete or exhaustive, just a few basic ideas. If you need serious privacy protection….well, you probably shouldn’t be building any website, much less a blog.
- Change your admin password frequently. Make it something unique and hard to guess.
- If you create an email address for posting, make it very unique and very long, containing no actual dictionary words, and an ugly combination of numerals and letters. You don’t have to remember it — just make an entry in your email address book for it.
- IMMEDIATELY upon installation, disable the Ping-O-Matic option in Options -> Privacy or Options -> Writing -> Update Services. There is an option during installation to disallow search engines from your site. This disables the ping function. Say yes! You can always change it later when and if you want to use Ping-O-Matic or other update services.
- Make changes to your theme, .htaccess and plugin files on your local computer, and upload them via FTP. Don’t allow WordPress to make changes for you. This isn’t really security against external attacks, but rather protection against user error. There is no “undo” button in WordPress after you hit the Update button.
- If you don’t have any authors or users on your blog besides yourself, go to Options -> General and disable the Membership settings (uncheck both boxes).
- If you permit comments on your site, visit Options -> Discussion and decide what security options you wish to enable.
- Enable the Akismet plugin. It’s well worth getting a free WordPress API key (takes a minute or two to sign up) for the spam protection you will receive.
This is just a quick overview of some very basic security measures. Comments and additional suggestions are welcome.
During setup in the newer versions of WordPress, you are asked whether you want to let search engines see your blog, or just regular users. This is, IMHO, a very misleading question.
You might indeed want search engines to find your blog — after you get it set up completely. But not knowing the real meaning of this option, you say “yes” to search engines, and unbeknownst to you, WordPress is now going to notify Ping-O-Matic every single time you make a post to your blog! Yes, even your test posts and that silly “Hello World!” post (if you edit or update it).
Personally, my first assumption would be that the question about search engines would insert or leave out robots.txt tags, create or modify the robots.txt file, or something of that nature — since the robots.txt file and tags are directly related to search engines, and keeping them out or letting them in.
As a new blogger, or even moreso as someone setting up a content management system, the concept behind Ping-O-Matic (and update services in general) may be completely unknown. And furthermore, it has nothing to do (at least not directly) with search engines. So asking this question, in this manner, at set up is misleading to say the least.
This question should read “Do you want to automatically inform Ping-O-Matic of new posts to your blog? (If you choose YES, your site may be indexed immediately, even your test posts. You can change this option later in Options –> Privacy.)” since that is exactly what your answer to the question will determine. It should also tell you (or present a link to find out more) about pinging, and the actual results of setting this option to YES.
If you don’t want your new blog (and any test posts you make) immediately crawled by Yahoo! and other search engines, then say NO to this option during set up, or turn it off as soon as you get into Admin for the first time, before you blog about anything…or even update (edit) the Hello World! test post.
- Chocolate Recipies (1)
- Code Snippets (4)
- How Tos (5)
- Internet (1)
- Plugins (2)
- Security (2)
- Tools (1)
- Tutorials (2)
- Webmaster (1)
- WordPress (7)
No Comments »
