search results outputting flash parameters musings

rpmute - May 11, 2008 - 02:51
Project:SWFObject API
Version:5.x-2.0-beta1
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

wondering if you have any thoughts on what to do when flash content comes up in search results. its a bit annoying. check the attachment. im going to look into just outputting the node title but it'll be don't know if that'll be just a drupal fix for my site only or if site engines like google are reading everything as well.

AttachmentSize
searchresults.gif7.45 KB

#1

douggreen - May 11, 2008 - 16:04

This is really an issue with the search engine and we should filter these out.

But the solution is to put all your script code inside an HTML comment. This is what we had to do in the 1990's when some browsers didn't support script. And I think it's still good practice.

<script><!-- --></script>

See #257196

#2

rpmute - May 11, 2008 - 17:25

doug: thanks. i still don't know what i'm doing though.
wrapping the $content variable in:

<div class="content">
  <script><!--
<?php print $content; ?>
  --></script>
</div>
isn't going to output my player.

the player should be the only thing in $content. everything else is taken care of with cck and output in panels2. so....

#3

douggreen - May 11, 2008 - 17:43
Project:FLV Media Player» SWFObject API
Version:5.x-0.11» 5.x-2.0-beta1
Component:Miscellaneous» Code
Category:support request» bug report

I think that the bug is in swfobject_api.module on line 158, they need to put the javascript inside a comment.

This also seems to be a bug in Drupal core, and I'm addressing that in #257196.

#4

arthurf - May 11, 2008 - 18:02

I'll take care of this and roll a new release

#5

douggreen - May 11, 2008 - 19:34

Please follow the other thread and make sure that this works, before rolling it in here. Thanks!

#6

douggreen - May 11, 2008 - 20:44

OK, sorry, ignore comment #5, that is the solution. #257196 is now CNR.

#7

arthurf - May 12, 2008 - 13:31

I've added a fix to DRUPAL-5 version of swfobject- can you give that a try and see if that fixes your problem?

#8

rpmute - May 13, 2008 - 18:56

yeah, dl'ed the imageapi 5.x-1.x-dev release. seems to be working fine now when i do a search. the js code is gone. thanks.

the video doesnt show up though with this version, so i'll still use swfobject_api-5.x-1.2-15.tar.gz for now.

#9

arthurf - December 31, 2008 - 21:37
Status:active» closed

This should be resolved with the new approach to rendering the player

 
 

Drupal is a registered trademark of Dries Buytaert.