fodbrothers
09-17-2016, 04:15 PM
ok so I just need a little help understanding this
if I upload a photo on a thread on my website running VB5
if it successfully uploads and I press continue (still in the create a new topic page)
I see the photo below
if I click it, it enlarges
if I right click and copy the link address
http://MY WEBSITE /filedata/fetch?filedataid=279
( this I can find in the database of the mysql or whatever its called)
I got to filedata and find in the list (filedataid 279)
this works fine. now for the bit I dont understand
ok so if I want that image to work on my website even in that topic
I will have to save the post
click the image to enlarge it
right click copy link address
now instead of being as above its now
http://MY WEBSITE/filedata/fetch?photoid=1319
I cant seem to find this on the database nor how these photoID's are created
and then I would use this link to add the image to the post
the only reason why I am looking into this is that I have accidentally deleted a photo which is linked in a lot of my posts
and would like to manually edit the database and get it back with the same urls...
but obviously need to learn a bit more before messing around with it
--------------- Added 1474218677 at 1474218677 ---------------
ok just an update I found that it is in photos in the database
and I have to link the filedata ID in the row with the photo ID
this is fine and works brilliantly with only one problem
It only seems to work on my USER
I have tried entering everything manually with the rows from PHOTOs and Filedata and puting the image in manually
but only works on my user
and I have also tried attaching the image that I need in a random post and just editing the 1 row in the database which would be the photo ID number
which again works fine on my user but if I log in as another user
it comes up as no image found
???
I hope someone can help
many thanks in advance
I have now edit every post due to no replies
if I upload a photo on a thread on my website running VB5
if it successfully uploads and I press continue (still in the create a new topic page)
I see the photo below
if I click it, it enlarges
if I right click and copy the link address
http://MY WEBSITE /filedata/fetch?filedataid=279
( this I can find in the database of the mysql or whatever its called)
I got to filedata and find in the list (filedataid 279)
this works fine. now for the bit I dont understand
ok so if I want that image to work on my website even in that topic
I will have to save the post
click the image to enlarge it
right click copy link address
now instead of being as above its now
http://MY WEBSITE/filedata/fetch?photoid=1319
I cant seem to find this on the database nor how these photoID's are created
and then I would use this link to add the image to the post
the only reason why I am looking into this is that I have accidentally deleted a photo which is linked in a lot of my posts
and would like to manually edit the database and get it back with the same urls...
but obviously need to learn a bit more before messing around with it
--------------- Added 1474218677 at 1474218677 ---------------
ok just an update I found that it is in photos in the database
and I have to link the filedata ID in the row with the photo ID
this is fine and works brilliantly with only one problem
It only seems to work on my USER
I have tried entering everything manually with the rows from PHOTOs and Filedata and puting the image in manually
but only works on my user
and I have also tried attaching the image that I need in a random post and just editing the 1 row in the database which would be the photo ID number
which again works fine on my user but if I log in as another user
it comes up as no image found
???
I hope someone can help
many thanks in advance
I have now edit every post due to no replies