Wordpress K2 and Stopdesign

I have modified the Stopdesign theme to work with my wordpress blog and K2 theme and thought I would release it here for anyone who may find it useful.

I am new to CSS and basically picking things up as I go so I can't give any guarantees about how well this will work on different browsers as I have mostly tested using Firefox.

I think the theme should work with most wordpress themes without too much work.

You can download the file here

http://www.virtualcoder.co.uk/uploads/stopk2.zip

and see the theme in action here

http://www.virtualcoder.co.uk/photos/

Comments

  • It looks great but how do you install or integrate it with Wordpress? If I unzip it to WP content/themes, WP reports it as a broken theme - "stylesheet missing". I use WP. 2.0.3
  • Correct me if I am wrong SteveMoody but I beleive this is a zenphoto theme which integrates into the wordpress theme.

    You will want to use one of the methods to integrate zenphoto into wordpress then use his theme as the theme for zenphoto.
  • Yep, this is a zenphoto theme which will intergrate with a wordpress theme
  • This worked for me no problem, just uploaded it to my zenphoto themes and away it went!

    However, I already had a menu tab on my blog that linked to my gallery url via the page_links_to plugin -- and I had to have my 3 ZenPhoto tables in my Wordpress database, as seperate databases didn't work (just as with dryan's earlier integration).

    x
  • There is no need to merge the databases - when I get home today I will post the two lines you need to add to you zen template - you do not need to touch the WP templates or DB at all !

    Basically the line of code switches to the zen DB after the WP header loads, and then switches back to the WP db before the WL footer loads.

    It will be clearer when I post the code. A lot easier than mergig DB's and possibly jamming up your future WP/ZP updates.
  • Thanks for sharing the theme! I only just found and installed it, and it does work, but I'm getting this error message between the WP header and ZP gallery index:

    Warning: include() [function.include]: Unable to access ../photos/zen/Sajax.php in /srv/www/mysite/web/zenphoto/themes/stopk2/header.php on line 13

    Warning: include(../photos/zen/Sajax.php) [function.include]: failed to open stream: No such file or directory in /srv/www/mysite/web/zenphoto/themes/stopk2/header.php on line 13

    Warning: include() [function.include]: Failed opening '../photos/zen/Sajax.php' for inclusion (include_path='.:/srv/www/mysite/web/') in /srv/www/httpd/phost/h/com/pytalhost/hellagood/web/zenphoto/themes/stopk2/header.php on line 13

    I'm guessing that it might be one of my server's restrictions... or is it something that I could fix somehow?

    http://hellagood.pytalhost.com/zenphoto/
  • I have zenphoto installed in a directory called photos. to fix the error, just change the header.php file and replace any /photos references to the directoty you have zenphoto installed.
  • To say it with the words of Homer Simpson: D'OH!

    And thanks :)
  • I just tried installing it--modded per above, since my WP is in /Words and my zP is in /Images. When I activate the theme, however, I get the WP header OK, but it seems to be looking in the WP database for albums, instead of the zP database... I get an SQL error:

    MySQL Query ( SELECT *, (date + 0) AS date FROM albums WHERE `folder`='0407bethanybeach' LIMIT 1; ) Failed. Error: Table 'desilvainfo_db2442.albums' doesn't exist

    desilvainfo_db2442 is the Wordpress database, not the zenPress database... Any ideas where I'm going wrong?
  • Whups. Found the answer in a different thread, guess both the zP and WP databases have to the a single database. I'll try again...
  • hi SteveMoody,

    Great theme! I am currently using it on my wordpress site and everything works out great. However, since the index page only list the first 6 albums, I was wondering how one can display the "prev" and "next" links on that will lead to the subsequent albums.

    I have tried this:

    [code]<?php printPageListWithNav("« prev", "next »"); ?>[/code]

    at the end of the gallery div. However, not only does it not format correctly, the "prev" and "next" links would link directly into the next undisplayed albums (like the prev and next links you have on your gallery index page).

    any tips would be greatly appreciated.
  • To change this you need to edit the index.php file and replace this section of the code

    `

    Recently Updated Galleries

    `

    With this:

    `

    Albums





    <?php printPageListWithNav("« prev", "next »"); ?>



    `

    This should give you the prev/next on your albums then.

    Steve
  • Hey SteveMoody,

    Thanks for your help!
    Now I can navigate to and from any album pages :D

    However, one quick problem. I don't think the navbottom class is defined within the included zen.css file. Since I am a css newbie, I was wondering if you can post the css code for your navbottom class.

    Thanks again! :D
  • to further explain my aaforementioned problem.
    Right now the navigation bar appears to the right of the gallery, sitting at where my right sidebar should be.

    Instead, I would like to have the navigation bar appear directly below the photo albums, much like how your photo gallery does it.

    any help on fixing that would be greatly appreciated :D !
    thanks :D
  • @SteveMoody:
    I was wondering how you did the random photos in the sidebar, if you are willing to share.
  • @soccerbud
    I'll update the theme here and post a new version with the css added as well.

    @onetr1p
    The random images are done using ZenShow which you can get here: http://www.ruicruz.com/index.php/zenshow/
  • I've update the zip file with the new index and css for the page navigation now.
    http://www.virtualcoder.co.uk/uploads/stopk2v2.zip

    Steve
  • thanks steveymoody!
  • I'm not having much luck embedding my zenphoto gallery into a wordpress theme, and I wonder if anyone can help. I'm using WP 2.1 and K2. What I am trying to accomplish is what SteveMoody has here: http://www.virtualcoder.co.uk/photos/

    here's another example that I found: http://www.davegreenwood.com/zenphoto/

    I attempted using a plugin called zenpressed, but had no luck. I was able to install and configure the plugin, but couldn't actually get anything within my wordpress pages.I also tried zenpress, but I dcould only use it to insert images into posts or pages with links back to zenphoto.

    Is there another way? Any idea what plugin or method was used on SteveMoody's site? Any assistance would be greatly appreciated. Thanks in advance.
  • What are you trying to achieve?

    I'm just using ZenShow to add random photos into the sidebar and then ZenPress to allow me to post thumbnail images into wordpress posts.

    Steve
  • dove posso trovare il thema stopk2v2.zip
    grazie
  • the link is dead, can u update a new one?
    thanks
  • I am not sure but perhaps the `<?php include "zenphoto/index.php" ; ?>` might be something to look into? Although this would be hard to integrate with Wordpress unless you have other plugins to allow php code to be executed in a post.
    I could never get those to work though.

    I am though doing it the other way round. I am trying to integrate WordPress with my gallery. I will post a link if and when successful.
Sign In or Register to comment.