*

Recent

Author Topic: Delete Auto-Approved Comments.  (Read 5586 times)

Frank

  • Sr. Member
  • ****
  • Posts: 257
  • Force: +4/-0
Delete Auto-Approved Comments.
« on: March 17, 2011, 10:50:52 PM »
If one has auto approve comments turned on, I don't see how they can be recalled to delete them? :(

This however will allow an Admin to delete them when he sees them as posted comments. :)

Code: [Select]
play.php

Find:
<td style="padding: 20px 0 0 20px;" valign=\'top\' class=\'content\'>'.$row['comment'].'</td>

Replace With:

<td style="padding: 20px 0 0 20px;" valign=\'top\' class=\'content\'>'.$row['comment'].'';
if($usrdata['user_level'] == 2){
echo '
<div style="float: right; padding-right: 20px;"><a href=\''.$domain.'/'.$directorypath.'/index.php?action=admin&amp;case=approvecomments&amp;cmd=delete&amp;ID='.$row['ID'].'\'  onclick="return confirm(\'Are you sure you want to delete the

comment?\')"><img src=\''.$domain.'/'.$directorypath.'/templates/'.$template.'/images/deletebtn.png\' border=\'0\' alt=\'\' /></a></div>';
}

echo '</td>

And if I can now upload a picture, you'll see what it does. :P

« Last Edit: March 17, 2011, 10:53:06 PM by mort »

kurt

  • Developer
  • Hero Member
  • ******
  • Posts: 634
  • Force: +16/-1
Re: Delete Auto-Approved Comments.
« Reply #1 on: March 18, 2011, 12:05:32 AM »
Ah yes, this is something that was needed, actually being thought out even, after the new release comes out. I assume we can use this code in a future release, adapted as needed?

Thanks!

Frank

  • Sr. Member
  • ****
  • Posts: 257
  • Force: +4/-0
Re: Delete Auto-Approved Comments.
« Reply #2 on: March 19, 2011, 06:00:28 AM »
I assume we can use this code in a future release, adapted as needed?

Thanks!

Naw! I'm going to copyright it - - - - - "Boom" :P

It's your code - All I'm doing is fixing a few things as I find them. And I like to post them here for you to freely use as you see fit, rather than keeping all the excitement of actually doing something to myself.

;)

Who knows? I may add a full-blown editor next - just for the hell of it. :P

kurt

  • Developer
  • Hero Member
  • ******
  • Posts: 634
  • Force: +16/-1
Re: Delete Auto-Approved Comments.
« Reply #3 on: March 19, 2011, 03:31:39 PM »
Hey, don't make promises you ain't willing to keep lol.

Yea, there are a number of things we would love to see come out for the script, some are almost ready, some ain't even been started. For example, a forum add on is almost done, but only for 2.0 so far. A high scores add on was done up a while back, I paid a coder to work on it because I was too busy, but I ain't real thrilled with it and I'm not sure it works with V3 games like I wanted. A Mochi add on would be wonderful, but ain't even started. That full blown text editor as well. A few things for the profiles have been worked out for v2.0, such as uploading pictures and public messages. Adam has discovered an AJAX IM program that might be adaptable to the script as well, but we can't release it as part of it, if we can at all, due to copyright issues. One written just for FAS, and integrated tightly, would of course be nice. And we would love to see some people making templates for the script, naturally.

None of us claims to be a professional coder though, and we make due with what we can work out lol. If you want to make add ons or templates for the script to release, you're most welcome to do so.