Posts Tagged ‘upload’

How do I add the date to my blog?

There are a lot of times when we want to add something as simple as the date to our blog but coding (especially in PHP) can be a bit difficult. Let me walk you through the steps to adding a date to your blog, assuming of course you use WordPress.

First, open your template files such as the footer by loading the footer.php file located in your /wp-content/themes/[theme name]/ folder.

Next, we need to insert a very simple PHP function called date() into your page but before we do that, we need to make sure that we open and close the PHP event. To do this, simply open it using <?php and close it using ?>. The date() function itself requires a formating argument, but luckily we’re not meant to remember them all. They can be found on the PHP date() reference page.

As an example, if you want to show the day of the week that it currently is you could open your website and edit it every day (highly impractical) or you could insert the code <?php echo date(‘l’); ?> into your page. Note that I open the PHP event, place the date() function with the argument ‘l’, indicate the end of a line (;) and then close the PHP event.  Each of these elements are required to properly format the date.

If you would like to show the current year, simply use: <?php echo date(‘Y’); ?> because Y is the symbol for the year. On the other hand, if you’d like to use something more complex, try <?php echo date(‘l jS \of F Y h:i:s A’); ?> which will return something like Monday 8th of August 2005 03:12:46 PM.

Once you’ve saved your footer.php file, simply re-upload it to your server and voila! Now you can set the date using your server and PHP instead of editing files every day! In more practical terms, it is how you can always have an updated copyright notice of your website without having to remember to update it each January.

Get Image from Post, a Free WordPress Plugin

As with many of my free WordPress plugins here on the website this one is used extensively throughout my website to help me deliver a great site for my visitors. The plug basically allows users to grab an image from their posts and display it in the Loop.

It’s perfect for home pages, archives etc. where you link to include a visual idea of what the posts about.

This is a simple plugin which allows users to return an image from the related post.

Please feel free to download this plugin.

Installation

To install the plugin, please upload the folder to your plugins folder and active the plugin.

== Frequently Asked Questions ==

= How do I display the results? =

Insert the following code into your WordPress theme files: 

= General results =

ithout passing any parameters, the plugin will return ten results or fewer depending on how many posts you have.

 get_image_from_post();

= Altering the before and after values =

By default the plugin wraps your code in list item (&lt;li&gt;) tags but you can specify how to format the results using the following code:

 get_image_from_post(‘before=&lt;p&gt;&amp;after=&lt;/p&gt;’);

= Adding a Link = 

If you’d like to link to the post (remember it’s not live yet) you can do so by calling:

 get_image_from_post(‘link=true’);

= Echo vs. Return =

Finally, if you’d like to copy the results into a variable you can return the results as follows:

 get_image_from_post(’show=false’);

Is it possible to schedule videos on YouTube?

Well, the simple answer is no but … as well most things on the web, there’s a great work around (thanks to Donace over at the Nexus for pointing it out to me via Twitter).

YouTubeStep One, upload your video but mark it private to ensure that it’s not live. This is always a good idea as it allows you to edit it online, change the title or keywords etc. before it’s live.

Step Two, mark it public on the proper day.

This isn’t nearly elegant as the built in timer in WordPress (How to schedule a post on WordPress) but it does have the advantage of allowing you to upload massive volumes of videos at the same time (I set mine to upload videos overnight) and I can release them on a schedule.

Scheduling a Reminder

Believe it or not, running a website or releasing videos is really hard work. Why? Mostly because it’s off in cyberspace and I forget to update the content! To get around this, one of the first tricks I used was to ask my wife to remind me but that got old very quickly so instead I started using iCal from Apple to remind me. If you’re on a PC you can use Outlook or if you’re looking for a free alternative, use the calendar built into Google’s Gmail!

The benefit of using something like Gmail is that the event may be shared with a group so if you’re not available somebody else on the team can do it for you.

WordPress PHPINFO() Plugin

It’s important for a non technical administrator to be able to diagnose server related problems in WordPress but also rapidly retrieve feedback regarding their web server. This simple plugin adds an option to an adminstrator’s Tools menu which displays standard phpinfo() feedback details to the user. 

This a very simple script, designed to help the non technical user get immediate feedback about their blog.

It’s very easy to run a phpinfo() session without running a plugin and I can already hear a lot of people pointed out that this is a little like swatting a fly with a bulldozer but recently I’ve been working with a lot of charities and not-for-profits who lack in-house technical support and the simple process of running a phpinfo() query was daunting.

For those of you who want to run this as a page rather than a plugin, you can upload a php script to your website with the following code:

<?php phpinfo(); ?> 

Once you upload the code, simply access the page via the URL. On the other hand, if what I just typed made no sense what-so-ever … 

download file WordPress PHPINFO() Plugin image

How You Can Help

I love developing plugins for WordPress and do my best to always keep them free but of course it take a lot of time and effort to build these plugins so if you’d like to say thanks, the best way is to take a few moments and write about the plugin on your own website, include a link to my website from your posts or download and rate the plugin on the official plugin directory.

Support forums are now online! If you have any questions, please visit http://forums.thisismyurl.com.

Free SEO WordPress Theme for Small Business Web Sites

As part of my goal to create and upload five WordPress themes that are Search Engine Optimized, I’ve finished my second theme, it’s a simple website design for small businesses.

The purpose of this theme was to create a simple, clean, professional website design for companies who need an online presence without the clutter of a normal blog. It’s not a very exciting theme, actually it’s a little on the plain side but it does feature a simple single column design with widget ready footer and nice big text which will help people read the site.

made for small business 300x300 Free SEO WordPress Theme for Small Business Web Sites imageI’ve also taken the time to include a lot of SEO features for beginner website owners, these search engine tools are built right into the template and will auto generate headers, META and titles suitable for Google to index effectively. It’s an ideal blog design for a church or community group, or a small business on a budget.

You’re welcome to download the template for free. If you like this theme but would like to have it customized or installed for you, why not contact me? I’m available for WordPress consulting, theme customization and freelance development.

  • Download
  • Preview
  • Adding a Favorites Icon to Your Website is Fast and Easy, So Why Don’t You Have One?

    Adding a Favorites Icon to Your Web site is Fast and Easy, So Why Don’t You Have One?

    OK, first thing’s first … for those of you who don’t know what a FavIcon is, it’s the little picture that appears beside your URL in the address bar of your website. It also appears when people bookmark your website or download a page offline. It’s a great branding opportunity that only takes a couple of minutes to put together so why are you not using it?

    Step One is to select a photo or image you want to use for an icon. It can literally be anything but remember that it’s going to be really small so you don’t want anything too complicated. I use a photo of myself, but you can use a logo or an illustration depending how you want your site branded.

    Step Two is to use whatever photo editing software you have to make it square. If you don’t already have anything, download GIMP (it’s free) or it you’re really lazy, upload the photo to your FaceBook profile as a profile photo, crop it square using their tool and download it again to your desktop before moving onto the next step (yes, I really am that lazy).

    Step Three, head on over to FavIcon Generator and upload your image. Once you’re done click Generate and download the resulting ZIP file.

    Finally, all you have to do is upload the .ico file to the root folder of your website using an FTP program. Some servers have a hard time with this so I like to add the following piece of code to the <head> section of my websites but it’s optional:

     

    <link rel=”shortcut icon” href=”http://www.thisismyurl.com/favicon.ico” type=”image/x-icon” /> 

    That’s it!

    Adobe Dreamweaver Tip – Cleaning Up Unused Files

    Here’s a great tip for Dreamweaver users, ever finish a website design and then not know which files are active and which are not? It happens to me all the time, lots of spare graphics, even some HTML or PHP files that are simply not in use anymore. So how do I clean them out?

    Step One – Backup

    It may sound silly but the first thing I do is click on the file folder icon under Files and select Reveal in Finder which opens the folder on my hard drive. I back this folder up completely but copy and pasting it to my desktop.

    Step Two – Recache

    Under the Site menu I select Advanced > Recreate Site Cache to make sure I have the most up-to-date data about my site.

    Step Three – Web Documents

    Now here’s where Dreamweaver gets sexy. In your File list, simple start selecting files that you think are suspect and hit the delete key. If they’re linked anywhere in the site, Dreamweaver will warn you that the file is links … and you don’t want to delete it. I do this with whole groups of files to save time, if it doesn’t let me delete them then I know at least one file is still live.

    Step Four – Graphics

    Once I’ve cleared out the Files list, I move onto images and start doing the same things. If the image is found in a web document, it will warn you before deleting this but an even better way to do it is to use the Copy dependent files option on the original files. This option is seriously cool … set your Remote folder to a new folder on your desktop and then back in the file list, select all your files but not the images folder. Now, upload your website to the remote folder. Dreamweaver will ask you if you want to include dependent files which includes any CSS, JavaScript, rich media or images that are included on the pages. The resulting folder will contain everything you need to upload to a website but none of the junk.