Help Removing "Date Added" from picture information Help Removing "Date Added" from picture information
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Help Removing "Date Added" from picture information

Started by vrianlife, March 08, 2013, 06:20:00 AM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

vrianlife

Hi, I would really appreciate it if someone could help me remove the "Date Added" from my gallery's picture information. I have attached two screen shots of where it is I need the date removed. Thanks
I have searched the forums and found some answers but none that could help me in what I need. I even tried the Plugin that exists but no luck, it seems to be out dated or I'm not sure what is wrong with it. On the plugin Manager page it says "Minimum Requirements not met". 

I would like to remove the date added.
What is it I need to edit? What file? What Code?

My gallery is located on: www.HWIL.host-ed.me


Αndré

To remove it from the image titles, open include/functions.inc.php, find
            $pic_title = $lang_common['filename'] . '=' . $row['filename'] . $LINEBREAK .
                $lang_common['filesize'] . '=' . ($row['filesize'] >> 10) . $lang_byte_units[1] . $LINEBREAK .
                $lang_display_thumbnails['dimensions'] . $row['pwidth'] . "x" . $row['pheight'] . $LINEBREAK .
                $lang_display_thumbnails['date_added'] . localised_date($row['ctime'], $lang_date['album']);

and replace with
            $pic_title = $lang_common['filename'] . '=' . $row['filename'] . $LINEBREAK .
                $lang_common['filesize'] . '=' . ($row['filesize'] >> 10) . $lang_byte_units[1] . $LINEBREAK .
                $lang_display_thumbnails['dimensions'] . $row['pwidth'] . "x" . $row['pheight'] . $LINEBREAK;

twice. This is a quick & dirty mod. If you don't want to re-apply that change after each upgrade, you should create a plugin and use the hooks thumb_html_title and thumb_strip_html_title.


To remove the information next to the albums, open index.php, find
sprintf($lang_list_albums['last_added'], $last_upload_date)
and replace with
''
4 times (again quick & dirty).

vrianlife


Αndré

Finally, please
Quote from: Joachim Müller on September 28, 2008, 12:46:26 PM
tag your answer as "solved" by clicking on the "Topic Solved" button on the bar at the left hand side at the bottom of your thread.