Support Spidean |
Do you like our FREE downloads? How about the FREE support for the FREE downloads? Please help us out and donate any amount! It's fast and easy through PayPal.
|
Board Index > NukeWrap > Error: Sorry, you are not allowed to do that
mel
Newbie   Posts: 4 Registered: 10/23/2003 Status: Offline
|
posted on 10/23/2003 at 06:46 AM |
No, that just isn't working for me.
My current site is located at http://www.therambler.net/ra/index.php
I uploaded the NukeWrap files in my modules directory. I am using Nuke
6.9.
I have reconfigured my nukewrap.cfg so that it url-security is false and I
have also permitted it to disply http://www.guildtools.net sites in any event.
I have also added a new module directory called "Roster" and I have
uploaded an index.php file for that directory that looks exacly like the
walkthrough text posted by another user:
<?php
if (!IsSet($mainfile)) { include ('mainfile.php'); }
$index = 1;
@include
("http://www.therambler.net/ra/modules.php?name=NukeWrap&page=http://rd
b.guildtools.net/hosted/risingroster/db.cgi?db=default&uid=default&
&view_records=1&key=*&sb=7&so=ascend");
?>
because I felt the text was wrong from the very beginning, I've also tried
several other versions of this same index.php text, for instance without
the @ symbol in the include, only beginning with ("modules.php?...),
etc.
None of it works! I always get an error that says:
Warning: Failed opening '/modules/NukeWrap/nukewrap.cfg' for inclusion
(include_path='') in /modules/NukeWrap/index.php on line 20
Sorry, you are not allowed to do that.
Please help those of us who are budding php n00bs. I do understand from
reading every single post on these forums and from reading the
documentation that I need to add the URL in one of my scripts, whether it
be the main module script, another module index script, etc. That is what
I've tried to do. I get the error no matter what....I think its because I
don't understand HOW to add the link to my scripts in a way that makes php
code happy. I think a ton of other users have this same problem judging
from the posts on these forums.
Help!
[note: If you look at my site you will see that I now have "Guild Roster"
and "Roster" module links visible. The right module for our purposes is
"Roster." "Guild Roster" is the same http location I want the nukewrap to
head to but it will not stay in the frames - hence the reason I wanted
nukewrap.] |
| |
| |
Shawn
Administrator   Posts: 4608 Registered: 10/7/2002 Status: Online
|
posted on 10/23/2003 at 11:39 PM |
Don't create a module or any of that. Just do this:
create new new block called Links or whatever and put this in the
content:
http://www.therambler.net/ra/modules.php?name=NukeWrap&
page=http://rd
b.guildtools.net/hosted/risingroster/db.cgi?db=default&uid=default&
&view_records=1&key=*&sb=7&so=ascend
Except in this part: db.cgi?db=default&uid=default&
&view_records=1&key=*&sb=7&so=ascend
Replace the ? and all & with the proper code, found at the end of the
text doc in the docs dir.
Let me know.
-Shawn |
| |
mel
Newbie   Posts: 4 Registered: 10/23/2003 Status: Offline
|
posted on 10/25/2003 at 09:55 AM |
Shawn,
Thank you for responding so quickly but your guidance isn't helping for a
couple reasons. First, I don't want to use NukeWrap for a block, but for a
module. (That is to say, I do not want to have to create a separate block
when what I want to do is link to an outside database page). Second, if I
knew how to "put this in the content" I wouldn't be here. The problem is
that I and others aren't good with PHP yet and so that simple statement is
very confusing and frustrating.
Basically, I have no idea how to "put this in the content." I AM familiar
with html language, but not with PHP or at least not enough with php to
make this work. I've asked for help on Nukecops too....None of the
recommended "walkthrough" scripts worked for me. The errors range from
Getting an entirely blank page; OR
Getting the warning: Warning: Failed opening
'/modules/NukeWrap/nukewrap.cfg' for inclusion (include_path='') in
/modules/NukeWrap/index.php on line 20
Sorry, you are not allowed to do that.; OR
Getting the warning: Warning: Failed opening
'modules.php?name=NukeWrap&page=http://rdb.guildtools.net/hosted/rising
roster/db.cgi%3Fdb=default%26uid=default%26%26view_records=1%26key=*%26sb=7
%26so=ascend' for inclusion (include_path='') in /modules/Roster/index.php
on line 6 |
| |
Shawn
Administrator   Posts: 4608 Registered: 10/7/2002 Status: Online
|
posted on 10/25/2003 at 03:04 PM |
Ok, here it goes:
The URL: http://www.therambler.net/ra/modules.php?name=NukeWrap&
page=http://rd
b.guildtools.net/hosted/risingroster/db.cgi?db=default&uid=default&
&view_records=1&key=*&sb=7&so=ascend
Is the URL that calls your NukeWrap and your wrapped page. For your
wrapped page to be displayed, there has to be a link somewhere for someone
to click on (right?). Just like Downloads or Web_Links, you need a link
for users to click.
So what I was showing you, was how to create a block with that link in it,
so that your users could click that link and see your wrapped page. Just
like the 2 "Read the Documentation" links on my homepage.
So just go to Administration / Blocks / scroll down and add this in the
content text box:
<a href="http://www.therambler.net/ra/modules.php?name=NukeWrap&
page=http://rd
b.guildtools.net/hosted/risingroster/db.cgi?db=default&uid=default&
&view_records=1&key=*&sb=7&so=ascend">Click</a>
You can also test your wrapped page in the address bar of your browser, and
if you get, "Sorry, you are not allowed to do that", maybe you should set
"Allow input from address bar" = true in the nukewrap.cfg.
-Shawn
[Edited on 10/25/2003 by Shawn] |
| |
mel
Newbie   Posts: 4 Registered: 10/23/2003 Status: Offline
|
posted on 10/26/2003 at 10:30 AM |
Thank you for taking the time to deal with my questions and resolve my
problems. /hug It does work now, as explained below, for installing
blocks.
Do you happen to have any recommendations for the code necessary to install
a module? That is to say, right now I can install a link within a block
with your help, and I can also install a link as $content within the
primary forum. But what I cannot do is create a module folder and an
index.php that directs the user to the html page ... because I can't seem
to get the "include" script right.
In the meantime, using your recommended language, I added the following
language to my block-Modules.php file after the first $content line:
$content .=
"<strong><big>·</big></strong>
<a
href=\"modules.php?name=NukeWrap&page=http://rdb.guildtools.net/hosted/
risingroster/db.cgi%3Fdb=default%26uid=default%26%26view_records=1%26key=*%
26sb=7%26so=ascend\">Guild Roster</a><br>\n";
Even then, I still had a small problem with the following error appearing:
Warning: Failed opening '/modules/NukeWrap/nukewrap.cfg' for inclusion
(include_path='') in /modules/NukeWrap/index.php on line 20.
Ultimately, I read line 20 of the NukeWrap index.php, which as programmed
read
include(dirname(__FILE__)."/nukewrap.cfg");
But for whatever reason that didn't work with my program. I changed it to
read
include("http://www.therambler.net/ra/modules/NukeWrap/nukewrap.cfg");
That seemed to fix all of the strangeness and I hope my suggestions may
work for other n00bs like myself trying to use this great script. If you,
shawn, or anyone else has recommendations for making an index.php file for
a MODULE - as opposed to a block - I'd appreciate it!
[Edited on 26/10/2003 by mel] |
| |
Shawn
Administrator   Posts: 4608 Registered: 10/7/2002 Status: Online
|
posted on 10/26/2003 at 01:51 PM |
If I understand correctly, you want a module that automatically loads your
wrapped page? Your users will still need to click the module link to load
the module that in turn loads NukeWrap. Seems like an extra step to me,
but check out NukeJump. This is what it is for.
-Shawn |
| |
|
|
|
|