Search     
The Online Community for Aircraft Mechanics!
  
Home Forums Topics Top Headlines Your Account
Directory
· Home
· Audio
· Downloads
· FAQ
· Feedback
· Forums
· News Archive
· Recommend Us
· Search
· Site Map
· Submit News
· Surveys
· Top 10
· Topics
· Web Links
· World News
· Your Account
 
Login
Welcome, Guest
Nickname
Password
(Register)

Membership:
Latest: cenkemre21
Today: 0
Yesterday: 0
Overall: 490

Visitation:
Guests: 10
Members: 0
Total: 10


You are Anonymous user. You can register for free by clicking here
 
Last Seen Members
superg: 10 days ago
audai: 52 days ago
monika: 66 days ago
bycanertk: 70 days ago
ual_tech: 101 days ago
planemech669: 114 days ago
HORUS: 115 days ago
planedoctor: 116 days ago
blacklord83: 128 days ago
Ü ¬z¸¯³]: 128 days ago
missleigh: 133 days ago
 
Today in Aviation History
1953
Scott Crossfield in Douglas Skyrocket, 1st to break Mach 2 (1,300 MPH).
1980
Steve Ptacek in Solar Challenger makes 1st solar-powered flight.
 
Site Info
About PlaneDoctor.com
Advertising on this site
 

PlaneDoctor.com :: View topic - Can you make this module running on PHPNUKE 7.5 ?
 
  Forum FAQ Search Profile

Post new topic Reply to topic
PlaneDoctor.com Forum Index » All about Audio Module » Can you make this module running on PHPNUKE 7.5 ?   
View previous topic :: View next topic
AuthorCan you make this module running on PHPNUKE 7.5 ?
Guest
Guest





Reply with quote
Can you make this module running on PHPNUKE 7.5 ?

I did install to 7.5, and have problem.

Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /home/httpd/vhosts/sulamita.com/httpdocs/includes/sql_layer.php on line 288
Access Denied

Thanks
PostPosted:
Mon Nov 08, 2004 2:55 pm
Top of Page
planedoctor
Site Admin
Site Admin


Joined: Oct 08, 2002
Posts: 306

Reply with quote
I won't be upgrading anytime soon.
I would be more then happy to assist you in fixing the error.
Please give me a little more info about the error!
Where is it showing up?
Top of the page, before the admin block, in the center area under the header?

I really havent looking into what changes were made from v7 to 7.5 I have the mod running on a v7 site with no prob.

Also make sure your using the V 1.5 of Audio!
_________________
PostPosted:
Mon Nov 08, 2004 10:02 pm
Top of PageView users profileSend private messageVisit posters website
Rama
Guest





Reply with quote
2 Errors I found.

1) In the Admin Panel, inside Audio.
(/admin.php?op=Audio)

ERRO MSG: Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /home/x1cabeza/public_html/includes/sql_layer.php on line 286
Access Denied

2) In /modules.php?name=Audio&l_op=viewaudio&cid=1

ERROR MSG: Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/x1cabeza/public_html/includes/sql_layer.php on line 342

Please help!
PostPosted:
Thu Feb 10, 2005 7:55 am
Top of Page
planedoctor
Site Admin
Site Admin


Joined: Oct 08, 2002
Posts: 306

Reply with quote
The first thing I noticed is where the error originated. The module doesnt have any files or changes to the sql_layer.php file
What you are getting is an error in the query. It's hidden now. You need to add some lines to this "sql_layer.php" file to show the true error.

I assume line 286 of this file looks something like this:
Code:
case "MySQL":
$rows=mysql_num_rows($res);
return $rows;
break;;


You need to change these lines to this:

Code:
case "MySQL":
if ($rows = mysql_num_rows($res)) {
return $rows;
} else {
print (mysql_error());
}
break;;


This will display the error and you can futther troubleshoot the problem.



Good luck anim_smoke.gif
_________________
PostPosted:
Thu Feb 10, 2005 10:04 am
Top of PageView users profileSend private messageVisit posters website
Guest






Reply with quote
after adding the code i get this argument;

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in *****\***\****\\includes\sql_layer.php on line 286
Unknown column 'radminlink' in 'field list'Access Denied
PostPosted:
Thu Feb 10, 2005 2:32 pm
Top of Page
planedoctor
Site Admin
Site Admin


Joined: Oct 08, 2002
Posts: 306

Reply with quote
Hi,

Take a look at the audio.php file located:

admin/modules/audio.php

A few lines into this file you will see:
Code:
if (!eregi("admin.php", $PHP_SELF)) { die ("Access Denied"); }

$result = sql_query("select radminlink, radminsuper from ".$prefix."_authors where aid='$aid'", $dbi);
list($radminlink, $radminsuper) = sql_fetch_row($result, $dbi);
if (($radminlink==1) OR ($radminsuper==1)) {

This is where I think your trouble is comming from.
I dont know what version Nuke your using, but I would guess it is above 6.8.
I believe I have installed it in a 7.0 version and it worked.
In Nuke 7.4 this is the way these lines are used:
Code:
if (!eregi("admin.php", $_SERVER['PHP_SELF'])) { die ("Access Denied"); }
global $prefix, $db;
$aid = substr("$aid", 0,25);
$row = $db->sql_fetchrow($db->sql_query("SELECT radminlink, radminsuper FROM " . $prefix . "_authors WHERE aid='$aid'"));
if (($row['radminlink'] == 1) OR ($row['radminsuper'] == 1)) {


The above lines were just copied from the links.php file
I cannot tell you if this will fix your problem.
I have not updated Audio to the current nuke version.
Hope this info helps.
_________________
PostPosted:
Thu Feb 10, 2005 11:29 pm
Top of PageView users profileSend private messageVisit posters website
Guest






Reply with quote
Now it just say "Access Denied"
PostPosted:
Thu Feb 10, 2005 11:53 pm
Top of Page
planedoctor
Site Admin
Site Admin


Joined: Oct 08, 2002
Posts: 306

Reply with quote
What version nuke are you using?
Is it just the admin area of the module that isnt working?
Are you using version 1.5 of Audio?
_________________
PostPosted:
Sat Feb 12, 2005 12:27 am
Top of PageView users profileSend private messageVisit posters website
Guest






Reply with quote
I´m using php-nuke 7.5 and only the Admin of the Audio 1.5 is not working.
PostPosted:
Tue Feb 15, 2005 2:25 am
Top of Page
planedoctor
Site Admin
Site Admin


Joined: Oct 08, 2002
Posts: 306

Reply with quote
I dont know what changes were made between version 7 and 7.5. I have the module running on a version 7 site.

I really dont have time to install a complete site and get this module running with 7.5 right now. You might post for some help on some of the nuke help forum sites. Maybe someone will assist you.

Sorry hae.gif
_________________
PostPosted:
Tue Feb 15, 2005 8:45 pm
Top of PageView users profileSend private messageVisit posters website
DJALPHA
Guest





Reply with quote
hey guys please dont use patched (secure patch 7.5 or others) with this version audio. If you want use please tweak it Audio 1,5.
How?:
you ust compare with your other worked modules so easy example please look header of your /admin/modules/authors.php u can see bottom code in header and u must change your audio.php header in same directory.
Code:
global $prefix, $db, $admin_file;
if (!eregi("".$admin_file.".php", $_SERVER['SCRIPT_NAME'])) { die ("Access Denied"); }
$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')) {


after go to modules/Audio/index.php
change
bottom codes
Code:
if (!eregi("modules.php", $PHP_SELF)) {
    die ("You can't access this file directly...");
}
$index = 1;


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


if you whish u can make easy modifications and integrated to 7.6 Nuke with change name and move admin files to /modules/Audio/admin/


Dear admin I see some language files lost in your audio.1.5.zip please check it for exp: _PAGEURL
_IMAGE and too many ... thx for module.
PostPosted:
Fri Feb 18, 2005 3:12 am
Top of Page
DJALPHA
Guest





Reply with quote
this is Audio 1.5 for phpnuke 7.6 wihout any script code changing.
This file same with last Audio 1.5 just I add Admin folder to /modules/Audio/Admin

u can manage module from 7.6 Admin panel and u can add administrator for just Audio module!!!


Code:
http://s30.yousendit.com/d.aspx?id=36E4MLQS0GTF92W9BVD4N13O8R



Admin lang files is incompilate becasue orginal admin lang files is missing!!!
PostPosted:
Fri Feb 18, 2005 5:29 am
Top of Page
besimtari
Newbie


Joined: Feb 15, 2005
Posts: 1
Location: Uk

Reply with quote
First I woold like to thank you for this module!

When I submit a query for searching a word, I got this error:
Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /home/user/public_html/includes/sql_layer.php on line 286

This is the code on line 286 sql_layer.php:
Code:

    case "MySQL":
        $row = mysql_fetch_row($res);
        return $row;
    break;;


I changed this lines to this as you told us before:
Code:
case "MySQL":
if ($rows = mysql_num_rows($res)) {
return $rows;
} else {
print (mysql_error());
}
break;;


but the site is not loading.

For some more information I am using phpnuke 7.2. If this module works with phpnuke 7.5 I will Upgrade dhe phpnuke version

Thank you very much!
PostPosted:
Thu Feb 24, 2005 8:52 pm
Top of PageView users profileSend private messageVisit posters website
Guest






Reply with quote
planedoctor wrote:
Hi,

Take a look at the audio.php file located:

admin/modules/audio.php

A few lines into this file you will see:
Code:
if (!eregi("admin.php", $PHP_SELF)) { die ("Access Denied"); }

$result = sql_query("select radminlink, radminsuper from ".$prefix."_authors where aid='$aid'", $dbi);
list($radminlink, $radminsuper) = sql_fetch_row($result, $dbi);
if (($radminlink==1) OR ($radminsuper==1)) {

This is where I think your trouble is comming from.
I dont know what version Nuke your using, but I would guess it is above 6.8.
I believe I have installed it in a 7.0 version and it worked.
In Nuke 7.4 this is the way these lines are used:
Code:
if (!eregi("admin.php", $_SERVER['PHP_SELF'])) { die ("Access Denied"); }
global $prefix, $db;
$aid = substr("$aid", 0,25);
$row = $db->sql_fetchrow($db->sql_query("SELECT radminlink, radminsuper FROM " . $prefix . "_authors WHERE aid='$aid'"));
if (($row['radminlink'] == 1) OR ($row['radminsuper'] == 1)) {


The above lines were just copied from the links.php file
I cannot tell you if this will fix your problem.
I have not updated Audio to the current nuke version.
Hope this info helps.
PostPosted:
Wed Jun 08, 2005 10:17 am
Top of Page
gs
Intern
Intern


Joined: Jul 01, 2005
Posts: 8
Location: Ireland

Reply with quote
Looks like you've fixed your audio.
I'll start a new topic, maybe you can help me fix this.
PostPosted:
Fri Jul 01, 2005 9:26 pm
Top of PageView users profileSend private message
Display posts from previous:   
All times are GMT - 4 Hours
Post new topic Reply to topic
PlaneDoctor.com Forum Index » All about Audio Module » Can you make this module running on PHPNUKE 7.5 ?  

Jump to:  
Key
  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

Click here to view this sites Privacy Policy
© 2002 Planedoctor Web Services All Rights Reserved
Bulletin Board Powered by phpBB © 2001 phpBB Group
Version 2.0.6 of PHP-Nuke Port by Tom Nitzschner © 2002 www.toms-home.com
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 12271 Seconds