#1 (permalink)  
Old 10-17-2005, 04:33 AM
Registered User
 
Join Date: Feb 2005
Location: Antwerp, Belgium
Posts: 118
landuyt is on a distinguished road
Default insert tabel in mysql

Hi,

im not an expert on mysql,...

but here is my problem

i want an extra table in idx_links ( thumbshot )

i have a map with all the thumbshots of the sites listed in my directory.
(www.mysite.come/thumbs )

the names of the jpg's are all idnumber.jpg

i want an extra table in my id_links with the names of these pics.
so in id number 12345 must be a table with 12345.jpg

is it possible to do this automaticly? because typing 9500 names of pics


from there i could do some extra stuff with the thumbshots.

greetings peter
__________________
www.audiomastermind.com
  #2 (permalink)  
Old 10-17-2005, 02:00 PM
Active Member
 
Join Date: Nov 2004
Posts: 1,828
inspireme is on a distinguished road
Default

I maybe missing something but this is jsut your ID column with .jpg put on the end, What do you need this column for exactly?
__________________
Some interesting INDEXU bits :http://www.indexu.co.uk
Main IndexU sites : | Campsite Directory | Tourist Guide | Places2B | AfterDirectory <-- Half price submission using coupon DP50 (from just $11 premium, and $10 basic permanent )
  #3 (permalink)  
Old 10-17-2005, 02:44 PM
Registered User
 
Join Date: Feb 2005
Location: Antwerp, Belgium
Posts: 118
landuyt is on a distinguished road
Default

yes indeed... i want an extra colum with the jpeg names ( not the files itself, but idnumber.jpeg on the exact row of that idnumber )
but i don't know how to do it or if it is even possible.

the files (pics) itself must stay in a specific map. otherwise the database becomes to big.

i think i can do some extra stuff with my pics then when they are in the database. ( search pics only, pic gallery with links to detail page, browse only with pics in the categories and even rewrite the names of the pics to namesite.jpg ( search engines !....etc )

But it's just an idea i have. maybe there are easyer ways to do some nice things with the thumbs.

greetings peter.
__________________
www.audiomastermind.com
  #4 (permalink)  
Old 10-17-2005, 03:30 PM
Active Member
 
Join Date: Nov 2004
Posts: 1,828
inspireme is on a distinguished road
Default

Good ideas, I was thinking about doing what you have with the gallery, I planned to use the title tag on the images as the <%title%>, but as you say the ID.jpg format is not the most SEO friendly. It would need a php script to read the database titles, then load corresponding image ID, rename it to the tile, then write to the DB... It can be done, although with my limited skills a fairly big job.

Ps. what gallery program did you use for the thumbs?

matt
__________________
Some interesting INDEXU bits :http://www.indexu.co.uk
Main IndexU sites : | Campsite Directory | Tourist Guide | Places2B | AfterDirectory <-- Half price submission using coupon DP50 (from just $11 premium, and $10 basic permanent )
  #5 (permalink)  
Old 10-18-2005, 07:13 AM
Active Member
 
Join Date: Nov 2004
Posts: 1,828
inspireme is on a distinguished road
Default

Ok i made some improvments :

1) You can generate the list of IDS for all images added in the last Day/Week/Month. Allowing smaller updates to the thumbs without having to do the whole lot!

2) Im looking into creating the php script to make the images SEO friendly - it will help you on google images AND on the main listing as you will have relevantly named images.

I have point (1) done so send me an email if you want that. Im working on point (2) but Im pretty busy at the moment so dont expect it quickly!!!!
__________________
Some interesting INDEXU bits :http://www.indexu.co.uk
Main IndexU sites : | Campsite Directory | Tourist Guide | Places2B | AfterDirectory <-- Half price submission using coupon DP50 (from just $11 premium, and $10 basic permanent )
  #6 (permalink)  
Old 10-18-2005, 07:45 AM
Registered User
 
Join Date: Feb 2005
Location: Antwerp, Belgium
Posts: 118
landuyt is on a distinguished road
Default

thx ! send you a mail.
__________________
www.audiomastermind.com
  #7 (permalink)  
Old 10-18-2005, 09:43 AM
Active Member
 
Join Date: Nov 2004
Posts: 1,828
inspireme is on a distinguished road
Default

OK I did all of that, but its imprtant to note if a user modifies the title of the listing the image name will no longer relate to it, and cause a broken image... not a big issue as it will be sorted on the next thumbs update you do, especially if you have a "awaiting image" notice which will display instead

Email me if you want it.
__________________
Some interesting INDEXU bits :http://www.indexu.co.uk
Main IndexU sites : | Campsite Directory | Tourist Guide | Places2B | AfterDirectory <-- Half price submission using coupon DP50 (from just $11 premium, and $10 basic permanent )
  #8 (permalink)  
Old 10-18-2005, 10:11 AM
Registered User
 
Join Date: Feb 2005
Location: Antwerp, Belgium
Posts: 118
landuyt is on a distinguished road
Default

You are God !

this works perfect. it took me 5 seconds to rename the 9500 pics

thx again

peter
audiomastermind

Now google can come with there army of image bots.
__________________
www.audiomastermind.com
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
MySQL going down due to too many connections due to sleeping processes Reg v5.x 3 08-09-2005 03:03 AM
Importing from GT Links SQL craven v5.x 5 09-16-2003 12:50 PM
Mysql import of e-mails ? lewisw v3.2 0 08-20-2003 09:10 PM
Do you have to run MySQL 4x for IndexU 3.1? Frisk151 Pre-Sales Questions 3 08-04-2003 09:50 PM
remotely hosted mySQL miletic Pre-Sales Questions 1 10-21-2002 01:07 PM

HACKER SAFE certified sites prevent over 99.9% of hacker crime.

All times are GMT -5. The time now is 01:07 PM.


Powered by vBulletin®
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO
SSL Certificate