XenoMorpH
Newbie   Posts: 4 Registered: 5/25/2003 Status: Offline
|
posted on 5/25/2003 at 08:55 PM |
I got a question about nukewrap:
U know how to let the url be shown in a table (phpnuke 6.5)?
I tried to modify this part of the index file:
<?// Build and display title and content
$content = "\n\n<!-- Begin NukeWrap Content -->\n"<
br />
."<div class=\"title\" align=\"center\">".$title."</div>\n"
."<iframe id=\"NukeWrap\" src=\"$page\" width=\"$hsiz
e\" height=\"$vsize\" frameborder=\"0\" marginheight=\"0\"&n
bsp;marginwidth=\"0\">\n"
." <br />"._SORRYBROWSER."<a class=\"pn-pagetitle\" href=\"$page\" target=\"_
blank\">"._LINKYOU."</a>"._SORRYBROWSER1."<br /><br />\n"
."</iframe>\n"
."<div class=\"title\" align=\"center\">".$end_title."</div>\n"
."<!-- End NukeWrap Content -->\n\n";
<
br />
echo $content;
// Finish up
?>
I used content module to create pages, and it had a table as background. I
am using a .js which lets the center tables show up transparent. With the
nukewrap these pages won't show up transparent. So I need them to be shown
in a table with:
<?
<td class="extras">
?>
I have tried some things out, without any results. I'm n00b @ php coding
tho.
tnx in advance. 
[Edited on 26/5/2003 by XenoMorpH]
[Edited on 26/5/2003 by XenoMorpH]
[Edited on 26/5/2003 by XenoMorpH] |
| |
| |
XenoMorpH
Newbie   Posts: 4 Registered: 5/25/2003 Status: Offline
|
posted on 5/26/2003 at 04:19 PM |
NukeWrap index.php:
<?<?php
// ------------------------------------------------------------------
----
// Based on:
// ShowInMain for phpWebSite by Jim Flowers
(jflowers@ezo.net)
// -----------------------------------------------------------------
-----
// Filename: index.php
// Original Author of file: Sh
awn McKenzie (AbraCadaver)
// Purpose of file: Incorporate external si
tes or apps
// -----------------------------------------------------------------
-----
if (!eregi("modules.php", $PHP_SELF)) {
die ("You can't access this file directly...");
}
$module_name = basename(dirname(__FILE__));
get_lang($module_name);
include("header.php");
include(dirname(__FILE__)."/nukewrap.cfg");
if($general['url-security']) {
foreach($authorized_url as $url => $innerarray) {
// Check if URL is in array
if (($innerarray['alias'] == $page) || ($url == $page) || ($url == "http://".$page)) {
<
/span>$checked = true;
<
/span>$page = $url;
<
/span>// Override global settings
<
/span>foreach($general as $key => $new) {
&
nbsp; if(isset($innerarray[$key])) {
&
nbsp; $newval[$key] = $innerarray[$key];
&
nbsp; } else {
&
nbsp; $newval[$key] = $new;
&
nbsp; }
}
i
f($newval) {
&
nbsp; $general = $newval;
&
nbsp; unset($newval);
}
}
}
// Nope - display a message and quit
if(!isset($checked)) {
$title = (_NOTAUTHHOSTMSG);
no_display($title);
}
}
// Assign settings to vars to be used
$allow_local_only = $general['local-pages-only'];
$use_buffering = $general['use-buffering'];
$use_compression = $general['use-compression'];
$reg_user_only = $general['registered-users-only'];
$user_entry = $general['address-bar-entry'];
$open_direct = $general['open-direct-msg'];
$use_fixed_title = $general['use-fixed-title'];
$auto_resize = $general['auto-resize'];
$vsize = $general['height'];
$hsize = $general['width'];
// Store URL parts in array
$url_parts = parse_url($page);
// Check that a page was specified
if(!isset($page) || ($page=="")) {
$title = _NOPAGEMSG;
no_display($title);
}
// Check for not entered in browser loc
ation window if set
if(!$HTTP_SERVER_VARS["HTTP_REFERER"] && !$user_entry) {
$title = _NOUSERENTRYMSG;
no_display($title);
}
// Check for not local page if set
if($allow_local_only &&
($url_parts['host'] != $HTTP_SERVER_VARS["SERVER_NAME"]) &&
($url_parts['host'] != $HTTP_SERVER_VARS["HTTP_HOST"])) {
$title = _NOTLOCALMSG;
no_display($title);
}
// Check that user is registered and lo
gged in if set
if(!$username && ($reg_user_only)) {
$title = _NOTSERMSG;
no_display($title);
}
// Everything is good - ready to displa
y
// Use compression if set
if($use_compression) {
ob_start("ob_gzhandler");
}
elseif($use_buffering) {
ob_start();
}
// Check for fixed title and use it&nbs
p;
// Check if title was pa
ssed in URL
if(!$title) {
if($use_fixed_title) {
<
/span>$title = (_TITLEMSG);
<
/span>$end_title = (_TITLEMSGEND);
} else {
<
/span>$title = "";
<
/span>$end_title = "";
}
} else {
$end_title = "";
}
// Add the Open Direct link if set 
;
if($open_direct) {
if($use_fixed_title) {
<
/span>$title .= "<br />[ <a href=\"$page\" target
=\"_blank\">"._OPENDIRECTMSG."</a> ]";
<
/span>$end_title .= "<br />[ <a href=\"$page\" target
=\"_blank\">"._OPENDIRECTMSG."</a> ]";
} else {
<
/span>$title .= "[ <a href=\"$page\" target=\"_blank\">"._OPENDIRECTMSG."</a> ]";
<
/span>$end_title .= "[ <a href=\"$page\" target=\"_blank\">"._OPENDIRECTMSG."</a> ]";
}
}
// Check if height, width or resize wer
e passed in URL
if($height) {
$vsize = $height;
$auto_resize = false;
}
if($width) {
$hsize = $width;
}
elseif(!$hsize) {
$hsize = "100%";
}
if($resize == 1) {
$auto_resize = true;
}
// If auto_resize set vsize = 0 and&nbs
p;build javascript content
if($auto_resize) {
$jscontent = "\n\n<!-- Begin NukeWrap Auto Resize --&am
p;gt;\n"
<
/span>."<script language=\"javascript\" type=\"text/javascript\"
src=\"modules/$module_name/javascript/nukewrap.js\">\n"
<
/span>."</script>\n"
<
/span>."<!-- End NukeWrap Auto Resize -->\
n\n";
$vsize = 0;
}
// Build and display title and content
$content = "\n\n<!-- Begin NukeWrap Content -->\n"<
br />
."<div class=\"title\" align=\"center\">".$title."</div>\n"
."<iframe class=\"extras\" id=\"NukeWrap\" src=\"$pag
e\" width=\"$hsize\" height=\"$vsize\" frameborder=\"0\"&nbs
p;marginheight=\"0\" marginwidth=\"0\">\n"
." <br />"._SORRYBROWSER."<a class=\"pn-pagetitle\" href=\"$page\" target=\"_
blank\">"._LINKYOU."</a>"._SORRYBROWSER1."<br /><br />\n"
."</iframe>\n"
."<div class=\"title\" align=\"center\">".$end_title."</div>\n"
."<!-- End NukeWrap Content -->\n\n";
<
br />
echo $content;
// Finish up
include("footer.php");
echo $jscontent;
if($use_buffering) {
ob_end_flush();
}
// Function called if something is not
right and we need to display a message&n
bsp;and quit
function no_display($title)
{
$content = "\n<div class=\"title\">".$title."</div>\n";
echo $content;
include("footer.php");
die();
}
?>
?>
Can any1 tell help me to let the page be shown into a table?
[Edited on 26/5/2003 by XenoMorpH] |
| |
XenoMorpH
Newbie   Posts: 4 Registered: 5/25/2003 Status: Offline
|
posted on 5/28/2003 at 01:09 PM |
Can't just any1 help me out?????? |
| |
XenoMorpH
Newbie   Posts: 4 Registered: 5/25/2003 Status: Offline
|
posted on 6/4/2003 at 06:02 AM |
Solved problem myself, Tnx for NOT helping............ |
| |
DS_Sultan
Newbie   Posts: 3 Registered: 9/19/2003 Status: Offline
|
posted on 9/19/2003 at 12:26 AM |
I may be new here, but at least post what you did to fix this! IT may help
out some other poor soul like me!! |
| |