Import from flat file
I am moving from a site that had a custom coded ASP image gallery of sorts. I have downloaded the data in excel files. I'm wondering if there is an import script that will allow me to formate this data and import it.
I have the data imported and it looks like it all worked. However, I can't figure out where it is looking for my images. What directory should I upload my files to for them to be found.
URL to Gallery Images:
$gallery_url = http://www.domain.com/gallery/files
Path of Images:
$gallery_path = /path/to your/gallery/files
$userid = User ID is the Id given by vBulletin
$userid_path = implode('/',preg_split('//', $userid, -1, PREG_SPLIT_NO_EMPTY));
$path = "$gallery_path/$userid_path";
I've placed the image file in a folder that should match the format you provided and - no luck.
This is the post that should pull up the image:
This is the image on my site:
Could I have the database incorrect? I wasn't able to provide a dimensions or file size for the images? This is the database entry for this item:
809 1963 mercury comet 4 door wagon :: John Hunten 1963 comet 4 door wagon,converted into a 2 door co... 13 0 1 admin jpg 13671A.jpg 0 0 0 0 0 0 7 0 1 1 0 0 0 0 0
I beleive what Zachariah has told you is the files should be userid not username like so
Well that makes sense, but I tried that too... still no luck.
Sorry to be such a hassle.
Well I am not the vbgallery guru here so I will let Josh respond but your issue seems centered around your import thing and not specifically the product itself.
The files are like that on my test site?
More than likely once you get all the main images showing you need to rebuild your thumbnails. You sure your import worked correctly? Is the filename correct in the filename field in the database?
My guess is my data isn't correct. I included a example line out of my database in the earlier post. I hope that the problem isn't the image size fields being blank.
If the names are correct and the images are in the correct place you can run a utility in maintenance of the gallery.
AdminCP => vBGallery => Maintenance
- Rebuild Image Info
I exported a image and its fields for data layout.
Running the maintenance function worked... Thanks for all the help
|All times are GMT -5. The time now is 11:02 PM.|
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0