CMS Multiple Images

44 posts by 3 authors in: Forums > CMS Builder
Last Post: July 14, 2008   (RSS)

By edandrea - June 23, 2008

I may have failed to mention that I had a second image upload area with a field label titled "detail_photo" with a field name of lg_photo and I had only uploaded photos to one of my listings.



Any way it is kind of working but it is only loading photos from one area for every listing and they are half the size. No matter what photos are loaded what comes up is allways the same and not for the individual listings.



I checked my images in photoshop and reduced the resolution to 72 instead of 100 and increased back to the desired size and checked my settings (section editers> detail_photo) and they are the same as the photoshop image.



Ps, when I removed the images the alert message "no records found" didnt come up. I have made this all live www.smoaklandco.com.

Re: [edandrea] CMS Multiple Images

By Dave - June 23, 2008

You might to adjust the size that images get resized or thumbnailed as in the field editor.

If you need more help with it just make a list of the remaining issues and we'll help you tackle them one by one. Be sure to post an url if you have one so I can see what you're talking about.

Hope that helps.
Dave Edis - Senior Developer
interactivetools.com

By edandrea - June 23, 2008

Hi Again,

First big problem is:

http://www.smoaklandco.com/ds_detail.php?1, http://www.smoaklandco.com/ds_detail.php?2, http://www.smoaklandco.com/ds_detail.php?3, when you go to featured listings that all goes well. But when you select one or any of the featured listings the same images come up for them all. I believe they all come from record #1.



The second problem is: Image sizeing. http://www.smoaklandco.com/ds_detail.php?1 . I created images in photoshop ans sized them at 363 X 242 res@72. I created a image upload called detail_photo (field label) and lg_photo (field name). I placed the thumbnail sizing that I needed for the flash movie at 100X67 and the "Resize images larger than:" to the desired size of 363 X 242.



Well since the pictures are kind of working I can see that the sizeing has been cut down to about half. Wright now these are the only issues I have. Sorry to be a bother. We kind of got it working.



Just in case the url to the xml = www.smoaklandco.com/data.xml.php.





Best Emil

Re: [edandrea] CMS Multiple Images

By Dave - June 24, 2008

Emil,

Issue #1) Ok, what is the name of the flash file is loading the images? You need to add the record number to the end of the url to the xml file that the flash file uses. View Source on these and see how they bring up different images:
http://www.smoaklandco.com/data.xml.php?2
http://www.smoaklandco.com/data.xml.php?3

Issue #2) Changing the max width and height only affects images you upload _after_ that point. So if you've uploaded images previously try uploading them again. Then view the image upload URLs directly to make sure they're getting saved as the right size. These urls look smaller than you want, you'll need to check the settings and try re-uploading:
http://www.smoaklandco.com/cmsAdmin/uploads/sc_25_001.jpg
http://www.smoaklandco.com/cmsAdmin/uploads/thumb/sc_25_001.jpg

Also, check these urls in firefox, only the last one works. Not sure why (flash or javascript issue?) but they all work in IE.
http://www.smoaklandco.com/ds_detail.php?1
http://www.smoaklandco.com/ds_detail.php?2
http://www.smoaklandco.com/ds_detail.php?3

Hope that helps!
Dave Edis - Senior Developer
interactivetools.com

By edandrea - June 24, 2008

Wow,

This has turned int to a "project" LOL.



1. ds_gallery.swf ( http://smoaklandco.com/ds_gallery.swf ).

I added the record # to the end of the .xml/php files and yes I can see the image data except for " http://www.smoaklandco.com/data.xml.php?3 " I get a javascript alert error saying "The XML source file is unavailable for viewing".



2. I will work on changing my sizes. I have allready deleted and re uploaded. I will try again.



3. Strange??? I am working in IE7 the pictures come up but I still have the same problem "same Pictures for all records". All the records pull the pictures fromm record # 1. I did manage to get them all to work in FireFox but you had to refresh 3-4 times. But stillsame two pics, should be differant for each record, yes...



Best

Emil

By edandrea - June 24, 2008

Well I figured out my problem with images. I had the height and width reversed. Duh....



Any way stil have the problem with individual listings. The same photos from record 1 comes up for all records.... I hope there is an answer out there, certainly hope you can help.



Emil

Re: [edandrea] CMS Multiple Images

By Dave - June 24, 2008

Is the XML url hard coded in your flash viewer? I didn't see it in the source of the page?

Check first that you get different XML when you add a number on the end of the XML url. Then, once that's working you need to figure out how to pass that to your flash viewer.
Dave Edis - Senior Developer
interactivetools.com

By edandrea - June 24, 2008

This is the action script in the flash movie in the first part which calls the xml url. Yes I did check and the differant .xml.php1, 2 and 3 with the amount of images show up and they are all differant, "Good". Just not comming through the flash. Hope the following is what you are asking for your first question?

-------------------------------------------------------------

//XML data
var LoadedFileSize:Number = 0; //Size of loaded data
var TotalFileSize:Number = 0; //Total file size
var PercentageFileSize:Number = 0; //Percentage = (Loaded/Total) * 100

//Movie
var LoadedMovieSize:Number = 0; //Size of loaded data
var TotalMovieSize:Number = 0; //Total file size
var PercentageMovieSize:Number = 0; //Percentage = (Loaded/Total) * 100
var Percentage:Number = 0;

//Set the preloader text
txtLoadText.htmlText = "loading data... " + Percentage + "%"; //Set the preloader text
//Set the preloader bar size
mcBar._width = 2*Percentage;

//Load the XML data
xmlData = new XML(); //Create new XML object to load the data into
xmlData.ignoreWhite = true;
xmlData.load("data.xml.php"); //Load the data.xml file. Change path here as needed!
xmlData.onLoad = loadXML; //After data is loaded call the loadXML() function

//Function called on XML data load completion
function loadXML(loaded:Boolean) {
if (loaded) {
//Load succesfull
xmlNode = this;
} else {
//Error by loading
txtLoadText.htmlText = "XML file failed to load!";
stop();
}
}

-------------------------------------------------------------------------

would it be easier to have the .fla file?

Re: [edandrea] CMS Multiple Images

By Dave - June 24, 2008

Hi Emil,

Ahh, so this is a custom viewer. I thought so. What you need to do is get the record number on the end of the data.xml.php.

So if your page is this:
http://www.smoaklandco.com/ds_detail.php?3

You want your xml url to be this when loaded from flash:
data.xml.php?3

You'll have to figure out how to pass the record number with flashvars or by some other means.
Dave Edis - Senior Developer
interactivetools.com