yiippiieeee!
when there’s time there’s no time to get bored but finally do some updates and tweaks to your websites.
so after updating Coppermine yesterday (blog.stieglmayer.com/2007-01-03-updated/), i also got around thinking about this random image-block i wanted to put here to link to my gallery (pix.stieglmayer.com).
and as we are talking updating i had to update to Coppermine 1.4.10 (coppermine.sourceforge.net) in the 1st step. As everything looked to be working after the upgrade (and still it does?), we go on:
2nd step was to invoke the search function on coppermine’s forum and so i came over to CoppermineFetch (www.fistfullofcode.com/projects/copperminefetch/index.php) which is
CoppermineFetch provides you with an easy yet robust way to access information from your Coppermine photo gallery from outside of your gallery. You can use it to put random images on other pages in your site, list whats new on your home page, randomly select from a relevant category and display intermediate sized photos on a relevant page or even use random images as your avatar on different forums. Of course there is much much more.
This program will creates HTML tables to display your images so you do not need to worry about doing a lot of formatting. You can also extend the main object and add your own formatting, or submit css styles and have CoppermineFetch apply them. All HTML returned is XHTML 1.0 Transitional compliant. (If not, let me know!)
In most uses CoppermineFetch allows you to grab from the entire gallery, a specific category or a single album. It also respects privacy settings on any files, but that can be overriden. Pictures in an unapproved state are never counted or displayed.
After installing coppermine-fetch and trying to run the steps mentioned on the cpmfetch-site i found out that the dev-version is way different, so i had to run install.php instead of cftest.php . But once i figured that out it was no problem to get cpmfetch run.
Step 2 is done, but there comes step 2.5: Update BlogDesk and see if they got rid off this little nasty bug when inserting hyperlinks… nope. so on we go with this bug.
step 3: create some block in wordpress. i took some code from this site (www.martinsland.de/wordpress/?p=19), but it only gave me a error message. With the hint that some includes have to be changed inside cpmfetch.php i changed the relative include direction to cpmfetch_dao.php to include the entire directory /home/…/…/…/cpmfetch_dao.php and viola - i got a different error message. a search for it located the source of the error in line 48 of cpmfetch_dao.php, the quickest fix was simply to change the one of the require_once directives to have a absolute path to cpmfetch_config.php and to comment out all those if/.. statements inside this function.
and now you can see those 2 blocks on the right side…
next thing is to play around with some plugins and create a new theme, so watch out, this blog is going to change… no content? ha! new functions!


January 7th, 2007 at 7:27 pm
[...] As i’m running Coppermine and Wordpress on different Subdomains i had to modify CPMFetch a little bit to work, details can be found here: blog.stieglmayer.com/2007-01-04-more-things-updated/ [...]
November 22nd, 2007 at 8:47 pm
i’m running Coppermine and HTML Website on different Subdomains. Do you have any idea to do it? I need you help. the random image i want to put in my website to link to my gallery.