Skip to content

Online Proofing Solution for Photographers, Print Ordering, Events, Wedding, Portrait, Commercial, Print Proofing, Proofing Online - skookskart.com

 
 
You are here: Home arrow Skooks Blogsarrow Blog Supportarrow Titles are broken or missing in Safari

Welcome Guest,
Please login or register above to use this forum.
News: Add Live Chat to your Skooks Kart!
 
Advanced Search                  

Home   |   CalendarDecember 02, 2008, 06:24:36 AM
Pages: [1]
  Print  
Author Topic: Titles are broken or missing in Safari  (Read 1357 times)
Brian Crouch
President
Post Master
*****
Posts: 10079



View Profile Email
« on: February 03, 2008, 04:38:00 PM »

The titles are confirmed to be broken in the Safari browser on Mac.
The fix is detailed below.  Login to the Blog admin and locate in the Theme Editor the file Main Index Template.  Find the code shown below and paste it with the replacement text.
This will fix the Flash Titles so they show on all posts.

Code:
<!-- THE TITLE AREA -->
<script type="text/javascript">
if(sniffer.getFlashVersion() < 8) {
document.writeln('<h2 id="post-<?php //the_ID(); ?>"><a href="<?php //the_permalink() ?>" rel="bookmark"><img src="/fonts.php?<?php //the_title(); ?>"/></a></h2> ');
}else{
                        document.writeln('<div id=flashtitle>');
                        var so = new SWFObject("bText.swf", "blog", "100%", "40", "8", "");
                        so.addVariable("textString", "<?php the_title(); ?>");
                        so.addVariable("urlString", "<?php the_permalink(); ?>");
                        so.addParam("wmode", "transparent");
                        so.write('flashtitle');
                        document.writeln('</div>');
               }
</script>

<!-- END TITLE -->


REPLACE ^ WITH CODE BELOW


Code:
<!-- THE TITLE AREA -->
<script type="text/javascript">
if(sniffer.getFlashVersion() < 8) {
document.writeln('<h2 id="post-<?php //the_ID(); ?>"><a href="<?php //the_permalink() ?>" rel="bookmark"><img src="/fonts.php?<?php //the_title(); ?>"/></a></h2> ');
}else{
                        var randomobject="flashtitle"+Math.floor(Math.random()*9999);
                        document.writeln('<div id='+randomobject+'>');
                        var so = new SWFObject("bText.swf", randomobject, "100%", "40", "8", "");
                        so.addVariable("textString", "<?php the_title(); ?>");
                        so.addVariable("urlString", "<?php the_permalink(); ?>");
                        so.addParam("wmode", "transparent");
                        so.write(randomobject);
                        document.writeln('</div>');
               }
</script>

<!-- END TITLE -->


What this does is give each Flash Title a unique layer ID so each title has a unique layer id.
« Last Edit: February 03, 2008, 04:42:57 PM by Skooks » Logged
Pages: [1]
  Print  
 
Jump to:  

Advertisement
[+]
  • Narrow screen resolution
  • Wide screen resolution
  • Auto width resolution
  • Increase font size
  • Decrease font size
  • Default font size