Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Bug Fixes
Author Message
DOH_Angler
New Member
New Member


Joined: Oct 31, 2005
Posts: 13

PostPosted: Fri Dec 25, 2009 6:00 pm Reply with quote

With the upgrade to IE8 I now have an issue with my Recommended Sites block

I'm useing the old YPN_Links block and I have spent some time trying to fix this and found that IE8 no longer supports the marquee function

Now I noticed that here on the RN site you have a Recommended Sites block that works can someone point me to the download of fix for this please!

Thank you
 
View user's profile Send private message
nuken
RavenNuke(tm) Development Team


Joined: Mar 11, 2007
Posts: 2024
Location: North Carolina

PostPosted: Fri Dec 25, 2009 7:04 pm Reply with quote

marquee is pretty much a dead attribute. You could use javascript or set IE8 to IE7 by a meta string like this

Code:
$metastring .= "\n".'<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />';


in includes/nukeSEOdh.php towards the bottom I believe. I have not tested it and it may need some changing like

Code:
]$metastring .= '<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />';


but that should make all IE8 default to IE7 and allow marquee.

_________________
Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message Send e-mail Visit poster's website
DOH_Angler
PostPosted: Fri Dec 25, 2009 7:19 pm Reply with quote

Is this how the block on this site is done?

Do you have access to this?
 
nuken
PostPosted: Fri Dec 25, 2009 8:03 pm Reply with quote

I'm not sure what has been done here. I do not use marquee effect so this is actually new to me. I am sure someone has a better solution.
 
Palbin
Site Admin


Joined: Mar 30, 2006
Posts: 2583
Location: Pittsburgh, Pennsylvania

PostPosted: Fri Dec 25, 2009 8:46 pm Reply with quote

DOH_Angler, If you post the code to your block I will try to give you some help. If you do post it I need to know if you are using RavenNuke or something else and also what version of the two.

_________________
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." — Brian W. Kernighan. 
View user's profile Send private message
DOH_Angler
PostPosted: Fri Dec 25, 2009 9:31 pm Reply with quote

This is what I have

I have a long list of logos/links but no need to post all of them so I only included 3

Quote:
<?php


if( eregi( "block-YPN_slinks.php", $_SERVER['SCRIPT_NAME'])) {
Header("Location: index.php");
die();
}
global $prefix;
if ($themesidebox == 0) {

// USE BELOW FOR EDIT YOUR LINKS

$content .= "<center><a href=\"http://www.fishing.net\" target=\"_blank\"><img border=\"0\" src=\"images/YPN_slinks/fishingnet.gif\" alt=\"FISHING\"></a></center><br>";

$content .= "<center><a href=\"http://www.bigfishtackle.com/forum\" target=\"_blank\"><img border=\"0\" src=\"images/YPN_slinks/bigfish.gif\" alt=\"Fishing Resource Center\"></a></center><br>";

$content .= "<center><a href=\"http://www.nbaa-bass.com\" target=\"_blank\"><img border=\"0\" src=\"images/YPN_slinks/nbaa.gif\" alt=\"Fish the very best\"></a></center><br>";
// END OF THE EDITING LINKS AREA

$content = "<marquee scrollamount=\"2\" direction=\"up\" onMouseOver=\"this.stop()\" onMouseOut=\"this.start()\" loop=\"true\">$content</marquee>";


}

?>


its the part
Quote:
$content = "<marquee scrollamount=\"2\" direction=\"up\" onMouseOver=\"this.stop()\" onMouseOut=\"this.start()\" loop=\"true\">$content</marquee>";

That is the issue
 
Palbin
PostPosted: Fri Dec 25, 2009 11:12 pm Reply with quote

Palbin wrote:
DOH_Angler, If you post the code to your block I will try to give you some help. If you do post it I need to know if you are using RavenNuke or something else and also what version of the two.
 
DOH_Angler
PostPosted: Fri Dec 25, 2009 11:26 pm Reply with quote

Sorry yes I'm runing RN v2.4 of nuke 7.6
 
wHiTeHaT
Life Cycles Becoming CPU Cycles


Joined: Jul 18, 2004
Posts: 576
Location: Netherlands

PostPosted: Sat Dec 26, 2009 4:52 am Reply with quote

i suggest you dhtmlgoodies scrolling block xhtml valid:

verry simple to intregrate see here: Only registered users can see links on this board! Get registered or login!
 
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
DOH_Angler
PostPosted: Sat Dec 26, 2009 12:29 pm Reply with quote

I found a buddy with a block that still work while using the marquee command

Script is different but hey it works!

You just need to edit it to fit your needs

Quote:

<?php
if (eregi("block-Affiliates.php",$PHP_SELF)) {
Header("Location: index.php");
die();
}

//Add your links and pictures here. To add more links then create a $link11 = ""; and $pic11 = ""; then add an extra bit of code into the $content.

$link1 = "http://www.fishing.net";
$pic1 = "images/YPN_slinks/fishingnet.gif";

$link2 = "http://www.bigfishtackle.com/forum";
$pic2 = "images/YPN_slinks/bigfish.gif";

$link3 = "http://www.nbaa-bass.com";
$pic3 = "images/YPN_slinks/nbaa.gif";

$link4 = "http://www.stopperlures.com";
$pic4 = "images/YPN_slinks/stopper.gif";

$link5 = "http://www.anglersmart.com";
$pic5 = "images/YPN_slinks/anglersmart.gif";

$link6 = "http://www.boats.net";
$pic6 = "images/YPN_slinks/boatsnet.gif";

$link7 = "http://www.humminbird.com";
$pic7 = "images/YPN_slinks/humm.gif";

$link8 = "http://www.minnkotamotors.com";
$pic8 = "images/YPN_slinks/minnkota.gif";

$link9 = "http://www.thebatteryterminal.com/index-old.htm";
$pic9 = "images/YPN_slinks/interstate.gif";

$link10 = "http://www.mannsbait.com";
$pic10 = "images/YPN_slinks/manns.gif";





//Don't edit this unless you are adding more slots
$content = "<A name= \"scrollingCode\"></A><MARQUEE behavior= \"scroll\" align= \"center\" direction= \"up\" scrollamount= \"2\" scrolldelay= \"20\" onmouseover='this.stop()' onmouseout='this.start()'><center> <STYLE=\"text-decoration: none\"><font color=\"#666666\"><br><br><a href=\"$link1\"><img src=\"$pic1\"border=\"\"></a><br><br><a href=\"$link2\"><img src=\"$pic2\"border=\"\"></a><br><br><a href=\"$link3\"><img src=\"$pic3\"border=\"\"></a><br><br><a href=\"$link4\"><img src=\"$pic4\"border=\"\"></a><br><br><a href=\"$link5\"><img src=\"$pic5\"border=\"\"></a><br><br><a href=\"$link6\"><img src=\"$pic6\"border=\"\"></a><br><br><a href=\"$link7\"><img src=\"$pic7\"border=\"\"></a><br><br><a href=\"$link8\"><img src=\"$pic8\"border=\"\"></a><br><br><a href=\"$link9\"><img src=\"$pic9\"border=\"\"></a><br><br><a href=\"$link10\"><img src=\"$pic10\"border=\"\"></a></center>";


?>
 
Palbin
PostPosted: Sat Dec 26, 2009 12:35 pm Reply with quote

Block:
Code:


<?php

if(!defined('NUKE_FILE') && !defined('BLOCK_FILE')) {
   header('Location: ../index.php');
}

if ($themesidebox == 0) {
   $content = '';
   $content .= '<div id="marqueecontainer2" style="position:relative; height:150px; overflow:hidden; text-align: center;" onmouseover="copyspeed=pausespeed" onmouseout="copyspeed=marqueespeed">';
   $content .= '<div id="vmarquee2" style="position: absolute; width: 98%;">' . "\n";

   $content .= '<a href="http://www.fishing.net" target="_blank"><img border="0" src="images/YPN_slinks/fishingnet.gif" alt="FISHING" /></a><br /><br />';
   $content .= '<a href="http://www.bigfishtackle.com/forum" target="_blank"><img border="0" src="images/YPN_slinks/bigfish.gif" alt="Fishing Resource Center" /></a><br /><br />';
   $content .= '<a href="http://www.nbaa-bass.com" target="_blank"><img border="0" src="images/YPN_slinks/nbaa.gif" alt="Fish the very best" /></a><br /><br />';

   $content .= '</div></div>' . "\n";
}

?>


Create this file: includes/addons/head-marquee.php
Code:


<?php

$inlineJS = '
<script type="text/javascript">
<!--
/***********************************************
* Cross browser Marquee II- © Dynamic Drive (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for this script and 100s more.
***********************************************/

var delayb4scroll=1000 //Specify initial delay before marquee starts to scroll on page (2000=2 seconds)
var marqueespeed=1 //Specify marquee scroll speed (larger is faster 1-10)
var pauseit=1 //Pause marquee onMousever (0=no. 1=yes)?

////NO NEED TO EDIT BELOW THIS LINE////////////

var copyspeed=marqueespeed
var pausespeed=(pauseit==0)? copyspeed: 0
var actualheight=""

function scrollmarquee(){
if (parseInt(cross_marquee.style.top)>(actualheight*(-1)+8)) //if scroller hasn\'t reached the end of its height
cross_marquee.style.top=parseInt(cross_marquee.style.top)-copyspeed+"px" //move scroller upwards
else //else, reset to original position
cross_marquee.style.top=parseInt(marqueeheight)+8+"px"
}

function initializemarquee(){
cross_marquee=document.getElementById("vmarquee2")
cross_marquee.style.top=0
marqueeheight=document.getElementById("marqueecontainer2").offsetHeight
actualheight=cross_marquee.offsetHeight //height of marquee content (much of which is hidden from view)
if (window.opera || navigator.userAgent.indexOf("Netscape/7")!=-1){ //if Opera or Netscape 7x, add scrollbars to scroll and exit
cross_marquee.style.height=marqueeheight+"px"
cross_marquee.style.overflow="scroll"
return
}
setTimeout(\'lefttime=setInterval("scrollmarquee()",30)\', delayb4scroll)
}

if (window.addEventListener)
window.addEventListener("load", initializemarquee, false)
else if (window.attachEvent)
window.attachEvent("onload", initializemarquee)
else if (document.getElementById)
window.onload=initializemarquee
//-->
</script>
';

addJSToHead($inlineJS, 'inline');

?>
 
DOH_Angler
PostPosted: Sat Dec 26, 2009 12:49 pm Reply with quote

Outstanding!

I like this much better it still allows for target and alt tags

Thank You!
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Bug Fixes

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 ©