| Author |
Message |
Mamasita
Client

Joined: May 10, 2003
Posts: 40
|
Posted:
Thu Oct 09, 2003 8:14 pm |
|
Hello, all
I'm trying to add this html "marquee to a block" but it won't save it. When I click on "save" It sends me to the index page and the block is not showing. I just need a block to add scrolling links for news. I don't know if phpnuke has one. It was easily done when I was using 6.5...I'm using 6.9 now. Help is appreciated.
Thanks  |
| |
|
|
 |
Raven
Site Admin/Owner

Joined: Aug 27, 2002
Posts: 17088
|
Posted:
Thu Oct 09, 2003 8:32 pm |
|
Yes, after 6.5, there were constraints placed on what Nuke allows in blocks and news, through HTML. You need to save it to a file and not to the administrators panel, which I assume you are trying to do. See if this post helps. It doesn't matter whether you are inserting JavaScript or Styles or HTML http://www.ravenphpscripts.com/modules.php?name=Forums&file=viewtopic&p=98 |
Last edited by Raven on Fri Oct 10, 2003 7:53 am; edited 1 time in total |
|
|
 |
Mamasita

|
Posted:
Fri Oct 10, 2003 5:25 am |
|
Thanks, Raven
You're the best  |
| |
|
|
|
 |
Mamasita

|
Posted:
Fri Oct 10, 2003 9:01 am |
|
Hello, all
Raven, left
Msimonds and Fury to the rescue , I followed the instructions from Raven. It's not working, please help. This is the html code
Code:<MARQUEE behavior= "scroll" align= "center" direction= "up" height="220" scrollamount= "2" scrolldelay= "70" onmouseover='this.stop()' onmouseout='this.start()'><center><b>Headline News</b></center><br><img src="info.gif" border="0" alt=""><a href="http://www.miami.com/mld/miamiherald/news/world/americas/6967479. htm"><b>Unrest blamed for abuses</b></a><br><br><img src="info.gif" border="0" alt=""><a href="http://www.miami.com/mld/miamiherald/news/world/americas/6942251. htm"><b>Anti-government protest called off to avoid clashes in Haiti</b></a><br><br><img src="info.gif" border="0"alt=""><a href="http://www.miami.com/mld/miamiherald/news/editorial/6942221.htm"><b> Cruel policy keeps children locked up</b></a><br><br><img src="info.gif" border="0" alt=""><a href="http://www.miami.com/mld/miamiherald/news/columnists/carl_hiaasen /6926514.htm"><b> Our hard-line policy punishes the innocent</b></a><br><br><img src="info.gif" border="0"alt=""><a href="http://www.miami.com/mld/miamiherald/news/6929309.htm"><b>Haitian youth awaits word on fate</b></a></marquee>
|
Thanks |
| |
|
|
|
 |
msimonds
Regular


Joined: Jul 15, 2003
Posts: 56
Location: Dallas
|
Posted:
Fri Oct 10, 2003 9:28 am |
|
If you are putting this into a block then do it like this!.. I put this on my site and it works!!
Code:<?php
if (eregi("block-miami.php",$PHP_SELF)) {
Header("Location: index.php");
die();
}
$content = "<MARQUEE behavior= \"scroll\" align= \"center\" direction= \"up\" height=\"220\" scrollamount= \"2\" scrolldelay= \"70\" onmouseover='this.stop()' onmouseout='this.start()'>";
$content .= " <center><b>Headline News</b></center><br>";
$content .= " <img src=\"info.gif\" border=\"0\" alt=\"\"><a href=\"http://www.miami.com/mld/miamiherald/news/world/americas/6967479. htm\"><b>Unrest blamed for abuses</b></a><br><br>";
$content .= " <img src=\"info.gif\" border=\"0\" alt=\"\"><a href=\"http://www.miami.com/mld/miamiherald/news/world/americas/6942251. htm\"><b>Anti-government protest called off to avoid clashes in Haiti</b></a><br><br>";
$content .= " <img src=\"info.gif\" border=\"0\" alt=\"\"><a href=\"http://www.miami.com/mld/miamiherald/news/editorial/6942221.htm\"><b> Cruel policy keeps children locked up</b></a><br><br>";
$content .= " <img src=\"info.gif\" border=\"0\" alt=\"\"><a href=\"http://www.miami.com/mld/miamiherald/news/columnists/carl_hiaasen /6926514.htm\"><b> Our hard-line policy punishes the innocent</b></a><br><br>";
$content .= " <img src=\"info.gif\" border=\"0\"alt=\"\"><a href=\"http://www.miami.com/mld/miamiherald/news/6929309.htm\"><b>Haitian youth awaits word on fate</b></a>";
?>
|
I named it block-miami.php
let me know if it works on your site. Just go to your blocks administration and activate it on the left or right sife |
| |
|
|
 |
Raven

|
Posted:
Fri Oct 10, 2003 9:32 am |
|
Save this to a file called block-mama.php and use this codeCode:<?php
if (eregi("block-mama.php",$_SERVER['PHP_SELF'])) {
Header("Location: index.php");
die();
}
$content = <<< _MAMA_
<MARQUEE behavior= "scroll" align= "center" direction= "up" height="220" scrollamount= "2" scrolldelay= "70" onmouseover='this.stop()' onmouseout='this.start()'><center><b>Headline News</b></center><br><img src="info.gif" border="0" alt=""><a href="http://www.miami.com/mld/miamiherald/news/world/americas/6967479. htm"><b>Unrest blamed for abuses</b></a><br><br><img src="info.gif" border="0" alt=""><a href="http://www.miami.com/mld/miamiherald/news/world/americas/6942251. htm"><b>Anti-government protest called off to avoid clashes in Haiti</b></a><br><br><img src="info.gif" border="0"alt=""><a href="http://www.miami.com/mld/miamiherald/news/editorial/6942221.htm"><b> Cruel policy keeps children locked up</b></a><br><br><img src="info.gif" border="0" alt=""><a href="http://www.miami.com/mld/miamiherald/news/columnists/carl_hiaasen /6926514.htm"><b> Our hard-line policy punishes the innocent</b></a><br><br><img src="info.gif" border="0"alt=""><a href="http://www.miami.com/mld/miamiherald/news/6929309.htm"><b>Haitian youth awaits word on fate</b></a></marquee>
_MAMA_;
?>
|
Make sure there is nothing except a carriage return after the _MAMA_ and _MAMA; tags. Doing it this way you don't have to worry about escaping the quote marks  |
Last edited by Raven on Fri Oct 10, 2003 9:38 am; edited 1 time in total |
|
|
|
 |
Raven

|
Posted:
Fri Oct 10, 2003 9:33 am |
|
Either way should work! |
| |
|
|
|
 |
msimonds

|
Posted:
Fri Oct 10, 2003 9:35 am |
|
Yeah that is true, they both should work!! Raven is the master though, lol |
| |
|
|
|
 |
Mamasita

|
Posted:
Fri Oct 10, 2003 9:47 am |
|
Thanks so much you guys. It's working  |
| |
|
|
|
 |
|
|