Posted: Thu Feb 17, 2005 11:21 am Post subject: Small code error in 0.2++ for nuke 7.6 users [solution]
Hi forahobby,
I uploaded your update 0.2++ to find a small error in the coding in the file custom_header.php, its nothing really but people not knowning what they are doing will be lost so...
At the top of your code you added:
############################################
## THIS FILE IS ONLY NEEDED FOR PHPNUKE 7.6+ INSTALLATIONS ##
############################################
This is now shown on the header of a website using it...
TEMP FIX:
move that pease of code under <?php so the code looks like this:
<?php
############################################
## THIS FILE IS ONLY NEEDED FOR PHPNUKE 7.6+ INSTALLATIONS ##
############################################
// Start Active Users for FlashGames
in that same file, "custom_header.php" my file is missing "?>" at the end of the file, or isnt that suposed to be there??
And another problem, I just upgraded my nuke from 7.5 to 7.6, and now the scores are no longer recored
Need help on that....
Kimmi _________________ pnFlashGames for PHPNUKE Translator
Thrill Xbox-HQ Experienced
Xbox Version: V1.1 Modded: Xecuter 2 lite
Joined: Feb 13, 2005 Posts: 138 Location: UK
Posted: Wed Feb 23, 2005 11:36 am Post subject:
Kimmi wrote:
in that same file, "custom_header.php" my file is missing "?>" at the end of the file, or isnt that suposed to be there??
And another problem, I just upgraded my nuke from 7.5 to 7.6, and now the scores are no longer recored
Need help on that....
Kimmi
Custom_header.php is not suplied with php-nuke 7.6 you have to make a new php file and place it in the custom files folder with the needed code _________________ Mega Flash Game packs @ http://main.games4nuke.com
Kimmi V.I.P. Lifetime
Xbox Version: V1.1 Modded: Xecuter 2 lite
Joined: Jan 12, 2005 Posts: 9
Posted: Wed Feb 23, 2005 4:00 pm Post subject:
well, I have made the file Custom_header.php with the propper code, but still no scores are recorded...
help.. _________________ pnFlashGames for PHPNUKE Translator
Thrill Xbox-HQ Experienced
Xbox Version: V1.1 Modded: Xecuter 2 lite
Joined: Feb 13, 2005 Posts: 138 Location: UK
Posted: Wed Feb 23, 2005 4:09 pm Post subject:
Did you have an older version on before the 0.2++ version?
I did and when I uploaded the files I got no setting for updating I had to choose 'first install' from the options. I got a database table error because the older tables were in my database. I had to goto my database and remove the tables, then go back to my site and do a 'first install' again, got no errors and all is working fine on:
I just read you upgraded for nuke 7.5 to 7.6, I have noticed that the makers of nuke have changed alot about with the new 7.6 and maybe this is your problem, if having the flash games running on 7.5 then upgrading to 7.6...... Try stopping or removing the flash games and starting over. Fresh install of it...
Also just incase, custom_header.php does not go in the !ROOT! , place it here:
!ROOT!/includes/custom_files/ HERE
Good luck and if still having probs then maybe you need to PM 'forahobby' _________________ Mega Flash Game packs @ http://main.games4nuke.com
Kimmi V.I.P. Lifetime
Xbox Version: V1.1 Modded: Xecuter 2 lite
Joined: Jan 12, 2005 Posts: 9
Posted: Wed Feb 23, 2005 5:12 pm Post subject:
Now I have done a fresh install of v0.2++ and still no luck, I deleted all tables in my database, and made new once....
Ok thats an easy one ... Its the index.php in your !ROOT! Try mine...
There is a bit of code that makes the error your getting... I had the same problem here.. My index.php is from the old version of the games mod.. I had probs with the new needed code that you have to input into your index.php. If mine dont work use the code from the old mod version in index.php (ROOT) only. This will fix your prob.. I hope.
Forgot to tell 'forahobby' about this problem.. Thought it was just me, geuss not. Hope he reads this..
This is the needed code I use in my index.php (ROOT)
// Save Score for Old pnFlashGames Component
include("modules/Flash_Games/includes/oldcomponent.php");
global $prefix, $db, $admin_file;
$modpath = '';
$_SERVER['SCRIPT_NAME'] = "modules.php";
$row = $db->sql_fetchrow($db->sql_query("SELECT main_module from ".$prefix."_main"));
$name = $row['main_module'];
$home = 1;
Im pritty sure that this code was the sorce of the problems, and this is the working code.. _________________ Mega Flash Game packs @ http://main.games4nuke.com
|
All times are GMT |Page 1 of 1
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum