You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 53 guest(s) and 0 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - Calendar block error [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
ccozkaraca
Nuke Soldier
Nuke Soldier


Joined: Jun 07, 2005
Posts: 19


PostPosted: Tue Aug 09, 2005 2:47 pm Reply with quoteBack to top

I have just installed the calendar block when i try to use calendar button at the admin panel. I am getting this error message ;

Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /home/agirabil/public_html/portal/admin/modules/calendar.php on line 16
Access Denied


can anyone tell me how can i fix it please ?
Find all posts by ccozkaracaView user's profileSend private message
Evaders99
Site Admin
Site Admin


Joined: Aug 17, 2003
Posts: 12383


PostPosted: Tue Aug 09, 2005 5:13 pm Reply with quoteBack to top

Well what is the code in that block? What version are you using?

_________________
Helping those that help themselves
Read FIRST or DIE!

"Fighting is terrible, but not as terrible as losing the will to fight."
Star Wars Rebellion Network - Need Help? Evaders Squadron Coding
Find all posts by Evaders99View user's profileSend private messageVisit poster's websiteAIM Address
ccozkaraca
Nuke Soldier
Nuke Soldier


Joined: Jun 07, 2005
Posts: 19


PostPosted: Tue Aug 09, 2005 10:15 pm Reply with quoteBack to top

Dear admin

I am using PhpNuke 7.5 without patch and this is orginal code of calendar;



_________________________________________________________

<?php
/********************************************************/
/********************************************************/
/* Event Calendar */
/* Written by: Rob Sutton */
/* http://www.xnettech.com (My Consulting Company) */
/* http://smart.xnettech.net (My Nuke Site) */
/* */
/* This program is opensource so you can do whatever */
/* you want with it. */
/********************************************************/
/********************************************************/

if (!eregi("admin.php", $PHP_SELF)) { die ("Access Denied"); }
$result = mysql_query("select radminarticle, radminsuper from nuke_authors where aid='$aid'");
list($radminarticle, $radminsuper) = mysql_fetch_row($result);

$module_name = "Calendar"; // CHANGE THIS IF YOU CHANGE THE MODULES FOLDER NAME

include("modules/$module_name/config.php");

if (($radminCalendarAdmin==1) OR ($radminsuper==1)) {

/********************************************************/


Last edited by ccozkaraca on Fri Aug 12, 2005 2:51 am; edited 1 time in total
Find all posts by ccozkaracaView user's profileSend private message
Evaders99
Site Admin
Site Admin


Joined: Aug 17, 2003
Posts: 12383


PostPosted: Wed Aug 10, 2005 5:52 am Reply with quoteBack to top

Try
Code:

if (!eregi("admin.php", $PHP_SELF)) { die ("Access Denied"); }

TO

if (!eregi("admin.php", $_SERVER['SCRIPT_NAME'])) { die ("Access Denied"); }

_________________
Helping those that help themselves
Read FIRST or DIE!

"Fighting is terrible, but not as terrible as losing the will to fight."
Star Wars Rebellion Network - Need Help? Evaders Squadron Coding
Find all posts by Evaders99View user's profileSend private messageVisit poster's websiteAIM Address
ccozkaraca
Nuke Soldier
Nuke Soldier


Joined: Jun 07, 2005
Posts: 19


PostPosted: Fri Aug 12, 2005 2:26 am Reply with quoteBack to top

I did what you advise and gave me this error ;



Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /home/agirabil/public_html/portal/admin/modules/calendar.php on line 16
Access Denied
Find all posts by ccozkaracaView user's profileSend private message
Evaders99
Site Admin
Site Admin


Joined: Aug 17, 2003
Posts: 12383


PostPosted: Fri Aug 12, 2005 4:20 am Reply with quoteBack to top

Are you modifying the right files? The sql error indicates a table problem, did you install the tables right?

_________________
Helping those that help themselves
Read FIRST or DIE!

"Fighting is terrible, but not as terrible as losing the will to fight."
Star Wars Rebellion Network - Need Help? Evaders Squadron Coding
Find all posts by Evaders99View user's profileSend private messageVisit poster's websiteAIM Address
ccozkaraca
Nuke Soldier
Nuke Soldier


Joined: Jun 07, 2005
Posts: 19


PostPosted: Fri Aug 12, 2005 11:59 pm Reply with quoteBack to top

hi Evaders99,

I am modifiying the file in the \admin\modules\calendar.php


This is the block file i am trying to use; http://agirabiler.com/download/Calendar2.zip

Please could help me to solve this, i have motocycle fun club site and really need this calendar module.
Find all posts by ccozkaracaView user's profileSend private message
Evaders99
Site Admin
Site Admin


Joined: Aug 17, 2003
Posts: 12383


PostPosted: Sat Aug 13, 2005 1:06 pm Reply with quoteBack to top

admin/case/case.calendar.php

Code:

if (!eregi("admin.php", $PHP_SELF)) { die ("Access Denied"); }

TO

if (!eregi("admin.php", $_SERVER['SCRIPT_NAME'])) { die ("Access Denied"); }


admin/modules/calendar.php

Code:

if (!eregi("admin.php", $PHP_SELF)) { die ("Access Denied"); }

TO

if (!eregi("admin.php", $_SERVER['SCRIPT_NAME'])) { die ("Access Denied"); }


blocks/block-Calendar1.php
Code:

if (eregi("block-Calendar1.php", $PHP_SELF)) {

TO

if (eregi("block-Calendar1.php", $_SERVER['SCRIPT_NAME'])) {


blocks/block-Calendar2.php
Code:

if (eregi("block-Calendar2.php", $PHP_SELF)) {

TO

if (eregi("block-Calendar2.php", $_SERVER['SCRIPT_NAME'])) {


modules/Calendar/index.php

Code:

if (!eregi("modules.php", $PHP_SELF)) {

TO

if (!eregi("modules.php", $_SERVER['SCRIPT_NAME'])) {


modules/Calendar/index.php

Code:

if (!eregi("modules.php", $PHP_SELF)) {

TO

if (!eregi("modules.php", $_SERVER['SCRIPT_NAME'])) {


modules/Calendar/submit.php

Code:

if (!eregi("modules.php", $PHP_SELF)) {

TO

if (!eregi("modules.php", $_SERVER['SCRIPT_NAME'])) {

_________________
Helping those that help themselves
Read FIRST or DIE!

"Fighting is terrible, but not as terrible as losing the will to fight."
Star Wars Rebellion Network - Need Help? Evaders Squadron Coding
Find all posts by Evaders99View user's profileSend private messageVisit poster's websiteAIM Address
ccozkaraca
Nuke Soldier
Nuke Soldier


Joined: Jun 07, 2005
Posts: 19


PostPosted: Sat Aug 13, 2005 11:33 pm Reply with quoteBack to top

First of all thank you so much for your help...

I have made all changes you wrote after i got this error:

Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /home/agirabil/public_html/portal/admin/modules/calendar.php on line 16
Access Denied




This is the code ( admin/modules/calendar.php) after i changed, i didnot get whats wrong :

if (!eregi("admin.php", $_SERVER['SCRIPT_NAME'])) { die ("Access Denied"); }
$result = mysql_query("select radminarticle, radminsuper from nuke_authors where aid='$aid'");
list($radminarticle, $radminsuper) = mysql_fetch_row($result);
Find all posts by ccozkaracaView user's profileSend private message
Evaders99
Site Admin
Site Admin


Joined: Aug 17, 2003
Posts: 12383


PostPosted: Sun Aug 14, 2005 5:43 am Reply with quoteBack to top

In all scripts:

Code:

mysql_fetch_row(

TO

$db->sql_fetchrow(



mysql_query(

TO

$db->sql_query(

_________________
Helping those that help themselves
Read FIRST or DIE!

"Fighting is terrible, but not as terrible as losing the will to fight."
Star Wars Rebellion Network - Need Help? Evaders Squadron Coding
Find all posts by Evaders99View user's profileSend private messageVisit poster's websiteAIM Address
Display posts from previous:      
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next 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



Powered by phpBB © 2001, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by · TOGETHER TEAM srl ITALY http://www.togetherteam.it · DONDELEO E-COMMERCE http://www.DonDeLeo.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: 0.242 Seconds - 299 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::