Hi, Is there anyways to get the actual image path from an image name. EG if I have bondo.jpg for it to give me images/c/c8/bondo.jpg?
How does mediawiki get this information? From what i can see it is not stored in the sql database, is there an algorithm or some script that knows?
Im working on a simple page to input new pages into my wiki. The users of my wiki are really technophobic, and 90% of the pages are all templaes, so I made a form that you fill out and it posts the page with all the nformation.
I am by no means a programmer, and can only read parts of php.
But here is what I am working on, and what I have works, but I want to implement images into it. http://risdpedia.net/interface/test.php
Thanks, -Adam M
The FilePath extension may do what you want:
http://www.mediawiki.org/wiki/Extension:Filepath
-- Jim R. Wilson (jimbojw)
On 6/7/07, Adam Meyer meyer7@mindspring.com wrote:
Hi, Is there anyways to get the actual image path from an image name. EG if I have bondo.jpg for it to give me images/c/c8/bondo.jpg?
How does mediawiki get this information? From what i can see it is not stored in the sql database, is there an algorithm or some script that knows?
Im working on a simple page to input new pages into my wiki. The users of my wiki are really technophobic, and 90% of the pages are all templaes, so I made a form that you fill out and it posts the page with all the nformation.
I am by no means a programmer, and can only read parts of php.
But here is what I am working on, and what I have works, but I want to implement images into it. http://risdpedia.net/interface/test.php
Thanks, -Adam M
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
Adam Meyer wrote:
How does mediawiki get this information? From what i can see it is not stored in the sql database, is there an algorithm or some script that knows?
Just so you know, the algorithm is explained here: http://www.mediawiki.org/wiki/Manual:MediaWiki_file_usage#User-accessible_files with the details on MD5 here: http://en.wikipedia.org/wiki/Md5
Jim's answer is likely more useful if you're not a programmer.
Mike
mediawiki-l@lists.wikimedia.org