PDA

View Full Version : Auto-delete images?


Raines
04-20-2009, 07:56 AM
On my site I post game reviews with the game's box art being the header image. Is there a way to keep the uploaded images out of the gallery, or to auto-delete them after the article is finished? I just want to use these each game's box art image once, and not have to go into FTP to delete the image from the gallery.

Morgan
04-20-2009, 08:48 PM
There are the header images you add via the ACP gallery that show to others, and there are the header images you upload when making a post that only show to you. To remove the latter from the post page, in the gars_class_edit.php file find the second occurrence of the following and add the bold red bit:

if (1==2 && is_dir($path))

To delete the header images uploaded when making a post, please see this (http://www.thevbgeek.com/showthread.php?t=4269) thread.