• vajenecvajenec
    February 22
    I have multiple RTMP videos (diferent size) and want to know, how to center videos on single portfolio pages (with ifreme). Now is frame fixed to 900×510 and this is not fine for all videos.
  • mikemike
    February 22
    We note this in the customizations section of our documentation. We don't go into too much detail so here is a bit more:

    File that controls this:
    single-portfolio.php


    <?php
    $values = get_post_custom_values('pyre_video_embed_link_5');
    $pattern = "/height=\"[0-9]*\"/";
    $values = preg_replace($pattern, "height='280'", $values);
    $pattern = "/width=\"[0-9]*\"/";
    $values = preg_replace($pattern, "width='500'", $values);
    $shortcode_output = do_shortcode($values[0]);
    print $shortcode_output;
    ?>


    You will delete the values lines that attribute to width/height. Note: You will then need to put in the proper video width and height parameters when embedding them.
  • vajenecvajenec
    February 23
    Still not OK:
    *****************************************

    <div class="portfolio-single">
    <div class="anythingSlider anythingSlider-default activeSlider" style="width: 900px; height: 510px;">
    <div class="anythingWindow">
    <ul id="slider" class="anythingBase" style="width: 900px; left: 0px;">
    </div>
    <div class="anythingControls" style="display: none;">
    </div>
  • mikemike
    February 23
    Why did you post that code? The only dimensions given for the video are as mentioned in the documentation and above. The slider supports multiple image/video sizes.
  • vajenecvajenec
    February 23
    I comment out all "values" line from single-portfolio.php and this this code is from web-page source - there is still 900 x 510px for iframe.
    I want only to center videos on single-portfolio page
    And this is my iframe:

    <iframe frameborder="0" height="440" name="FRAME1" src="http://tv.glej.tv/tv/konji/kasaci_20111009_stozice.html&quot; width="680" allowTransparency="true"></iframe>

  • mikemike
    February 23
    Can you post a link to a post page that you are having trouble with? I will check it out.
  • vajenecvajenec
    February 23
    Test page is here: http://porabje.info/test2/
    I think width and height in style.css line 938 (#slider) must go away...
  • mikemike
    February 23
    Do you mean this page? http://porabje.info/test2/?portfolio=test

    Because it's working perfectly fine on that one. Those where the only directions I provided.
  • vajenecvajenec
    February 23

    Yes, this is the right page. I want to center videos on page. Videos are 640 x 360, 480 x 360 and so on. All videos are now on left and content are not under videos - there is too much white space. Theme add additional style to iframe (style="width: 100%; height: 100%;).
    Is it safe to remowe width and height ifrom style.css line 938 (#slider)?
  • mikemike
    February 23
    Yeah you should be able to remove the width and height from the #slider. Try and play around with it to get your liking. You should be able to center the iframes within the slider as well.