Shawn
|
posted on 1/9/2007 at 01:59 PM |
O.K. to try and clear up how to use it:
1. PHP-Nuke automatically puts a link for different modules in the Main
Menu (Downloads, Surveys, etc..). This doesn't work for NukeWrap because
you can't just load NukeWrap, you need to tell NukeWrap what page/site to
display.
2. NukeWrap loads just like any other module, except that you have to give
it a parameter telling what to display.
NukeWrap comes with two example URLs setup, phpnuke and spidean. You would
display the spidean page like this (try typing this in your browser address
bar): http://yoursite.com/modules.php?name=NukeWrap&page=spid
ean
O.K. so this works, but how do your users use it? You need to put a link
to this somewhere on your page or pages. Use something like this: <a
href="modules.php?name=NukeWrap&page=spidean">Spidean</a>
Where do you put it? That's up to you. Put it in the header of your theme
or add a new block in the admin by typing a title and then put the link in
the content box. Voila, you have a block with a link to the Spidean site
wrapped in your site.
Also, there is a NukeWrap block, that if enabled will display a link to all
of your defined NukeWrap URLs. Go to the Blocks admin and where you can
add a new block, type a title like "Links" and then select NukeWrap under
filename. Voila again.
Thanks!
-Shawn
[Edited on 1/9/2007 by Shawn]
|
maddogmick
|
posted on 1/8/2007 at 06:52 PM |
Ok i think i can answer this one for you all.
I had the same problem and the more i looked at it the worse it got so
everyone calm down it does work just try this.
Ok i assume you have all loaded it into your php web site (if not read the
readme txt and work on that first)
Once you have loaded it to get it to work to full size this is what you
do.
I will deal with how to load it in a second.
You will see in the admin part of your web site you have the nuke wrap icon
click on that.
First of all click yes to url being in the url list
then to get the right height and width click width 100% and on height
depending on how long you want the page to be (100% doesnt seem to work
well) i use 700 just plain old 700 no px no p no % just plain old 700 if
you want it shorter then use 500 or longer then use 800 and so on until you
get the desired lenth.
Ok now where to list them make a HTML page adding what ever you want or get
the URL of a link to another page (I made a page and loaded via ftp to my
site and just call that page what ever the url is eg:
http//www.nyatvonline.com/products.html this page is what i call into my
site via php nuke) so it shows as part of my web site and not an outside
page, you can do this with a link from another site as well.
to do this just look at the admin page you are in and at the top there is a
link called URL LIST click on this, the URL i called products then just
entered the HTTP of the page fill in the height to what you desire eg:700
and the width to 100% scrool bars if you want
once you have set all this then all you do is call that block from your PHP
admin place the block where you want and it will show on your site.
To add to it go to admin again load another URL to the URL list and they
will show in your block
I hope this helped
thanks again Shawn its a very good working product i guess with me and
others we just need to slow down a little (we are all eager to get it up
and running) and take our times with the instructions, anyone who really
gets stuck contact me via email and i will help you
Mick
[Edited on 8/1/2007 by maddogmick]
|
Thunderfury
|
posted on 1/8/2007 at 06:22 PM |
Mate, I think we all know how to configure NukeWrap itself, the problem is
rather how to actually USE it, it has a poor explanation, which this thread
clearly shows, the problem people have is, we don't know how to get another
webpage into a phpnuke window, we don't know what to add where, no please
reply to that!
|
jim007
|
posted on 5/25/2006 at 08:47 AM |
Hi all.
Could someone please tell me how we alter the size of the page, when I try
to edit the size of the page on nukewrap admin, it has no effect on the
page at all?...any ideas?
|
Shawn
|
posted on 3/3/2006 at 06:18 PM |
Well, my main point was that NukeWrap 2.0 was released several days ago and
there is no need to edit the nukewrap.cfg because 2.0 has an admin
interface for configuring everything.
-Shawn
|
maddogmick
|
posted on 3/2/2006 at 08:01 PM |
Hi Shawn,
ok guys i think by doing this it will clear this thread up and make it easy
to see for everyone.
i understand this and what it is asking
<?php
//General Settings
//
$general = array (
'url-security' => false,
'local-pages-only' => false,
'address-bar-entry' => false,
'use-buffering' => true,
'use-compression' => false,
'registered-users-only' => false,
'open-direct-msg' => false,
'use-fixed-title' => false,
'auto-resize' => false,
'height' => "1500",
'width' => "100%"
);
//URL Security Settings
//
//Define URLs that can be diplayed if url-security = true
//These settings override the General settings above for the specific
URL
//
$authorized_url['http://www.phpnuke.org/'] = array (
'alias' => "phpnuke",
'registered-users-only' => false,
'open-direct-msg' => false,
'use-fixed-title' => false,
'auto-resize' => false,
'height' => "1500",
'width' => "100%"
);
$authorized_url['http://spidean.mckenzies.net/'] = array (
'alias' => "spidean",
'registered-users-only' => false,
'open-direct-msg' => false,
'use-fixed-title' => false,
'auto-resize' => false,
'height' => "1500",
'width' => "100%"
);
?>
i also understand that with security set to false it wont show php nuke or
your web site
but what i dont understand (and i dont think i am on my own)
is this:
which one of these types of insert do we use and why and where do we inset
it?
For example, an anchor would look like:
URL: <a href="modules.php?name=NukeWrap&page=index.php">My
Site</a>
Alias: <a href="modules.php?name=NukeWrap&page=mysite">My
Site</a>
Cool! For a remote site you would use:
URL: <a
href="modules.php?name=NukeWrap&page=http://www.PHP-Nuke.org/">PHP-N
uke Site</a>
Alias: <a href="modules.php?name=NukeWrap&page=phpnuke">PHP-Nuke
Site</a>
mine is a web site that is from another web site so what type of url do i
use (and why) and where do i install the code?
thanks Shawn
like all others i dont want to be a pain but i just dont seem to get it
Mick
|
Shawn
|
posted on 3/2/2006 at 07:01 PM |
O.K. I guess I just never ran across this thread. It doesn't appear to
have anything to do with NukeWrap. I'll reread the posts, but it's some
code that some guy posted. The newest NUkeWrap works fine and even has an
admin. Try it.
-Shawn
|
maddogmick
|
posted on 3/2/2006 at 12:07 AM |
Hi all i have been watching this thread and i have the same problem as
Randy
i did what you guys said and it all worked well except i got the blank page
any ideas please i am so close can someone help
thanks
thi sis what i have for the code
<?PHP
if (!IsSet($mainfile)) { include ('mainfile.php'); }
$index = 0;// Make it a 0 if you dont want the right blocks to be visible
include("header.php");
OpenTable();
include ("http://www.cafepress.com/atv_hudson.html");
CloseTable();
include("footer.php");
?>
Mick
[Edited on 2/3/2006 by maddogmick]
|
NoneSoVile
|
posted on 2/7/2005 at 11:07 AM |
k... that last one X-Factor posted from mel's Walk-Trhrought, works just
fine......
But...(There's always a but in but) Now I have th efollowing problems:
The link I'm hooking up to, is NOT situated outside the server were I have
phpNuke running. It's is simply on a seperate folder to the the Nuke
installation. I'm trying to hook up my Fully Modded phpBB2 Forums.
I get mixed results.. if I use a complete URL like this:
include ("http://www.kaoshq.com/phpbb2/index.php");
I ONLY get the text of the forums and no graphics or styling... just click
on this URL to see what I mean.
http://www.kaoshq.com/modules.php?name=kAoSforums
If I change the URL to look like this:
include ("/phpbb2/index.php");
or this
include ("/home/kaoshq/public_html/phpbb2/index.php");
I get all this:
Warning: main(./extension.inc): failed to open stream: No such file or
directory in /home/kaoshq/public_html/phpbb2/index.php on line 31
Warning: main(./extension.inc): failed to open stream: No such file or
directory in /home/kaoshq/public_html/phpbb2/index.php on line 31
Warning: main(): Failed opening './extension.inc' for inclusion
(include_path='.:/usr/lib/php:/usr/local/lib/php') in
/home/kaoshq/public_html/phpbb2/index.php on line 31
Warning: main(./common.): failed to open stream: No such file or directory
in /home/kaoshq/public_html/phpbb2/index.php on line 32
Warning: main(./common.): failed to open stream: No such file or directory
in /home/kaoshq/public_html/phpbb2/index.php on line 32
Warning: main(): Failed opening './common.' for inclusion
(include_path='.:/usr/lib/php:/usr/local/lib/php') in
/home/kaoshq/public_html/phpbb2/index.php on line 32
Warning: main(./lgf-reflog.): failed to open stream: No such file or
directory in /home/kaoshq/public_html/phpbb2/index.php on line 33
Warning: main(./lgf-reflog.): failed to open stream: No such file or
directory in /home/kaoshq/public_html/phpbb2/index.php on line 33
Warning: main(): Failed opening './lgf-reflog.' for inclusion
(include_path='.:/usr/lib/php:/usr/local/lib/php') in
/home/kaoshq/public_html/phpbb2/index.php on line 33
Warning: main(./includes/functions_selects.): failed to open stream: No
such file or directory in /home/kaoshq/public_html/phpbb2/index.php on line
34
Warning: main(./includes/functions_selects.): failed to open stream: No
such file or directory in /home/kaoshq/public_html/phpbb2/index.php on line
34
Warning: main(): Failed opening './includes/functions_selects.' for
inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in
/home/kaoshq/public_html/phpbb2/index.php on line 34
Warning: main(./includes/functions_news.): failed to open stream: No such
file or directory in /home/kaoshq/public_html/phpbb2/index.php on line
35
Warning: main(./includes/functions_news.): failed to open stream: No such
file or directory in /home/kaoshq/public_html/phpbb2/index.php on line
35
Warning: main(): Failed opening './includes/functions_news.' for inclusion
(include_path='.:/usr/lib/php:/usr/local/lib/php') in
/home/kaoshq/public_html/phpbb2/index.php on line 35
Warning: main(./chatbox_front.): failed to open stream: No such file or
directory in /home/kaoshq/public_html/phpbb2/index.php on line 36
Fatal error: main(): Failed opening required './chatbox_front.'
(include_path='.:/usr/lib/php:/usr/local/lib/php') in
/home/kaoshq/public_html/phpbb2/index.php on line 36
++++++
Any suggestions as to how to fix that?
Thanks.
|
xfactor
|
posted on 9/22/2004 at 08:21 PM |
Thanks MEL,
This one worked for me:
<?PHP
if (!IsSet($mainfile)) { include ('mainfile.php'); }
$index = 1;// Make it a 0 if you dont want the right blocks to be visible
include("header.php");
OpenTable();
include ("yourpage.html");
CloseTable();
include("footer.php");
?>
I spent two days posting in several forums and NOTHING!
|
RandyOKC
|
posted on 4/11/2004 at 09:08 PM |
I am using PHP Nuke 6.9, and used the instruction listed here.
I have edited the nukewrap.cfg
I cut and pasted(from the walk thru) the part about index.php(and edited
it) and put it in my module directory, as instructed.
When I click on the link for this module, I just get a blank page, not
even in a block in the center of the window.
Any suggestions.
|
spiderwebb
|
posted on 1/27/2004 at 01:13 PM |
Hi another newbie here
Thanks Mel your walkthrough worked for me with a single php page now going
to see fi I can get it to run a script
Spiderwebb
|
litfoo
|
posted on 12/1/2003 at 06:36 PM |
HI guys,
I must be a real newbie...
"Step ONE: Edit your nukewrap.cfg file to reflect the pages you want to
integrate"
I don't even know how to do this part..
I want to be able to click on the menu in the left and for my main window
to show http://www.jason-lee.com/guest
What and where do I need to put this detail in the nukewrap.cfg file?
Sorry for being so ignorant.
Thanks in advance,
litfoo
|
Shawn
|
posted on 10/23/2003 at 07:24 PM |
Check my other post from today in this forum.
-Shawn
|
mel
|
posted on 10/23/2003 at 01:36 PM |
Yes, as you can probably tell from my own post in this thread, I cannot
make it work.
I searched a few other websites for nukewrap threads, including
www.nukecops.com (which is great and which led me here in the first place),
and one of the admins on that site recommended a different code for the
newly created module. To give my whole walkthrough, it mostly follows
Fear's but changes in Step THREE.
Step ONE: Edit your nukewrap.cfg file to reflect the pages you
want to integrate or just turn security to FALSE.
Step TWO: Go to your modules directory in nuke and create a new
folder for the page you want to integrate. Name the folder whatever you
like. (For example, mine is entitled "Roster" because the nukewrap html
page will point to my guild's roster)
Step THREE: Create an index.php document for your new folder
("Roster" in my example) using notepad. The text should look like this:
<?PHP
/**************************************************************************
**/
/* PHPNuke 5, Author Francisco Burzi (fburzi@ncc.org.ve) */
/* http://www.phpnuke.org/ */
/* */
/* 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. */
/**************************************************************************
**/
if (!IsSet($mainfile)) { include ('mainfile.php'); }
include("header.php");
include ("yourpage.html");
include("footer.php");
?>
Step FOUR: Activiate the newly created module in your php-Nuke
admin.
-- NOTE that I'm at work right now and cannot access my files to test it
but I have my fingers crossed. Keep in mind, I'm working with php-Nuke so
this should only work for php-Nuke and I don't know how to modify it for
Post-Nuke.
G'luck. And the rest of you newbies...please post your own walk through
fixes on this thread if you find something that works!
**edit**
Other mods at nukecops.com recommended that the newly created index.php
look like this:
<?php
if (!eregi("modules.php", $PHP_SELF)) {
die ("You can't access this file directly...");
}
Header("Location: modules.php?name=NukeWrap&page=test");
die();
?>
OR
<?PHP
if (!IsSet($mainfile)) { include ('mainfile.php'); }
$index = 1;// Make it a 0 if you dont want the right blocks to be visible
include("header.php");
OpenTable();
include ("yourpage.html");
CloseTable();
include("footer.php");
?>
I can't tell you which works quite yet, but once I am able to test them
both at home I'll reply here again...
[Edited on 23/10/2003 by mel]
[Edited on 23/10/2003 by mel]
|
tek54
|
posted on 10/23/2003 at 12:31 PM |
Has anyone made this work? I followed this instruction and all I get is 2
new modules. 1 mod named NukeWrap and another named Standings, the one I
created! Click on Postwrap and I get a "no page called" message. Click on
Standings and I get a full blank white page. PostNuke had a mod called
PostWrap which worked great for me. I feel like an idiot with php! Don't
get me wrong, I think Fear did a very simple walk-thru here but I can't get
it to work. I've been all over this forum and through the install doc too!
Here is my index for the Standigs mod:
<?
if (!IsSet($mainfile)) { include ('mainfile.php'); }
$index = 1; //0 : do not show right blocks - 1:show right blocks
@include ("http://WWW.WVRL.COM/modules.php?name=NukeWrap&page
=http://WWW.WVRL.COM/WC03/RPMSTANDINGS.HTML");
?>
[Edited on 23/10/2003 by tek54]
|
Fear
|
posted on 10/15/2003 at 10:13 AM |
Ok guys. I think I can help you guys get this script working. Im going to
assume most have installed nukewrap.
1. Edit your nukewrap.cfg file to reflect the pages you want to
integrate.
2. Goto your modules directory in nuke and create a new folder for the page
you want to integrate. Name the folder whatever.
3. Now open notepad.
4. Paste this into notepad:
<?
if (!IsSet($mainfile)) { include ('mainfile.php'); }
$index = 1; //0 : do not show right blocks - 1
:show right blocks
@include ("http://YOURSITE.COM/modules.php?name=NukeWrap&page=http://THE_URL
_TO_THE_PAGE_YOU_WANT_TO_ADD");
?>
5. Dont forget to edit the "yoursite.com" and
"the_url_to_the_page_you_want_to_add" to reflect your specific
information
6. Save the file as index.php
7. Upload it to the new folder in modules you just created.
8. Now goto the admin area and activate the module.
I hope that will help most of you get nukewrap going. Good luck.
|