Here's a new patch that fixes for the most part, some issues in reviews.php. The download is here.
06/01/06 - Manual instructions
- Replace line 187 in user.php. Thanks to SteveD3 for finding the error and providing the fix.
See http://www.efiction.wallflowergirl.com/forums/viewtopic.php?t=2973 for full explanation.
- In reviews.php:
-Replace lines 121 and 122.
-On line 41 add $level to the list of global variables.
This will prevent level 4 "admins" from being able to delete and edit reviews.
- Also in reviews.php, replace lines 108 and 175 to keep non-validated chapters from showing up in the jump list.
- Also in reviews.php, replace the section starting at line 275 and ending at line 295 and the section from line 230 to 253.
(Or the lazy way, replace the entire addreview function) This will prevent the submission of reviews for non-validated chapters and stories.
- In reviews.php on line 204 change "$tpl>" to "$tpl->". Missing "-" Thanks eyedam.
- More for reviews.php, replace line 316. Again thanks to eyedam.
- More in reviews.php, on line 307 change $level < 3 to $level <=3 so level 3 admins can delete reviews. More thanks to eyedam's sharp eye.
- Another change in reviews.php thanks to eyedam again. Replace line 202.
- One more in reviews.php. Goto line 292 and add the following lines directly beneath
if($result['member'] != $useruid && (!$adminloggedin && $level < 3)) {
$output = "<div style="text-align: center; margin: 2em;">"._NOTAUTHORIZED."</div>";
$tpl->assign("output", $output);
return;
}
- In admin/characters.php there were a number of changes from lines 66 to 93 (the "addform" section) Replace those lines.
- In admin/stories.php replace lines 118 to 160 (in the validate function) Does not change functionality, just cleans things up a bit and fixes the reported problem with the spacing in warnings lists
- In viewstory.php move line 369 up to line 357 (outside the if statement).
- In viewstory.php move line 369 up to line 357 (outside the if statement).
Would it be possible to know what that line was? I have modified my viewstory.php file so I have absolutely no idea what line 369 originally was.... or what line 357 previously was for that matter.
Thanks a lot!
Jacynthe
Archives: http://fanfics.e-authors.net
Version: 3.5.3
Modified? Somewhat...
PHP: 5.3.3
MySQL: 5.0.91-community
http://www.efiction.wallflowergirl.com/forums/index.php?topic=2973.0
Incase anyone wanted the post. After the upgrade of the forums it was lost. (Nice new look btw)
In viewstory.php move this line:
$tpl->assign( "numreviews", $numreviews );
Up about 7 or 8 lines until it's directly beneath:
$tpl->assign( "reviews", $reviews );
Thank you! π
Jacynthe
Archives: http://fanfics.e-authors.net
Version: 3.5.3
Modified? Somewhat...
PHP: 5.3.3
MySQL: 5.0.91-community
