Version: , by crzyone9584
Developer Last Online: May 2014
Version: Unknown
Rating:
Released: 01-14-2012
Last Update: Never
Installs: 0
No support by the author.
I'm getting the following error after I edited the index.php as the instructions tellyou to for using forum.php.
Quote:
Notice: Undefined index: module in C:\HostingSpaces\xx\wwwroot\index.php on line 3 Notice: Use of undefined constant act - assumed 'act' in C:\HostingSpaces\xxx\wwwroot\index.php on line 42 Notice: Use of undefined constant autocom - assumed 'autocom' in C:\HostingSpaces\xxx\wwwroot\index.php on line 43 Notice: Undefined index: autocom in C:\HostingSpaces\xxx\wwwroot\index.php on line 43 Notice: Use of undefined constant showuser - assumed 'showuser' in C:\HostingSpaces\xxx\wwwroot\index.php on line 44 Notice: Undefined index: showuser in C:\HostingSpaces\xxx\wwwroot\index.php on line 44
Anyone have any idea about going about and fixing this error?
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
case "saveGame":
$_GET['do'] = "pnFSaveGame";
break;
case "loadGame":
$_GET['do'] = "pnFLoadGame";
break;
case "loadGameScores":
$gid = $vbulletin->input->clean_gpc('p', 'gid', TYPE_INT);
$uid= $vbulletin->userinfo['userid'];
$game = $db->query_first("SELECT * FROM " . TABLE_PREFIX . "games_scores WHERE mid=$uid AND gid = $gid ORDER BY score DESC LIMIT 0,1");
$scores = $game[score];
if($scores != false)
{
//Return true
print "&opSuccess=true&gameScores=$scores&endvar=1"; //send endvar to keep opSuccess separate from all other output from PostNuke
}
else
{
print "&opSuccess=false&error=Error&endvar=1";
}
break;
}
}
/**
* If you want to move this file to the root of your website, change this
* line to your vBulletin directory and uncomment it (delete the //).
*
* For example, if vBulletin is installed in '/forum' the line should
* state:
*
* define('VB_RELATIVE_PATH', 'forum');
*
* Note: You may need to change the cookie path of your vBulletin
* installation to enable your users to log in at the root of your website.
* If you move this file to the root of your website then you should ensure
* the cookie path is set to '/'.
*
* See 'Admin Control Panel
* ->Cookies and HTTP Header Options
* ->Path to Save Cookies
*/
//define('VB_RELATIVE_PATH', 'forums');
// Do not edit.
if (defined('VB_RELATIVE_PATH'))
{
chdir('./' . VB_RELATIVE_PATH);
}
/**
* You can choose the default script here. Uncomment the appropriate line
* to set the default script. Note: Only uncomment one of these, you must
* add // to comment out the script(s) that you DO NOT want to use as your
* default script.
*
* You can choose the default script even if you do not plan to move this
* file to the root of your website.
*/
I'm getting the following error after I edited the index.php as the instructions tellyou to for using forum.php.
Anyone have any idea about going about and fixing this error?
What text editor are you using?
The plain notepad will add characters to php files you can't see but will mess up the code. Use TextEdit or another compatible text editor for editing php files. With one of these you will be able to see and remove these extra lines/characters.
I'm not at home so I used the web browser to edit the file. I forgot about not using the right editor. Thanks for the help. I'll be home tomorrow and use notepad++ to edit the file and hopefully correct the issue.