forum.coppermine-gallery.net

Support => cpg1.5.x Support => cpg1.5 miscellaneous => Topic started by: vrianlife on March 08, 2013, 06:20:00 am

Title: Help Removing "Date Added" from picture information
Post by: vrianlife on March 08, 2013, 06:20:00 am
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

Title: Re: Help Removing "Date Added" from picture information
Post by: Αndré on March 08, 2013, 09:52:10 am
To remove it from the image titles, open include/functions.inc.php, find
Code: [Select]
            $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
Code: [Select]
            $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
Code: [Select]
sprintf($lang_list_albums['last_added'], $last_upload_date)and replace with
Code: [Select]
''4 times (again quick & dirty).
Title: Re: Help Removing "Date Added" from picture information
Post by: vrianlife on March 09, 2013, 05:43:28 pm
I did exactly what you said. It worked! Thanks

Title: Re: Help Removing "Date Added" from picture information
Post by: Αndré on March 09, 2013, 08:11:34 pm
Finally, please
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.