Advanced search  

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]

Pages: [1]   Go Down

Author Topic: Remove Email, Ecards and Comments  (Read 4573 times)

0 Members and 1 Guest are viewing this topic.

stickypod

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Remove Email, Ecards and Comments
« on: January 24, 2008, 04:26:19 pm »

I am trying to completely remove the functionality for email, ecards and comments.  The spammers attack these functions and the registrations are relentless.  If I can remove these altogether, then they won't find these functions and I can get on with offering my customers a legitimit service.

Anyone know how to do this?

Many thanks,
Tom
Logged

Nibbler

  • Guest
Re: Remove Email, Ecards and Comments
« Reply #1 on: January 24, 2008, 04:30:11 pm »

Groups page.
Logged

stickypod

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Re: Remove Email, Ecards and Comments
« Reply #2 on: January 24, 2008, 04:49:32 pm »

I need to remove the programming, not just disable it.  Does anyone know what to look for, or how to do this?
Logged

Nibbler

  • Guest
Re: Remove Email, Ecards and Comments
« Reply #3 on: January 24, 2008, 05:03:18 pm »

No reason to remove the code, just disabling it is enough.
Logged

stickypod

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Re: Remove Email, Ecards and Comments
« Reply #4 on: January 24, 2008, 05:20:36 pm »

Since I have your attention, which file contains the comments box that displays when viewing an image?  I want to remove it from these pages so people have no choice about trying to plug in a comment.  I already have the setting configured to just 1 character, but that doesn't seem to stop people.  If I remove it, just comment it out with a // in the php file, that should be enough to remove it.
Logged

Nibbler

  • Guest
Re: Remove Email, Ecards and Comments
« Reply #5 on: January 24, 2008, 05:28:58 pm »

Just disable commenting. I don't understand why you are so keen to modify code.
Logged

stickypod

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Re: Remove Email, Ecards and Comments
« Reply #6 on: January 24, 2008, 05:50:04 pm »

I'm looking for an answer, not a justification.  Do you know where to find this info or not?  If so, post it.
Logged

Nibbler

  • Guest
Re: Remove Email, Ecards and Comments
« Reply #7 on: January 24, 2008, 05:56:06 pm »

Copy this code into your custom theme.php

Code: [Select]
function theme_display_image($nav_menu, $picture, $votes, $pic_info, $comments, $film_strip)
{
global $CONFIG;

$width = $CONFIG['picture_table_width'];

starttable();
echo $nav_menu;
endtable();

starttable();
echo $picture;
endtable();

if ($CONFIG['display_film_strip'] == 1) {
echo $film_strip;
}

echo $votes;

$picinfo = isset($_COOKIE['picinfo']) ? $_COOKIE['picinfo'] : ($CONFIG['display_pic_info'] ? 'block' : 'none');
echo "<div id=\"picinfo\" style=\"display: $picinfo;\">\n";
starttable();
echo $pic_info;
endtable();
echo "</div>\n";

//echo "<div id=\"comments\">\n";
//echo $comments;
//echo "</div>\n";
}
Logged
Pages: [1]   Go Up
 

Page created in 0.02 seconds with 19 queries.