<?php
/**************************************************
  CPG Pic Poster Plugin for Coppermine Photo Gallery
  *************************************************
  Copyright (c) 2006 Thomas Lange <stramm@gmx.net>
  *************************************************
  This program is free software; you can redistribute it and/or modify
  it under the terms of the GNU General Public License as published by
  the Free Software Foundation; either version 2 of the License, or
  (at your option) any later version.
  *************************************************
  Coppermine version: 1.4.8
  Pic Poster version: 1.0
  $Revision: 1.0 $
  $Author: stramm $
***************************************************/

if (!defined('IN_COPPERMINE')) die('Not in Coppermine...');

// Add a filter
$thisplugin->add_filter('file_data','pic_poster_add_data');


function pic_poster_add_data($pic_data){ 

	($pic_data['title']) ? $title = $pic_data['title'] : $title = "No name";
	$pic_data['html'] = $title." from <a href=\"profile.php?uid=".$pic_data['owner_id']."\"><strong>".$pic_data['owner_name']."</strong></a> <br>".$pic_data['html']; 
	return $pic_data; 
}
?>
