Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> General/Other Stuff
Author Message
Mamasita
Client



Joined: May 10, 2003
Posts: 40

PostPosted: Thu Oct 09, 2003 8:14 pm Reply with quote

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 Very Happy
 
View user's profile Send private message
Raven
Site Admin/Owner



Joined: Aug 27, 2002
Posts: 17088

PostPosted: Thu Oct 09, 2003 8:32 pm Reply with quote

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 
View user's profile Send private message
Mamasita







PostPosted: Fri Oct 10, 2003 5:25 am Reply with quote

Thanks, Raven
You're the best Very Happy
 
Mamasita







PostPosted: Fri Oct 10, 2003 9:01 am Reply with quote

Hello, all

Raven, left Sad

Msimonds and Fury to the rescue Very Happy , 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
Regular



Joined: Jul 15, 2003
Posts: 56
Location: Dallas

PostPosted: Fri Oct 10, 2003 9:28 am Reply with quote

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
 
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Raven







PostPosted: Fri Oct 10, 2003 9:32 am Reply with quote

Save this to a file called block-mama.php and use this code
Code:
<?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 Wink


Last edited by Raven on Fri Oct 10, 2003 9:38 am; edited 1 time in total 
Raven







PostPosted: Fri Oct 10, 2003 9:33 am Reply with quote

Laughing Either way should work!
 
msimonds







PostPosted: Fri Oct 10, 2003 9:35 am Reply with quote

Yeah that is true, they both should work!! Raven is the master though, lol
 
Mamasita







PostPosted: Fri Oct 10, 2003 9:47 am Reply with quote

Thanks so much you guys. It's working Smile
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> General/Other Stuff

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
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©