473,320 Members | 2,004 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

php nuke

I know php nuke has it's own forum but I'm having a problem posting the
code:

<?php

if (eregi("block-moon_block.php", $_SERVER['PHP_SELF'])) {
Header("Location: index.php");
die();
}

$content = " <script language=\"JavaScript\" type=\"text/javascript\">
var ccm_cfg = { n:'1', pof:'1', dt:'1', tc:'#FFCC00', pth:'' } </script>";
$content = " <td align=\"center\" style=\"border: 1px solid
#000000;color:#FFCC00;padding-top:5px;padding-bottom:5px;\"
bgcolor=\"#000000\"> ";
$content = " <font face=\"arial,verdana,sans-serif\" size=\"1\"
color=\"#FFCC00\"><span
style=\"font-size:10px;font-family:arial,verdana,sans-serif;color:#FFCC00\">CURRENT
MOON<br> ";
$content = " <script language=\"JavaScript\" type=\"text/javascript\"
src=\"cs/ccm_b.js\"></script> ";
$content = " <script language=\"JavaScript\" type=\"text/javascript\"
src=\"cs/ccm_v.js\"></script> ";

?>

I'm trying to make the above block to show Javascript but I'm not having
much luck so far! can anyone see where I'm going wrong.

Cheers
Chris
--
Cheap As Chips Broadband http://yeah.kick-butt.co.uk
Feb 18 '06 #1
2 1230
I'm only a newbie myself but it seems you're just replacing each
occurence of $content with something new so when you actually come to
call it you'll just get the very last one you changed? Try changing
$content to "<echo: "<html/js code here">;" ?

Feb 18 '06 #2

<gu************@gmail.com> wrote in message
news:11**********************@f14g2000cwb.googlegr oups.com...
: I'm only a newbie myself but it seems you're just replacing each
: occurence of $content with something new so when you actually come to
: call it you'll just get the very last one you changed? Try changing
: $content to "<echo: "<html/js code here">;" ?
:

I've been down that way I think it's a problem with :
<script language=\"JavaScript\" type=\"text/javascript\"> var ccm_cfg = {
n:'1', pof:'1', dt:'1', tc:'#FFCC00', pth:'' } </script>

this line of code,properly some special way to include :
var ccm_cfg = { n:'1', pof:'1', dt:'1', tc:'#FFCC00', pth:'' }

Cheers
Chris

Feb 18 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Dan Finn | last post by:
OpenBSD 3.2 Apache 1.3.26 PHP 4.3.4 PHP-Nuke 6.9 getting these in the apache error log: Sun Nov 16 20:20:16 2003] PHP Notice: Undefined variable: HTTP_USER_AGENT in...
1
by: Sean | last post by:
Hello - I'm calling for help from all the PHP users. I have been playing around with: Post Nuke & Guppy - ok - so I'm not a pro! I'm looking for other type applications or scripts that can...
2
by: David N. Welton | last post by:
Hi, I'm going to be looking at tools such as *nuke, maxdev, php groupware and so forth for a client, and wondered if anyone had a feature matrix for them already. I'm looking at features such as...
1
by: Ranga | last post by:
Is it possible to simply grab a module from an existing page? To clarify, I've got a htm frames site that I want to use in conjunction with PHP-Nuke. The site is already up and running, and...
0
by: Doug | last post by:
I was contemplating using php-nuke for a project. On the positive side, it would make it easier to add new modules, and has many new modules already installed. I'm not sure if the security part...
2
by: Yair Sageev | last post by:
Greetings. I was running PHP Nuke on a Win2k box using Apache2Triad. Fortunately I backed up the drive using windows backup prior to the hard drive failure. Now I have installed Apache2Triad...
0
by: Amit | last post by:
I am new in the world of dot net nuke and so i need help from you all to resolve this issue.As i have custom designed one project in dot net nuke and published the site but i am facing very unique...
1
by: Marco tecnico | last post by:
Hi NG, i have a problem. I have finished building up a PHP Nuke 7.9 portal and would like to insert in a page my Flash movie. I did it in the past on another site in Php Nuke but i can't remeber...
3
by: Robert Michel | last post by:
I would like to add a Citrix login page to my Dot Net Nuke site. I am currently using Dot Net Nuke 4 and the Citrix Web Interface version 4. I would like to add a page to my DNN site allowing me...
1
by: happyperson | last post by:
Hi All, I want to have a news and product review website. I want an RSS feed, online forum, article submission section, and possibly down the road the ability to upload/download music to this...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.