|
Moogie's phpBB Modifications - Common Problems/Fixes
Though for the most part this MOD seems to work just fine, some users have experienced difficulties due to server settings, or other incompatible MODs. Here are some common problems and solutions. You might also find these links helpful:
phpBB.com - Thread about this MOD
Forum with lots of tips & MODs for this MOD!
Information for making this MOD work with the Shop v. 2.0.6 (put together by Narc0sis, posted by Suede - thanks guys!)
The admin/HQ/some other page is blank (or doesn't do anything)!
Try adding this code (courtesy of Mav, thanks!), near the top of the relevant PHP file (after define('IN_PHPBB', TRUE);):
if(is_array($_GET))
{
extract($_GET, EXTR_PREFIX_SAME, "get");
}
if(is_array($_POST))
{
extract($_POST, EXTR_PREFIX_SAME, "post");
}
If that doesn't work, try one of these:
import_request_variables("gp");
OR
import_request_variables("gp", "");
I'm using the CashMOD and my users are gaining points/EXP for editing their posts!
Xore, who kindly provided the code to make this work with the CashMOD, recommends that you do the following:
"to fix this with moogie's, simply wrap the sql query that updates the points in an if clause like so... "
if ($mode != 'editpost' ) {
(sql update)
}
I think you'll find that needs to be done in includes/functions_post.php
When a user tries to use an item from their inventory, it always goes to a login page!
In your edited shop.php:
FIND:
if (file_exists($itemarray[$xe].".php") && $userdata[username] == $searchname) { $itemlinkstart = "<a href=\"".$itemarray[$xe].".php\">"; $itemlinkend = "</a>"; $itemlinktxt = "Click here to use... ";}
REPLACE WITH
if (file_exists($itemarray[$xe].".php") && $userdata[username] == $searchname) { $itemlinkstart = "<a href=\"".append_sid($itemarray[$xe].'.php')."\">"; $itemlinkend = "</a>"; $itemlinktxt = "Click here to use... ";}
When a user tries to use an item from their inventory, it tells them they don't have that item!
This could be several things, including a misnamed PHP file, a misnamed $itemname variable in the PHP file or a misnamed item. It is case sensitive and so you should make sure they are all identical in case. However, you may find this helps... In your edited shop.php:
FIND:
<td class=\"row2\"><span class=\"gensmall\"><a href=\"shop_iteminfo.php?action=displayitem&item=".ucwords($itemarray[$xe])."\">".ucwords($itemarray[$xe])."</A></span></td>
REPLACE WITH:
<td class=\"row2\"><span class=\"gensmall\"><a href=\"shop_iteminfo.php?action=displayitem&item=".$itemarray[$xe]."\">".ucwords($itemarray[$xe])."</A></span></td>
back to main page
|