We are upgrading all our modules while we are moving to a new domain name and server. Right now, the only thing I see that is not working is that videos are not showing at all. Here is an old site page: http://www.momsteam.com/successful-parenting/parenting-elite-athletes/ge... where you can see that it looks right - this is with 5.x-0.9. On the new site, which is 5.x-4.0-beta6, the same page is http://67.225.182.81/successful-parenting/parenting-elite-athletes/gener....

CommentFileSizeAuthor
#12 xspf_settings.jpg39.7 KBNancyDru
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

NancyDru’s picture

Looking at the HTML output, I don't see any of the JS code that should be there. I assume I've missed something somewhere.

arthurf’s picture

The html is generated by swfobject api on the fly- use firebug to inspect it.

NancyDru’s picture

Inspect what? And what am I looking for? I do have SWFObject installed and enabled. Allegedly, at least Embedded Media Field is using it.

arthurf’s picture

HTML is created dynamically by swfobject api. You won't see the html in the source of the page. To look at the html when the video player is loaded, you need to use fire bug to inspect the player.

NancyDru’s picture

Click the link above, there is no video player to inspect. On the old site, I see JS code where the video player is, but on the new site, I do not.

arthurf’s picture

go to node/X/flvmediaplayer is there any output?

NancyDru’s picture

No, blank page.

Could there be a change required to the theme code:

<div class="node <?php print $node_classes ?>" id="node-<?php print $node->nid; ?>">
  <div class="node-inner">
    <?php if ($page == 0): ?>
    <h3 class="title"> <a href="<?php print $node_url; ?>"><?php print $node->field_teasertitle[0]['view'] ?></a> </h3>
    <div class="content"><?php print $node->flvmediaplayer ?></div>
    <div class="field field-type-text field-field-teasertext">
      <div class="field-items">
        <div class="field-item"><?php print $node->field_teasertext[0]['view'] ?></div>
      </div>
      <div class="more-link"><a href="<?php print $node_url; ?>">Read more &raquo;</a></div>
    </div>
    <?php endif; ?>
    <?php if ($page == 1): ?>
    <?php if ($unpublished) : ?>
    <div class="unpublished"><?php print t('Unpublished'); ?></div>
    <?php endif; ?>
    <?php if ($picture) print $picture; ?>
    <div class="content">
      <?php if ($field_sponsor[0]['view'] != NULL ) { ?>
      <div class="field field-type-image field-field-sponsor" style="float:left; width: 75px; padding-top: 1.5em;">Sponsored by</div>
      <div style="float:left; width: 600px"> <?php print $node->field_sponsor[0]['view'] ?></div>
      <br style="clear:both;" />
      <?php } ?>
      <!-- Skyscraper ad-->
      <?php foreach ((array)$field_skyscraper_ad as $item) { 
	    $item_nid = $item['nid'];
		$item_node = node_load($item_nid);
		$item_node = node_build_content($item_node);
		$item_skyscraper_ad = $item_node->content['ad']['#value'];  
		$skyscraper_ad_count = 1; ?>
      
      <div class="field-item" style="float:left; width: 175px; "> 
        
        <?php if ($field_skyscraper_ad[0]['view'] != NULL ) { ?><span class="ad-label">Advertisement</span><?php // print $item_skyscraper_ad ?><!--/ Drupal Skyscraper ad  --><?php } 
        
		else { 
			$block = skyscraper_ad();	
          // print $block->body;
		 } ?>
        
        <?php if ($links): ?>
        <div class="links article-links" style="width: 152px; background: #EEEEEE; margin-top: .5em; padding: .25em .25em .25em .5em;"> <?php print $links; ?>
          <?php if ($page): ?>
          <!-- AddThis Bookmark Button BEGIN -->
          <script type="text/javascript">
          addthis_url    = location.href;
          addthis_title  = document.title;
          addthis_pub    = 'write-your-addthis-user-name-here';
        </script>
          <script type="text/javascript" src="http://s7.addthis.com/js/addthis_widget.php?v=12" ></script>
          <!-- AddThis Bookmark Button END -->
          <?php endif; ?>
        </div>
        <br />
        <?php endif; ?>
      </div>
      <?php } ?>
      <!-- / Skyscraper, left side -->
      <div id="title-header">
        <div class="field field-type-text field-field-kicker">
          <div class="field-items">
            <div class="field-item"><?php print $node->field_kicker[0]['view'] ?></div>
          </div>
        </div>
        <div class="field field-type-image field-field-title">
          <div class="field-items">
            <div class="field-item">
              <h1><i><?php print check_plain($node->title) ?></i></h1>
            </div>
          </div>
        </div>
        <div class="field field-type-text field-field-rider">
          <div class="field-items">
            <div class="field-item">
              <h2><?php print $node->field_rider[0]['view'] ?></h2>
            </div>
          </div>
        </div>
        <?php if ($submitted): ?>
        <?php
	  if ($node->uid != 0) {
        $user->uid = $node->uid;
        profile_load_profile($user);
        
		if (!empty($user->profile_firstname) && !empty($user->profile_lastname) && !empty($user->profile_suffix)){
		  $fullname = $user->profile_firstname.' '.$user->profile_lastname.', '.$user->profile_suffix;
		}
		if (!empty($user->profile_firstname) && !empty($user->profile_lastname) && empty($user->profile_suffix)){
		  $fullname = $user->profile_firstname.' '.$user->profile_lastname;
		}
	    $lauthor = l($fullname, 'user/'.$node->uid); ?>
        <div id="byline">By <?php print $lauthor ?>
          <?php if ($field_reviewer[0]['view'] != NULL ) { ?>
          <span id="reviewer">Reviewed by <?php print $node->field_reviewer[0]['view'] ?></span>
          <?php } ?>
        </div>
       <?php } ?>
      <?php endif; ?>
      </div>
      
      <div class="field field-type-nodereference field-field-body">
        <div class="field-items">
          <?php if ($skyscraper_ad_count == 1) { ?>
          <div class="field-item" style="float:left; width: 550px"> <?php print $node->flvmediaplayer ?> <?php print $node->content['field_bodytext']['#value'] ?> </div>
          <?php }
			else { ?>
          <div class="field-item"> <?php print $node->content['field_bodytext']['#value'] ?> </div>
          <?php } ?>
        </div>
      </div>
      <br style="clear:both" />
      <div style="height:4em">&nbsp;</div>
      <!-- Medium Rectangle ad-->
      <?php foreach ((array)$field_medium_rectangle_ad as $item) { 
	    $item_nid = $item['nid'];
		$item_node = node_load($item_nid);
		$item_node = node_build_content($item_node);
		$item_medium_rectangle_ad = $item_node->content['ad']['#value']; ?>
      
      <div class="field-item" style="float:left; width: 315px">
        <span class="ad-label">Advertisement</span>
        
         <?php if ($field_medium_rectangle_ad[0]['view'] != NULL ) { ?><?php print $item_medium_rectangle_ad ?><!--/ Drupal Med Rectangle ad  --><?php } 
		 
		else { ?>
        <!-- BEGIN RICH-MEDIA Burst Network CODE -->
        <script type="text/javascript" language="JavaScript">
rnum=Math.round(Math.random() * 100000);
ts=String.fromCharCode(60);
if (window.self != window.top) {nf=''} else {nf='NF/'};
document.write(ts+'script src="http://www.burstnet.com/cgi-bin/ads/ad14522a.cgi/v=2.3S/sz=300x250A/NZ/'+rnum+'/'+nf+'RETURN-CODE/JS/">'+ts+'/script>');
</script>
        <noscript>
        <a href="http://www.burstnet.com/ads/ad14522a-map.cgi/ns/v=2.3S/sz=300x250A/" target="_top"> <img src="http://www.burstnet.com/cgi-bin/ads/ad14522a.cgi/ns/v=2.3S/sz=300x250A/" border="0" alt="Click Here" /></a>
        </noscript>
        <!-- END Burst Network CODE -->
        <?php } ?>
      </div>
      <?php } ?>
      <!--/ Medium Rectangle ad  -->
      <div style="float:left; width: 400px"> <?php print $node->content['fivestar_widget']['#value'] ?>
        <?php if ($field_related[0]['view'] != NULL ) { ?>
        <div class="field field-type-nodereference field-field-related">
          <h3 class="field-label">Related articles</h3>
          <div class="field-items">
            <ul>
              <?php foreach ((array)$node->field_related as $item) { ?>
              <li class="field-item"><?php print $item['view'] ?></li>
              <?php } ?>
            </ul>
          </div>
        </div>
        <?php } ?>
      </div>
      <!-- /Fivestar -->
    </div>
    <!-- /content -->
    <br style="clear:both;" />
    <?php endif; ?>
  </div>
</div>
<!-- /node-inner, /node -->

And this might help?

$profile = array( 'pid' => '1', 'type' => 'profile', 'name' => 'mt_video_profile', 'config' => array( 'flvmp_name' => '', 'flvmp_player_path' => '', 'flvmp_file_location_hook' => '', 'flashvar_file' => '', 'param_bgcolor' => '', 'param_height' => '', 'param_width' => '', 'param_fullscreen' => '', 'param_quality' => '', 'param_allowscriptaccess' => '', 'flvmp_embed_profile' => '', 'flvmp_external_config' => '', 'flashvars_plugins' => '', 'flashvars_flashvars' => '', 'size' => '300x225', 'strech' => 'true', 'fullscreen' => '1', 'flashvar_use' => 'xspf_playlist--1', 'display' => '1' ) );

http://67.225.182.81/admin/settings/flvmediaplayer/export/1#ixzz0KUKSTouk&D
arthurf’s picture

do you have output at node/X/xspf ?

NancyDru’s picture

Yes, just the node, no video: http://67.225.182.81/node/462/xspf

arthurf’s picture

Do you have xspf_playlist installed? You should be getting xml output on that url, not your node.

NancyDru’s picture

XSPF Playlist 5.x-1.20-beta3

NancyDru’s picture

FileSize
39.7 KB

Here are the settings

arthurf’s picture

check admin/settings/xspf_playlist/CONTENT_TYPE

NancyDru’s picture

I don't have a menu item for that. Yes, I have permissions for everything. I also checked under admin/content/node and there is no XSPF settings for the content type. BTW, I also upgraded XSPF Playlist from 0.12 at the same time.

arthurf’s picture

You need to go to that url that corresponds to your content type to make sure that xspf is enabled on your content type

pkraft’s picture

your problem seems fixed but it is not clear what your solution was. Do you mind updating the thread?

NancyDru’s picture

No, I gave up. I backed off to the old releases; I could not get the current version/updates to work.

arthurf’s picture

NancyDru - Did you check the content type settings as I suggested above?

NancyDru’s picture

Yes

arthurf’s picture

Did you clear your cache_flvmediaplayer?

NancyDru’s picture

Several times I cleared all cache tables, but update.php should have done that too.

arthurf’s picture

Can you point me to a url and update to the beta 7?

NancyDru’s picture

If it can be done today as we have to get this site live, that's why I fell back to the old, working versions of flvmediaplayer, swfobject, and xspf_playlist. Do you want those others updated too?

arthurf’s picture

Well, depending on when you need to go live I'd say if it works, stick with it. If you need some of the new features, I'll do my best to get you going. I have all of these modules working on several sites, so I'm guessing it's a configuration issue, but I can't be sure.

NancyDru’s picture

Oh, I'm sure it is a config issue - something stupid I've done. We need to be live this week. I don't see a need for any new features. And lastly, the site will be re-done by Acquia within 2 months. So I'm not sure a major effort is needed at this point.

NancyDru’s picture

If you want to work on it today, I can set you up a user id. I also have Yahoo Messenger for more timely communication.