/q2apro-list-uploads-page

Question2Answer Plugin: Display all image uploads on a separate page including options to delete unused images

Primary LanguagePHP

Question2Answer List Uploads v0.5

Description

This is a plugin for Question2Answer that displays all image uploads on a separate page including options to delete unused images

Features

  • page only accessible by admin
  • provides a page for showing image uploads of last 3 days, access-URL your-q2a-installation.com/listuploads
  • checks if each image is used within posts, pages or as avatar
  • shows numbered list with: * upload date/time, * displayed image * blobid * information where image is used (question, answer, comment, avatar or custom page) * original filename * size of image in kB * user who uploaded
  • listed images can be opened in lightbox (if installed) or images are linked to themselves
  • admin can delete single images or all images from database that are not used in posts
  • admin can specifiy parameters by URL to filter images: /listuploads?days=30&remove=1&user=William35 (see instruction on listuploads page)

Installation

  1. Install Question2Answer
  2. Get the source code for this plugin directly from github
  3. Extract the files.
  4. Change language strings in file qa-list-uploads-lang.php
  5. Upload the files to a subfolder called q2a-list-uploads-page inside the qa-plugins folder of your Q2A installation.
  6. Navigate to your site, go to Admin -> Plugins on your q2a install. Check if plugin "List Uploads Page" is listed.
  7. Navigate to yourq2asite.com/listuploads to see the new uploads listed

Disclaimer

This is beta code. It is probably okay for production environments, but may not work exactly as expected. You bear the risk. Refunds will not be given!

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

Copyright

All code herein is OpenSource. Feel free to build upon it and share with the world.

About q2a

Question2Answer is a free and open source platform for Q&A sites. For more information, visit: www.question2answer.org

Final Note

If you use the plugin: + Consider joining the Question2Answer-Forum, answer some questions or write your own plugin! + You can use the code of this plugin to learn more about q2a-plugins. It is commented code. + Thanks!