http://www.icyphoenix.com/viewtopic.php?f=28&t=6376
-----------------------------------
redrumm101
Thu 27 Aug, 2009 23:36

NUKE LADDER
-----------------------------------
I have been searching the internet trying to find a Gaming Ladder Script. I finally found one called Nuke Ladder found [url=http://www.pxn.ca/downloads/index.php?path=Php+Scripts%2FNukeladder+Files%2FNukeladder+V2.5/]HERE . Before i even got started on this i was wondering if anyone has tryed to adapt this to the newest version of IP? Since it was a mod for PHPBB Does anyone think this is possible and if so where would i start..


-----------------------------------
spydie
Thu 27 Aug, 2009 23:46

Re: NUKE LADDER
-----------------------------------
should be possible.

have a look at the HOW TO section.

There´s a sticky from MG telling us what code to change to convert from PHPBB3 to ICY

I think the code changes aply to other CMS aswell.

Well anyway there´s a guide that might be aplyable


-----------------------------------
redrumm101
Fri 28 Aug, 2009 02:01

Re: NUKE LADDER
-----------------------------------
Ty bro i will look into that. If i can get it to work i will post it back. Im sure some gamers will be interested in having this for there site as well. If anyone else knows of any free ladder scripts Let me know thanks.,..


-----------------------------------
Lopalong
Fri 28 Aug, 2009 08:36

Re: NUKE LADDER
-----------------------------------
Apparently the Nuke Ladder comes as a Free Demo, but the Full version is licensed.

http://www.needscripts.com/Resource/23651.html

To convert any of it to Icy Phoenix IMHO would be Piracy.  :censored:


-----------------------------------
Chaotic
Fri 28 Aug, 2009 18:37

Re: NUKE LADDER
-----------------------------------
[quote]Hey everybody, things have been busy for us over the past while and havent had time to take care of a bunch of the sites that were running. 

[b]Nukeladder is now free, click the downloads button to go download the packages. Sorry we cannot offer any support or modifications at this time.Have fun with the code, do as you wish with it besides reselling it.[/b]

Beta registration for our latest project is about to go live soon. so stay tuned for more information and your chance to get in on the early action.[/quote]

I don't think converting it to Icy Phoenix will be a problem. :)


-----------------------------------
redrumm101
Fri 28 Aug, 2009 19:37

Re: NUKE LADDER
-----------------------------------
Yeh its now a free version. I started by adding the nukeladder.php to the cms pages.i have commented this code out in the nukeladder.php original file
[code linenumbers=false]//define('IN_PHPBB', true);  
//$phpbb_root_path = './'; 
//include($phpbb_root_path . 'extension.inc');  
//include($phpbb_root_path . 'common.'.$phpEx);
[/code]

And replaced it with the index_empty.php

Looks like this now

[code linenumbers=false]
define('X1plugin_include', true);
# PHPBB StartUp
define('IN_CMS_PAGE', true);
define('IN_ICYPHOENIX', true);
if (!defined('IP_ROOT_PATH')) define('IP_ROOT_PATH', './');
if (!defined('PHP_EXT')) define('PHP_EXT', substr(strrchr(__FILE__, '.'), 1));
include(IP_ROOT_PATH . 'common.' . PHP_EXT);
include(IP_ROOT_PATH . 'includes/new_page_common.' . PHP_EXT);
//define('IN_PHPBB', true);  
//$phpbb_root_path = './'; 
//include($phpbb_root_path . 'extension.inc');  
//include($phpbb_root_path . 'common.'.$phpEx);  
$userdata = session_pagestart($user_ip, 0);  
init_userprefs($userdata);    
$page_title = 'NukeLadder'; 
[/code]

So far i just get an emtpy page when i go there. kinda like when you add an index_emtpy.php file.

Here is the original file code to the nukeladder.php

[code linenumbers=false]
<?php
###############################################################
# X1plugin Competition Management
# File::index.php
# File Version::2.5.5 
# Homepage::http://www.projectxnetwork.com
# Copyright:: Shane Andrusiak
###############################################################
define('X1plugin_include', true);
# PHPBB StartUp
define('IN_PHPBB', true);  
$phpbb_root_path = './'; 
include($phpbb_root_path . 'extension.inc');  
include($phpbb_root_path . 'common.'.$phpEx);  
$userdata = session_pagestart($user_ip, 0);  
init_userprefs($userdata);    
$page_title = 'NukeLadder'; 

# Load X1 Config
require_once("NukeLadder/config.php");

# Load AdodbLite if Requested
if(X1_useadodblite) require_once(X1_plugpath.'/adodb/adodb.inc.php');

# Load  Language Definitions
require_once(X1_langpath."/".X1_adminlang."/admin_lang.php");
require_once(X1_langpath."/".X1_corelang."/core_lang.php");

# Load Integration Functions
require_once(X1_plugpath."/integrate.php");

# Load System Functions
require_once(X1_plugpath."/core/system/system_selectboxes.php");
require_once(X1_plugpath."/core/system/system_functions.php");
require_once(X1_plugpath."/core/system/system_paginate.php");

# Load Admin Functions
function X1_require_admin(){
	if(check_admin()){
		require_once(X1_plugpath."/core/admin/admin_disputes.php");
		require_once(X1_plugpath."/core/admin/admin_config.php");
		require_once(X1_plugpath."/core/admin/admin_index.php");
		require_once(X1_plugpath."/core/admin/admin_games.php");
		require_once(X1_plugpath."/core/admin/admin_events.php");
		require_once(X1_plugpath."/core/admin/admin_matches.php");
		require_once(X1_plugpath."/core/admin/admin_teams.php");
		require_once(X1_plugpath."/core/admin/admin_maps.php");
		require_once(X1_plugpath."/core/admin/admin_mapgroups.php");
		require_once(X1_plugpath."/core/admin/admin_config.php");
		require_once(X1_plugpath."/core/admin/admin_challenges.php");
	}else{
		die("Go Away");
	}
}

#pseudo cron
expire_challenges();
$op = $_REQUEST[X1_actionoperator];
if(!defined('X1_cookiename'))define('X1_cookiename', "team");
# Header
include($phpbb_root_path . 'includes/page_header.'.$phpEx); 
opentable();
# Menu
# Custom Menu
if(X1_custommenu)require_once(X1_plugpath."/core/system/".X1_custommenu_inc);
# Load Switch
require_once(X1_plugpath."/core/system/system_cases.php");
closetable();
# LinkBack
echo X1plugin_linkback();
# Footer
include($phpbb_root_path . 'includes/page_tail.'.$phpEx); 
?>
[/code]

I also have changed all the ($phpp_root_path) to (IP_ROOT_PATH)


-----------------------------------
spydie
Fri 28 Aug, 2009 19:46

Re: NUKE LADDER
-----------------------------------
OK now you´ve got to define the X!_root_path out aswell
like the IP_ROOT_PATH.

another thing 

find $phpEX

replace with PHP_EXT

and here you do this

require_once(X1_plugpath."/core/admin/admin_disputes.php");

replace with 

require_once(X1_plugpath.'/core/admin/admin_disputes.' . PHP_EXT);

and delete include php extensions.inc

that file is no longer requiered in IP 1.3


-----------------------------------
Chaotic
Fri 28 Aug, 2009 21:39

Re: NUKE LADDER
-----------------------------------
Are you two planning to port this to Icy Phoenix here?  If so, let's move this topic to the Customizations And MODS Discussion forum.

What say you?  8)


-----------------------------------
redrumm101
Fri 28 Aug, 2009 22:00

Re: NUKE LADDER
-----------------------------------
Yes CHAOTIC Could you please move it.  Thank you


[code linenumbers=false]
<?php
###############################################################
# X1plugin Competition Management
# File::index.php
# File Version::2.5.5 
# Homepage::http://www.projectxnetwork.com
# Copyright:: Shane Andrusiak
###############################################################
define('X1plugin_include', true);
# PHPBB StartUp
define('IN_CMS_PAGE', true);
define('IN_ICYPHOENIX', true);
if (!defined('IP_ROOT_PATH')) define('IP_ROOT_PATH', './');
if (!defined('PHP_EXT')) define('PHP_EXT', substr(strrchr(__FILE__, '.'), 1));
include(IP_ROOT_PATH . 'common.' . PHP_EXT);
include(IP_ROOT_PATH . 'includes/new_page_common.' . PHP_EXT);
//define('IN_PHPBB', true);  
//IP_ROOT_PATH = './'; 
//include(IP_ROOT_PATH . 'common.'.PHP_EXT );  
	// Start session management
$userdata = session_pagestart($user_ip, 0);  
init_userprefs($userdata);
	// End session management   
$cms_page_id = 'NukeLadder'; 
$page_title = 'NukeLadder'; 

# Load X1 Config
require_once("NukeLadder/config.php");

# Load AdodbLite if Requested
if(X1_useadodblite) require_once(X1_plugpath.'/adodb/adodb.inc.php');

# Load  Language Definitions
require_once(X1_langpath."/".X1_adminlang."/admin_lang.php");
require_once(X1_langpath."/".X1_corelang."/core_lang.php");

# Load Integration Functions
require_once(X1_plugpath."/integrate.php");

# Load System Functions
require_once(X1_plugpath."/core/system/system_selectboxes.php");
require_once(X1_plugpath."/core/system/system_functions.php");
require_once(X1_plugpath."/core/system/system_paginate.php");

# Load Admin Functions
function X1_require_admin(){
	if(check_admin()){
		require_once(X1_plugpath.'/core/admin/admin_disputes.' . PHP_EXT); require_once(X1_plugpath."/core/admin/admin_config.php");
		require_once(X1_plugpath."/core/admin/admin_index.php	");
		require_once(X1_plugpath."/core/admin/admin_games.php");
		require_once(X1_plugpath."/core/admin/admin_events.php");
		require_once(X1_plugpath."/core/admin/admin_matches.php");
		require_once(X1_plugpath."/core/admin/admin_teams.php");
		require_once(X1_plugpath."/core/admin/admin_maps.php");
		require_once(X1_plugpath."/core/admin/admin_mapgroups.php");
		require_once(X1_plugpath."/core/admin/admin_config.php");
		require_once(X1_plugpath."/core/admin/admin_challenges.php");
	}else{
		die("Go Away");
	}
}

#pseudo cron
expire_challenges();
$op = $_REQUEST[X1_actionoperator];
if(!defined('X1_cookiename'))define('X1_cookiename', "team");
# Header
include(IP_ROOT_PATH . 'includes/page_header.'.PHP_EXT ); 
opentable();
# Menu
# Custom Menu
if(X1_custommenu)require_once(X1_plugpath."/core/system/".X1_custommenu_inc);
# Load Switch
require_once(X1_plugpath."/core/system/system_cases.php");
closetable();
# LinkBack
echo X1plugin_linkback();
# Footer
include(IP_ROOT_PATH . 'includes/page_tail.'.PHP_EXT ); 
?>
[/code]

I Made these changes i think there is something possibly wrong with the page id. Can anyone help with that. Still showing a blank page. Thank you for all your guys help


-----------------------------------
spydie
Fri 28 Aug, 2009 22:30

Re: NUKE LADDER
-----------------------------------
all these line s there you call up core got """  try to put ' instaed of

and finish the line s like i indicated with the exampole ones


-----------------------------------
Lopalong
Sat 29 Aug, 2009 00:13

Re: NUKE LADDER
-----------------------------------
So it's free!  :mricy: 

From what I found out: The bridging file and the core files assumes that the default Db prefix is phpbb_ (Because that's what it was written for) and it doesn't appear to auto-detect the prefix.

If you install IP with that Db prefix, you'll probably find that things may become a little easier to start with.

Dunno' but I've got an opening screen up - And that's as far as I want go with this. ;)


-----------------------------------
spydie
Sat 29 Aug, 2009 00:31

Re: NUKE LADDER
-----------------------------------
ot

[quote]Don't PM or eMail me questions about Icy Phoenix code, mods or themes unless I ask you to - Because Your answer will be "Post it in the forums". [/quote]

Is this meant for me?? Like somethnig like a wing with a mast of a sailing boat???


-----------------------------------
Lopalong
Sat 29 Aug, 2009 00:47

Re: NUKE LADDER
-----------------------------------
It's not for anyone in particular. It's because I made PM's available while someone else and I are discussing something.

When we finish - The sig will be changed, and PM's no longer accepted. ;)


-----------------------------------
spydie
Sat 29 Aug, 2009 00:51

Re: NUKE LADDER
-----------------------------------
ot

No Prob.

havent thought of disturbing you anyway.

Got enough on my to do list.


-----------------------------------
redrumm101
Sat 29 Aug, 2009 03:19

Re: NUKE LADDER
-----------------------------------
So if i change my database from ip_ to phpbb_ and fix my config files to show that. Will that help out with this problem. If you got this to run on your site. What changes did you make if any. 

This is what i have done thus far. I have changed all my lines from

[code linenumbers=false]"/********.php");[/code]

And replaced it with

[code linenumbers=false]'/********.' . PHP_EXT); 

And did all the other things spidie listed above. Sorry spidie I was unclear about doing
them all I just thought you meant the ones you posted. Sorry still a little new at this..

I created a page in cms file name nukeladder.php than uploaded the file nukeladder.php to
my site here www.cisclan.com/nukeladder.php  And all i get is a blank IP page. I am going
to create a duplicate database with phpbb_ and try that to see if I can get an opening page. If you dont mind posting the code you used i would be greatly appreciative. thank you


-----------------------------------
spydie
Sat 29 Aug, 2009 03:22

Re: NUKE LADDER
-----------------------------------
question 

How big is that package your trying to convert ??

maybe you can zip it up and post it here.

I´ll give it a look tomorow.

It´s already 3.22 am here


-----------------------------------
redrumm101
Sat 29 Aug, 2009 04:43

Re: NUKE LADDER
-----------------------------------
Illl post it up gets some sleep. Thank you  again for all your help


-----------------------------------
Lopalong
Sat 29 Aug, 2009 05:48

Re: NUKE LADDER
-----------------------------------
Would you please quote your source, as that only indicates something that anyone could have written. ?

[quote user="Chaotic" post="43609"][quote]Hey everybody, things have been busy for us over the past while and havent had time to take care of a bunch of the sites that were running. 

[b]Nukeladder is now free, click the downloads button to go download the packages. Sorry we cannot offer any support or modifications at this time.Have fun with the code, do as you wish with it besides reselling it.[/b]

Beta registration for our latest project is about to go live soon. so stay tuned for more information and your chance to get in on the early action.[/quote]

I don't think converting it to Icy Phoenix will be a problem. :)[/quote]


[b]EDIT 1.:[/b]

[quote user="redrumm101" post="43640"]
 If you don't mind posting the code you used I would be greatly appreciative. thank you[/quote]

I'm changing too many little things at the moment to keep track of and what files and code I've made changes to.

Hang in there and I'll play some more and make the folders / files available.

I don't even say I'm on the right path to getting it fully working - But the pic shows where I'm up to at the moment.

By the way - The Db prefix I found is configurable in the config file  :oops: But I would be inclined to run with phpbb_ until the thing is working. ;)

 [img]http://www.icyphoenix.com/files/images/3531/untitled_2_1251521029_148966.png[/img]


[b]EDIT 2.:[/b]

We're getting there!  :mryellow: 

 [img]http://www.icyphoenix.com/files/images/3531/untitled_4_1251523586_447326.png[/img] [color=#00bfff][/color]

Permissions seem OK, Links - Url's OK so far - May try Database prefix change config next to see what happens. ;)

[b]EDIT 3.:[/b]

@ Chaotic - Never mind, I found it here. 

http://www.projectxnetwork.com/

[b]Click >[/b] Info  8) 

[b]Latest News:[/b]

Edited the install procedure, NukeLadder.php,  bridge file and config file so they use the default ip_ prefix during install. ;)

Stand By! for more.  :mryellow:


-----------------------------------
Mighty Gorgon
Sat 29 Aug, 2009 12:14

Re: NUKE LADDER
-----------------------------------
I think many gamers communities will like this customization.


-----------------------------------
Lopalong
Sat 29 Aug, 2009 12:45

Re: NUKE LADDER
-----------------------------------
Hehehe!

It's about ready for Beta-Testing.

It's still got a lot of html errors and warnings (Old markup etc) - Nothing that breaks it  - But you know what I'm like? - Done some, But eventually I'll get as many as I possibly can out of it! :P

Now I need to check it for outdated script - HTTP VARS etc, - Add the "Now Free" quote and the url to the TOS - Then I'll post it as a Beta. ;)





[b][i]Tomorrow![/i][/b]  :mryellow:


-----------------------------------
redrumm101
Sat 29 Aug, 2009 14:00

Re: NUKE LADDER
-----------------------------------
Wow Lopalong. You are awesome bro. Thank you for all your hard work on this..Yeh this is definetly huge for gamers like myself. Im sure it can be custimized to do other ladder type leagues as well cornhole, beer pong, golf, tennis etc etc...I LOVE IP.


-----------------------------------
elpulgas
Sat 29 Aug, 2009 14:16

Re: NUKE LADDER
-----------------------------------
Nice work!

This mod can be really useful for many sites  :mrgreen:


-----------------------------------
Lopalong
Sun 30 Aug, 2009 01:32

Re: NUKE LADDER
-----------------------------------
OK! Beta-Testers,

This is the first of what will no doubt need some cosmetic work done on it to blend it into IP.  :mryellow: 

But in the meantime it needs you people to test it out, because:

1. I ain't no expert with this. 
2. I ain't also a Gamer. :P

There are NO real install instructions written for it yet, but what you see below should be sufficient for "EXPERIENCED" testers to install it.

[code linenumbers=false]NukeLadder/config.php

###########################################
# DATABASE MAPPING OPTIONS
# The following tables define which prefixes and which database tables to use.
# If you have a default setup, most of these should remain as is.
# Some nuke users may need to change the prefix options
###########################################

#Use external adodb abstraction layer, NukeEvo 2.0.0+ set to false as it has built-in adodb
define('X1_useadodblite', true);

#main tables prefix
define('X1_prefix', 'nuke_'); 
#user table prefix
define('X1_userprefix', 'ip_'); // Change this to Your Icy Phoenix Database Prefix.


NukeLadder/integrate.php

# Icy Phoenix Users need to add your db details here.
$xdb_host = 'localhost'; // Your Database Server Address.
$xdb_db = 'mydb'; // Your Database Name.
$xdb_user = 'myname'; // Your Database User Name.
$xdb_pass = 'mypassword'; // Your Database Password


Add this to the theme overall_header.tpl etc.

<a href="{FULL_SITE_PATH}NukeLadder.php">Nuke Ladder</a>&nbsp;&nbsp;<img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />&nbsp;
[/code]
Note: This whole thing is FRONT-END driven - And you do need to be logged into the IP ACP to bring up the ADMIN functions on the Ladder page.

PS: There are no "real" help files with this, and I suspect that the help function would have taken one to the NukeLadder site forum or help docs.

Anyone want to see if they can track something down? ;)


-----------------------------------
spydie
Sun 30 Aug, 2009 01:38

Re: NUKE LADDER
-----------------------------------
that script in your post look´s like it uses an extra DB with nuke prefix

am i right Lopa.


-----------------------------------
Lopalong
Sun 30 Aug, 2009 01:49

Re: NUKE LADDER
-----------------------------------
Same DB - Different prefix - Much like integrating coppermine etc, etc. Could change  nuke_ to ip_ prefix - But why throw them into IP when it's not actually an integral part of it. ?

Also this exercise is for Beta Testing the Ladder itself to see if the thing works, and not questions about the code. Because even I don't fully understand it yet. :P


-----------------------------------
spydie
Sun 30 Aug, 2009 01:51

Re: NUKE LADDER
-----------------------------------
Anyway. Might be better to let it stay like that.

It´s easier to get rid of it aswell then


Edit :

strange thing, look´s like the download counter is stuck.

it say´s 0 and there´s been at least my download


-----------------------------------
Chaotic
Sun 30 Aug, 2009 04:49

Re: NUKE LADDER
-----------------------------------
This should be a nice addition to Icy Phoenix, Lopalong.

I've used [url=http://www.mygamingladder.com]MyGamingLadder.com software for some time now, but it was very pricey and buggy.  I can't forget to mention it wasn't integrated into a forum, but more of a standalone script.  If you get this working, I'm sure you'll see a lot of Icy Phoenix users using this gigantic MOD and perhaps including myself.  I'm just not too sure the interest for competition is still there in my community. :(

I'll give installing this beast a shot in a day or two.

Good luck and may this MOD, more like a monstrous ADD-ON, not drive you crazy. :lol:


-----------------------------------
Lopalong
Sun 30 Aug, 2009 08:03

Re: NUKE LADDER
-----------------------------------
@ spydie,

The reason the counter was still at zero is because I grabbed the wrong .zip which had other stuff in it that's better off if it's not. You were just too quick in downloading it. ;)

You should remove the one you downloaded and the script etc - And download a new copy.  :shock: 

@ chaotic.

Thanks but hopefully it should work "Out of the box" for you - Problem is that it doesn't have enough docs or instructions for each page / text area and what to put in where etc. :(

Something to overcome as time moves on. ;)

The other thing is that I may just "Pretty" it up with some of the Icy Phoenix .css and not try to integrate it into the themes.[b][i][u] TOO[/u][/i][/b] much of a [b][i]headache[/i][/b] with all the different styles to be doing that I've come to realise.

 :censored:

But! More importantly - You people need to test it - And possibley give some feedback on where instructions could or should be added. ;)


-----------------------------------
Chaotic
Sun 30 Aug, 2009 11:54

Re: NUKE LADDER
-----------------------------------
I'm sure we can write up a few FAQ/DOC'S for you to tag along with it. :)

I'll take notes as I'm playing around with it and post them here.


-----------------------------------
Lopalong
Sun 30 Aug, 2009 12:43

Re: NUKE LADDER
-----------------------------------
Thanks,

Doc-wise:

Couldn't find a thing on the web :(

Thought about emailing the author who has gone into obscurity - So that didn't help either. :(

Also looked for "Other" free ladder scripts - There ain't none?

If IP is going to have a "Games Ladder" then this is it. 

So hopefully, between me and anyone else who is interested, it can be turned into a great MOD.  :mricy:

I know I wont have all the answers - So it leaves it open for those a hell of a lot smarter than me to pick up where I leave off. :P


-----------------------------------
DWho
Sun 30 Aug, 2009 14:09

Re: NUKE LADDER
-----------------------------------
post here any problems and i will have a look as well

looks like a grweat mod.. that can have different uses too


-----------------------------------
Lopalong
Sun 30 Aug, 2009 14:16

Re: NUKE LADDER
-----------------------------------
[quote user="DWho" post="43835"]post here any problems and i will have a look as well[/quote]

You betcha! I will. ;)


-----------------------------------
redrumm101
Sun 30 Aug, 2009 15:11

Re: NUKE LADDER
-----------------------------------
Thank you very much lopalong. I will start on the beta testin now. I will also try and get some faq's down for you. This is a huge Help. Im glad you were willing to take a look at it. I have been working on tryinfg to get this to work for about a week. I dont know enough about the ip code to do it I really appreciate it and the rest of my clan and other clans who been asking me to do this will be happy as well. Thank you again. Will report back later after testing... Thank you


-----------------------------------
redrumm101
Mon 31 Aug, 2009 23:20

Re: NUKE LADDER
-----------------------------------
Ok first problem i ran into while trying to create map groups


SECURITY ALERT » » » » 
CBACK CrackerTracker has detected a potential attack on this site with a worm or exploit script so the Security System stopped the script. 


If you can see this page after including a new MOD into your board or after clicking on a link please contact the Board Administrator with this error message and a description what you have done before you could see this page, that the Admin has the possibility to fix the problem.

----------------------------------------------------------------------------------------


Second Problem Trying to activate the team it says you Error Login before you use this feature. It seems to be using a separate user account (nuke_userteams) in mysql. But it sees you for admin when you login to acp.

I am logged in to the acp and i can see the admin drop down.
thank you here is a pic of it

link to pic [url=http://www.cisclan.com/images/login.bmp]PICTURE OF SITE


-----------------------------------
Lopalong
Tue 01 Sep, 2009 08:53

Re: NUKE LADDER
-----------------------------------
This is a guess for now?  :oops: 

Open:

NukeLadder/core/admin/admin_maps.php

Find:

<?php

After on a new line Add:

// CTracker_Ignore: File Checked By Human
define('CT_SECLEVEL', 'LOW');

Looks like I'm going to have to learn as much as I need to about this thing anyway. And will start getting into it tomorrow.  :mryellow: 

Thanks for the .css - But I think it's more important at this stage to try to debug it and get it fully functional; Then we might call for some themers to jazz it up with different themes and start a Nuke Theme thread!. Lol!


-----------------------------------
redrumm101
Tue 01 Sep, 2009 20:29

Re: NUKE LADDER
-----------------------------------
[quote user="Lopalong" post="43910"]This is a guess for now?  :oops: 

Open:

NukeLadder/core/admin/admin_maps.php

Find:

<?php

After on a new line Add:

// CTracker_Ignore: File Checked By Human
define('CT_SECLEVEL', 'LOW');

Looks like I'm going to have to learn as much as I need to about this thing anyway. And will start getting into it tomorrow.  :mryellow: 
Thanks for the .css - But I think it's more important at this stage to try to debug it and get it fully functional; Then we might call for some themers to jazz it up with different themes and start a Nuke Theme thread!. Lol![/quote]

This seemed to work. Thank you lopalong. Your welcome for the css. that was just for people so they could get started looking at it without having to worry about adjusting the colors or highlighting everything so they could read it. Not to look pretty in any sense LOL.. Just one less thing for people to do so they can get into debugging mode..


Ok next problem i ran into is when i go to admin panel click teams, select a team to modify. Change something like wins you get this error.. 

Fatal error: Call to a member function Execute() on a non-object in /home/cisclan/public_html/NukeLadder/core/admin/admin_teams.php on line 447

[code linenumbers=false]
$xdb->xdb->Execute("update ".X1_prefix.X1_DB_teamsevents." SET
					name=".$xdb->qstr(X1_clean($_POST['tname'])).",
					country=".$xdb->qstr(X1_clean($_POST['country'])).",
					clantags=".$xdb->qstr(X1_clean($_POST['clantags'])).",
					clanlogo=".$xdb->qstr(X1_clean($_POST['clanlogo']))." 
					WHERE team_id=".$xdb->qstrX1_clean(($_POST['team_id'])));
	$c  = x1_admin("teams");
	$c .= X1plugin_title(XL_ateams_teamupdated);
	return X1plugin_output($c);
[/code]

It looks like for some reason nuke_teamevents was not created or there was a problem with the creation. It is shown to be created in the install_2.5.5.php file Here is the code in the file. It looks the same as the rest to my untrained eye LOL... 

[code linenumbers=false]
$xdb->Execute("
		CREATE TABLE ".X1_prefix.X1_DB_teamsevents." (
		  ladder_id int(10) NOT NULL default '0',
		  team_id int(10) NOT NULL default '0',
		  name varchar(40) NOT NULL default '',
		  passworddb varchar(10) default NULL,
		  mail varchar(50) NOT NULL default '',
		  icq varchar(15) NOT NULL default '',
		  msn varchar(25) NOT NULL default '',
		  country varchar(40) NOT NULL default '',
		  games int(10) NOT NULL default '0',
		  wins int(10) NOT NULL default '0',
		  losses int(10) NOT NULL default '0',
		  draws int(10) NOT NULL default '0',
		  points int(100) NOT NULL default '0',
		  totalwins int(10) NOT NULL default '0',
		  totallosses int(10) NOT NULL default '0',
		  totaldraws int(10) NOT NULL default '0',
		  totalgames int(10) NOT NULL default '0',
		  totalpoints int(10) NOT NULL default '0',
		  penalties int(10) NOT NULL default '0',
		  streakwins int(10) NOT NULL default '0',
		  streaklosses int(10) NOT NULL default '0',
		  rest int(10) NOT NULL default '0',
		  challenged varchar(255) NOT NULL default 'New Team',
		  clantags varchar(10) NOT NULL default '',
		  homepage varchar(50) NOT NULL default '',
		  clanlogo varchar(50) NOT NULL default '',
		  ladder_name varchar(255) NOT NULL default 'Not Set',
		  challyesno char(3) NOT NULL default 'No',
		  rung int(10) NOT NULL default '0',
		  FULLTEXT KEY name (name)
		) TYPE=MyISAM;
		");
[/code]


-----------------------------------
Lopalong
Tue 01 Sep, 2009 23:22

Re: NUKE LADDER
-----------------------------------
[quote]Fatal error: Call to a member function Execute()[/quote]

 :( 

I had something similar doing something else, and also checked the path / Db VARS were there and correct, and I couldn't see either why it shouldn't be working. But! I didn't check the DB because at that time I had had enough of trying to understand what the heck I was supposed to be doing anyway? 

:mryellow:

I'll re-do an install a little later on today and see what's missing from the Db as depicted by what should be there in default SQL.

I also found this late yesterday, maybe we could ask him to do the conversion and save us all a problem. He's taken over NukeLadder - Updated it (But not for phpBB :( ) But maybe he'd like to expand on it. ?

http://www.aodhome.com/index.php


-----------------------------------
redrumm101
Wed 02 Sep, 2009 03:45

Re: NUKE LADDER
-----------------------------------
[quote user="Lopalong" post="43915"][quote]Fatal error: Call to a member function Execute()[/quote]

 :( 

I had something similar doing something else, and also checked the path / Db VARS were there and correct, and I couldn't see either why it shouldn't be working. But! I didn't check the DB because at that time I had had enough of trying to understand what the heck I was supposed to be doing anyway? 

:mryellow:

I'll re-do an install a little later on today and see what's missing from the Db as depicted by what should be there in default SQL.

I also found this late yesterday, maybe we could ask him to do the conversion and save us all a problem. He's taken over NukeLadder - Updated it (But not for phpBB :( ) But maybe he'd like to expand on it. ?

http://www.aodhome.com/index.php[/quote]


Ok there are quite a few missing.. I will list them for you

DATABASES THAT NAMES ARE DIFFERENT THAN INSTALL_2.5.5.PHP

teamchallenges  (NAMES IN DB nuke_challengeteam )

teamtempchallenges (NAMED IN DB nuke_challengeteamtemp )

teaminvites  (NAMED IN DB nuke_confirminvites )

teamdisputes (NAMED IN DB nuke_ladderdisputes )

THESE JUST FLAT OUT MISSING...

maps

events

teamsevents

teamhistory

teamroster


I will start posting in AoD's Forums to see if we cant get some help. Funny thing is he is running phpbb. LOL.. And he only has support for phpnuke Nuke Evolution and e107.. Weird Ok back to debugging LOL..


-----------------------------------
Lopalong
Wed 02 Sep, 2009 09:21

Re: NUKE LADDER
-----------------------------------
The databases are re-defined here.

[spoiler][code linenumbers=false]#Table Mapping
#Plugin Maps Table
define('X1_DB_maps', 'laddermaplist');
#Plugin Games Table
define('X1_DB_games', 'games');
#Plugin Teams Table
define('X1_DB_teams', 'teams');
#Plugin Events Table
define('X1_DB_events', 'ladders');
#Plugin Challenges Table
define('X1_DB_teamchallenges', 'challengeteam');
#Plugin Temp Challenges Table
define('X1_DB_teamtempchallenges', 'challengeteamtemp');
#Plugin Invites Table
define('X1_DB_teaminvites', 'confirminvites');
#Plugin Disputes Table
define('X1_DB_teamdisputes', 'ladderdisputes');
#Plugin Team's Events Table
define('X1_DB_teamsevents', 'ladderteams');
#Plugin Matches Table
define('X1_DB_teamhistory', 'playedgames');
#Plugin Joined Teams Table
define('X1_DB_teamroster', 'userteams');
#Plugin Mapgroups Table
define('X1_DB_mapgroups','mapgroups');
[/code][/spoiler]

This is as I understand it, a Multi-Game thing? So whether there's a prefix that has to be added to identify what game uses what tables - I have no idea at the moment. :(

But what we do need is some help just to get one game up and running?  :mryellow:

[b]Edit:[/b]

admin_teams.php

This string has an error: xdb->xdb->

[code linenumbers=false]	$xdb->xdb->Execute("update ".X1_prefix.X1_DB_teamsevents." SET
[/code]

This line is wrong too: With a ( in the wrong location.

[code linenumbers=false]WHERE team_id=".$xdb->qstr WRONG X1_clean "( WRONG" ($_POST['team_id'])));[/code]


Replace this:

[code linenumbers=false]	$xdb->xdb->Execute("update ".X1_prefix.X1_DB_teamsevents." SET
					name=".$xdb->qstr(X1_clean($_POST['tname'])).",
					country=".$xdb->qstr(X1_clean($_POST['country'])).",
					clantags=".$xdb->qstr(X1_clean($_POST['clantags'])).",
					clanlogo=".$xdb->qstr(X1_clean($_POST['clanlogo']))." 
					WHERE team_id=".$xdb->qstrX1_clean(($_POST['team_id'])));[/code]

With This:

[code linenumbers=false]	$xdb->Execute("update ".X1_prefix.X1_DB_teamsevents." SET
					name=".$xdb->qstr(X1_clean($_POST['tname'])).",
					country=".$xdb->qstr(X1_clean($_POST['country'])).",
					clantags=".$xdb->qstr(X1_clean($_POST['clantags'])).",
					clanlogo=".$xdb->qstr(X1_clean($_POST['clanlogo']))." 
					WHERE team_id=".$xdb->qstr(X1_clean($_POST['team_id'])));[/code]

Couldn't find xdb->xdb-> in any other files - Let's see what happens next? ;)

[b]PS:[/b] Add this to NukeLadder.php too:

[code linenumbers=false]// CTracker_Ignore: File Checked By Human
define('CT_SECLEVEL', 'LOW');[/code]

 :censored:


-----------------------------------
redrumm101
Wed 02 Sep, 2009 17:45

Re: NUKE LADDER
-----------------------------------
Here is a quick update that may point you in the right direction. When using internet explorer if i go to the team drop down and click on my team to update it IE7 Says you need to login first, Firefox does not. SO its something in the coding that firefox can see and IE7 cannot..I can updated the team info and everything in FIREFOX no problems with that portion of the mod


-----------------------------------
Lopalong
Wed 02 Sep, 2009 18:18

Re: NUKE LADDER
-----------------------------------
Did you read my edited post above ?

I think that if you clear "Everything" from FF - Cookies, cache, the whole box and dice - It wants you to log in too. ;)

I think with IE, you have to tell it it's a preferred site and to remember it. - - - - - [b][i]I think?[/i][/b]   :shock: 

[b]Update:[/b]

I've just spent hours converting most of the script to XHTML, but it still has some way to go. :P

I also had a look at back-porting v2.6.1 for Nuke, and had at least the main screen up. But I don't think I'd bother because it's all a BETA - and I've had more than enough of them.  :censored:


-----------------------------------
redrumm101
Thu 03 Sep, 2009 01:21

Re: NUKE LADDER
-----------------------------------
[quote user="Lopalong" post="43931"]Did you read my edited post above ?

I think that if you clear "Everything" from FF - Cookies, cache, the whole box and dice - It wants you to log in too. ;)

I think with IE, you have to tell it it's a preferred site and to remember it. - - - - - [b][i]I think?[/i][/b]   :shock: 

[b]Update:[/b]

I've just spent hours converting most of the script to XHTML, but it still has some way to go. :P

I also had a look at back-porting v2.6.1 for Nuke, and had at least the main screen up. But I don't think I'd bother because it's all a BETA - and I've had more than enough of them.  :censored:[/quote]

Yes i did read the edited post above and i did edit. :mryellow: 

I did a clear on everything in Mozilla  and can still get into the display team page while logged into the main set. Cannot from IE7. Im have started a ladder for Counter Strike Source and going to start playing with it more tonight. I have a couple of teams made and im going to do some dummy matches. Be around 12 est that i should have some feed back. thank you again lopalong.


I just did it again in firefox it works exactly as it is supposed to. If im not logged in you cant view the page it tells you to log in. As soon as I loggin i can edit my team etc etc


-----------------------------------
Lopalong
Thu 03 Sep, 2009 01:57

Re: NUKE LADDER
-----------------------------------
Clearing the cache and cookies can be "pain" sometimes. Believe me - [b][i]I Know![/i][/b]  :mricy: 

While you are "playing" I'm going to split the config into two parts - One for user input / changes and the other for the system, which should make it easier for installing. ;)

The other is - Hard-coded language strings - Which I'll change to language-vars.

Looking forward to your feedback - Because I have no idea how one goes about fully adding games to the script - Maybe because I don't have the Game-Params that are needed.

That's my excuse anyway!  :mrblue:


-----------------------------------
redrumm101
Fri 04 Sep, 2009 16:15

Re: NUKE LADDER
-----------------------------------
Ok Been playing for the past couple of days. things have been running ok for the most part. I have created 2 teams with people in them. 1 ladder in events. The one problem i ran into is I cant challenge the other team either way. I logged in to both team accounts and tryed to challenge either way. this is the message i get

Sorry this team is too many rungs ahead of your team.0 rungschallenger :: 2
challenged :: 1
Sorry this team is too many rungs ahead of your team.0 rungschallenger :: 2
challenged :: 1

There are only 2 teams both of them are new with no wins or losses. I tryed to look in the config.php to see if there was a setting for how many rungs above you you can challenge but i didnt find anything. It has to be set somewhere.

The other one this is kinda minute but its there. If you have an apostrophe a / or a  \ in your team profile when you update it ( i can only still get in there thru FIREFOX) will add extra \\\\ to the team tag and profile area. This one is not really a big deal i just know it will come up in the future from teams with tags like /team\ or Tom's team


If you want to look at mine ..   www.cisclan.com/nukeladder.php    Just let me know what you need


-----------------------------------
Lopalong
Sat 05 Sep, 2009 05:06

Re: NUKE LADDER
-----------------------------------
No Mate, I'm bailing out of this one. :(

I don't see where stripslashes can be added to the script anywhere without returning errors. :( 

But for those who want to try > [url=http://www.google.com.au/search?q=php+comment+out+apostrophe+backslash&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-GB:official&client=firefox-a]Strip Slashes

I did find some solutions:

1. Add To the site php.ini file:
[code linenumbers=false]magic_quotes_gpc = Off

or

magic_quotes_gpc Off[/code]

Or,

2. Add this script to NukeLadder.php (Without the php tags). This actually works, but in creating teams the apostrophe is an illegal character anyway, and you can only add it after you create the team - and re-add it each time you "Edit" the team. (Quirky) ?
[code linenumbers=false]<?php
if (get_magic_quotes_gpc()) {
        $in = array(&$_GET, &$_POST, &$_COOKIE);
        while (list($k,$v) = each($in)) {
                foreach ($v as $key => $val) {
                        if (!is_array($val)) {
                                $in[$k][$key] = stripslashes($val);
                                continue;
                        }
                        $in[] =& $in[$k][$key];
                }
        }
        unset($in);
}
?> [/code]

Or another cute one that envelops the individual strings:

3.
[code linenumbers=false]$str = "Is your name O\'reilly?";
// Outputs: Is your name O'reilly?
echo stripslashes($str) ;[/code]

As far as the number of rungs go, one would think that they would be entered into the Db when one configs the game. ?

Don't know, and I'm beginning to wonder if this thing was abandoned in the first place because it's so outdated.  :shock:

So unfortunately you'll have to recruit some other help with this as I feel I've come to the end of my expertise; and going on with it is not something that I'm[b][i] that [/i][/b]passionate about. :(

Anyway, the attached .zip here has had as many HTML errors and warnings fixed [b][i](100's of them)[/i][/b] as possible in the short term - And the .css links have been moved to overall_inc_header.tpl etc. So maybe someone would like to go on from here.  :mryellow:


-----------------------------------
doctera
Thu 10 Sep, 2009 08:32

Re: NUKE LADDER
-----------------------------------
im having a problem where i get the message 'Table 'doctera_phpnuke.nuke_mapgroups' doesn't existTable 'doctera_phpnuke.nuke_mapgroups' doesn't exist' when i try to add maps. does anyone have any ideas as to why this would be happening?

i cant add a game as all that i get is 'No games have been created in the database.' am i supposed to enter data into the db 1st?

all in all im realy having problems getting the whole thing up and running as i cannot find a good tutorial anywhere :(

Im a bit new to the whole php thing, just trying to get my whole head around it lol :lol: 

Thanks for the help in advance


-----------------------------------
Lopalong
Thu 10 Sep, 2009 08:42

Re: NUKE LADDER
-----------------------------------
What forum software are you using.?
What version of NukeLadder are you playing with?


-----------------------------------
redrumm101
Fri 11 Sep, 2009 15:48

Re: NUKE LADDER
-----------------------------------
Sorry lopalong i was away for a little bit. Thank you for all your help. Im going to do some more work on this. Atleast as much as my ability can handle. LOL. Ill post back with some more possible fixes for this program and FAQ's to add


-----------------------------------
Emerica
Wed 23 Sep, 2009 22:46

Re: NUKE LADDER
-----------------------------------
Nukeladder is somewhat now designed to be easier to be dropped into other systems.

There are a few things you will have to do. The first thing I would do is create a section in integrate.php for icy and maybe a index/config file to make it blend. (if you haven't already)
It's old code guys and could probably use some work. Originally made for php-nuke, then ported to other systems as requested.
Guys are welcomed to make use of it and redistribute free of charge. Just request you keep a link back somewhere in there so people can find the source code.
I haven't done any updates in quite awhile, have a full-time job now and online video has been more of an interest.
If you guys need a hand my email is blendz@shaw.ca, I might be able to help you out, time permitting.


-----------------------------------
Lopalong
Sat 26 Sep, 2009 09:57

Re: NUKE LADDER
-----------------------------------
Hi Emerica,

Thanks for your input, and your offer to help if possible. ;)

We've got this thing running at the basic level and working on a live site, but me not being a gamer am not sure of what parameters are required to bring it into full operation. On the other hand, my offsider knows the game params, but gets a bit stuck with the coding - I think?  :oops: 

Icy Phoenix is unlike most other forum software as it is a hybrid of code that doesn't suit one or the other phpBB versions. And for the better I hope!

I think that I can fix up most of the code, and all the other bits and pieces like the email code etc, as Icy uses different table structures and vars etc.

But what I would like some help with, is that someone who knows the core code and how the thing is supposed to work in the first place, to download Icy Phoenix and install the last "Latest" patched Upload of NL and give it a buzz. Then I think we could go on from there.

There really isn't much left to do - - Knowing what is left to do is the problem.  :mricy: 

Thanks!

Lopa.


