![]() |
Error after editing Index.php
I'm getting the following error after I edited the index.php as the instructions tellyou to for using forum.php.
Quote:
|
At the very beginning of the File, right after
---------------------------------------------------------- <?php add the code |
I did. And this is what happened.
|
paste over your code
leave out the top vb info in the ########### # # ########### |
<?php
// ibProArcade if($_POST['module'] == "pnFlashGames") { require_once('./global.php'); switch($_POST['func']) { case "storeScore": $_GET['act'] = "Arcade"; $_GET['module'] = "arcade"; $_GET['do'] = "pnFStoreScore"; break; 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; } } $act = $_GET[act]; $autocom = $_GET[autocom]; $showuser= $_GET[showuser]; if($act == "Arcade" || $autocom=="arcade") { include "arcade.php"; exit(); } if(!empty($showuser) && $showuser >= 1) { $u = $showuser; $_GET[u] = $showuser; include "member.php"; exit(); } // end of ibProArcade /** * 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. */ /** * Use the CMS as the default script: */ require('content.php'); /** * Use the forum as the default script: */ //require('forum.php'); |
Im stumped
try this in this line Code:
//define('VB_RELATIVE_PATH', 'forums'); and add the full path to your forums root dir.. and see if that helps did you also try with out the edit completely |
Quote:
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. |
correct
I use editplus for years keeps the format of the file |
Quote:
I've found this to be a lesson many don't know, thought I would bring it up. Carry on. |
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.
|
All times are GMT. The time now is 09:54 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|