9 images loaded by 3 seperate views. each with its own pager with seperate IDs.
A1 B1 C1
A2 B2 C2
A3 B2 C3

pager next on column c so its as such
A1 B1 C4
A2 B2 C5
A3 B2 C6

click on C4 to trigger a Colorbox but A1 is then loaded into the box.

Any ideas why this might be happening?

Files: 
CommentFileSizeAuthor
#8 colorbox_inline_links_1215436.patch542 bytesfrjo

Comments

Do you have an example page that is public?

Title:Multi column AJAX loading wrong content on paging Colorbox trigger field gets out of sync when using Views ajax pager
Assigned:Unassigned» frjo
Category:support» bug
Status:Active» Postponed

It looks like the Colorbox trigger field doesn't work with Views ajax pager. My guess is that this can be fixed by hooking in the filed to the ajax pager in one way or another. I can't say when I can commit time to this unfortunately.

My suggestion is to use a standard image field instead.

I get a similar problem with a Views 3 view paging ordinary pages. It looks like a similar conflict between colorbox and Views Ajax pager. In my case I can step forward through pages in a view but not backwards. When I switch Colorbox off, the pager works. I tried the dev version of Colorbox and nothing changed. Any idea where I should start working the problem?

The problem stopped occurring with the dev version after reloading, refreshing, etc. everything.

Peterx, I have gone with the latest dev version and I am still seeing the issue. Do you know the release date?

Here's a bit of a bootleg fix I came up with.
In colorbox_handler_field_colorbox.inc which is in the views folder,

change:

static $i = 0;
$i++;

To:

static $i = 0;
$i = rand();

The problem was the url always ended in #colorbox-"type"-"a number here". Whenever a page is loaded the number at the end of the url which is the variable "i" increments by 1 for each popup link. With the pager, it loads again, going back to i = 0. So this fix will give you a random number so you won't end up getting the same url link. Unlikely, but its possible you will get the same number again, but you can just append more random numbers to lessen the chance.

Status:Postponed» Needs review
StatusFileSize
new542 bytes

I suggest using "mt_rand()" since it performs better.

Please test this patch and report back here.

If you are having this problem please test the patch in #8. If it works well I will commit it right away.

Status:Needs review» Fixed

Committed to 7.x-2.x.

Status:Fixed» Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Version:7.x-1.x-dev» 7.x-2.4
Priority:Normal» Major
Status:Closed (fixed)» Needs work
Issue tags:+views, +trigger, +colorbox

I'm currently working in a project that uses Colorbox 7.x-2.4, Views 7.x-3.7 and Video.js 7.x-2.2. I created a Block view to show all my video content and added a Colorbox trigger to open such videos in a lightbox. It works well if I display all the videos insise the block at once and use scroll to navigate through each one. However, when adding a pager to the view (doesnt't matter what), the lightbox opens and does not load the video since I navigate to some other page than first. Then, even if I return to the first page I can't get the content loaded into the lightbox.
I tried disabling Ajax and with it turned off, everything works great. But with Ajax turned off the page path changes and every page is reloaded. As my design does not need to reload the page at all, just the block itself, such behavior ruins my page animations, reloading it too.
Is there anyway I can fix it? I tried the #8 patch with no success.
I appreciate any help.

Best Regards,