Okay I now have my nuCalendar up, but when I am logged in I am unable to click on the graphic and edit events and such. It says Access Denied.
Also I want to put this into a block. How do I do that?
ethana Sergeant
Joined: Dec 26, 2005
Posts: 81
Posted:
Wed Jan 04, 2006 12:48 pm
Are you using a newer version of nuke? Do you need to switch from
Code:
if (!eregi("".$admin_file.".php", $_SERVER['PHP_SELF'])) { die ("Access Denied"); }
to
Code:
if (!defined('ADMIN_FILE')) {
die ("Access Denied");
}
?
I think i might have an older version of nucalendar but check in the /root/admin/modules for nucalendar.php or something similar and see if this is the case. Also, for a block...i thought i came with one? I have nucalendar running on 7.7 but i believe 7.8 adapted the changes...their going towards using constants now rather than what you see above.
ProverbDoll Corporal
Joined: Jul 22, 2005
Posts: 55
Location: Wyoming, USA
Posted:
Wed Jan 04, 2006 12:55 pm
I am using nuke 7.7 and the latest version of nuCalendar.
ProverbDoll Corporal
Joined: Jul 22, 2005
Posts: 55
Location: Wyoming, USA
Posted:
Wed Jan 04, 2006 1:03 pm
Is this the right code?
Code:
if (!eregi("admin.php", $PHP_SELF)) { die ("Access Denied"); }
This is the only one I found in that file that was the closest to what you said.
As for the block... I am not sure. Is there something I am suppose to do to make it into a block?
ethana Sergeant
Joined: Dec 26, 2005
Posts: 81
Posted:
Wed Jan 04, 2006 1:52 pm
Now that i think about it, i had a problem with this too...the problem was the sql query that it was using to look up the admin users...i changed it to this:
Code:
$result = sql_query("select radminsuper from ".$prefix."_authors where aid='$aid'", $dbi);
I cant remember what it was doing wrong before...think it was selecting the wrong column or something of that nature. Post what your sql query is that is located at the top of the /root/admin/module/nucalendar.php
ProverbDoll Corporal
Joined: Jul 22, 2005
Posts: 55
Location: Wyoming, USA
Posted:
Wed Jan 04, 2006 2:24 pm
Yay! It worked! You rock! Thank you!
Now how do I get it in a block?
ethana Sergeant
Joined: Dec 26, 2005
Posts: 81
Posted:
Wed Jan 04, 2006 2:27 pm
Shouldve come with it, but if it hasnt, here is one...hopefully it can post all of it. Name it whatever but i got it as block-Upcoming_Events.php.
Enjoy.
Code:
<?php
/************************************************************************/
/* NuCalendar */
/* =========================== */
/* */
/* Copyright (c) 2003 by Bill Smith */
/* http://www.vettesofthetropics.com */
/* */
/* Based on Web Calendar */
/* Copyright (c) 2001 by Proverbs, LLC */
/* http://www.proverbs.biz */
/* */
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License. */
/************************************************************************/
function DisplayEventsCategory($myrow)
{
global $user_prefix, $dbi;
$result = sql_query("SELECT * FROM ".$user_prefix."_nucal_categories WHERE id='$myrow[categoryid]'", $dbi);
$rtnVal = 0;
$catrow = sql_fetch_array($result, $dbi);
return $catrow[showinblock];
}
function DisplayInfo($ulmonth, $ulday, $ulyear, $myrow)
{
$rtnVal = "";
It's working now. Thank you. I just forgot to add a block. *feels dumb*
ethana Sergeant
Joined: Dec 26, 2005
Posts: 81
Posted:
Wed Jan 04, 2006 2:53 pm
NP! I already fought with this module once before so im glad it not only solved my issue but yours as well.
ProverbDoll Corporal
Joined: Jul 22, 2005
Posts: 55
Location: Wyoming, USA
Posted:
Wed Jan 04, 2006 3:06 pm
Well thanks!
ssace Lieutenant
Joined: Dec 29, 2005
Posts: 175
Posted:
Sun Jan 22, 2006 6:20 pm
I installed nuCalendar today and it seems to be working fine...BUT...in my site admin panel...when I click on the NUCALENDER icon, the administration area gives me these 2 messages:
The only thing that appears awkward is the calendar looks cramped a little. I'm using a theme that is narrow (800). Is there a way to adjust the size of the calendar?
ssace Lieutenant
Joined: Dec 29, 2005
Posts: 175
Posted:
Sun Jan 22, 2006 6:31 pm
One more thing. In the install instructions, it mentioned merging the mainfile.php. It also mentioned mergine language.php files. I wasn't sure how to do that. I didn't want to mess up my mainfile. As I mentioned earlier, the calendar seems to work but I'm not sure if this will catch up with me.
Do I need to merge these files & if so, how do you do that?
ssace Lieutenant
Joined: Dec 29, 2005
Posts: 175
Posted:
Sun Feb 12, 2006 7:00 am
ssace wrote:
I installed nuCalendar today and it seems to be working fine...BUT...in my site admin panel...when I click on the NUCALENDER icon, the administration area gives me these 2 messages:
The only thing that appears awkward is the calendar looks cramped a little. I'm using a theme that is narrow (800). Is there a way to adjust the size of the calendar?
Any help with this?...please
siasat Nuke Cadet
Joined: Jun 25, 2006
Posts: 1
Posted:
Sun Jun 25, 2006 1:36 pm
ssace wrote:
ssace wrote:
I installed nuCalendar today and it seems to be working fine...BUT...in my site admin panel...when I click on the NUCALENDER icon, the administration area gives me these 2 messages:
The only thing that appears awkward is the calendar looks cramped a little. I'm using a theme that is narrow (800). Is there a way to adjust the size of the calendar?
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