AlanWho

Jul 11, 2006

Full Width and Height Images Uploads

Wordpress

By default, the image upload tool build into WordPress creates thumbnail images. So when the user clicks "send to editor" the image rendered will be a thumbnail of the original image uploaded. WordPress renders this by placing ".thumbnail" The file "/wp-admin/inline-uploading.php" is used to render image thumbnails. Lines 81-85 dictate a maximum width of 128 pixels or a maximum height of 96 pixels. Perhaps in future versions of WordPress the width and height pixel values will be an option in the WordPress administration. after the image name and between the image extension:

Read the rest of this page »
Jul 08, 2006

Different Single Post Pages In WordPress

Wordpress

By default all WordPress posts viewed as a single post are controlled by the particular theme's "single.php" file.

WordPress, by default is setup to use one template file ("single.php") for every post.(But what if you wanted to display a different layout or different code dependent on the specific categories a post or filed into?

To do this with WordPress; one needs to use a bit of PHP in the "single.php" file and create category specific files.

Read the rest of this page »
Jul 02, 2006

Creating A Splash Page For WordPress

Futcha Splash

On a recent job, the client consistently demanded a splash page for their website. Despite my consistent groans and insistence that the implementation of a splash page on their website would instantly turn it, them and me to the dark side, I gave in.

I reluctantly implemented a quick solution using WordPress. I used php to check if the user was referred to the index page from within the site or from out with the site.

Read the rest of this page »
May 25, 2006

How Does Orson Welles Move Us Back And Forward In Time In ‘Citizen Kane’?

Citizen Kane

Citizen Kane begins with confirmation of death of the main character, Charles Foster Kane. A news report follows, that condenses the 70 years of Charles Foster Kane's life into a few minutes. The news report is not in chronological order, yet the order in which it is presented is microcosmic of the order of events in the proceeding scenes of Citizen Kane. Read the rest of this page »

Apr 15, 2006

Category Images Hack

This hack makes WordPress display a category image next to posts.

Every category needs to have an *.png image named in accordance to the "nice name" of the category (if the category is called "Web Development", the nice name would be "web-development" so the category image should be "web-development.png" and placed in the /wp-images folder in the root of a WordPress blog).

A "my-hacks.php" file must exist on the server of a WordPress installation. If one does not exist create one. Also, ensure that the "Use legacy my-hacks.php file support" checkbox is checked in Options > Miscellaneous in the admin area of wordpress.

Read the rest of this page »
Mar 19, 2006

Include Preset Text In WordPress Posts

Pre-Written Text On The WordPress ‘Write’ Page

I wanted to have some text at the bottom of every page and thus have it prewritten in the ‘Write‘ section of my admin section of my WordPress blod. I did not want to have to go through the rigmoral of entering the same text everytime that I wanted to write a new post. I asked myself:

How could I do this?

Step 1: Editing the ‘wp-admin/edit-form-advanced.php‘ file.

The file that needs to be edited is ‘edit-form-advanced.php‘ in the ‘wp-admin‘ folder. The line in question is 100. I looked for the following portion of code on line 100 of the ‘edit-form-advanced.php‘ file:

For the sake of this example, the text, I want to have pre-written in the ‘Post’ field in the ‘Write’ page is “I AM AMAZING!“. In order to achieve my objective I simply alter the above code to the following:

Step 2: Save and upload.

I then saved my changes and uploaded the changed ‘edit-form-advanced.php‘ file to my webserver in the ‘wp-admin‘ folder, and perfection is mine!