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: Adding a "posting offending comments" warning  (Read 2381 times)

0 Members and 1 Guest are viewing this topic.

Feargal

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Adding a "posting offending comments" warning
« on: September 13, 2006, 10:39:04 pm »

Hi,

I'm looking for a plugin thats adds a line that saids: "Posting offending comments will get you banned!"
It needs to be notable for the users posting the comments..
I think its best if its done in the displayimage.php?

Thanks
Logged

Gizmo

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1015
    • BullsEye Photos
Re: Adding a "posting offending comments" warning
« Reply #1 on: September 13, 2006, 10:54:55 pm »

Probably easier if you just add a line to the theme.php $template_image_comments function. If you don't have this code, copy it from the sample>theme.php and paste it into your theme.php.

Right before
Code: [Select]
                <td width="100%" class="tableh2_compact"><b>{ADD_YOUR_COMMENT}</b></td>
add your warning and it will appear right before the Add your comment line. You could even have it on the same line.
Logged
Did you read the manual first???? Taking 2 minutes to backup your files can save you hours of wondering what you screwed up.
Billy Bullock - BullsEyePhotos Blog of Indecision
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 19 queries.