• Plugin Author plumwd

    (@plumwd)


    The output of the stream and chat has been altered a bit to allow for better placement of the shortcodes. However, there was nothing in any prior versions that would inhibit you from placing them side by side as shown here: http://evaclive.com/ (note this site is still using the prior version).

    To make one go to the left and the other go to the right, you must wrap them each in their own div and then apply css rules to those divs.

    For example, on the EVAC site, the player is in an 8 width column that is floated to the left, and the chat is in a 4 width column floated to the right. I purposely left out any styling on the items so that you can make them match your website without much conflicting styling.

    <section id="stream">
        <div class="row">
          <div class="large-8 columns" style="padding-right: 0 !important;" id="streamwindow">
            <script type="text/javascript" src="http://evaclive.com/wp-content/plugins/twitch-tv-embed-suite/scripts/swfobject.js"></script>
    <script type="text/javascript">
    			var flashvars = {};
    			flashvars.flashvars = "hostname=www.twitch.tv&channel=evac&auto_play=true&start_volume=25";
    			var params = {};
    			params.allowfullscreen = "true";
    			params.allowscriptaccess = "always";
    			params.bgcolor = "#000000";
    			params.wmode = "window";
    			var attributes = {};
    			attributes.id = "live_embed_player_flash";
    			swfobject.embedSWF("http://www.twitch.tv/widgets/live_embed_player.swf", "myAlternativeContent", "100%", "525", "9.0.0", "http://evaclive.com/wp-content/plugins/twitch-tv-embed-suite/scripts/expressInstall.swf", flashvars, params, attributes);
    		</script>
    <div id="player">
    <div id="myAlternativeContent"><a href="http://www.twitchtv.com/evac"><img class="alignnone size-full wp-image-10" alt="no-flash" src="http://evaclive.com/wp-content/uploads/2013/08/offline_blue.png" /></a></div>
    </div>       </div>
          <div class="large-4 columns" style="padding-left: 0 !important;" id="chatwindow">
              <div id="chat">
       <iframe frameborder="0" scrolling="no" id="chat_embed" src="http://twitch.tv/chat/embed?channel=evac&popout_chat=true" height="490" width="100%"></iframe>
     </div>
          </div>
          </div>
          <div class="row"><div class="large-12 columns" style="text-align: center; margin-top: 10px;"><button class="large button round" id="toggleChat">Show/Hide Chat</button></div></div>
        </section>

    Each column is floated individually and also has a width set to it. Make sure you set floats properly. When defining a float it is best practice to also set a width, or the browser may not know what to do with it.

    All About Floats.

    Hope that helps.

    https://wordpress.org/plugins/twitch-tv-embed-suite/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi There,

    I tried to get this to work unfortunately my coding knowledge is very limited so i copied your code and just changed the links but im still getting them underneath each other

    http://eaegaming.co.za/live-streams

    <section id="stream">
    <div class="row">
    <div class="large-1 columns" style="padding-right: 0 !important;" id="streamwindow">
            <script type="text/javascript" src="http://eaegaming.co.za/wp-content/plugins/twitch-tv-embed-suite/scripts/swfobject.js"></script>
    <script type="text/javascript">
    			var flashvars = {};
    			flashvars.flashvars = "hostname=www.twitch.tv&channel=evac&auto_play=true&start_volume=25";
    			var params = {};
    			params.allowfullscreen = "true";
    			params.allowscriptaccess = "always";
    			params.bgcolor = "#000000";
    			params.wmode = "window";
    			var attributes = {};
    			attributes.id = "live_embed_player_flash";
    			swfobject.embedSWF("http://www.twitch.tv/widgets/live_embed_player.swf", "eaegaming", "50%", "525", "9.0.0", "http://eaegaming.co.za/wp-content/plugins/twitch-tv-embed-suite/scripts/expressInstall.swf", flashvars, params, attributes);
    		</script>
    <div id="player">
    <div id="eaegaming"><a href="http://www.twitchtv.com/eaegaming"><img class="alignnone size-full wp-image-10" alt="no-flash" src="http://eaegaming.co.za/wp-content/uploads/2013/08/offline_blue.png" /></a></div>
    </div>
    </div>
    <div class="large-4 columns" style="padding-left: 0 !important;" id="chatwindow">
    <div id="chat">
       <iframe frameborder="0" scrolling="no" id="chat_embed" src="http://twitch.tv/chat/embed?channel=eaegaming&popout_chat=true" height="490" width="50%"></iframe></div>
    </div>
    </div>
    <div class="row">
    <div class="large-12 columns" style="text-align: center; margin-top: 10px;"><button class="large button round" id="toggleChat">Show/Hide Chat</button></div>
    </div>
    </section>

    Plugin Author plumwd

    (@plumwd)

    Hi there, sorry I don’t check these forums all that often.

    Did you float your container divs using css?

    #stream {width: 75%; float: left; }
    #chat {width: 25%; float: right}

    I love this plugin , but because i couldnt get it to side by site stream i just do a embed from my own twitch channel via the code twitch are giving.

    http://www.playstationforum.dk/livestream-psforumdk-twitch/

    The good part is the “Status” but it would be cool if you could have multiply twitch streams accounts in admin panel because i sometimes use my own channel and sometimes my sites channel – and sometime both are being use at the same tme.

    I love this plugin , but because i couldnt get it to side by site stream i just do a embed from my own twitch channel via the code twitch are giving.

    http://www.playstationforum.dk/livestream-psforumdk-twitch/

    The good part is the “Status” but it would be cool if you could have multiply twitch streams accounts in admin panel because i sometimes use my own channel and sometimes my sites channel – and sometime both are being use at the same tme.

    Plugin Author plumwd

    (@plumwd)

    I don’t add lots of styling to the plugin on purpose. This is so people can use it how they want to match the needs of their site.

    Because there’s been a lot of demand I will likely include positioning for the chat and steam in a future version.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Side by Side Stream and Chat’ is closed to new replies.