Archive

Posts Tagged ‘Wordpress’

Moving Your WordPress Blog

May 31st, 2009 admin No comments

Moving a blog can make it unreachable for 24 – 72 hours, unless the new domain name has fully propagated around the Internet. It is just the way it is and WordPress doesn’t have anything to do with such limitation. Moving is best done when you have the time or have planned ahead.

Moving Towards a New Domain Name

The first thing to do is create a database back-up. The entire WordPress installation needs to be downloaded with no exceptions. This is not the time to tidy up your install or to upgrade/change anything. That would have to wait after the blog has been moved and is shown to be working. Your computer should now have these items: one or more database backups plus all your wpfiles, folders and images directories. The backups should be copied again to somewhere safe on your machine so that the next stage can be done on a copy.

Alterations are needed to be made. The details of your new mysql connection have to be changed by opening the file “wp-config.php” on your WordPress install. The file: SCR 1.0.002 Freeware Edition (13KB) should be downloaded to search and replace your website URL with your Xampp url. This is because your blog address inside the database has to be changed. Database files can be very large, thus opening them can be excruciatingly slow. It could even crash your machine. By replacing the old address with your new address, the URLs within your site will still work.

Moving hosts will mean changes in your passwords. You can double check your new passwords for your mysql connection as well as other passwords that you have in use. After which, it is now time to upload all your files to your new web space and restore your database. From the website cpanel, select the database you are using. You should still need to look inside the “wp – options” table to check that the values in “site – url” and “home” are correct. Clear your cache and cookies before checking your new site.

It is possible that you will get a blank page when looking at your blog right after moving. In this case, the themes should be checked. A faulty theme file causes a blank page. You can try changing themes or uploading a new theme then changing to it. Should this step not help, you should check whether all the WordPress files are present and are of the correct size. You can use your ftp client to download a new set of WordPress files, if needed.

There may be instances where you would need to move WordPress around within your server. WordPress is flexible enough to handle this situation. Moving WordPress from one server to another is also possible.

Moving Within

WordPress files can be moved from one location on your server to another. Start by creating the new location using any of these methods: create the new directory when you will be moving your WordPress core files to a new directory, or move the WordPress to your root directory by making sure all index, php, .htaccess and other files that might be copied over are backed-up and/or moved. This will then make the root directory ready for the new WordPress files. It is crucial that you set the URL locations before you move the file.

When done, test your site to confirm that it works right. Make sure that you let people know the new address when the change involves a new address to your blog. Consider adding some redirection instructions in your .htaccess file to serve as a guide to visitors towards the new location.

Handling Redirects after Moving a WordPress Blog

Concerns should not be limited to the moving of the actual WordPress program files but also on finding a way to redirect visitors that may be following outdated links to an old content. It is possible that redirects can mess up RSS feeds and search engine results thus an ideal redirect option that preserves both past and current search results is the key. After moving your WordPress blog, look into how 301 redirects can be properly handled.

A suggested way goes like this: open your .htaccess file in the directory that houses your newly moved WordPress file and edit in either your host’s file manager interface or by downloading to your local machine. Insert a line at the top that reads: redirect301/blog/http://www.yoursite.com/. You have to make sure to insert the opening and trailing / at the end of the destination path. Save your .htaccess file. Reupload it if you’re editing on your local machine rather than on the server. Load your old WordPress URL to make this work.

Moving Several Posts from One Blog to Another

When you decide to move over all your WordPress related posts from another blog, the task is basically to extract a few posts and their comments and to insert them into the database of the new blog. This can be accomplished by following these steps: click on the wp-posts table name in the left panel when you are in the proper database. It should be noticed that other tables might have a different prefix. Click browse on the top in the next panel. Select the checkbox at the beginning of the rows that you want to extract or export. Select “Export” at the bottom of the rows where it says “with selected”. Deselect structure on the next panel, leave selected Data, check Save As file, then Go. You will then get a prefix – posts.sqlfile.

Open the file in your chosen text editor such as Notepad. Change the wp-part everywhere to target_ -, depending on the prefix of the tables where you want to move the post using Search/Research. You are ready to go if you move the post to a new, empty database. However, if the target blog has posts in the database, there is some more work to do. You have to check in the database what the ID number of your last post is in the target blog. You should also go back to the .sqlfile and take a look at the first line below Dumping data for table…

Moving a WordPress Blog to Your Own WordPress Installation

WordPress is a platform you install on your own/hosted server and maintain the installation yourself. However, attempting to make the move should only be done if you’re comfortable with ftp, basic work in the UNIX shell, basic SQL and a little bit of general hacking. Expertise is not really required but possessing the basic skills and the willingness to give it a go are.

The first thing to do is to install WordPress and get a hosting service. Choose one that does an automatic install of WordPress to do away with fiddling. Of course, you would need http://mysql.php, some form of ftp access and a shell account. The challenge lies on setting up your blog on a new place while finding the theme and the plugins you want. The themes on http://WordPress.com normally have links to places you can download them from.

Categories: Blogging Tags:

Hack Attack: Just How Secure is Your Wordpress Blog?

May 30th, 2009 admin No comments

People with Internet and web experience of all levels have worked to make sure that their websites, web service accounts and browsers were as safe as they could be from computer hackers. However, the hackers practice an old baseball saying which goes, “If you want to be a success you have to hit ‘em where they ain’t.”

The weakness that the hackers have found is the WordPress Blog. Many may have never considered a blog to be worthy of a hacker’s attention, yet with the way that advertising and marketing dollar potential have soared, that’s what sets a hacker off on their hunt for a victim.

The hacker attacks on WordPress Blogs take the person who wants to come to a particular blog to a different site that’s full of ads, many of them obscene and many of them virus filled, which obviously does not present what was the assumed landing point blog in the best light. In fact, one hacker attack, no matter how quickly it’s spotted and dealt with, can destroy all the work that the owner of that blog has done. If it’s a blog full of content with years of archive material, a hacker’s attack will turn all of that work into worthless untrustworthy words.

The attacks launched on WordPress Blogs by hackers get even worse for the blog owners. Google, for example, when (not if) their robots detect something suspicious about a WordPress Blog will include the following in the search result for that WordPress Blog.

“This site may harm your computer.”

If a person clicks on that phrase, which appears as a link within the search result listing, they will be taken to a page that will repeat the warning of harm to their computer
and suggest that they go to another site or blog that came up in their search results.

Even if a WordPress Blog owner catches the damage quickly, the time it will take to repair that blog’s reputation will be costly at a variety of levels. People will remember the warnings of computer harm no matter how strongly it’s presented that all with that WordPress Blog is well. A loss of blog traffic will mean a loss of ad revenue. In many cases this could mean the loss of advertisers since many affiliate ad programs require a specific level of traffic activity.

WordPress Blog owners make the mistake of thinking that since the warning signs that their blog has been hacked are so obvious that they’ll be able to catch the problem before it becomes a major disaster. They would have to be proactive rather than reactive and monitor their WordPress Blog every minute of every hour of every day. Just five minutes under a hacker’s control can destroy the connection that WordPress Blog had made with the thousands of people who visit it at any point.

While WordPress does the best they can with security updates, that’s still just a reactive option for the WordPress blog owner. There is a proactive step every WordPress Blog owner can take to prevent hackers from destroying the work and reputation of their WordPress Blog.

Internet developer and expert James Stein, with 15 years experience in the development of programs that assist and educate people, has created WordPress Secured. Instead of one plug-in fix after another, WordPress Secured brings total security to every WordPress Blog that anyone can learn and benefit from.

WordPress Secured teaches how to close the many open doors WordPress Blogs contain which hackers exploit. It teaches how to find a blog’s softspots and strengthen them. Users discover how to protect their important avenues of ad revenue. WordPress Secure makes the blog owner not only more secure but more smart and aware about their blog.

WordPress Secure also includes a special feature called BadBot Killer. This program stops the scanning bots that seek out a WordPress Blog’s weaknesses that are the welcome mats for computer hackers. BadBot Killer stops the hackers even before they can find the front door to a WordPress Blog.

The amount of knowledge and information required to do a WordPress Blog post-hacking repair is large and above the heads of many WordPress Blog owners. WordPress Secure is one easy and educational package that keeps the WordPress Blog owner steps ahead any hacker.

Categories: Blogging Tags:

Create Professional Wordpress Themes With New Book

May 28th, 2009 admin No comments

Wordpress is an open-source blog engine released under the GNU general public license. It allows users to easily create dynamic blogs with great content and many outstanding features. It is an ideal tool for developing blogs and though it is chiefly used for blogging, it can also be used as a complete CMS with very little effort. Its versatility and ease of use has attracted a large, enthusiastic, and helpful community of users.

This book walks through clear, step-by-step instructions to build a custom theme for the WordPress open-source blog engine. The author provides design tips and suggestions and covers setting up the WordPress sandbox, and reviews the best practices from setting up the theme’s template structure, through coding markup, testing, and debugging, to taking it live. The last three chapters cover additional tips, tricks, and various cookbook recipes for adding popular site enhancements to WordPress theme designs using 3rd-party plugins as well as creating API hooks to add custom plugins.

Whether users are working with a pre-existing theme or creating a new one from the ground up, WordPress Theme Design will give them the know-how to effectively understand how themes work within the WordPress blog system enabling them to have full control over their site’s design and branding. Users only need to be comfortable with the basics of web development and this book will take care of the rest.

What you will learn from this book

* Set up a basic workflow and development environment for WordPress theme design

* Create detailed designs and code them up

* Enhance your sites by choosing the right color schemes and graphics

* Debug and validate your theme using W3C’s XHTML and CSS validation tools

* Customize and tweak your theme’s layout

* Set up dynamic drop-down menus, AJAX/dynamic and interactive forms

* Download and install useful plug-ins and widgetize your theme

* Improve post and page content using jQuery and ThickBox

* Add interactivity to your themes using Flash

* Includes a reference guide to WordPress 2.0’s template hierarchy, markup, styles and template tags, as well as include and loop functions

Chapter 1 introduces you to the WordPress blog system and lets you know what you need to be aware of regarding the WordPress theme project you’re ready to embark on. The chapter also covers the development tools that are recommended and web skills that you’ll need to begin developing a WordPress theme.

Chapter 2 looks at the essential elements you need to consider when planning your WordPress theme design. It discusses the best tools and processes for making your theme design a reality. The author explains her own ‘Rapid Design Comping’ technique and gives some tips and tricks for developing color schemes and graphic styles for your WordPress theme. By the end of the chapter, you’ll have a working XHTML and CSS based ‘comp’ or mockup of your theme design, ready to be coded up and assembled into a fully functional WordPress theme.

Chapter 3 uses the final XHTML and CSS mockup from Chapter 2 and shows you how to add WordPress PHP template tag code to it and break it down into the template pages a theme requires. Along the way, this chapter covers the essentials of what makes a WordPress theme work. At the end of the chapter, you’ll have a basic, working WordPress theme.

Chapter 4 discusses the basic techniques of debugging and validation that you should employ throughout your theme’s development. It covers the W3C’s XHTML and CSS validation services and how to use the FireFox browser and some of its extensions as a development tool, not just another browser. This chapter also covers troubleshooting some of the most common reasons ‘good code goes bad’, especially in IE, and best practices for fixing those problems, giving you a great-looking theme across all browsers and platforms.

Chapter 5 discuss how to properly set up your WordPress theme’s CSS style sheet so that it loads into WordPress installations correctly. It also discuss compressing your theme files into the ZIP file format and running some test installations of your theme package in WordPress’s administration panel so you can share your WordPress theme with the world.

Chapter 6 covers key information under easy-to-look-up headers that will help you with your WordPress theme development, from the two CSS class styles that WordPress itself outputs, to WordPress’s PHP template tag code, to a breakdown of “The Loop” along with WordPress functions and features you can take advantage of in your theme development. Information in this chapter is listed along with key links to bookmark to make your theme development as easy as possible.

Chapter 7 dives into taking your working, debugged, validated, and properly packaged WordPress theme from the earlier chapters, and enhancing it with dynamic menus using the SuckerFish CSS-based method and Adobe Flash media.

Chapter 8 continues showing you how to enhance your WordPress theme by looking at the most popular methods for leveraging AJAX techniques in WordPress using plugins and widgets. It also gives you a complete background on AJAX and when it’s best to use those techniques or skip them. The chapter also reviews some cool JavaScript toolkits, libraries, and scripts you can use to simply make your WordPress theme appear ‘Ajaxy’.

Chapter 9 reviews the main tips from the previous chapters and covers some key tips for easily implementing today’s coolest CSS tricks into your theme as well as a few final SEO tips that you’ll probably run into once you really start putting content into your WordPress site.

For more details on the book please visit http://www.packtpub.com/wordpress-theme-design/book.

Categories: Blogging Tags: ,