Archive for the ‘Wordpress Tutorials’ category

Dynamic HTML.

November 15th, 2010

Dynamic HTML, or DHTML, is an umbrella term for a collection of technologies used together to create interactive and animated web sites by using a combination of a static markup language (such as HTML), a client-side scripting language (such as JavaScript), a presentation definition language (such as CSS), and the Document Object Model.

DHTML allows scripting languages to change variables in a web page’s definition language, which in turn affects the look and function of otherwise “static” HTML page content, after the page has been fully loaded and during the viewing process. Thus the dynamic characteristic of DHTML is the way it functions while a page is viewed, not in its ability to generate a unique page with each page load.

By contrast, a dynamic web page is a broader concept — any web page generated differently for each user, load occurrence, or specific variable values. This includes pages created by client-side scripting, and ones created by server-side scripting (such as PHP, Perl, JSP or ASP.NET) where the web server generates content before sending it to the client.

Uses

DHTML allows authors to add effects to their pages that are otherwise difficult to achieve. For example, DHTML allows the page author to:

  • Animate text and images in their document, independently moving each element from any starting point to any ending point, following a predetermined path or one chosen by the user.
  • Embed a ticker that automatically refreshes its content with the latest news, stock quotes, or other data.
  • Use a form to capture user input, and then process and respond to that data without having to send data back to the server.
  • Include rollover buttons or drop-down menus.

A less common use is to create browser-based action games. During the late 1990s and early 2000s, a number of games were created using DHTML, but differences between browsers made this difficult: many techniques had to be implemented in code to enable the games to work on multiple platforms. Recently browsers have been converging towards the web standards, which has made the design of DHTML games more viable. Those games can be played on all major browsers and they can also be ported to Widgets for Mac OS X and Gadgets for Windows Vista, which are based on DHTML code.

Some disadvantages of DHTML are that it is difficult to develop and debug due to varying degrees of support among web browsers of the technologies involved, and that the variety of screen sizes means the end look can only be fine-tuned on a limited number of browser and screen-size combinations. Development for relatively recent browsers, such as Internet Explorer 5.0+, Mozilla Firefox 2.0+, and Opera 7.0+, is aided by a shared Document Object Model. Basic DHTML support was introduced with Internet Explorer 4.0, although there was a basic dynamic system with Netscape Navigator 4.0. JavaScript libraries such as jQuery have abstracted away much of the day-to-day difficulties in cross-browser DOM manipulation.

10 Benefits of Using WordPress as a CMS.

October 6th, 2010

1. Cheap or Free
Using WordPress for your website means it’s cheap or free. WordPress itself is free, a theme is easily under $100 or even free and you save loads of money (compare the cost of template vs custom design). Haven’t you heard? Stingy is in.

2. It’s That Easy
If you’ve got any computer savvy, WordPress is easy to use. If you can send an e-mail, use Microsoft Word or set up a Facebook account, then you can use WordPress. And normal use doesn’t run the risk of mucking up the design. It’s website creation for non-techies.

3. Do It Yourself
With WordPress you enter the Do-It-Yourself world. No more waiting for and paying a programmer to fix a tiny error, saving you time and money.

4. Many Users, Many Places
WordPress is online and offers multiple users, which means you’re not the only one who can fix something in a pinch and you can access it from anywhere. This means if you’ve got Internet access in Tahiti, you could work from there. That also means your important site is backed up on a secure server with multiple redundancies, not some high school kid’s laptop.

5. Climb the Search Results

WordPress also makes it easier to optimize your search engine results. That means your site is more likely to land on the first page of Google results, which means people are more likely to find you.

6. No WP Code hacking – If you like editing PHP files in your wordpress installation to create new functionality for your blog or showcase your PHP skills, then it is not possible at WordPress.com. You cannot edit the core wordpress files to suit your needs.

7. Survive Traffic Spikes – Get Slashdotted or Dugg with confidence as they balance your server load and keep your site working inspite of the huge increase in site traffic, whereas a shared hosting site should otherwise crash a server.

8. Spam is No Problem – Fighting comment spam is not an issue as preinstalled Akismet is blocking spam in the background. No need to pile on multiple Antispam plugins.

9. Freedom from WordPress Upgrades – An advantage of hosting here is that they take care of all back end upgrades, bug fixes and security issues. So when a new WordPress version is released, you need not go throught the WordPress upgrade routine everytime, it is done automatically without any FTP skills required.

10. Automatic Backups – They keep backing up your blog automatically and you need perform daily backups of your blog, just in case your server had a hardware failure.

WordPress – Blog Publishing CMS

September 17th, 2009

WordPress is a Blog publishing Content Management System (CMS) integrated with a powerful templating system, which also includes “Widgets”, that can be rearranged without editing PHP or HTML. WordPress features customisable themes that can be downloaded, installed and switched between within the CMS. The PHP and HTML code in themes can also be edited for more advanced code and customizations. WordPress also features integrated link management; a -friendly, clean permalink structure; the ability to assign nested, multiple categories to articles; multiple author capabilities; and support for of posts and articles. WordPress also supports the Trackback and Pingback standards for displaying links to other sites that have themselves linked to a post or article. Finally, WordPress has a rich plugin architecture which allows users and developers to share and extend WordPress’ functionality beyond the features that come as part of the base install.

Changing a WordPress Site URL

September 17th, 2009

WordPress stores two addresses inside the database. These determine where your blog files are, and where the main index is. On a normal install, these addresses are the same.

There are two occasions where you will need to access the database to alter one or both of these settings:

  1. If you have tried to alter the Blog URL or WordPress URL in Options and an error has occurred.
  2. If you have moved to a domain/subdomain with a different name.

BACKUP your database before you begin and store the backup off your site server, like on your hard drive.

Quick fix method

If you have access to the site via FTP, then this method will help you quickly get a site back up and running, if you changed those values incorrectly.

  1. Connect to your site via FTP;
  2. Navigate to the current active theme’s folder and get a copy of the functions.php file. You’re going to edit it in a simple text editor (like notepad) and upload it back to the site.

    The normal file directory for this is “wp-content > themes > themname > functions.php”

  3. Add these two lines to the file, immediately after the initial ”
    1. update_option(‘siteurl’,'http://example.com/blog’);
    2. update_option(‘home’,'http://example.com/blog’)

    Use your own URL instead of example.com, obviously.

  4. Upload the file back to your site, in the same location. FileZilla offers a handy “edit file” function to do all of the above rapidly, if you can use that, do so.
  5. Load the login or admin page a couple of times. The site should come back up.
  6. Repeat the above steps, but remove those lines. IMPORTANT: DO NOT leave those lines in there. Remove them immediately after the site is up and running again.

If there is no functions.php file in the theme: Create a new text file called “functions.php”. Edit it with notepad, and add this text to it, using your own URL instead of example.com:

update_option(‘siteurl’,'http://example.com/blog’);
update_option(‘home’,'http://example.com/blog’);

Upload that to your theme directory, then proceed as stated above. Remove the file afterwards.

Installing WordPress with Fantastico Deluxe

September 17th, 2009

All of VERSION-NEXT’s cPanel Hosting accounts come with Fantastico Deluxe, an automated installer for numerous web scripts and applications. Using Fantastico makes it easy to install scripts such as WordPress into your hosting account, you just need to supply some basic information and with a few mouse clicks WordPress is installed and you are ready to start blogging!

First you need to login to cPanel, point your browser to http://yourdomain.com/cpanel and enter your username and password supplied in your welcome email. Once logged into cPanel, select Fantastico Scripts from the options displayed.

To view our WordPress demo site with a custom theme installed, please click on the thumbnail to the right.

You will be taken to the page listing all Fantastico applications available for installation. Select WordPress from the menu on the left, then select “New Installation”.

Now we need to give Fantastico the Information it will require to install WordPress.

  • Install on domain – This will be your default domain name
  • Install in directory – Leave blank to install to the root directory or specify a directory you wish to install to
  • Administrator-username – This is the username you will use to access the admin area of you WordPress blog
  • Password – This is the password you will use to access the admin area of you WordPress blog
  • Admin nickname – This is the name that will be used on your blog posts
  • Admin e-mail – This is the email all notifications will be sent to
  • Site name – This will display on your blog
  • Description – Brief description of your site (optional)
  • E-mail account username – This is the email account that will be used for the “Blog By Email” feature of WordPress. Note: the username is the full email address.
  • E-mail account password – password for the above email account.
  • POP/SMTP server – i.e. mail.yourdomain.com
  • POP/SMTP server port – 110

Once you have filled out all the required information, hit “Install WordPress” and the installation process will be started. The next screen prints out some information about the installation, hit “Finish Installation” tp complete the installation process.

The final screen will give you information about what has been configured and the URL to the admin area. It is a good idea to bookmark this for future use. You also have the option of emailing the details of the installation, including username and password, so you can save the information.

PHP Freelancer