When I started to use WordPress for personal blogging – essentially for fun – I found a really nice and plain theme for photo: The Reflection theme. Ouahhh…same as falling in love at the first sight ![]()
This theme, is not only elegant, but easy to use. Associated with the TPB plugin, it allows any users to add and manage personnal photos at breaze.
I pulled up my socks and made changes within the code to adapt theme to my wishes. Here are all the changes I’ve made through.
Code fixing
- Open short tag replaced
- All open short tag have been replaced with full tag (standard form)
<? xxx ?> –> <?php xxx; ?>
<?=xxxx?> –> <?php echo xxx; ?> - Reorder SQL statements
Mostly for readability purposes, and maintenance. - Rewrite <a href> dynamic clauses
To have a proper formatting under (php) text editor, the delimiter “, initially within ‘if blocks’, has moved outside. - blog.js, browser.js: bug fixing on panels srolling, code improvements.
- Code reorganization (new directory structure)
All Ajax stubs are put together.
CSS is splitted, and match the page hierarchy.
global code reorganization. - Archives.php
Add the get_header() standard call.
Image overflow bug corrected (conflict with browse-load.gif). - Header.php
Javascript object initialization (occured for blog.js and browser.js). - page.php “templated” for all usage.
- Support of WordPress 2.9.2, Mootools-Core 1.2.4 and Mootools-More 1.2.4.4
- Tested on WampServer 2.0i
- Code correction to pass the HTML Validator!
Features changed
- Change Overlay panels usage (on both Home and Single pages)
The change occurs inside index.php, I like to activate the scrollable panels upon both home and single pages.
New Features
- Keyboard support
You can navigate with keys, open or close panels and advance or return to shots. See ‘About’ page for all keys. - Dynamic comments content
Comments are loaded thru AJAX, and displayed as a scollable panel. Like notes and exif panels. - Optional Register and Login pages (Activation through the theme admin page)
You can add to the upper menu, a link for Register and a direct link for login. Usefull if you want to open your blog for registration, and if you often change you blog configuration. - Add tags and Taxinomy Categories. With the admin theme panel, you can select the following combination:
→ Year
→ Year + Tag
→ Year + Categories
→ Year + Tag + Categories - Keep track of selected page, append a bold underline segment under page title (CSS+index.php).
- Footer
The footer now details all sub-components and their release. It includes both post and comments feeds, and include the new copyright URL field.
So, you can download the modified theme here: Reflection Theme Extended (285), and see it in action there.
Popularity: 5% [?]
Related posts:
Well done!!
Unfortunately I had a blank page.Nothing is shown.
I did the upload as I should but the main page is empty.
Any tip?
Good job in an already awesome theme!
Keep it up!
@Konstantinos:
Firstly, nice photos!
I saw, you have a flash slideshow? Is it a Flickr component?
Secondly, for the extended reflection theme, rename the installation directory to reflection-1.1.1X (so you can have both release on your system).
Check if the following setting is correct. Open the Miscellaneous in Settings, and check that “Store uploads in this folder” == “wp-content/uploads“.
I spent night and days before checking this setting. Any value different crashes the YAPB plugin.
Hope it helps!
Unfortunately the problem was not what you mentioned.
I had already renamed the installation directory to reflection-1.1.1X.
The “Store uploads in this folder” path is not just “wp-content/uploads” but there is the whole path in my host server that ends at uploads folder
The strange thing is that when I activate the Reflection 1.0 by Dave Moxey everything works fine…
For flickr slideshow,in order to add it,you should go to this page http://www.flickr.com/photos/*USERNAME*/show/ and then click on SHARE where you can grab the embed html.
I’m still trying to sort this problem out…
Have a nice day!!

Ah!!!
Please give it a try, by cutting the directory prefix, and only keep wp-content/uploads.
I remember, when I first installed the original 1.1 release (switch from 1.0 to 1.1), everything were broken, untill I found an old post on the YAPB plugin, that encourage to set this value.
Therefore, if you continue to have a “blank screen”, can you send me (by PM), a copy of the generated home page. I would like to check the errors within code.
Flickr: Thanks for the tips! I never tried that. I’m only using my flickr account as a kind of backup repository.
I tried installing your theme and for some reason now the reflection is not shown on the pictures and also when i click on exif or notes nothing happens. When i click on comments nothing happens. I also tried installing the Mootools as a plugin, but it still doesnt work. Is there a setting with the mootools that has to be setup?
Yep, I have the same problem as andrew here. See http://exposedplanet.com/blog/?p=368 for an example page.
The exif data & Notes are in the page source, but do not get displayed.
I am running WP 3.0, not sure if that makes a difference? Maybe some javascripts get mixed up?
Ah, by comparing the sources Ifound the problem: LightBox-2 plugin is the culprit and needs to be deactivated for this theme and mootools to work.
Now I only have the problem that the comments and notes are not scrollable and when they are larger than the image, they disappear from the top down and cannot be read. But it seems that this is a thme bug as it also hapens on http://photo.jeanmichelparis.com/a-tripod/#comments for example..
also I noticed that links in the Notes & comments cannot be clicked as it will activate the previous/next photo link instead.
How can I take the comments and notes out the panels and back below the image?
I faced to these issues in the first stage of this theme modding.
The reason is – on my server running PHP 5.3 under Win7 – some functions were deprecated! Deprecated functions are present both within WordPress 2.9.2, and the YAPB plugin.
Each message warning were mis-intrepreted by AJAX request, that’s why the dynamic panels didn’t load anything.
The solution is to edit the php.ini file and set the following variable:
error_reporting = E_ALL & ~E_DEPRECATEDI figured it out, i had to deactivate some mootools plugins that i had activated to get it to work. But yeah i still have the notes and exif not working on some pictures. Ill try what you said and see if that fixes it.
I edited the php.ini file as you said, but Im still having issues with the exif not working if hit the next and previous buttons.
One more thing to say, don’t set “short open tag for PHP clauses” on your PHP configuration. I disabled this “feature” on my WampServer. Else the first very statement XML in header.php will fail.
Hi jean, great theme! I recently have started testing a photo-blog (planning to unveil it in a month or so) and had been on the hunt for an eye-catching theme for it when I found yours. Absolutely stunning. However, when I activate your theme, I’m getting a server error. Can you please help me fix this issue?
Thanks, but I just customized and extended an already existing theme.
Maybe the reason the theme doesn’t work on your server, is due to the
< ?statement at the beginning of header.php.I set, in my WAMPSERVER configuration, "no php short tag". So the
< ?xml .....is rightly interpreted.