// Copyright 2011 Brandon Amaro (omega13a@yahoo.com)
// http://urcreative.hobby-site.com
// ----------------------------------------------------------------------
// LICENSE
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License (GPL)
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.
//
// To read the license please visit http://www.gnu.org/copyleft/gpl.html
// ----------------------------------------------------------------------

Before installing this module you need to make a change to reviews.php

In reviews.php, find the following line:

if(empty($reviews['respond']) && (USERUID == $authoruid || (isset($coauthors) && in_array(USERUID, $coauthors)))) $adminlink .= " [<a href=\"user.php?action=revres&amp;reviewid=".$reviews['reviewid']."\">"._RESPOND."</a>]";

and add afterwards this:

		if (function_exists('load_codeblocks'))
		{
			$array = load_codeblocks('revadminlink');
			foreach ($array AS $row)
			{
				eval($row['code_text']);
			}
		}
		else
		{
			$query2 = dbquery("SELECT * FROM ".TABLEPREFIX."fanfiction_codeblocks WHERE code_type = 'revadminlink'");
			while ($code2 = dbassoc($query2))
			{
				eval($code2['code_text']);
			}
			if (function_exists('dbfreeresult'))
			{
				dbfreeresults($query2);
			}
		}
		
To install this module:

1. Upload the entire betareader folder to the the modules folder within your 
eFiction installation.

2. Go to Admin->Modules and select "Install this Module" in the menu.

To uninsall this module:

1. Go to Admin->Modules and select "Uninstall this Module" in the menu.