Passing the correct upload identifier to a video player viewer from a multi-image upload field

15 posts by 2 authors in: Forums > CMS Builder
Last Post: January 8, 2013   (RSS)

Hi Greg,

I agree that the issue is with the list page.

The "d" version that is attached to the post that precedes your latest answer is the latest version.

I don't have any idea how recode the page to fix the issue.

I hope you can help.

Jerry

The first CMS Builder reference book is now available on-line!







Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php

Hi Jerry, 

I think I've created a work around. I've attached my updated file to this post.

I've set the uploadNum variable to a unique variable and then passed it into the URL if the file is video.

Changes are on line 207 and line 223.

Let me know if this works.

Thanks!

Greg

Greg Thomas







PHP Programmer - interactivetools.com

Hi Greg,

Thanks for sticking with this one. Looks like it turned out to be a bit tricky..

It's working now, but I'm not sure why.

Any thoughts?

Jerry Kornbluth

The first CMS Builder reference book is now available on-line!







Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php

Hi Jerry,

This is how it works:

In the foreach loop for each image/video, I've set the variable $uploadNum on line 207 to the num field for that image record. 

Before on line 223 you were using the num value for $upload, which is being set as the $record['video_placeholder_image'] num value on line 215. I changed it to use the num value for the images field using the $uploadNum variable instead.

I hope that makes sense, it's not easy to explain!

Thanks!

Greg

Greg Thomas







PHP Programmer - interactivetools.com