I have gallery view page which opens images and videos in colorbox. Everything works perfect except for one feature which has apparently been used many times but I've yet to see it on a drupal site.

Anyways, I have been researching and found:
http://groups.google.com/group/colorbox/browse_thread/thread/6dfc74657c0...
http://groups.google.com/group/colorbox/browse_thread/thread/5df7ec53857...
and

http://groups.google.com/group/colorbox/browse_thread/thread/e178bae8458...

I have been stuck on this for a day and I really need a solution. I tried adding

$(document).ready(function(){
		    var target;
		    $(".cboxElement").colorbox({width:"630px", height:"510px", iframe:true,
		    open:vars['open'] == 'true' ? true :false});
		    $("a[rel^='lightbox']").colorbox(transition:"elastic", maxHeight:"95%",
		    maxWidth:"95%");

		    if(vars['open']){
		        target = 'lightbox' + vars['open'].replace(/true/, '');
		        $("a[rel='"+target"']").eq(0).click();

		    } 
		}); 

on page.tpl but im not really sure on the url parameters to enter. I have tried:

http://localhost:8888/content/media-gallery/#gallery-182?open=true,
http://localhost:8888/content/media-gallery/#colorbox-inline-2?open=true,

#gallery-182 being the rel attribute for images but the embed videos don't have a rel attribute or they do but its empty and #colorbox-inline-2 being the video screenshot anchor path (/?width=600px&height=400px&title=&inline=true#colorbox-inline-4)

Any assistance is very much appreciated and a screenshot is attached

CommentFileSizeAuthor
Screen Shot 2011-12-19 at 5.03.51 PM.png243.33 KBarkjoseph

Comments

arkjoseph’s picture

No one has any knowledge on this?

frjo’s picture

Status: Active » Closed (won't fix)

Closing old issues that doesn't seems to effect a lot of users.