svekweb.co.uk

March 22, 2007

Coppermine

Filed under: — kevin_svek @ 4:05 pm

More details on creating a mini CMS system integrated with Coppermine.
In order to integrate a mini CMS system with coppermine I was able to use the majority of Coppermine features to create a couple of custom scripts integrated fully with coppermine.

  • Created extra tables in Coppermine to hold details for the custom pages outside Coppermine
  • modified the themes.inc.php to add links to the new pages
  • Created new pages for the maintenance functions for the two custom pages
  • Modified the english languages file to add links to the new maintenance pages
  • Created new pages where the auto content will appear
  • Added a configure section to the database
  • Created a folder to hold thumbnail pictures selected by the user in the new maintenance section
  • Created a cron job to change permissions on the albums
  • Marked the images / videos available after they have passed a specific date
  • Basically I need to resize the images on the custom pages to different resolutions to those held on the main coppermine site so I use imagemagik to resize the images when they first change or the size is different to the previously resized image.
    Implementation consisted if writing the new pages and also loading the album list in coppermine into a new custom table with a default date (same album id). Used the main album manager page as the basis of the new page – could have used the same page but that would have been more edits to the core coppermine package which I wanted to avoid.
    Created a couple of additional links to get article details from specific folders (password protected) on the server and then pre-populate some look up lists with these items.
    Simple cron job which updates the status of the new tables where the current date is >= the date the item should become available and also simultaneously change the permissions on the album from administrator only to available to everyone.

    No Comments

    No comments yet.

    RSS feed for comments on this post.

    Sorry, the comment form is closed at this time.

    Powered by WordPress