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.

Spidean Forums

Board Index > NukeWrap > Nuke Wrap displayed in a table


 < Last Thread   Next Thread >New Topic  Post Reply
Author: Subject: Nuke Wrap displayed in a table

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&lt;!-- Begin NukeWrap Content --&gt;\n"< br />
        
."&lt;div class=\"title\" align=\"center\"&gt;".
$title."&lt;/div&gt;\n"

        
."&lt;iframe id=\"NukeWrap\" src=\"$page\" width=\"$hsiz e\" height=\"$vsize\" frameborder=\"0\" marginheight=\"0\"&n bsp;marginwidth=\"0\"&gt;\n"

        
."  &lt;br /&gt;"._SORRYBROWSER."&lt;a class=\"pn-pagetitle\" href=\"$page\" target=\"_ blank\"&gt;"._LINKYOU."&lt;/a&gt;"._SORRYBROWSER1."&lt;br /&gt;&lt;br /&gt;\n"

        
."&lt;/iframe&gt;\n"

        
."&lt;div class=\"title\" align=\"center\"&gt;".$end_title."&lt;/div&gt;\n"

        
."&lt;!-- End NukeWrap Content --&gt;\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:


<?

&lt;td class="extras"&gt;



?>



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]

 
Reply With Quote

Newbie




Posts: 4
Registered: 5/25/2003
Status: Offline

  posted on 5/26/2003 at 04:19 PM
NukeWrap index.php:

<?&lt;?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 =&gt$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 =&gt$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"] &amp;&amp; !$user_entry) {

        
$title _NOUSERENTRYMSG;

        
no_display($title);

    }

    

// Check for not local page if set

    
if($allow_local_only &amp;&amp;

        (
$url_parts['host'] != $HTTP_SERVER_VARS["SERVER_NAME"]) &amp;&amp

        (
$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 &amp;&amp; ($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 .= "&lt;br /&gt;[ &lt;a href=\"$page\" target =\"_blank\"&gt;"._OPENDIRECTMSG."&lt;/a&gt; ]";

            < /span>$end_title .= "&lt;br /&gt;[ &lt;a href=\"$page\" target =\"_blank\"&gt;"._OPENDIRECTMSG."&lt;/a&gt; ]";

        } else {

            < /span>$title .= "[ &lt;a href=\"$page\" target=\"_blank\"&gt;"._OPENDIRECTMSG."&lt;/a&gt; ]";

            < /span>$end_title .= "[ &lt;a href=\"$page\" target=\"_blank\"&gt;"._OPENDIRECTMSG."&lt;/a&gt; ]";

        }

    }

    

    
// 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&lt;!-- Begin NukeWrap Auto Resize --&am p;gt;\n"

            < /span>."&lt;script language=\"javascript\" type=\"text/javascript\"  src=\"modules/$module_name/javascript/nukewrap.js\"&gt;\n"

            < /span>."&lt;/script&gt;\n"

            < /span>."&lt;!-- End NukeWrap Auto Resize --&gt;\ n\n";

        
$vsize 0;        

    }



// Build and display title and content     

    
$content "\n\n&lt;!-- Begin NukeWrap Content --&gt;\n"< br />
        
."&lt;div class=\"title\" align=\"center\"&gt;".
$title."&lt;/div&gt;\n"

        
."&lt;iframe class=\"extras\" id=\"NukeWrap\" src=\"$pag e\" width=\"$hsize\" height=\"$vsize\" frameborder=\"0\"&nbs p;marginheight=\"0\" marginwidth=\"0\"&gt;\n"

        
."  &lt;br /&gt;"._SORRYBROWSER."&lt;a class=\"pn-pagetitle\" href=\"$page\" target=\"_ blank\"&gt;"._LINKYOU."&lt;/a&gt;"._SORRYBROWSER1."&lt;br /&gt;&lt;br /&gt;\n"

        
."&lt;/iframe&gt;\n"

        
."&lt;div class=\"title\" align=\"center\"&gt;".
$end_title."&lt;/div&gt;\n"

        
."&lt;!-- End NukeWrap Content --&gt;\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&lt;div class=\"title\"&gt;".$title."&lt;/div&gt;\n";

    echo 
$content;

    include(
"footer.php");

    die();

}



?&
gt;

 
?>



Can any1 tell help me to let the page be shown into a table?

[Edited on 26/5/2003 by XenoMorpH]

 
Reply With Quote

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??????
 
Reply With Quote

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............
 
Reply With Quote

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!!
 
Reply With Quote
New Topic    Post Reply


Main Menu

Get AutoTheme

Featured Item

Poll

How do you like the new look?

[ Results | Polls ]

Votes: 103
Comments: 0

Powered by the AutoTheme HTML Theme System
Page created in 0.123870 Seconds