|
Hey Sam, it certainely is possible to show whether the comments are enabled or not when editing the news. The problem is that there is a lot of information to display and only a limited amount of space to display it in, that's why I made the decision to leave some of the information out to make room for others, mainly the important ones like the title/author/date. | |||
| 04:18am 23rd Aug 08 | _______________ Chris - Network-13 |
|
Ok, I tried a hacking attempt at it and got it to work . Not sure how, but it works. Please correct my execution of the idea as I am not sure what is the proper way to write it. Here is what I did:Found this on line 413 of file "editnews.mod" PHP Code:
echo "</td><td>$cat</td><td>" . date("d-m-y" ,$row[timestamp]) . "</td><td align=center>$approved</td><td align=center><a href=\"?action=editcomments&pid=$row[id]\"><u>$numcomments</u></a></td><td align=center><input type=\"checkbox\" value=\"$row[id]\" id=\"selectedposts[]\" name=\"selectedposts[]\">\n";Replaced it with this PHP Code:
Hope that is useful to someone out there. -SlinkySam | |||
| 11:30am 23rd Aug 08 |
|
This code looks good. It's similar to the way I'd of done it, can't fault it
| |||
| 11:35am 23rd Aug 08 | _______________ Chris - Network-13 Last edited by Chris at 11:37am 23rd Aug 08 |
|
Hey Chris, Thanks for checking. I did forget to mention one other thing I did. Since I made the $numcomments have two different possible display option, I removed the following code from line 392 in the same editnews.mod file: Code:
$numcomments = mysql_num_rows($query); -SlinkySam | |||
| 02:29am 24th Aug 08 |