Remove Email, Ecards and Comments Remove Email, Ecards and Comments
 

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

Main Menu

Remove Email, Ecards and Comments

Started by stickypod, January 24, 2008, 04:26:19 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

stickypod

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


stickypod

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

Nibbler

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

stickypod

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.

Nibbler

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

stickypod

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

Nibbler

Copy this code into your custom theme.php


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";
}