Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: Help Removing "Date Added" from picture information  (Read 2745 times)

0 Members and 1 Guest are viewing this topic.

vrianlife

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Help Removing "Date Added" from picture information
« 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

Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Help Removing "Date Added" from picture information
« Reply #1 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).
Logged

vrianlife

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Re: Help Removing "Date Added" from picture information
« Reply #2 on: March 09, 2013, 05:43:28 pm »

I did exactly what you said. It worked! Thanks

Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Help Removing "Date Added" from picture information
« Reply #3 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.
Logged
Pages: [1]   Go Up
 

Page created in 0.028 seconds with 19 queries.