Hi everyone! I'm new to this forum and to PHP, so I'm sorry in advance for the silliness of my question.
I added three links in a block which are supposed to open a popup. Here's the code of the block:
Code:
<?php
/************************************************************************/
/* PHP-NUKE: Web Portal System */
/* =========================== */
/* */
/* Copyright (c) 2002 by Francisco Burzi */
/* http://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 (eregi("block-Crew_Block.php",$_SERVER['PHP_SELF'])) {
Header("Location: index.php");
die();
}
Joined: Aug 27, 2002 Posts: 16987 Location: Kansas
Posted:
Tue Oct 07, 2003 10:48 am
Try this. Be sure there is NOTHING except a carriage return after the _JS_ and _JS_; tags.
Code:
<?php
/************************************************************************/
/* PHP-NUKE: Web Portal System */
/* =========================== */
/* */
/* Copyright (c) 2002 by Francisco Burzi */
/* http://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 (eregi("block-Crew_Block.php",$_SERVER['PHP_SELF'])) {
Header("Location: index.php");
die();
}
$content = <<<_JS_
<script language="javascript">
<!--
function OpenWind(dest){
window.open(dest,"finestra","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=450,height=480,top=50,left=350");
}
function MM_openBrWindow(theURL,winName,features) {
//v2.0
window.open(theURL,winName,features);
}
//-->
</script>
_JS_;
Joined: Aug 27, 2002 Posts: 16987 Location: Kansas
Posted:
Tue Oct 07, 2003 11:59 am
Let's try the copy again. This is working on my machine.
Code:
<?php
/************************************************************************/
/* PHP-NUKE: Web Portal System */
/* =========================== */
/* */
/* Copyright (c) 2002 by Francisco Burzi */
/* http://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 (eregi("block-Crew_Block.php",$_SERVER['PHP_SELF'])) {
Header("Location: index.php");
die();
}
$content = <<<_JS_
<script language="javascript">
<!--
function OpenWind(dest){
window.open(dest,"finestra","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=450,height=480,top=50,left=350");
}
function MM_openBrWindow(theURL,winName,features) {
//v2.0
window.open(theURL,winName,features);
}
//-->
</script>
_JS_;
View next topic View previous topic
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