Mez - Grading Help Post

May 22nd, 2008

This post has been created as a kind of bookmark page of all my posts (so far) to help with the grading of my blog.
In general, it should save Mez time when she is trying to see what areas i’ve covered over the course of this module.

Im not sure which post this is, could be 100 could be less. It has the ID=100 whatever that means :). My recent posts are long and detailed, normally including a “How 2″ guide which shows step-by-step how to get a plugin working etc. All posts have been tagged and catagorised in wordpress.

Two of my favorites have been highlighted in Bold and Italic. Please also look at my Pages, top of the sidebar, because they contain examples of the work which i have done and my interactive essays.

NOTE: Exec PHP is NOT Active so any php code will not be rendered properly. The reasons for this are doccumented in the latest PHP posts.

Below i have catagorised (Taxonomy) my posts into sections, please take a look:

Themes

Theme Update

From Sidebar Problems to Theme Change

New Theme

 

Image Styling

Favicon

Image Editing

 

Plugin

Translation

Anarchy Media Player (link under my Example)

Flash Gallery

Exec PHP Decision

Exec PHP Problems

Exec PHP Continued

Exec PHP

Pipe Wars

Yahoo! MEGA PIPE

Google Maps Broken

Google Maps and Del.ico.us Solution

Yahoo Pipes Update

Google Maps and Yahoo Pipes

Flickr Badge Editing

Syntax Highlighter

Maintenance mode

Tag Cloud

Akismet Activated

Flickr and RSS Problems

Plugin

 

PHP (also see Exec PHP in plugins)

External PHP

Post Alignment

Before Editing

 

CSS

Sidebar Styling with CSS

More CSS Styling

CSS Styling

Before Editing

Exec PHP Decision

May 21st, 2008

In response to the previous post i have DEAVTIVATED Exec PHP. It was causing way too many problems when it was active. This has already been blogged about in detail in previous posts so i wont say much more than avoid Exec PHP unless you can program in PHP. :)

More Exec PHP Problems

May 18th, 2008

I was looking through my old posts for a comment which Simon made about the Bookmark Plugin (if your reading this Simon then remind me which of your posts has that information). I noticed that some of my posts were just titles with no content, so i clicked on them to see more and there was still no content. Suspicious of Exec PHP I deactivated the plugin and Force refreshed (Ctrl + F5) the post and what happened? all of the content magically appeared. So i then Activated the plugin and force refreshed the page and Shazam! the content was gone! … Yet another Bug from the world of Exec PHP.

Images of this can be seen below:

ACTIVE

DEACTIVE

Now i have to make an important choice, do i:
A - Leave Exec PHP active for the 23rd where Mez will see my semi-functioning Exec PHP widget BUT half my posts will be invisible.
OR
B - Deactivate the plugin fro the 23rd and Mez will see all my posts BUT wont be able to see any functioning PHP within them.

Any Comments on this would be greatly apreciated. Its Catch 22! I lose either way!

“I hate cool plugins that are badly documented” (Sören, 2005)

May 18th, 2008
First off id like to explain the title. “I hate cool plugins that are badly documented” is at the very top of the doccumentation of the Exec PHP plugin, i think that Sören (Author of the Doccumentation) was being ironic when he put this, because the doccumentation has a long way to go before it becomes good or even bad… its by far the worst doccumentation ive ever read. I think it should be called Maze of Red Herrings, Poor Examples and Regret, while the idea of Exec PHP is good and powerful, the application in practice isnt very good and is full of loop holes whereby you end up changing settings or installing plugins which affect your whole blog. Sören’s own website kinda gives you an insight into what your going to be in for if your thinking of installing this plugin. Yeah thats right, Errors, Errors and more Errors.

EXEC PHP - Continued from here

I have spent the last 5 hours (maybe more!) looking at PHP and this plugin to try and get the Tic Tac Toe applicaiton to work as a post within my blog. I did the usual download, unzip, upload and activate, but as discussed in my previous post i kept getting an error message which mentioned that all the php code would be rendered useless.

SO, i followed ALL four suggestions from the doccumentation, in hope that they would work.
These suggestions were:

  • Disable tag balancing ‘WordPress should correct invalidly nested XHTML automatically’ through the ‘Settings > Write’ menu in WordPress
  • Disable the WYSIWYG editor in the user’s settings through the ‘Users > Your Profile’ menu
  • Assign the ‘unfiltered_html’ capability to the user
  • Assign the ‘exec_php’ capability to the user

I will now explain each one in “simple” terms and what they really do (or atleast in my case).

Disable tag balancing ‘WordPress should correct invalidly nested XHTML automatically’ through the ‘Settings > Write’ menu in WordPress
The terminology of this is wrong, according to my blog, you need to go to Options > Writing and then uncheck the box which should look like the image below.
PHP1

Disable the WYSIWYG editor in the user’s settings through the ‘Users > Your Profile’ menu
This is correct, you have to go to Users > Your Profile and uncheck the box which is shown below.

PHP3

Once you uncheck this box, update the page and wave goodbye to the wonderfull WYSIWYG editor that you know and love, you will want it back! But for now atleast you have to turn it off!

Assign the ‘unfiltered_html’ capability to the user & Assign the ‘exec_php’ capability to the user

For this you have to install a seperate plugin called Role-Manager which gives you more control over your administration. If that website confuses you then the direct link is here, just do the usual download, unzip, upload and activate and this one works fine. This plugin should atomatically assign the ‘unfiltered_html and exec_php capabilities to the admin role, so as long as your logged in as admin then your good to go!

Once this is all done you should be able to post PHP into your blog. I tried two different examples, Tic Tac Toe was the first one. This was just me copying the code from the original “index.php” file, from the lesson into one of my posts. It didnt work. I eventually realised it was because the php of this file was written so that it was its own doccument, and was not meant to be called anywhere. So i edited the code and the eventually got something working! The script part of the code stops the rest of the page from functioning however without it the game does not properly render. So its either one or another! Below are 2 images of the Tic Tac Toe game.

Tic Tac Toe 1

= The above image shows the fully functioning Tic Tac Toe game, but half of the blog does not load. =

Tic Tac Toe 2

= The above image shows what happens when the code is rendered useless. =

I have had a look at PHP examples by searching Google and looking at W3Schools. Have a look for yourself because you never know what youll learn!

Please check out my Tic Tac Toe Page to see the game in action (if the plugin lets you) otherwise you can see it in the old post here. To see a working example of Exec PHP with simpler code, check out my Seasons Page.

Just when i thought it was going to be easy…

May 16th, 2008

I was just installing the Translation tool which Mez blogged about and i got a Fatal error:

Plugin could not be activated because it triggered a fatal error.

So i cant activate the plugin. I have no idea why… i have downloaded the file twice, wiped it off the FTP server and then put new copies back on … still nothing! I have been having some disconnections while blogging tonight so i shall try this again tomorrow, hopefully it will be like the Del.ico.us Widget and just work all of a sudden.

I followed the instructions on Mez’s blog for this plugin, they are VERY simple so i can’t see where im going wrong.
Im going now so ill try again tomorrow.

EDIT

Right its another day now but the plugin is still not working! ive even tried a theme change, loading the Wordpress classic theme and trying it on that, but no luck.  Im going to leave it for now and look at Exec PHP, though ive not given up on this Translation tool just yet!

Anarchy Media Player

May 16th, 2008

Want to know more? Visit my Video page!

PIPE WARS!

May 16th, 2008

If you have been watching this space recently, or watching Simon’s Blog, then you will have seen our sudden burst of Yahoo! Pipes. This is because he have been trying to out pipe eachother! I am currently winning :D

Simon has some catching up to do, but i will be keeping my eye out for any more feeds that i can add to my Mega Pipe!
LEE vs Simon

PHP Naughts and Crosses

May 16th, 2008

Here is the PHP Naughts and Crosses program which was covered a few weeks back. The file is external to wordpress and will I will link to it here. In the next few days i will play around with Exec PHP (after making a complete backup) and try to get it working, so i can post the PHP code withing one of my blog posts.

Alex Rabe’s NextGen Flash Gallery

May 16th, 2008

Iv’e just installed Alex Rabe’s NextGen flash gallery. It was quite easy to do once you find all of the support doccumentation. I installed the NextGen Slidshow widget aswell which can be seen in my sidebar, above the NextGen gallery. The gallery below was added by simply writing [ gallery = 1 ] (without the spaces), 1 is the ID of my Flash Gallery. The “how 2?” doccumentation below shows the steps i took to install this plugin and should be suitable for you to follow if you are thinking of installing a NextGen Flash Gallery on your blog.

_________________________________________________________________________

How 2?

Step 1: Download and Install.

  • - Download the NextGen Gallery from here and save it to your desktop.
  • - Then download the Image Rotator Plugin and save it to your desktop.
  • - Open the image rotator plugin and copy the file called “imagerotator.swf
  • - Paste this file into the NextGen Gallery folder.
  • - Upload the Next Gen Gallery folder (using FTP) to your Wordpress Plugin folder E.g. blog/wp-content/plugins/

Step 2: Activate and Upload

  • - Login to your Wordpress account and go to Plugins. Activate both of the NextGen Plugins.

Wordpress Dashboard

  • - You will then see a Gallery tab (as above) added to your dashboard. Click Gallery.
  • - Click the sub-tab Add Gallery, Give your gallery a title and then click the add gallery button.
  • - Click Upload Images and use the browse function to quickly add your pictures, then press the Upload Images button.

Step 3: Sidebar and Slideshow

  • - Go to Presentation > Widgets and drag your NextGen widgets into your dynamic sidebar and click Save Changes.
  • - To change the transitions, timing and other features of your Slideshow, go to Gallery > Options.
  • - There are many options to choose from so my advice is to just browse and see if anything catches your eye. Then save your changes with the Update button.
  • - Additional information can be found from the Official Support doccumentation.

Exec PHP

May 15th, 2008

I recently installed the Exec PHP Widget with i found from searching on google, however Mez has made it easier to get by posting the links on her blog. I wont bother telling you how i installed the widget because now you should know how, and if u dont then Exec PHP isnt a good place to start! SO, i got it all ready, activated it, went to Write > Write Post and a warning came up saying:

Exec-PHP WYSIWYG Conversion Warning. Saving this article will render all contained PHP code permanently unuseful. Even if you are saving this article through the Code editor. You can turn off this warning in your user profile. Ignore this warning in case this article does not contain PHP code. Read the Exec-PHP documentation if you are unsure what to do next.

This appeared at the top of the page and I didnt write a post because i didnt want to “permanently” render anything unuseful. I did not want to just simply “turn the warning off” because the defies the point of it warning me, if im going to do something wrong then i wanna know before i do it. So far i havent done anything more on this widget, ive looked through the doccumentation but there doesnt seem to be anything useful there.

I will keep trying and playing around with it because i want to find out why it doesnt work. But for now this is unsuccessul as id rather not put my blog at risk before grading.