1

Sandbox getting full

My sandbox (revert) is coming along well and should be getting close to being activated (so long as I dont tweak too much more).

Ive spent today tidying up some bits I wasnt happy with and simplifying my files, thanks mainly to Phu Ly's post. Also, thanks to a timely post from Michael Ive found some decent plugins to play with, namely: flickrss to display my most recent Flickr images, Auto Moderate Comments which seems to be a slightly more customisable version of OCM (even though Id only just installed OCM) and Mark J's Subscribe to Comments 2.0.

All this new plugin fun did create atleast one problem - the display of recent Flickr pics. Ive had to do a sort of pseudo 2 column thing with the Latest Post and Im not entirely happy with that yet so we'll see.

sandbox update

Assuming adding this post doesnt bugger it up, ive got my sandbox site (click me revert back from sandbox :-) - Its not really a separate site, more of a theme. Well OK, its not at all a separate site and most definitely a theme. I did it this way as then its _live_) up to a decent stage now. My last stumbling block with the filtering of posts I managed to fix by separating the content of index.php into home.php and archive.php which removed the need for all the is_home() and is_archives() conditionals so thereby simplified the files greatly, but meant duplication so means I have to edit more files - shame.

This leads me nicely to a question. What exactly does index.php do if you are using archive.php, home.php, index.php etc?

This useful page says

The elements you are already using can just be removed from the index.php file and moved into the appropriate file such as adding your sidebar contents to sidebar.php and your footer contents to footer.php, etc.

so Im _assuming_ that means that index.php can be empty. Well, this is mine and it seems fine atm.

So, my final quandary. Do I make this the active theme now, or see what else I can do? I think I shall leave as is for now. The danger being that 'as is' will probably continue for a while.

I should point out that the idea for the latest post more prominent than the older posts owes more than a little inspiration to Phu Ly's If..Else site.

A ha, Ive got it, with index blank, these pages go bonkers, well sort of, its the home.php file. WP uses index.php by default for this page so if index.php is blank it uses home.php. So Ill stick archive.php in there and hit refresh... :-D
Hmm, that didnt work .. entering debug mode.

exiting debug mode...
adding this to the top of home.php if (is_paged()) { load_template(get_paged_template()); } else ...rest of home.php and then using the contents of archive.php in paged.php seems to work. Seems if you have home.php and paged.php, WP favours home.php *over* paged.php even if youre on a paged page for some reason.

moi a sandbox? surely not?

In honour of Brendans sandbox for pre-developing his site, I now have my own also. Its accessible via the style switcher at the bottom of the page. This means you can see what Im currently working on for my site. Its more than likely going to be quite unstable with odd text all over the place for debugging purposes.

Im not sure how this will go as its quite a departure from my usual dev system of working on the localhost on my PowerBook and then uploading that live to my site.

sflwa3b - stable, current site. sflwa sandbox - development site, quite possibly unstable.

*UPDATE:* This has been useful.

 1