Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Tech Question
JimR Offline
Junior Member
**
Posts: 15
Joined: Jun 2012
Post: #1
Tech Question
I am writing some code that will display a random image from an xthread attachment.

the directories are placed under "uploads/xthreads_ul" and are prefixed ts_ so far I can not work out which forum each folder relates to
I have a folder  ts_1376 this relates to a forum with the fid of 22 can you tell me what the relationship is ?
I have the same problem with the images in the folder how do I work out what thread they are attached to ?
Regards Jim
09-28-2013 07:07 AM
Find all posts by this user Quote this message in a reply
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #2
RE: Tech Question
The folders and filenames are completely unrelated to the forum they're attached to.  The folders are grouped by a timestamp factor, and filenames also include random components (to make guessing them difficult).
You need to read the database to get info on which forum/thread is associated with an attachment.

My Blog
09-29-2013 06:07 PM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

 Standard Tools
Forum Jump: