Moogie wrote: Admin panel: Add Mav's code
before //main page add
if(is_array($_GET))
{
extract($_GET, EXTR_PREFIX_SAME, "get");
}
if(is_array($_POST))
{
extract($_POST, EXTR_PREFIX_SAME, "post");
}
I assume Mav's code will have no negative side effects for those who don't actually need it?
There was also mention of some problem in the admin panel for adding shops or updating items or something... I don't have this problem and didn't spot a fix. Anyone?
HQ: Add Mav's code
$action = ( isset($HTTP_POST_VARS['action']) ) ? htmlspecialchars($HTTP_POST_VARS['action']) : '';
after
$user_id = ( isset($HTTP_GET_VARS['user_id']) ) ? intval($HTTP_GET_VARS['user_id']) : 0;
I assume Mav's code will have no negative side effects for those who don't actually need it?
All PHP files: (is this really necessary in all files? ... or would a mention of it as a possible common fix be enough?)
Add
import_request_variables("gp");
after
define('IN_PHPBB', 1);
Moogie wrote: HQ: Add Mav's code
$action = ( isset($HTTP_POST_VARS['action']) ) ? htmlspecialchars($HTTP_POST_VARS['action']) : '';
after
$user_id = ( isset($HTTP_GET_VARS['user_id']) ) ? intval($HTTP_GET_VARS['user_id']) : 0;
Moogie wrote: Admin panel: Add Mav's code
before //main page add
if(is_array($_GET))
{
extract($_GET, EXTR_PREFIX_SAME, "get");
}
if(is_array($_POST))
{
extract($_POST, EXTR_PREFIX_SAME, "post");
}
Moogie wrote: All PHP files:
Add
import_request_variables("gp");
after
define('IN_PHPBB', 1);
Code: Select all
import_request_variables("gp", "");
AzNPyNoYBoY wrote: Is moogie still working on that additional quest mod???
Moogie wrote: Rick: Did you update usercp_viewprofile.php correctly?
Can't stop long now, lost connection while posting, so even less time now
Have almost finished my updates, including a page of common fixes. Will finish off & upload ASAP! Sorry 'bout the delay. Thanks for the replies to my list, most handy.
Anyone know which TD classes needed fixing, and in what?
No, I'm not working on the quest mod anymore, Nu's is better
Moogie wrote: Rick: Did you update usercp_viewprofile.php correctly?
Can't stop long now, lost connection while posting, so even less time now
Have almost finished my updates, including a page of common fixes. Will finish off & upload ASAP! Sorry 'bout the delay. Thanks for the replies to my list, most handy.
Anyone know which TD classes needed fixing, and in what?
No, I'm not working on the quest mod anymore, Nu's is better
#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/profile_add_body.tpl
#
#-----[ FIND ]------------------------------------------
#
<tr>
<td class="row2"><span class="genmed"><b>{L_TIMEZONE}:</b></span></td>
<td class="row1"><span class="gensmall">{TIMEZONE_SELECT}</b></span></td>
</tr>
#
#-----[ BEFORE, ADD ]------------------------------------------
#
<!-- BEGIN switch_class_select -->
<tr>
<td class="row2"><span class="genmed"><b>{L_CLASS_SELECT}:</b></span></td>
<td class="row1"><span class="gensmall">{CLASS_SELECT}</b></span></td>
</tr>
<!-- END switch_class_select -->
#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/profile_add_body.tpl
#
#-----[ FIND ]------------------------------------------
#
<tr>
<td class="row1"><span class="genmed"><b>{L_TIMEZONE}:</b></span></td>
<td class="row2"><span class="gensmall">{TIMEZONE_SELECT}</b></span></td>
</tr>
#
#-----[ BEFORE, ADD ]------------------------------------------
#
<!-- BEGIN switch_class_select -->
<tr>
<td class="row1"><span class="genmed"><b>{L_CLASS_SELECT}:</b></span></td>
<td class="row2"><span class="gensmall">{CLASS_SELECT}</b></span></td>
</tr>
<!-- END switch_class_select -->
play-fo wrote: Hey you guys,
I have been searching for an easy to install RPG/Item/etc system...
however when I want to install I really lose track of all the things to do..
Can anyone help me?
I really need some help installing this MOD(s)
Code: Select all
#
#-----[ OPEN ]------------------------------------------
#
admin/admin_shop.php
#
#-----[ FIND ]------------------------------------------
#
$sql = "insert into phpbb_shopitems (name, shop, sdesc, ldesc, cost, startprice, raise, stock, startstock, maxstock, sold, type, class, battle_effect, mp_cost, cauldron) values('$item', '$shopname', '$shortdesc', '$longdesc', '$price', '$price', '0', '$stock', '$stock', '$maxstock', '0', '$type', '$newclasslist', '$battle_effect', '$mpcost', '$cauldron')";
#
#-----[ REPLACE WITH ]------------------------------------------
#
$sql = "insert into phpbb_shopitems (name, shop, sdesc, ldesc, cost, stock, maxstock, sold, accessforum, type, class, battle_effect, mp_cost, cauldron) values('$item', '$shopname', '$shortdesc', '$longdesc', '$price', '$stock', '$maxstock', '0', '$forumaccess', '$type', '$newclasslist', '$battle_effect', '$mpcost', '$cauldron')";
#
#-----[ FIND ]------------------------------------------
#
if ((!is_null($sold)) && (is_numeric($sold)) && ($sold != $row['sold'])) { $sql[] = "update phpbb_shopitems set sold='$longdesc' where name='$shopitem'"; }
#
#-----[ AFTER, ADD ]------------------------------------------
#
if ((!is_null($forumaccess)) && (is_numeric($forumaccess)) && ($forumaccess != $row['accessforum'])) { $sql[] = "update phpbb_shopitems set accessforum='$forumaccess' where name='$shopitem'"; }
#
#-----[ FIND ]------------------------------------------
#
<input type=\"text\" name=\"maxstock\" size=\"32\" maxlength=\"3\"></span></td></tr>
#
#-----[ AFTER, ADD ]------------------------------------------
#
<tr><td class=\"row2\"><span class=\"gensmall\">Access Forum ID</span></td><td class=\"row2\"><input name=\"forumaccess\" type=\"text\" size=\"32\" maxlength=\"4\" value=\"".$row['accessforum']."\"></td></tr>
#
#-----[ FIND ]------------------------------------------
#
<input name=\"sold\" type=\"text\" size=\"32\" maxlength=\"5\" value=\"".$row['sold']."\"></td></tr>
#
#-----[ AFTER, ADD ]------------------------------------------
#
<tr><td class=\"row2\"><span class=\"gensmall\">Access Forum ID</span></td><td class=\"row2\"><input name=\"forumaccess\" type=\"text\" size=\"32\" maxlength=\"4\" value=\"".$row['accessforum']."\"></td></tr>