Global IP Address:

54.225.54.120

Your Local IP Address:

Determining Local IP address....

*If you are behind a firewall (NAT) your global and local IP addresses will differ. Learn More

Adding Flash Header to WordPress Atahualpa Theme (ver 3.4.1)

August 17th, 2009 reset 36 comments

This article has been updated for Atahualpa Theme, see Adding Flash Header to WordPress Atahualpa Theme (ver 3.4.4)

wordpress2This is an update to the original post to add a flash header to WordPress Atahualpa theme. This post uses Atahualpa Theme Version 3.4.1, the original post used version 3.2. Bytes-for-All has released a version 3.4.2 at wordpress.bytesforall.com that provides a handful a specific fixes. This update should work for either version, but was only tested on ver. 3.4.1.

If you use WordPress and the popular ‘Atahualpa’ Theme and want to use a Flash (.swf) header element, this post may be helpful. To make this modification you will need to modify one of the theme’s header files (bfa_header_config.php). One thing you may find helpful, is to setup a test blog that uses the same theme as your Live blog. This way you can test changes, plugins, etc. instead of editing the Live blog. To see an example of WordPress 2.8 with ‘Atahualpa’ Theme and flash header, see www.SuzieTrainsMaui.com/blog.

Let me say, Flash is great! It provides rich content and is compatible with like 95% of browers used today. There are a few different methods to implement a Flash element (a .swf movie) into web content. One method uses <object> tags which is called Static publishing. The other prominent method uses a javascript library named swfobject.js (available from Google) which is called Dynamic publishing. Static publishing is a little simpler than Dynamic, but you can choose the implementation that best suits your level and needs. Code for both methods are provided.

Here are the main steps with a code discussion below:

  1. Make a backup copy of bfa_header_config.php.
  2. Edit bfa_header_config.php following highlighted code shown HERE. This code shows the Flash Static publishing method. Code changes are highlighted Yellow. See code discussion below for details about edits and the code for Dynamic publishing.
  3. Now we need to tell the ‘Ata’ theme to use your flash header. Login to your WordPress Admin panel and goto Appearance->Atahualpa Theme Options. From the new vertical menu, select Style & edit HEADER AREA. In the Configure Header Area, you can now use %flash as a parameter. Most likely you will replace %image with %flash.

    In most cases you will not want to use %image or %logo if using %flash. However, you will want to ensure good alternate content for those valuable search engine robots and the few visitors that don’t have flash installed. So, on that same HEADER AREA options page, make sure Show Blog Title and Show Blog Tagline are yes and setup appropriately to work with your alternate content image. Also, it is important to have Header Image height option set correctly.

  4. Upload your flash movie (.swf) to your blog. I would recommend placing the file in the ‘Ata’ theme header/images folder, but you can put where you want, just make sure the path is set properly.
  5. View your blog and hopefully you see your new Flash header. You should also test the alternate content by disabling the Flash Add-on for your browser and check your page again. It is a good idea to check multiple browsers to make sure your page is rendered correctly with and without flash.

Code Discussion

The original bfa_header_config.php can be found here for comparison. Note, this example used Atahualpa theme version 3.4.1. Also, if you copy/paste from the .pdf files, carefull not to paste line numbers. HERE is the raw .php in a ZIP file for Flash Static Publishing method.

Line 277: The IF statement was modified to check for %flash in the header items. Technically added OR and test condition for %flash.

Lines 280-302:The $header_image variable needs to be broken up into 3 parts so we can use part of it for alternate flash content. The $header_image variable is replaced by $header_div1, $header_content, $header_div2 and as you can see the last statement sets $header_image to the concatenation of the 3 parts.

Lines 305-319:This is where the flash code is formulated, so ALL this code is added to the .php file. This is where the Static and Dynamic publish methods differ. As you can see, the method shown uses <object> tags which is the Static publishing method. Make sure the path to your uploaded .swf movie is valid (or it won’t work). If you want to use the Dynamic publishing method, substitue this code provide in ZIP file for lines 305-319. Also, make sure you upload swfobject.js and all paths are valid.

Lines 347:Add “%flash” to the list. Notice the comma on the line prior.

Lines 361:Add $header_flash to the list. Notice the comma on the line prior.

You can adjust the code manually if you wish or copy/paste a whole block or the whole file if you wish as the raw .php files are provided above. If you have made any other changes to this file, you may not want to copy/paste the whole file. If you are a php coder, you may wish to make adjustments versus copy/paste so you can understand it, but others may wish to copy/paste a block.

Good Luck with it! Hopefully Bytes-for-All will implement this into the Theme!

This article has been updated for Atahualpa Theme, see Adding Flash Header to WordPress Atahualpa Theme (ver 3.4.4)

Adding A Flash Header to WordPress Atahualpa Theme

August 5th, 2009 reset 8 comments

This article has been updated for Atahualpa Theme 3.4.1, see Adding Flash Header to WordPress Atahualpa Theme (ver 3.4.1).

wordpress2If you are a WordPress user and use the ‘Atahualpa’ theme and want a Flash header, this post may help. First for non-WordPress users, WordPress is a Blog publishing system that is very popular (wordpress.org). The ‘Atahualpa’ theme is the most downloaded WordPress theme and is an excellent theme. However it is not the theme behind this site (myDeviceIP.com), which uses another very popular theme ‘inove’. To see a reference of the ‘Atahualpa’ theme with a flash header, see SuzieTrainsMaui.com/blog.

To use a Flash header with ‘Atahualpa’ theme, it will require modification of the theme’s .php code files, so a little web experience is helpful. I recomend to have a test blog setup (on your web server) with ‘Atahualpa’ theme so you can test the modifications before updating the Live Blog.

The ‘Atahualpa’ theme is really well done (great job Bytes For All!!). It provides a lot of options and was programmed well enough for me to make this change (hack) farily easily.  This example uses Version 3.2 of Atahualpa Theme.

Read more…

Domain.com or www.domain.com?

June 21st, 2009 reset 2 comments

To www or not to www? That is the question.

Developers and web site owners will inevitably face the decision to use either domain.com or www.domain.com.  One may say it does not matter which I use.   This question needs to be looked at from a few different points of views:  from a users (or browser) perspective, from a search engine perspective and from a marketing perspective.  There are some different schools of thought related to the Shakespearian question.  There is no correct answer, but different practices and recommendations can improve your search rankings and increase site traffic, and could affect your marketing.  We will analyze this question from the different perspectives mentioned.

Read more…

What’s behind myDeviceIP.com

June 15th, 2009 reset Comments off

Thanks for your interest in myDeviceIP.com.  This website is hosted at LunarPages on a linux server.  myDeviceIP.com uses WordPress ver 2.8 as site framework.  WordPress is an open-source blog and publishing platform.  We have customized the iNove theme to meet our needs here at myDeviceIP.com.

Obviously, we modified the theme to display the Global & Local IP addresses box on every mydeviceIP.com page.  The IP address box utilizes PHP (a server side web programming language) to display the Global IP address.  The Local IP address uses a java application to determine your local IP address. 

The WordPress install was setup in a sub-directory not in the root directory.  We researched this quite a bit as we wanted to make the correct decision for this site before installation.  If you search google on ‘wordpress install root or folder’, you will find numerous articles discussing this critical decision.  We knew that this site would only contain the blog and no other content.  This might lead one to think that a root installation was a good choice.  We wanted to install in a sub-directory and have it appear that we installed in the root.  

Thanks to this great article at WordPress:  Giving WordPress Its Own Directory at WordPress Codex.  We installed WordPress in a ‘blog’ folder and followed the instructions…and it worked perfect.  The root directory is not cluttered with files.  This is how WordPress should be installed if you want it to operate as if it was installed in the web root.

So, we tip our hat to WordPress.org and all the posts we read that contributed to the development of myDeviceIP.com.  Enjoy! Also, Lunarpages offers some great hosting packages.

wordpresslunarpages

What is an IP Address?

June 12th, 2009 reset Comments off

The short answer:  it is a series of numbers that uniquely identifies your device on the Internet.  It is like a phone number in that it represents a unique path to that particular object, whether it be a phone, computer or Internet device.  There are 2 distinct types of IP address:  Static (dedicated) and Dynamic. 

A Static IP address is assigned to a particular computer or device and that device has a permanent IP address. 

A Dynamic IP address are not permanent and can change.  Most Internet users connect to the Internet via dynamic IP addressing via their ISP (Internet service provider).  When a device (computer) connects to the Internet and is configured for dynamic (automatic) IP addressing, it requests an address from the Host Provider and the Host Provider determines a available IP address and temporarily assigns it to the device.  If that device is disconnected from the Internet for a while (typically more than 1 day), it will lose the IP address and the Host Provide will assign a new address next time the device connects.  Basically, the Host leases the address to that device.

The format of the IP address is a set of 4 numbers (0 to 255) separated with a dot ‘.’, for example:    74.125.155.103    

The IP-4 addressing system can handle a lot of devices, but the world is running out of IP addresses.  The new IPv-6 standard is currently being implemented and computers / devices are being designed to work with both systems as the world progress to this newer system with much more capacity. 

See the Wikipedia article on IP addresses

Categories: Articles Tags: , ,