Support Forums

importing old data

This is a discussion on importing old data within the Technical Support forums, part of the Technical Support Forums category; Hi, have a classifieds site and would like to import my users, ads and photos in the 68classifieds mysql schema. ...


Go Back   68 Classifieds Forums > Technical Support Forums > Technical Support

This topic is resolved.

If you have a similar issue that this thread does not address, open a new related support topic.

 
Thread Tools Display Modes
Old 05-08-2008, 05:02 PM   #1
Customer
 
Join Date: May 2008
Posts: 90
Rep Power: 11
ombre is on a distinguished road
Default importing old data

Hi,
have a classifieds site and would like to import my users, ads and photos in the 68classifieds mysql schema.

What is the relationship between users, ads and photos in 68classifieds schema.

in my photos table i have photo_id and ad_id columns and can identify which photos belong to a listing,
how is this achieved in 68classifieds database schema?

Regards,
ombre
ombre is offline  
Old 05-08-2008, 06:44 PM   #2
68 Evangelist & Developer
 
Mike-N-Tosh's Avatar
 
Join Date: Jan 2007
Location: Pennsylvania, USA
Posts: 1,973
Rep Power: 58
Mike-N-Tosh is just really nice Mike-N-Tosh is just really nice
Default

There is one table that holds the image information called "prodimages".

It has the following fields:
id <== image id defined by the database
pid <== same as the oid in the orders table (this is the listing id join)
title <== optional text for individual picture
image <== file name of the individual picture
rank <== ranking number used for when there are multiple pictures for one ad.

When a picture is uploaded the picture is assigned an id and the pid tying it to the ad listing id. It is also given a numeric image filename. It is resized with the parameters set in admin and is saved to the "photos" directory for the normal sized pic and also resized for the thumbnail pic with the same file name, but with a prefix of "small_" and is saved to the "thumbs" directory.

Hope that helps,
-Mike
__________________
Mike-N-Tosh
IndianaPC.org - A community website (v3.1.10 Developer - heavily modified & used as the CMS)
Sandbox [localhost(v3.1.10, v4.0.9, 4.1.10)] for development and customization
Visit My blog: reviews, tips, tricks, tutorials and my store with Templates, Mods & Docs
Web Hosting | Web Design & Development | 68 Classifieds Customizations
I am not a 68C employee, just a user and try to help out
Mike-N-Tosh is offline  
Old 05-09-2008, 08:57 AM   #3
curmudgeon
 
Join Date: Mar 2006
Posts: 5,279
Rep Power: 130
Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light
Default

Part of the 68c image upload process resizes images and makes thumbnails as well so thats something to think about.
__________________
Larry

Knowledge learned is more valuable than knowledge given.
Lhotch is offline  
Old 05-09-2008, 10:18 AM   #4
The Master
 
Maffo's Avatar
 
Join Date: Mar 2006
Location: British in Argentina
Posts: 1,342
Rep Power: 48
Maffo is just really nice Maffo is just really nice
Default

I have a bulk upload system that we could somehow configure to do this. Details can be found by going to my website (links in my signature). If they outlay is too much I could do this for you using the system.
__________________
**Bulk Upload System** has been upgraded. Works on all v4 versions with new functionality. Free upgrade for existing customers.
Maffo is offline  
Old 05-09-2008, 10:38 AM   #5
Customer
 
Join Date: May 2008
Posts: 90
Rep Power: 11
ombre is on a distinguished road
Default

Quote:
Originally Posted by Maffo View Post
I have a bulk upload system that we could somehow configure to do this. Details can be found by going to my website (links in my signature). If they outlay is too much I could do this for you using the system.
thanks, the upload script is, with a PRICE: £150.00, to much for me :-).
__________________
Version 4.0.9 - now live with 40.000 ads
ombre is offline  
Old 05-09-2008, 10:40 AM   #6
The Master
 
Maffo's Avatar
 
Join Date: Mar 2006
Location: British in Argentina
Posts: 1,342
Rep Power: 48
Maffo is just really nice Maffo is just really nice
Default

Thats why I said if the outlay is too much I could do it for you. The system is meant for people who want to contact dealers etc.
__________________
**Bulk Upload System** has been upgraded. Works on all v4 versions with new functionality. Free upgrade for existing customers.
Maffo is offline  
Old 05-09-2008, 10:42 AM   #7
Customer
 
Join Date: May 2008
Posts: 90
Rep Power: 11
ombre is on a distinguished road
Default

Quote:
Originally Posted by Mike-N-Tosh View Post
There is one table that holds the image information called "prodimages".

It has the following fields:
id <== image id defined by the database
pid <== same as the oid in the orders table (this is the listing id join)

title <== optional text for individual picture
image <== file name of the individual picture
rank <== ranking number used for when there are multiple pictures for one ad.

When a picture is uploaded the picture is assigned an id and the pid tying it to the ad listing id. It is also given a numeric image filename. It is resized with the parameters set in admin and is saved to the "photos" directory for the normal sized pic and also resized for the thumbnail pic with the same file name, but with a prefix of "small_" and is saved to the "thumbs" directory.

Hope that helps,
-Mike
So you say that the pid is not the same as listing id ? That means that when i import my ads (listings) i must also make a
reference to the orders table and from there to gain the pid, or ?
__________________
Version 4.0.9 - now live with 40.000 ads
ombre is offline  
Old 05-09-2008, 10:43 AM   #8
Customer
 
Join Date: May 2008
Posts: 90
Rep Power: 11
ombre is on a distinguished road
Default

Quote:
Originally Posted by Maffo View Post
Thats why I said if the outlay is too much I could do it for you. The system is meant for people who want to contact dealers etc.


Ok, tell me more on PM, maybe we can make something :-)
__________________
Version 4.0.9 - now live with 40.000 ads
ombre is offline  
Old 12-05-2008, 07:34 PM   #9
Customer
 
Join Date: May 2008
Posts: 90
Rep Power: 11
ombre is on a distinguished road
Default

now i can upload my old users in the system. it is a long perl script
__________________
Version 4.0.9 - now live with 40.000 ads
ombre is offline  
Closed Thread

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Data Import Problem on a Windows Server sporthorsebreeder Off Topic 4 10-09-2006 08:49 AM


All times are GMT -4. The time now is 07:35 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0