HQ NETWORK:   XBOX ONE |  XBOX 360 |  AIDELUXE HQ Network: 8,668 | Guests: 1416 | Members: 0 


   Current Location: Forums New Game - Fursan al-Aqsa - Knights of al-Aqsa Mosque   |   Old Xbox boot but wont load games or MS Dashboard   |   New google drive   |   Which modchip is this?   |   Anyone here capable or interested in restarting XBConnect?   |   Error code 05   |   original xbox with 0 memory   |   Why cell damage is low with ratings   |   Xbox-Hq.Com VIP Member Testimonials   |   XBHD: A Full-Featured Original Xbox Adapter from EON Gaming,   |   
  Home | Active Topics | CD/DVD Media | Downloads | Forums | Feedback | Games | HardDrives | Homebrew | My Profile | ModChips | Reviews | Search | SoftMods | Tutorials

Xbox Forums

Discuss all aspects of the original Xbox Console in our Interactive Xbox Forums..

Get Xbox Game Pass Ultimate
Xbox-Hq.Com :: View topic - PHPNUKE v7.6 Active Gamers [Solution] (no my_header.php)
Xbox-Hq.Com Forum Index -> pnFlashGames Project
Post new topic Reply to topic  Goto page 1, 2  Next  
 PHPNUKE v7.6 Active Gamers [Solution] (no my_header.php) View previous topic :: View next topic  
 
 
 
 
Thrill
Xbox-HQ Experienced
Xbox-HQ Experienced

Xbox Version: V1.1
Modded: Xecuter 2 lite

Joined: Feb 13, 2005
Posts: 138
Location: UK

Post Posted: Tue Feb 15, 2005 1:31 am   
Post subject: PHPNUKE v7.6 Active Gamers [Solution] (no my_header.php)
Reply with quote
 
I upgraded your mod from 0.4beta to VIP++ all seems to be working ok, after a couple of problems I ran into.

I just cant seem to get the Active Gamers part of the mod to list online players? I have 3 pc's here at home and logged onto my site with 2 of the computers using diffrent accounts opened a game but 0 players listed as playing?

Any ideas?

Im running PHP-Nuke 7.6.0.2.8 with pnFlashGames v0.1plusplus(++)

_________________
Mega Flash Game packs @ http://main.games4nuke.com


View user's profile Send private message Send e-mail Visit poster's website
 
 
 
 
Thrill
Xbox-HQ Experienced
Xbox-HQ Experienced

Xbox Version: V1.1
Modded: Xecuter 2 lite

Joined: Feb 13, 2005
Posts: 138
Location: UK

Post Posted: Tue Feb 15, 2005 2:03 am   
Post subject:
Reply with quote
 
One thing I have noticed is with phpnuke 7.6 I have no my_header.php in root/includes/

The mod comes with that file and says it needs to be replaced! This must be a file name change or something in nuke 7.6 for the my_header.php...
Any ideas where this peace of needed code goes now??

_________________
Mega Flash Game packs @ http://main.games4nuke.com


View user's profile Send private message Send e-mail Visit poster's website
 
 
 
 
forahobby
Administrator
Administrator


Joined: May 22, 2003
Posts: 23944
Location: NSW, Australia

Post Posted: Tue Feb 15, 2005 2:10 am   
Post subject:
Reply with quote
 
Hi mate,

i cant see why phpnuke would have removed this feature as it is needed.
Anyway, heres a copy of the file that called includes/my_header.php

open your 'header.php' file in the ROOT of your phpnuke installation and find this code:

Code:
function head() {
    global $slogan, $sitename, $banners, $nukeurl, $Version_Num, $artpage, $topic, $hlpfile, $user, $hr, $theme, $cookie, $bgcolor1, $bgcolor2, $bgcolor3, $bgcolor4, $textcolor1, $textcolor2, $forumpage, $adminpage, $userpage, $pagetitle;
    $ThemeSel = get_theme();
    include("themes/$ThemeSel/theme.php");
    include("includes/meta.php");
    include("includes/javascript.php");

[b]    include("includes/myheader.php");[/b]



    themeheader();
}


i have put the line in bold so you know the one that is missing and needed.
Once you add this line to your header.php everyhing should work fine.

enjoy.

forahobby
http://www.xbox-hq.com

_________________
HQ Network:
www.xbox-hq.com | www.xboxone-hq.com | www.360-hq.com | www.c64-hq.com


View user's profile Send private message Send e-mail Visit poster's website
 
 
 
 
Thrill
Xbox-HQ Experienced
Xbox-HQ Experienced

Xbox Version: V1.1
Modded: Xecuter 2 lite

Joined: Feb 13, 2005
Posts: 138
Location: UK

Post Posted: Tue Feb 15, 2005 2:40 am   
Post subject:
Reply with quote
 
Ok, with some nosing about the area of code you said, my code was going on about a file called:

custom_header.php

located @ root/includes/custom_files/

When going there to look there was no file...So this got me thinking that maybe this was the file I had been looking for..maybe..lol I renamed my_header.php to custom_header.php and dropped it in the custom folder, bingo! the active gamer is kind of working Laughing

I now get errors on me site located on me header...lol 3 errors:

Warning: main(ipban.php): failed to open stream: No such file or directory in /home2/sub002/sc10288/www/includes/custom_files/custom_header.php on line 15

Warning: main(ipban.php): failed to open stream: No such file or directory in /home2/sub002/sc10288/www/includes/custom_files/custom_header.php on line 15

Warning: main(): Failed opening 'ipban.php' for inclusion (include_path='.:/usr/local/lib/php') in /home2/sub002/sc10288/www/includes/custom_files/custom_header.php on line 15

Could you shine some light on this as im no php writter and im in deep! Rolling Eyes

Oh well hope this helps you on a new update of patch for support for PHP-Nuke 7.6.0.2.8

P.S. all games working fine and all scores submitting Cool

_________________
Mega Flash Game packs @ http://main.games4nuke.com


View user's profile Send private message Send e-mail Visit poster's website
 
 
 
 
forahobby
Administrator
Administrator


Joined: May 22, 2003
Posts: 23944
Location: NSW, Australia

Post Posted: Tue Feb 15, 2005 2:59 am   
Post subject:
Reply with quote
 
Are you sure your custom_header.php file had nothing in it.. You dont want to overwrite it unless you are positive it has nothing in it. I would just open the my_header.php i have included and then copy and paste the code from that directly in your /!ROOT/includes/custom_files/custom_header.php file..

Man.. phpnuke 7.6 eh.. I cant believe that they would change so much and am very un-impressed if they have. Are you positive you are using the real PHPNUKE v7.6..?? Ill have to go and download this now.. I dont actually have the time because i have work and to support thousands of xbox users etc etc.

phpnuke 7.6..:
That means that every module written for previous versions of nuke will never work on your site ever. Most require a my_header.php file.
what a nightmare.

l8r

forahobby
http://www.xbox-hq.com

_________________
HQ Network:
www.xbox-hq.com | www.xboxone-hq.com | www.360-hq.com | www.c64-hq.com


View user's profile Send private message Send e-mail Visit poster's website
 
 
 
 
forahobby
Administrator
Administrator


Joined: May 22, 2003
Posts: 23944
Location: NSW, Australia

Post Posted: Tue Feb 15, 2005 3:03 am   
Post subject:
Reply with quote
 
btw.,. I tried to register on your site yesterday and still no email activation.. Can you turn on the FlashGames so visitors can browse them.. I cant see how it looks.

anyway, your nearly there.. This small problem will be simple to fix BUT AFTER TWEAKING!

l8r

forahobby
http://www.xbox-hq.com

_________________
HQ Network:
www.xbox-hq.com | www.xboxone-hq.com | www.360-hq.com | www.c64-hq.com


View user's profile Send private message Send e-mail Visit poster's website
 
 
 
 
Thrill
Xbox-HQ Experienced
Xbox-HQ Experienced

Xbox Version: V1.1
Modded: Xecuter 2 lite

Joined: Feb 13, 2005
Posts: 138
Location: UK

Post Posted: Tue Feb 15, 2005 3:11 am   
Post subject:
Reply with quote
 
Man...

Well as i put there was no such file in the custom folder, nor was there a my_header.php in my install of php nuke 7.6...wire.

anyway games mod open to all..

_________________
Mega Flash Game packs @ http://main.games4nuke.com


View user's profile Send private message Send e-mail Visit poster's website
 
 
 
 
forahobby
Administrator
Administrator


Joined: May 22, 2003
Posts: 23944
Location: NSW, Australia

Post Posted: Tue Feb 15, 2005 3:17 am   
Post subject:
Reply with quote
 
hi,

alright! Smile

Now the error you getting is this:
Code:
Warning: main(ipban.php): failed to open stream: No such file or directory in /home2/sub002/sc10288/www/includes/custom_files/custom_header.php on line 15


I will copy and paste the exact code you should have in your 'custom_header.php' file ok.. Make sure you have this and only this:

Code:
// Start Active Users for FlashGames
$content = "";
global $user, $themesel, $cookie, $prefix, $user_prefix, $dbi, $anonymous,$name,$REQUEST_URI;
cookiedecode($user);
$ip = getenv("REMOTE_ADDR");
$username = $cookie[1];

if (!isset($username)) {
    $username = "$ip";
    $guest = 1;
}
$past = time()-1200;

sql_query("DELETE FROM $prefix"._flashgames_activeusers." WHERE time < $past", $dbi);
$result = sql_query("SELECT time FROM $prefix"._flashgames_activeusers." WHERE username='$username'", $dbi);
$ctime = time();
if ($row = sql_fetch_array($result, $dbi)) {
    sql_query("UPDATE $prefix"._flashgames_activeusers." SET username='$username', time='$ctime', host_addr='$ip', guest='$guest',module='$name',url='$REQUEST_URI' WHERE username='$username'", $dbi);
} else {
    sql_query("INSERT INTO $prefix"._flashgames_activeusers." (username, time, host_addr, guest,module,url) VALUES ('$username', '$ctime', '$ip', '$guest','$name','$REQUEST_URI')", $dbi);
}

// End Active Users for FlashGames



just double check thats all that is in your 'custom_header.php' file..

_________________
HQ Network:
www.xbox-hq.com | www.xboxone-hq.com | www.360-hq.com | www.c64-hq.com


View user's profile Send private message Send e-mail Visit poster's website
 
 
 
 
Thrill
Xbox-HQ Experienced
Xbox-HQ Experienced

Xbox Version: V1.1
Modded: Xecuter 2 lite

Joined: Feb 13, 2005
Posts: 138
Location: UK

Post Posted: Tue Feb 15, 2005 3:22 am   
Post subject:
Reply with quote
 
ok done.....
_________________
Mega Flash Game packs @ http://main.games4nuke.com


View user's profile Send private message Send e-mail Visit poster's website
 
 
 
 
forahobby
Administrator
Administrator


Joined: May 22, 2003
Posts: 23944
Location: NSW, Australia

Post Posted: Tue Feb 15, 2005 3:25 am   
Post subject:
Reply with quote
 
so is that all sweet?? Im trying to register again now..
It looks nice on your site too let me say! Smile

enjoy

forahobby
http://www.xbox-hq.com

_________________
HQ Network:
www.xbox-hq.com | www.xboxone-hq.com | www.360-hq.com | www.c64-hq.com


View user's profile Send private message Send e-mail Visit poster's website
 
 
 
 
Thrill
Xbox-HQ Experienced
Xbox-HQ Experienced

Xbox Version: V1.1
Modded: Xecuter 2 lite

Joined: Feb 13, 2005
Posts: 138
Location: UK

Post Posted: Tue Feb 15, 2005 3:27 am   
Post subject:
Reply with quote
 
thx altho its your work Wink Just need to fix the colouring in the active gamers, remove the white and set the same as site...then im done.. 100% working on nuke 7.6
_________________
Mega Flash Game packs @ http://main.games4nuke.com


View user's profile Send private message Send e-mail Visit poster's website
 
 
 
 
forahobby
Administrator
Administrator


Joined: May 22, 2003
Posts: 23944
Location: NSW, Australia

Post Posted: Tue Feb 15, 2005 3:32 am   
Post subject:
Reply with quote
 
when you happy and done any chance you could zip up the files which you changed to work with phpnuke 7.6??? Then you can attach the file to this topic here by using the file attachments below.. Smile

Is that ok? It will just help others in the future too..

thanks for replying and im very pleased to see your site 100% functional like i knew it would be.

l8r

forahobby (kent)
http://www.xbox-hq.com

_________________
HQ Network:
www.xbox-hq.com | www.xboxone-hq.com | www.360-hq.com | www.c64-hq.com


View user's profile Send private message Send e-mail Visit poster's website
 
 
 
 
Thrill
Xbox-HQ Experienced
Xbox-HQ Experienced

Xbox Version: V1.1
Modded: Xecuter 2 lite

Joined: Feb 13, 2005
Posts: 138
Location: UK

Post Posted: Tue Feb 15, 2005 3:35 am   
Post subject:
Reply with quote
 
yeah no probs will do... thx again sorry to keep you Smile your accout is open..
_________________
Mega Flash Game packs @ http://main.games4nuke.com


Last edited by Thrill on Tue Feb 15, 2005 3:38 am; edited 1 time in total


View user's profile Send private message Send e-mail Visit poster's website
 
 
 
 
forahobby
Administrator
Administrator


Joined: May 22, 2003
Posts: 23944
Location: NSW, Australia

Post Posted: Tue Feb 15, 2005 3:37 am   
Post subject:
Reply with quote
 
i will login now and change.. Thanks.

talk soon

FH
http://www.xbox-hq.com

_________________
HQ Network:
www.xbox-hq.com | www.xboxone-hq.com | www.360-hq.com | www.c64-hq.com


View user's profile Send private message Send e-mail Visit poster's website
 
 
 
 
Thrill
Xbox-HQ Experienced
Xbox-HQ Experienced

Xbox Version: V1.1
Modded: Xecuter 2 lite

Joined: Feb 13, 2005
Posts: 138
Location: UK

Post Posted: Tue Feb 15, 2005 4:03 am   
Post subject:
Reply with quote
 
Ok tried my best and it didn't work... Fixing the bg colour and font colour for active members @ top of games page.. its white & font white??
also when you open active gamers page and it lists all member playing, got the bg to match but the font is the same colour??

bg colour my site uses is bgcolor=#212121
Font colour will do as a light gray..

Can you help when you get time... no rush.

_________________
Mega Flash Game packs @ http://main.games4nuke.com


View user's profile Send private message Send e-mail Visit poster's website
 
Display posts from previous:   
  Post new topic  
 
  Reply to topic  
Goto page 1, 2  Next |
 All times are GMT | Page 1 of 2
Jump to:  
 

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
 


Get Xbox Game Pass Ultimate