PHP Web Host - Quality Web Hosting For All PHP Applications $35/month $250/year (Unlimited) - $25/month - 200,000 impressions - Your Ad Could be Here - Click For Details
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
Mamasita
Client


Joined: May 10, 2003
Posts: 40

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

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: 16987
Location: Kansas

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

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
Only registered users can see links on this board!
Get registered or login to the forums!


Last edited by Raven on Fri Oct 10, 2003 7:53 am; edited 1 time in total
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
Mamasita
Client


Joined: May 10, 2003
Posts: 40

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

Thanks, Raven
You're the best Very Happy
View user's profile Send private message
Mamasita
Client


Joined: May 10, 2003
Posts: 40

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

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


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

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

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
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 16987
Location: Kansas

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

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
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 16987
Location: Kansas

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

Laughing Either way should work!
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
msimonds
Regular
Regular


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

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

Yeah that is true, they both should work!! Raven is the master though, lol
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Mamasita
Client


Joined: May 10, 2003
Posts: 40

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

Thanks so much you guys. It's working Smile
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic

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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2011 by Raven

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::
:: fisubice Theme Modified by the RavenNuke™ Team ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum