Wednesday, September 2nd, 2009
Thanks to everyone that download the hoPE Theme for your wordpress blog. Here are some tips and help information to setup your hoPE Theme. hoPE theme designed to display your flickr’s photo gallery or Google Picasa web album on blog. But how to get your gallery’s RSS feed? For flickr user, just browse to flickr photo page and find the RSS url below the page, copy the RSS link. see pic.
Example RSS link: http://api.flickr.com/services/feeds/photos_public.gne?id=30445359@N00&lang=en-us&format=rss_200
If you have Google Picasa Web Album, browse to your web album and find the RSS link on the right sidebar. Copy the RSS link. see pic.
Example RSS link: http://picasaweb.google.com/data/feed/base/user/mypatricks/albumid/5362788080899248097?alt=rss&kind=photo&hl=en_US
After copied the RSS link, login to your blog account, browse to your Appearance menu, click the hoPE Theme Settings. Paste your RSS link. see pic.
It’s done, browse to your site and see your gallery. If you have see nothing, please clear your blog cache or browser’s cache.
Quality of photo for flickr: Due to site loading’s speed, the gallery may display in low quality, but you may change the photo to original quality. Please use your wordpress theme editor to edit your functions file. Login to your blog’s admin, browse to Appearance menu, click Editor. Make sure you are selected hoPE theme to edit. Click Theme Functions(functions.php) and find this line in the text area.
$photo_url = str_replace( "_m.jpg", "_m.jpg", $sub[0][1] );
change to:
$photo_url = str_replace( "_m.jpg", "_o.jpg", $sub[0][1] );
Click Save and done. (Note: Change to original photo size may cause your site slow loading.) If you still has problem to setup your photo gallery, please feel free leave your comment. Enjoy your blog.





























I have the same probl.: changes the line in functions
$photo_url = str_replace( “_m.jpg”, “_m.jpg”, $sub[0][1] );
to
$photo_url = str_replace( “_m.jpg”, “_o.jpg”, $sub[0][1] );
But no photos visible…
PLs help.
Does anyone knows the solution to it?
Tnx
Hello Patric,
I have noticed that when there is an object on the top post of the first page or any other page, it somekind push right the widget tabs and they appear under the blog.
You could see that at vacherenmagazin.com by pressing the title of the first post on the top with video in it.
Also go to the 4th page where there is a table which shows with its smaller size that there is somekind of invisible object. The table actually could not fit the full size of the page.
I will be very happy if you help me with this problem.
Regards
Ivaylo
I have preinstalled the theme and everyting is alright now.
Hi! I tried to get my picasa album to work by inserting what you said, but
a) it didn’t seem to change anything and
b) now my entire website is displaying the error
Parse error: syntax error, unexpected ‘=’ in /home/content/53/5745453/html/wp-content/themes/hope/functions.php on line 106.
I am very new to Wordpress and don’t know how to fix it. Can you offer any advice? My site has to go live in a few days and I am clueless! It won’t let me even open the editor to try to find the error.
THANK YOU!
HI Patrick,
I want cange a black color in my blog ,very great temple.
tnks
eddy
I wanted to do a quick recap for new users of the HoPE theme that may be having some trouble if they’re on the latest version of WordPress (2.9.x).
These are the issues I had:
1) Slides not initially visible
2) Slides were low quality
3) Slides did not rotate
4) Wanted to change “Blog” to “Home”
** Slides not Visible **
To get the slideshow feature to work for my Picasa feed, here’s what I modified in the ‘function.php’ file:
At first, nothing displayed. It was all black (Firefox) or had a red X (IE). I used @next level’s code. Edit function.php around line 73 and add:
if(preg_match(“/picasaweb\.google\.com/”, $photo['guid'])){
preg_match_all(‘/img.+src=”(.+)”\s/i’,$photo['summary'],$sub,PREG_SET_ORDER);
} else {
preg_match_all(“/<IMG.+?SRC=[\"']([^\"']+)/si",$photo[ 'description' ],$sub,PREG_SET_ORDER);
}
Don't forget to click "UPDATE" to save changes. Test/Verify.
** Pixelated/Fuzzy Images **
At this point, I could see the feed. But the images were really pixelated. To fix this, I needed to change the original line 73 that now comes just after the new code above.
Original:
$photo_url = str_replace( "_m.jpg", "_m.jpg", $sub[0][1] );
For Flickr users, change to:
$photo_url = str_replace( "_m.jpg", "_o.jpg", $sub[0][1] );
For Picasa users, change to:
$photo_url = str_replace( "s288/", "", $sub[0][1] );
Don't forget to click "UPDATE" to save changes. Test/Verify.
** Slides not Automatically Rotating **
I wanted the slideshow to automatically rotate. The theme keeps this turned off by default.
Go back to functions.php and find the following line (about 20-25 lines below where we left off):
autoplay: [false, 2500, 2],
You guessed it, change that line to:
autoplay: [true, 2500, 2],
Don't forget to click "UPDATE" to save changes. Test/Verify.
** Change "Blog" to "Home" **
Sounds picky, but the site I'm building is for an organization, not a personal blog. So I want the link back to the home page to read "Home".
To make this change, edit 'header.php'.
Search for the following string (9-10 lines from the bottom):
<a title="” href=”">Blog
Change this to:
<a title="” href=”">Home
Don’t forget to click “UPDATE” to save changes. Test/Verify.
** Thanks for the code fix, @next level.
Thanks for creating this great theme, Patrick!
- theMemex
(Cross-post at: http://patrick.bloggles.info/2009/06/14/wordpress-hope-theme-25/)
Great theme, thanks for the work.
I was wondering if you could do anything about the picasaweb feed stopping working when you install google maps for wordpress:
hhtp://xavisys.com/wordpress-plugins/google-maps/
Or maybe suggest one that you know works?
Regards.
I’m wondering if there is a way I can change the link that says “Blog” to “Home”? I’ve been looking thru all the files and can’t figure out where or how I might be able to change this.
Check “header.php” around line 89.
Change
<li class="current_page_itempage_item”><a title="” href=”">Blog
to:
<li class="current_page_itempage_item”><a title="” href=”">Home
I had similar difficultly in using the Flickr RSS feed feature with the HoPe theme, which I love so far. Taking the two following steps corrected it for me:
1. Changed the photo sharing properties so anyone can view
2. When copying the RSS hyperlink into the theme settings, make sure you change the beginning from “feed//” to “http”.
After that I had success.
My flickr gallery was fine for a while and is now just blank/black. Also, in Internet Explorer the pages don’t show up at the top.
Patrick, where are you? I’d love to launch, but there are too many glitches and the same that everyone else is posting about.
Thanks for getting back to us!
Ginger
http://www.gleigh.com/wp
I wonder if the gallery is slideshowing at all? It will not change for me at least, so I wonder if this is possible.
And I wonder if it’s possible just to have pictures from your site there instead of flickr or picasa.
But in the first place I want it to slide between the pictures without having to click next.
Edit the ‘functions.php’ file.
Search for the following line:
autoplay: [false, 2500, 2],
And change it to:
autoplay: [true, 2500, 2],
Thanks for the theme – it’s great. Only trouble is that the pages don’t show up in the header in Internet Explorer for Windows. They show up in Chrome and Firefox and on all the Mac-based browsers, but not in IE.
Dear Patrick,
I too love this theme. I have it installed and looks great except for the Picasa Web Album photo quality. Have you responded to this question yet? Just let me know and I will read it.
Secondly, Why is it that when I attach a photo to a post it only works sometimes. I reduce the photo. I download it to my gallery. And I place it on the post in the editting block. Then when I update post, the photo leaves.
Guidance Master?
Xo S
Hi Patrick!
I have the same problem as Jen (10-10-09). I followed your directions and the photo gallery went black. I am currently using the low resolution pics but I really need instructions for the higher quality photos.
Thanks for a great theme.
LRB
The images on my flickr account are not the ones I want to show, how do I change this problem? There are no arrows appearing below the picture on the right so you can change them, are they supposed to change?
When do they change?
Second question- The image on the left hand side of the header is blurry -how do I adjust this please? I love the theme and everything about it except these two problems. Please reply and thank you.
Hi Patrick,
yesterday I found your hoPe-Theme and it is great, really!
Everything is fine, but whatever I’ve tried I just can’t get the Flickr or Picasa pictures…
My Blog: http://www.magratknoblauch.de/
My Flickr-RSS: http://api.flickr.com/services/feeds/photos_public.gne?id=38000477@N07&lang=de-de&format=rss_200
Anything wrong with it? Do you’ve got a clue how I could get in run?
Would be pretty kind of you…
Thanks for the wonderful theme!
Mandy
Hi Patrick,
I installed your hoPE theme and it is great. I only would like to know how I can enable the link which will navigate to the Flickr site if someone clicks on the image?
Your help is very much appreciated!!
Thanks, Edgar
Hi,
I installed your hoPE theme version 2.5.1. Great theme!! But I hope you can help me with 2 questions:
1) How can I remove the “RSS Comments” widget which is located just below the header in Sidebar 1? This widget does not appear in the widgets setup screen.
2) How can I enable the link to flickr when pressing on the photo gallery in the header?
Many thanks for the support!
Great theme! I really like the gallery, I have two questions:
1) I followed your instructions for improving the quality of flickr images in the gallery, however when I replace:
$photo_url = str_replace( “_m.jpg”, “_m.jpg”, $sub[0][1] );
change to:
$photo_url = str_replace( “_m.jpg”, “_o.jpg”, $sub[0][1] );
the gallery space goes blank with text that says “this image cannot be displayed at this time” and the flickr icon at the botom.
Do you know why this might be?
2) People are not able to leave comments, I double-checked my comment setting on the dashboard and for each individual page and they are activated. The first default comment is there from Wordpress, but I can’t see how to enter any more.
Many Thanks for a great theme,
Jen
Hi, I’m struggling with the picasa/flick gallery appl. Any good advice will be appreciate.
Kat
I too am wondering if I can get better photo results from Picasa. The images are too compressed and soft. Thanks Patrick.
How would you get a higher resolution using picasa photos and not have the player zoom in on the photo?