Clan Adverts

Sponsors

CT on Facebook

Latest Product

User Box

Anonymous
38.107.179.218
Nickname:

Password:

Security Code
Security Code
Type Security Code


PND Downloads Feed

Phpnuke Downloads
How to Delete or Reset yo...
How to Delete or Reset your PHPNuke Admin Account
Lost your admin password ?  Cant login to your admin account ? This s...
Back Online & Stuff
Back Online & Stuff
Look at us with our nifty website back up and running… Seriously...
How to edit the admins in...
How to edit the admins in the forums
Here is a way to make someone admin in your forums on your Evo site. I...
Demo Splash Screen
Demo Splash Screen
Ped @ Clan Themes has released a simple splash screen entrance hack. ...
Free Phpnuke Business The...
Free Phpnuke Business Theme 6
This is the 6th Business theme for Phpnuke that Clan Themes has releas...
Tricked Out Slider
Tricked Out Slider
We have seen some great new things come out of Tricked Out News and th...

Custom Work

PHP Nuke Custom Work

www.clanthemes.com :: View topic - Enhanced downloads 2.1 error's with rn 2.30
Enhanced downloads 2.1 error's with rn 2.30
Goto page 1, 2  Next

18 Replies / 1832 Views


Post new topic   Reply to topic  

   www.clanthemes.com Forum Index » Modules

View previous topic :: View next topic


DoC
Reputation: 89.6 Add RepSubtract Rep
votes: 5
Local time: 7:40 PM
Location: UK
uk.gif



0.20 posts per day
Medals: 3 (View more...)
Super Dedicated User (Amount: 1)
Forums Moderator
Forums Moderator
Joined: Feb 07, 2007
Last Visit: 30 Jun 2011
Posts: 394
Points: 4451 

Post Enhanced downloads 2.1 error's with rn 2.30 Posted: Tue Apr 14, 2009 11:01 am

Shop Purchases:
Clan Roster v1.7 Php Nuke Module · Clan Roster 2.0

Hey CT Smiley

I have installed Enhanced Downloads from CT (http://www.clanthemes.com/downloaddetails-9-312-nukestyles-enhanced-downloads-module-v21.html) and added all the fixes etc etc but get this error in the admin on a white screen:

Quote:

Fatal error: Call to undefined function sql_query() in /home/******/*******/admin/modules/NukeStyles/EDL/ns_edl_general.php on line 34


This error relates too:

Code:
$result = $db->sql_query("select radminsuper from ".$prefix."_authors where aid='$aid'", $dbi);


This is what you see if your going to downloads area:

Quote:
Fatal error: Call to undefined function sql_query() in /home/********/********/modules/Downloads/ns_downloads_file.php on line 192


This error relates too:

Code:
$result = $db->sql_query("select ns_dl_right_blocks from ".$prefix."_ns_downloads_general");


I am using RavensNuke 2.30 (latest) and really do not know what to do about this type of error, Does RN 2.3 have a different query function than previous versions?? If that be the case then this download is redundant and would have to be updated for it to be 2.30 compatible! I would volunteer myself for doing it but seeming as I have no clue about SQL (yet) then I think it owuld be best for the SQL Guru's here to have a look and see if there is a fix possible Smiley

Cheers

DoC
 

 
View user's profileSend private messageSend e-mail Reply with quote

Ped
Reputation: 94 Add RepSubtract Rep
votes: 37
Local time: 8:40 PM
Location: Great British Empire
uk.gif

Site Founder
Site Founder

1.82 posts per day
Medals: 2 (View more...)
Forums MoD (Amount: 1)
Theme Guru
Theme Guru
Joined: Nov 13, 2006
Last Visit: 25 May 2012
Posts: 3675
Points: 191987 

Post Enhanced downloads 2.1 error's with rn 2.30 Posted: Tue Apr 14, 2009 12:17 pm

Shop Purchases:
Clan Roster 2.0 · Bad Company 2 Vietnam Xtreme Theme

Hey Doc where u been hiding !

Latest Ravens is more along the lines of Evo nuke !! pfff

I have not tried to install the ED on to it yet...

But this is what you might have to do to get it working... a pain i know, floppy might no more

First is change the $dbi global (Your block my have more globals)

From

Code:
global $prefix, $dbi;


To

Code:
global $prefix, $db;


Then you need to remove the $dbi from all the quries.

From example

Code:
$result = sql_query("select lid, title, hits, url from ".$prefix."_links_links order by linkratingsummary DESC limit 0,$mainlinkstoshow", $dbi)


To

Code:
$result = sql_query("select lid, title, hits, url from ".$prefix."_links_links order by linkratingsummary DESC limit 0,$mainlinkstoshow")


Finally you have to change the "query functions"

From example

Code:
sql_query("select lid, ti .........


To

Code:
$db->sql_query("select lid, ti .........


You need to be carefull because all the functions are not like sql_query were you just append the $db->. For example with the old $dbi way you used sql_fetch_row(), but with the new way it has to be written $db->sql_fetchrow(). There are only a couple of functions that you will need to change, so just check in the newer blocks if you need help with one. Off the top of my head I can't think of the other functions that are different from old to new.

OLD:
sql_query($sql, $dbi)
sql_num_rows($sql, $dbi)
sql_fetch_row($sql, $dbi)
sql_fetch_array($sql, $dbi)
sql_fetch_object($sql, $dbi)
sql_free_result($sql, $dbi)

NEW:
$db->sql_query($sql)
$db->sql_numrows($sql)
$db->sql_fetchrow($sql)
$db->sql_fetchrow($sql)
$db->sql_fetchrow($sql)
$db->sql_freeresult($sql)

Not sure its worth it though to be honest !!
 

 
View user's profileSend private messageSend e-mail Reply with quote

DoC
Reputation: 89.6 Add RepSubtract Rep
votes: 5
Local time: 7:40 PM
Location: UK
uk.gif



0.20 posts per day
Medals: 3 (View more...)
Super Dedicated User (Amount: 1)
Forums Moderator
Forums Moderator
Joined: Feb 07, 2007
Last Visit: 30 Jun 2011
Posts: 394
Points: 4451 

Post Re: Enhanced downloads 2.1 error's with rn 2.30 Posted: Tue Apr 14, 2009 1:46 pm

Shop Purchases:
Clan Roster v1.7 Php Nuke Module · Clan Roster 2.0

o/ Ped you ole b***ard

OMFG mate that's like a complete port over ahahha!!!

Do you have any other download modules available that do atleast some of what NS EDL does???

I will have a bash at doing to port though but is gonna take me a month i reckon coz my php skills are weak atm been busy working etc LOL

DoC
 

 
View user's profileSend private messageSend e-mail Reply with quote


Ped
Reputation: 94 Add RepSubtract Rep
votes: 37
Local time: 8:40 PM
Location: Great British Empire
uk.gif

Site Founder
Site Founder

1.82 posts per day
Medals: 2 (View more...)
Forums MoD (Amount: 1)
Theme Guru
Theme Guru
Joined: Nov 13, 2006
Last Visit: 25 May 2012
Posts: 3675
Points: 191987 

Post Re: Enhanced downloads 2.1 error's with rn 2.30 Posted: Tue Apr 14, 2009 2:29 pm

Shop Purchases:
Clan Roster 2.0 · Bad Company 2 Vietnam Xtreme Theme

Try finding the EDL evo version and see if that works !!
 

 
View user's profileSend private messageSend e-mail Reply with quote

DreAdeDcoRpSE
Reputation: 2572.3 Add RepSubtract Rep
votes: 28
Local time: 2:40 PM
Location: Back of your Mind
usa.gif

Site Admin
Site Admin

1.36 posts per day
Medals: 3 (View more...)
Site Supporter (Amount: 1)
Forums Moderator
Forums Moderator
Joined: Sep 22, 2007
Last Visit: 25 May 2012
Posts: 2331
Points: 136107 

Post Re: Enhanced downloads 2.1 error's with rn 2.30 Posted: Tue Apr 14, 2009 4:18 pm

Shop Purchases:
Enemy Territory Theme (Aviator) for PHP Nuke · Clan Roster 2.0 ·  · Modern Warfare 3 Xtreme Theme

Another thing you would do is also change over how all the files are defined, example:

Code:
if (!eregi("modules.php", $_SERVER['PHP_SELF'])) {
    die ("You can't access this file directly...");
}

to
Code:
if (!defined('MODULE_FILE')) {
   die('You can\'t access this file directly...');
}


If I have a little time. I will make this my next project, porting over, since I did just finish up my L4D SDK center info module a few days ago and have nothing else on my plate except for the top nuke clan site.
 

 
View user's profileSend private messageVisit poster's website Reply with quote

DoC
Reputation: 89.6 Add RepSubtract Rep
votes: 5
Local time: 7:40 PM
Location: UK
uk.gif



0.20 posts per day
Medals: 3 (View more...)
Super Dedicated User (Amount: 1)
Forums Moderator
Forums Moderator
Joined: Feb 07, 2007
Last Visit: 30 Jun 2011
Posts: 394
Points: 4451 

Post Re: Enhanced downloads 2.1 error's with rn 2.30 Posted: Tue Apr 14, 2009 11:01 pm

Shop Purchases:
Clan Roster v1.7 Php Nuke Module · Clan Roster 2.0

mate dread if you do you will be a legend in my eyes here at CT.... Can't beleive how much RN has changed since just february of last year :-o

DoC
 

 
View user's profileSend private messageSend e-mail Reply with quote


DreAdeDcoRpSE
Reputation: 2572.3 Add RepSubtract Rep
votes: 28
Local time: 2:40 PM
Location: Back of your Mind
usa.gif

Site Admin
Site Admin

1.36 posts per day
Medals: 3 (View more...)
Super Dedicated User (Amount: 1)
Forums Moderator
Forums Moderator
Joined: Sep 22, 2007
Last Visit: 25 May 2012
Posts: 2331
Points: 136107 

Post Re: Enhanced downloads 2.1 error's with rn 2.30 Posted: Tue Apr 14, 2009 11:45 pm

Shop Purchases:
Enemy Territory Theme (Aviator) for PHP Nuke · Clan Roster 2.0 ·  · Modern Warfare 3 Xtreme Theme

DoC wrote:
mate dread if you do you will be a legend in my eyes here at CT.... Can't beleive how much RN has changed since just february of last year :-o

DoC


yeah, the new RN has a feel of a cheap version of Evo.
 

 
View user's profileSend private messageVisit poster's website Reply with quote

RELIC
Reputation: 553.2 Add RepSubtract Rep
votes: 2
Local time: 8:40 PM
Location: Louisville, Kentucky
usa.gif



0.18 posts per day
Medals: 0
Respected Member
Respected Member
Joined: Jan 29, 2007
Last Visit: 13 May 2012
Posts: 345
Points: 12397 

Post Enhanced downloads 2.1 error's with rn 2.30 Posted: Wed Apr 15, 2009 4:09 am

I did an install for someone a few days ago using RN. I must say it's not much to look at, at least it's an easy install.
 

 
View user's profileSend private messageSend e-mailVisit poster's websiteYahoo MessengerMSN Messenger Reply with quote

DreAdeDcoRpSE
Reputation: 2572.3 Add RepSubtract Rep
votes: 28
Local time: 2:40 PM
Location: Back of your Mind
usa.gif

Site Admin
Site Admin

1.36 posts per day
Medals: 3 (View more...)
Site Supporter (Amount: 1)
Forums Moderator
Forums Moderator
Joined: Sep 22, 2007
Last Visit: 25 May 2012
Posts: 2331
Points: 136107 

Post Re: Enhanced downloads 2.1 error's with rn 2.30 Posted: Wed Apr 15, 2009 5:02 am

Shop Purchases:
Enemy Territory Theme (Aviator) for PHP Nuke · Clan Roster 2.0 ·  · Modern Warfare 3 Xtreme Theme

I actually went with that before going to Evo, for I have used RN before and I thought I would like it. I started building a site and then I was just not happy with it so I went with Evo and I am glad I made that choice to go to Evo.
 

 
View user's profileSend private messageVisit poster's website Reply with quote


Snype
Reputation: 304.8 Add RepSubtract Rep
votes: 8
Local time: 7:40 PM
Location: lincolshire
uk.gif



0.53 posts per day
Medals: 1 (View more...)
Site Supporter (Amount: 1)
Respected Member
Respected Member
Joined: May 20, 2008
Last Visit: 27 Mar 2012
Posts: 779
Points: 60766 

Post Enhanced downloads 2.1 error's with rn 2.30 Posted: Wed Apr 15, 2009 11:48 am

Shop Purchases:
Call of Duty 4 SAS Theme

you no this module needs alot of work lol i have managed to get the errors finsihed so you dont get the blank page by changing this
Code:
if (!eregi("admin.php", $_SERVER['PHP_SELF'])) {
die ("Access Denied");
}
$result = $db->sql_query("select radminsuper from ".$prefix."_authors where aid='$aid'", $db);
list($radminsuper) = $db->sql_fetchrow($sql) , $db);
if ($radminsuper==1) {


to this
Code:
if (!defined('ADMIN_FILE')) {
   die('Access Denied');
}
global $prefix, $db, $admin_file;
$aid = substr($aid, 0, 25);
$row = $db->sql_fetchrow($db->sql_query('SELECT name, radminsuper FROM ' . $prefix . '_authors WHERE aid=\'' . $aid . '\''));
if (($row['radminsuper'] == 1) && ($row['name'] == 'God')) {


but now you get errors where it needs every changing like ped and dread said, but it my opinion it aint worth the trouble lol but if ya want my files i already edited let me know
 

WebSite > http://www.phpnukeblog.info Xfire > DDsnype MSN > ritchietaylor@live.co.uk Email > admin@phpnukeblog.info  
View user's profileSend private messageVisit poster's websiteMSN Messenger Reply with quote

floppy
Reputation: 2088.8 Add RepSubtract Rep
votes: 22
Local time: 2:40 PM
Location: Jackson Mississippi
usa.gif

Site Admin
Site Admin

1.16 posts per day
Medals: 2 (View more...)
Dedication (Amount: 1)
Scripts/Coder
Scripts/Coder
Joined: Nov 14, 2006
Last Visit: 03 May 2012
Posts: 2353
Points: 132516 

Post Enhanced downloads 2.1 error's with rn 2.30 Posted: Wed Apr 15, 2009 11:51 am

Shop Purchases:
Clan Roster 2.0 · Multi Gaming (Warrior) Evo Theme · COD6 ModernWarfare 2 Teaser Splash Screen · Left for Dead Evo Extreme Version

Just glancing at the code there are atleast two changes in every file for admin and user.
 

Phpnuke Downloads | VMaxxRx Male Enhancement  
View user's profileSend private messageVisit poster's website Reply with quote

Ped
Reputation: 94 Add RepSubtract Rep
votes: 37
Local time: 8:40 PM
Location: Great British Empire
uk.gif

Site Founder
Site Founder

1.82 posts per day
Medals: 2 (View more...)
Forums MoD (Amount: 1)
Theme Guru
Theme Guru
Joined: Nov 13, 2006
Last Visit: 25 May 2012
Posts: 3675
Points: 191987 

Post Re: Enhanced downloads 2.1 error's with rn 2.30 Posted: Wed Apr 15, 2009 12:40 pm

Shop Purchases:
Clan Roster 2.0 · Bad Company 2 Vietnam Xtreme Theme

im sure you could do batch edits in dreamweaver or similar... make it faster
 

 
View user's profileSend private messageSend e-mail Reply with quote

Post new topic   Reply to topic  
   www.clanthemes.com Forum Index » Modules


 
18 Replies / 1832 Views
Page 1 of 2
All times are GMT
Goto page 1, 2  Next
Display posts from previous:   
 
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 cannot attach files in this forum
You can download files in this forum