divider

"Photography is not just about exposing a film, it's about exposing the viewer. "

A non-comprehensive collection of Images and Projects

Using Duotone Theme For WordPress

The Duotone theme for WordPress has been recently released. As a former user of Monotone i really appreciated the news; Duotone is both an evolution and a new version of Monotone: it is widget-enabled and it gives the possibility to show all the links to the additional pages, which is something i would expect from a wordpress theme.

I think that it is optimized to be used on wordpress.com blogs and it is also possible to have it on self-hosted blogs. However, not everything is working out-of-the box: you may receive some warnings and encounter some problems, expecially on archives.

Noel, the developer of Duotonone, released version 1.0.1 to solve some of them.

Waiting for a major release to fix them all, here’s what i did to make it work on my wordpress 2.9:

1) Error on all pages “Missing argument 1 for is_vertical()”

I found line 18 in the function.php files and change it from

$width = (is_vertical() ? MIN_WIDTH : MAX_WIDTH;

to

$width = (is_vertical($post->image_url)) ? MIN_WIDTH : MAX_WIDTH;

2) Error on some posts “getimagesize() [function.getimagesize]: Filename cannot be empty
I’ve worked on contents to make sure that every post had an image associated

3) Error on archives “Missing argument 1 for get_year_link()

I took the file header.php and changed the line
<?php echo get_year_link(); ?>

to

<?php echo get_year_link(''); ?>

4) 404 not found error on archives page
I worked on content to have at least one item posted in the last year :)

Here’s the thread on the wordpress forum: http://wordpress.org/support/topic/346122

Hope it helps!

Happy new year

PS: Duotone is not currently in use on this blog. Here’s how it looked like:

10 Comments

  1. Duc

    3 Jan ’10

    Hi. I’m using duotone 1.0.1 as my theme for my wordpress photoblog. I did try to fix those lines as mentioned in the above note. However, all of my images didn’t show up. Could you please show me how to fix this problem?

    Thanks.
    Duc.

    Reply
  2. Duc

    3 Jan ’10

    Here is my photoblog: http://ttcceo.site50.net/photo/

    Reply
  3. stilemosso

    4 Jan ’10

    Hello! This is very strange because at the very beginning when i installed Duotone i saw the same behaviour: no images and many warnings. But i didnt solve the first problem directly; i started playing with the php files as mentioned above and the images were simply there again… I saw also the other comments on the official thread.. could it be a matter of permissions?

    Reply
  4. Duc

    4 Jan ’10

    Hi. I’ve checked the permission and it isn’t the reason. I have tried to delete the theme and install it several times. However, none of them work. Do you know how to fix this problem? I’m thinking about the problem with the host I’m currently using. It’s a free host from 000webhost.

    Reply
  5. stilemosso

    5 Jan ’10

    Really, i don’t know. I was thinking about permissions because i had some troubles on with my hosting provider (aruba); it expects different permissions on files and folder than the ones that wordpress is using by default and sometimes when i’m installing l plugins and updates i have to reset them.
    At this point maybe the dev guys can help (noel? :)

    Reply
  6. raincoaster

    24 Jan ’10

    Thanks for providing this. I’ve been wrestling with the theme for two days and was close to giving up. I’ll impliment Monotone for now and switch over in a day, once I’ve had a good night’s rest.

    Reply
  7. stilemosso

    26 Jan ’10

    Hope you can make it. Let us know!

    Reply
  8. RichImages

    6 Feb ’10

    Wow!

    I thought I was the one with the problems … I installed a second installation of WordPress on the same account ( my main blog is RichImages.net and the photoBlog I just installed with this theme is RichImages.net/showcase/ )

    I also am looking into the code a bit … this is going to rock when everything is sorted out!

    Reply
  9. elva

    20 May ’10

    I’d really like to use this, i’m just starting my first blog. But i’m stuck with one thing. Say i have a main image on a page…

    Below this i was planning to put links to other pages.

    Beside the links i wanted thumbnail images. But these won’t show up?

    I don’t understand much web terminology. I’m happy to try and read a lot of anything to figure it out but i just don’t know where to start.

    So if there’s anything i can do to get these little images up as well as the main one i’d love to know.

    thanks so much :)

    elva

    Reply
  10. stilemosso

    29 May ’10

    @elva

    to have the small photos below the main one, i usually put in the post the shortcode to a gallery made with the plugin next-gen gallery

    It shows like this:
    http://www.stilemosso.it/2010/03/jazz-wide/

    Reply

Leave a Comment