Store
Community Documentation

v3 Knowledgebase

How to place a video in the front page

In order to place a video in the front page where the map image is we will follow those steps:

1) Go to AdminCP -> Extension -> Theme -> Manage Theme -> Select the theme by clicking in the drop down menu and select the option "Edit Templates".

Following this tutorial:

* http://www.phpfox.com/kb/article/80/editing-your-sites-templates/

We will edit the template called "welcome.html.php" of the module "user" block.

In the code

PHP:
<div class="t_center">
    {
img theme='layout/banner.png'}
</
div


We will place video source code between the div tab, for example:

embed code:

PHP:
<div class="t_center">

<
iframe width="530" height="245" src="http://www.youtube.com/embed/lMVfIe536J0" frameborder="0" allowfullscreen></iframe>

</
div


Flowplayer embed code here:

* http://flash.flowplayer.org/demos/plugins/javascript/embed.html

Please keep on mind the recommeded size of the video is width = 530 and the height = 245, as the front page image:

Screenshot-1.png

It should looks like this:

* http://www.diigo.com/item/image/2kb28/x9dm