1
Mods & Plugins (Requests & Discussions) / Re: [MOD REQ] Adding a portfolio/showcase section AKA "Featured Images"
« on: April 19, 2006, 01:14:11 PM »
My solution is essentially a hack, and its only redeeming feature is that it works. I made some ugly changes to /admin/images.php that are not extensible. I would rather wait until I have more time to polish it off and write down the steps, otherwise I will feel guilty for publishing something that may break or may be incompatible with other mods.
For those who want to see my solution, you can download the before and after files from here: http://dtabakov.com/dsplus/m.php?p=featured.zip.
Warning: this will not work "out of the box" because my code is talking to a database table that doesn't exist. In my version it is called 4images_featured and has three attributes: image_id (int 10), image_active (tynyint) and image_hits (int 10). Don't just copy these files over your existing files because you will break things. What I would suggest is running diff on the original files and the modified files and seeing where the changes were made. If you decide to play with this, do so on your own risk. If, on the other hand, something doesn't make sense, let me know and I will try to explain what I was trying to achieve.
For those who want to see my solution, you can download the before and after files from here: http://dtabakov.com/dsplus/m.php?p=featured.zip.
Warning: this will not work "out of the box" because my code is talking to a database table that doesn't exist. In my version it is called 4images_featured and has three attributes: image_id (int 10), image_active (tynyint) and image_hits (int 10). Don't just copy these files over your existing files because you will break things. What I would suggest is running diff on the original files and the modified files and seeing where the changes were made. If you decide to play with this, do so on your own risk. If, on the other hand, something doesn't make sense, let me know and I will try to explain what I was trying to achieve.