When I click on an image in my gallery, it's opening up two tabs in the same (IE 8) browser window. Can I use your "linkTarget=_top" to solve that issue? If so, how do I implement that snippet into the html code? I'm guessing it's a parameter but I have no idea how to write it.
In the documentation, there are two lines that look like these: - flashvars="feed=api://www.flickr.com/" - <param name="flashvars" value="feed=api://www.flickr.com/" />
You will have similar lines in your html that point to your own feed. It will probably have a bunch of other characters too. Append "?linkTarget=_top&" at the end of those lines:
If you have more than one parameter there and it seems confusing, I would recommend putting the page online somewhere and pasting the link in this thread.
Actually I did figure it out a few hours ago. What I needed is how you're showing in your example of stringing multiple values together under the flashvars parameter. Thank you for replying.
Firstly I'd like to say what a great item Cooliris is - keep up the good work :-)
I've used the above method to open the link in the same window by clicking on the "Open this Item's Page" button next to the selected main image, but I'm looking to make this happen when a user clicks on the actual image - seems a simpler way for users of my site. The site with cooliris that I'm using as a referance is the TV.com site.
Any help would be appreciated
Clive
PS - I'm not that hot on coding, so please be gentle with me :-)
The only way to do this is through JavaScript. In your embed code, you need to set callback for "ItemSelection". The callback is called onItemSelected. There are more details here:
What this basically means is that when a user selects a certain image, cooliris can send you a notification using Javascript. Cooliris will also tell you what item was selected and will give you selected details (including link) of the selected item. You can use this knowledge to just open the link in the page itself rather than waiting for the user to click on the "Open this Item's Page" link.
I don't have example code for you unfortunately. If you manage to get started though, I can help you through any brick-walls you might run into.
Do realize though that when you are done implementing this feature, it doesn't give your user the option to "change his mind". You might be using his innocent-curious clicks to assume something he didn't intend, just my 2 cents.
Good luck! When you get this running, do share with us.
I've been playing with it myself aswell over the last couple of weeks and came to the same conclusion about the lack of "change your mind" ability if the click on the image causes the user to open the new page.
I've come to a compromise by putting a direct link to the page within the image text by modifying the media RSS feed - seems to work perfectly whilst testing and allows the standard click in and click out action, as well as an obvious hyperlink (some of my targeted audience will be older and might miss the Open this Page button).
Once I get the site finished I'll be posting a link on the forum for people to look at - and posibly contact the Cooliris team about advertising possibilities lol.
Now all I have to do is manually write something like 50 mRSS feeds for all my walls :-(