I have a Flash script embedded into a Wordpress template. The template can be viewed here at Hello Elbow. The Flash script is used to generate headings for posts in Wordpress, however I would like to use it to generate the headings on the Author pages too, for example, this page http://www.helloelbow.com/author/JakeThePeg/. In otherwords, I would like the Flash header to display the Author's Name on this page (and the heading does not need to be a hyperlink to anywhere, as is currently the case) I'm not very good with PHP, so am hoping someone can help. The text I want to insert into the Flash heading is contained within this code <?php echo $curauth->first_name. ' ' . $curauth->last_name ?> PHP: And this is the script for the Flash Header, I don't know which variables needs to be modified. <div class="post" id="post-<?php the_ID(); ?>"> <div class="storytitle"> <div class="title" id="flash-<?php the_ID(); ?>"> <a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a> </div> <script type="text/javascript"> // <![CDATA[ var so = new SWFObject("<?php bloginfo('template_directory'); ?>/title.swf", "flash-<?php the_ID(); ?>", "240", "240", "8", "#ffffff"); so.addVariable("titletext", "<?php the_title(); ?>"); so.addVariable("permalink", "<?php the_permalink() ?>"); so.write("flash-<?php the_ID(); ?>"); // ]]> </script> </div> PHP: Your assistance is greatly appreciated.
so.addVariable("titletext", "<?php the_title(); ?>"); so.addVariable("permalink", "<?php the_permalink() ?>"); need to be changed, but i dont know to what.. can't tell without looking at the rest of your sourcecode.