PHP Web Host - Quality Web Hosting For All PHP Applications Just Great Software
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
nefar
Regular
Regular


Joined: Sep 20, 2004
Posts: 79

PostPosted: Mon Sep 20, 2004 3:20 pm Reply with quote Back to top

Hi,
I'm running 7.5 and just installed nucalendar. I don't believe it's meant to run on 7.5 however it looks like it's functions are fine I just have one problem.
When I try and goto it's admin section via admin in nuke im getting.

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

i've been able to add events in etc with no problems so thought it may have something to do with how admin section is differant in 7.5.

Anyone have any ideas?
Thanks.
View user's profile Send private message ICQ Number
chatserv
The Mouse Is Extension Of Arm


Joined: May 02, 2003
Posts: 1393

PostPosted: Mon Sep 20, 2004 7:03 pm Reply with quote Back to top

Its admin files need to be converted but you can still use them as they are by modifying the starting lines that verify the admin's access, most likely right now they look for a field in the author's db table with something similar to:
Code:
$row = $db->sql_fetchrow($db->sql_query("SELECT radmincalendar, radminsuper FROM " . $prefix . "_authors WHERE aid='$aid'"));
if (($row['radmincalendar'] == 1) OR ($row['radminsuper'] == 1)) {

you would need to remove the calendar reference like so:
Code:
$row = $db->sql_fetchrow($db->sql_query("SELECT radminsuper FROM " . $prefix . "_authors WHERE aid='$aid'"));
if ($row['radminsuper'] == 1) {
View user's profile Send private message Visit poster's website
nefar
Regular
Regular


Joined: Sep 20, 2004
Posts: 79

PostPosted: Tue Sep 21, 2004 10:43 am Reply with quote Back to top

Thanks i'll give that a try
View user's profile Send private message ICQ Number
nefar
Regular
Regular


Joined: Sep 20, 2004
Posts: 79

PostPosted: Wed Sep 22, 2004 8:31 am Reply with quote Back to top

Going to take a guess here and say these are the lines I should be looking for.
I took out radminlink but I wasnt sure how to do the if (($radminlink==1) or line. When I remove the if (($radminlink--1) I get unexpected end errors, or I will get parse errors when I try to fix that.




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)) {

require_once("modules/NuCalendar/dbaccess.inc.php");
require_once("modules/NuCalendar/datefuncs.php");
require_once("modules/NuCalendar/printevent.php");
get_lang("NuCalendar");
View user's profile Send private message ICQ Number
Guardian2003
Site Admin


Joined: Aug 28, 2003
Posts: 4821

PostPosted: Wed Sep 22, 2004 9:05 am Reply with quote Back to top

Quote:

if (!eregi("admin.php", $PHP_SELF)) { die ("Access Denied"); }
$row = $db->sql_fetchrow($db->sql_query("SELECT radminsuper FROM " . $prefix . "_authors WHERE aid='$aid'"));
if ($row['radminsuper'] == 1) {
require_once("modules/NuCalendar/dbaccess.inc.php");
require_once("modules/NuCalendar/datefuncs.php");
require_once("modules/NuCalendar/printevent.php");
get_lang("NuCalendar");
View user's profile Send private message Send e-mail Visit poster's website
nefar
Regular
Regular


Joined: Sep 20, 2004
Posts: 79

PostPosted: Wed Sep 22, 2004 1:15 pm Reply with quote Back to top

Thanks, she seems to be working now.
View user's profile Send private message ICQ Number
bc_
New Member
New Member


Joined: Sep 30, 2004
Posts: 1

PostPosted: Thu Sep 30, 2004 11:18 am Reply with quote Back to top

I have the same problem, but with the Event Calendar. Any ideas, how to fix that?
View user's profile Send private message
ehutton
New Member
New Member


Joined: Oct 05, 2004
Posts: 1

PostPosted: Tue Oct 05, 2004 11:02 pm Reply with quote Back to top

bc_ wrote:
I have the same problem, but with the Event Calendar. Any ideas, how to fix that?


I found this link on phpnuke.org thought it might help
Only registered users can see links on this board!
Get registered or login to the forums!
View user's profile Send private message
chitoka
New Member
New Member


Joined: Oct 26, 2004
Posts: 1

PostPosted: Tue Oct 26, 2004 3:33 pm Reply with quote Back to top

The above link is dead. I would like to install Event Calendar 2.13 on PHP-Nuke 7.5, but don't know how to update the admin.php and authors.php files. Anyone who knows where else I can find a walkthrough?
View user's profile Send private message
Noxious
New Member
New Member


Joined: Feb 06, 2005
Posts: 2

PostPosted: Sun Feb 06, 2005 6:15 pm Reply with quote Back to top

hey wonder if anyone can help me, i've recently updated to PHPNuke 7.5 and the calendar works fine except when i go into the admin menu

i've tried doing whats been said but its not worked so far

when i click on NuCalendar i just get a white screen and nofin appears anyone know whats going on and how to fix it??

Thanks in advance
Noxious
View user's profile Send private message Visit poster's website AIM Address MSN Messenger
Noxious
New Member
New Member


Joined: Feb 06, 2005
Posts: 2

PostPosted: Sun Feb 06, 2005 6:31 pm Reply with quote Back to top

ah doesn't matter its fixed now
View user's profile Send private message Visit poster's website AIM Address MSN Messenger
chi
New Member
New Member


Joined: Feb 14, 2005
Posts: 1

PostPosted: Mon Feb 14, 2005 11:15 am Reply with quote Back to top

I'm not sure if I am in the right place or not, but I am not a programmmer. By some miracle I was able to install some php stuff and that has gotten me interested in the forum. Currently I have some php Nukes set up as part of my hosting plan. I wanted to install NuCalendar, and I did do it correctly the first time.
The next time I tried to install it on the other six Nukes, i got a bunch of error messages about the includes/sql-layer. i gave up and trashed the Nukes since they were not used yet. I like the open source idea, but it seems to be hard to get things running. So bottom line: I'm willing to pay kind of installation fee if I can get someone to put the NuCalendar on my php Nukes. I also want to know if there are more problems with installing too many Nukes/Calendars in one directory (one site)?
View user's profile Send private message
onishi
New Member
New Member


Joined: Feb 15, 2005
Posts: 1

PostPosted: Tue Feb 15, 2005 8:03 pm Reply with quote Back to top

I have tried doing what was said as well. Before it just says access denied. But after I have done the alterations, all i get now is a blank page. Please help.
View user's profile Send private message
makphisto
New Member
New Member


Joined: Feb 25, 2005
Posts: 3

PostPosted: Fri Feb 25, 2005 2:23 pm Reply with quote Back to top

I'm having similar issues. Using the fixes here, I get the calendar block AND I get the main calendar module page. However, the main module page gives me this error:

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


Is there no calendar native to 7.* yet?
View user's profile Send private message
Guardian2003
Site Admin


Joined: Aug 28, 2003
Posts: 4821

PostPosted: Fri Feb 25, 2005 4:56 pm Reply with quote Back to top

I have nucalendar working just fine on my nuke 7.5 site so I'm not sure why you are having these issues.
View user's profile Send private message Send e-mail Visit poster's website
makphisto
New Member
New Member


Joined: Feb 25, 2005
Posts: 3

PostPosted: Fri Feb 25, 2005 5:10 pm Reply with quote Back to top

And your above code was all you changed? Maybe I'll start over from the top. Thanks.
View user's profile Send private message
Guardian2003
Site Admin


Joined: Aug 28, 2003
Posts: 4821

PostPosted: Fri Feb 25, 2005 6:33 pm Reply with quote Back to top

I did not need to edit the files at all - perhaps you have an older version?
View user's profile Send private message Send e-mail Visit poster's website
makphisto
New Member
New Member


Joined: Feb 25, 2005
Posts: 3

PostPosted: Fri Feb 25, 2005 9:39 pm Reply with quote Back to top

Perhaps, the only version I can find is:
Version: .61 Filesize: 40 bytes
Added on: 23-Nov-2003

Know where I can get the most recent?
View user's profile Send private message
Guardian2003
Site Admin


Joined: Aug 28, 2003
Posts: 4821

PostPosted: Fri Feb 25, 2005 9:46 pm Reply with quote Back to top

Looks like I'm running the same version as you;
Module's Name: NuCalendar
Module's Version: 0.61
Release Date: May 25th 2003
Module's Cost: Free
License: GNU/GPL
Author's Name: Bill Smith
Author's Email: xxxx
Module's Description: An event calendar for PHP-Nuke version 6 and 6.5
Author's HomePage:
Only registered users can see links on this board!
Get registered or login to the forums!
View user's profile Send private message Send e-mail Visit poster's website
elephants1
New Member
New Member


Joined: May 07, 2005
Posts: 2

PostPosted: Sat May 07, 2005 5:01 pm Reply with quote Back to top

I am having this issue also.

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

Which admin.php file or which other file needs to be changed. I am new to this whop php stuff.
View user's profile Send private message
Guardian2003
Site Admin


Joined: Aug 28, 2003
Posts: 4821

PostPosted: Sun May 08, 2005 12:59 am Reply with quote Back to top

Edit the admin.php file in NuCalendar folder (inside 'modules')
View user's profile Send private message Send e-mail Visit poster's website
elephants1
New Member
New Member


Joined: May 07, 2005
Posts: 2

PostPosted: Sun May 08, 2005 9:21 am Reply with quote Back to top

I edited the admin.php file to look like the one you posted on this forum earlier and now everything works great. Thanks for the support.
View user's profile Send private message
Guardian2003
Site Admin


Joined: Aug 28, 2003
Posts: 4821

PostPosted: Sun May 08, 2005 9:53 am Reply with quote Back to top

Glad to help
View user's profile Send private message Send e-mail Visit poster's website
sabastina
Hangin' Around


Joined: May 12, 2005
Posts: 36

PostPosted: Fri May 27, 2005 12:56 pm Reply with quote Back to top

I've fixed this and win zipped it...does anyone know where I could put it for download for those who want a patched" version for 7+ ???
Also, do I need to alter the version or anything?
I will hold off on doing anything with it until I know what is allowed.

Thanks for reading!

Sabastina
View user's profile Send private message
Guardian2003
Site Admin


Joined: Aug 28, 2003
Posts: 4821

PostPosted: Fri May 27, 2005 2:48 pm Reply with quote Back to top

No you don't need to alter the version number, this would normally be done by the script writer but you could edit the readme to explain the fix that was made and which version of nuke you have used/tested it on for anyone else who might want to use it.
Upload the zipped file to your website and then all you have to do is submit it to which ever nuke site you would like to have the link to it.
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:       
Post new topic   Reply to topic

View next topic
View previous topic
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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2008 by Raven
Proud to be listed at Lobo Links Web Directory

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::

:: fisubice Theme Recoded To 100% W3C CSS & HTML 4.01 Transitional Compliance by Raven and 64bitguy ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum