Me rindo, ho he podido agregar un flash a mi header...

Me rindo, ho he podido agregar un flash a mi header...

de helmunt sierra -
Número de respuestas: 5

Hola a todos los amigos moodlers,

Mi problemilla es que no he encontrado una persona que me pueda explicar de forma clara y sencilla la forma de agregar un flash a mi header, por ejemplo el logo de la organizacion....... En foros anteriores algunos  compañeros me decian "que era muy facil que solo agregara el codigo a mi header y listo", depronto la pregunta no fue clara....

1. Que codigo debo añadir al header.

2. Exactamente en que parte del header debo agregar mi .swf

3. Donde es recomendable guardar el flash, archivo.swf.....

Por favor regalenme una manito por que estoy desesperado con eso........ y de seguro es muy facil, solo que no he encontrado una explicacion sencilla...... Un saludo y gracias

Promedio de valoraciones: -
En respuesta a helmunt sierra

Re: Me rindo, ho he podido agregar un flash a mi header...

de Matilde Montealegre -

Hola Helmut. Mira el procedimiento es sencillo. Aqui te envio todo el codigo del archivo header.html de la carpeta themes (este archivo debe ser modificado de la carpeta que tengas definido como tema del sitio, ejemplo: orangewhite, standard, etc)

El nombre del archivo flash es bannerppal.swf y debe ser copiado dentro de la carpeta donde esta el header.html.

Lo que aparece en negrita es el codigo que inserta el flash. Tu puedes insertar el flash utilizando dreamweaver y luego copiando el codigo html en el lugar que te indico aqui.

Espero haber podido ayudarte. Cualquier cosa me escribes. matildemm@usco.edu.co.

Chao. Matilde Montealegre

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html<?php echo $direction ?>>
<head>
    <?php echo $meta ?>
    <meta name="keywords" content="moodle, <?php echo $title ?> " />
    <title><?php echo $title ?></title>
    <link rel="shortcut icon" href="<?php echo "$CFG->wwwroot/theme/$CFG->theme" ?>/favicon.ico" />
    <?php include("$CFG->javascript"); ?>
</head>
 
<body <?php
 echo " $bodytags";
    if ($focus) {
        echo " onload="setfocus()"";
    };
    ?>/>
<div id="page">

<?php if ($home) {  // This is what gets printed on the home page only 
?>
    <div id="header-home">
        <div class="headermain"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="780" height="120" title="bannercampus">
  <param name="movie" value="<?php echo "$CFG->wwwroot/theme/$CFG->theme/bannerppal.swf"?>">
  <param name="quality" value="high" />
  <embed  src="<?php echo "$CFG->wwwroot/theme/$CFG->theme/bannerppal.swf"?>" quality="high" pluginspage="
http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="780" height="120"></embed>
</object>

</div>
        <div class="headermenu"><?php echo $menu ?></div>
  
 </div>
    <div class="navbar">
    </div>
<?php } else if ($heading) {  // This is what gets printed on any other page with a heading
?>
    <div id="header">
        <div class="headermain"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="780" height="120" title="bannercampus">
  <param name="movie" value="<?php echo "$CFG->wwwroot/theme/$CFG->theme/bannerppal.swf"?>">
  <param name="quality" value="high" />
  <embed  src="<?php echo "$CFG->wwwroot/theme/$CFG->theme/bannerppal.swf " ?>" quality="high" pluginspage="
http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="780" height="120"></embed>
</object>

</div>
        <div class="headermenu"><?php echo $menu ?></div>
        <!-- <div class="headermenu"><div id="new-menu"><?php echo $navmenulist ?></div></div> -->
   
 </div>
<?php } ?>
<?php if ($navigation) { // This is the navigation table with breadcrumbs  ?>
    <div class="navbar">
        <div class="breadcrumb"><?php print_navigation("$navigation"); ?></div>
        <div class="navbutton"><?php echo $button; ?></div>
    
 </div>
<?php } ?>
    <!-- END OF HEADER -->
<div id="content">

En respuesta a Matilde Montealegre

Re: Me rindo, ho he podido agregar un flash a mi header...

de sonia villar -

Hola Matilde, yo tengo el mismo problema que el compañero, y veo tu repuesta pero no identifico el texto en negrita que indicaria la insercion del codigo html del flash.... Podrias indicarlo cambiando el color o subrayandolo? ya que parece que la negrita "no va"...

Gracias mil

En respuesta a sonia villar

Re: Me rindo, ho he podido agregar un flash a mi header...

de José Escarcha -

HolaS:

Les sugiero revisar los fuentes del header de los siguientes themes o entornos de clouds o standardlogo x ejemplo, están en la carpeta themes cada uno con su respectiva carpeta, esto les permitirá conocer el código fuente para insertar imágenes y por ende un objeto flash.

A continuación copio el código y resalto el lugar donde insertarán el .swf, es una tabla que contiene imágenes y un flash.

<table align="center" width="100%" cellpadding="0" cellspacing="0" border="0">
<TR>
<TD background="<?php echo "$CFG->wwwroot/theme/$CFG->theme" ?>/pix/bkgnd_topcenter.jpg" width="100%" bgcolor="#ffffff">

<div id="page">

<?php if ($home) {  // This is what gets printed on the home page only
?>
    <table width="100%" cellpadding="0" cellspacing="0" border="0" class="headerhome" background="<?php echo "$CFG->wwwroot/theme/$CFG->theme" ?>/pix/header_big_bg.jpg">
  <tr>

<td width="100%"><img src="<?php echo "$CFG->wwwroot/theme/$CFG->theme" ?>/pix/header_left_bg.jpg"></td>
<td align="right" width="400"><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,65,0" width="400" height="152" id="moodle2" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="<?php echo "$CFG->wwwroot/theme/$CFG->theme" ?>/pix/header2.swf" />
<param name="quality" value="high" />
<embed src="<?php echo "$CFG->wwwroot/theme/$CFG->theme" ?>/pix/header2.swf" quality="high" width="400" height="152" name="moodle2" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="
http://www.macromedia.com/go/getflashplayer" />
</object></
td>
</tr>
<tr height="15">
      <td width="100%" colspan="2" valign="middle" background="<?php echo "$CFG->wwwroot/theme/$CFG->theme" ?>/pix/header_sub_bg.jpg">


    <div id="header-home">
        <table width="99%"><tr><td><div class="headermain"><img src="<?php echo "$CFG->wwwroot/theme/$CFG->theme" ?>/pix/spacer.gif" width="10"><?php echo $heading ?></div>
        </td><td align="right"><div class="headermenu"><?php echo $menu ?><img src="<?php echo "$CFG->wwwroot/theme/$CFG->theme" ?>/pix/spacer.gif" width="10"></div>
        </td></tr></table>
    </div>


</td></tr></table>
<?php } else if ($heading) {  // This is what gets printed on any other page with a heading
?>
       <table width="100%" cellpadding="0" cellspacing="0" border="0" class="headerhome">
      <tr>

    <td width="280"><a href="<?php echo "$CFG->wwwroot/" ?>"><img src="<?php echo "$CFG->wwwroot/theme/$CFG->theme" ?>/pix/logoleft_small.jpg" border="0"></a></td>
    <td align="right"><img src="<?php echo "$CFG->wwwroot/theme/$CFG->theme" ?>/pix/logoright_small.jpg"></td>
    </tr>
    <tr>
          <td width="100%" nowrap colspan="2" valign="middle" background="<?php echo "$CFG->wwwroot/theme/$CFG->theme" ?>/pix/header_sub_bg.jpg">

<?php } ?>
<?php if ($navigation) { // This is the navigation table with breadcrumbs ?>

<?php
        global $course, $category;
        if (is_object($course)) {
            $nav = $navigation;
            $cattree = get_record("course_categories", "id", $course->category);
            $linkcss = $cattree->visible ? "" : " class=\"dimmed\" ";
            $nav = "<a $linkcss title=\"".htmlspecialchars($cattree->description)."\" "
                  ."href=\"$CFG->wwwroot/course/category.php?id=$cattree->id\">$cattree->name</a> -> "
                  .$nav;
            while ($cattree->parent) {
                $cattree = get_record("course_categories", "id", $cattree->parent);
                $linkcss = $cattree->visible ? "" : " class=\"dimmed\" ";
                $nav = "<a $linkcss title=\"".htmlspecialchars($cattree->description)."\" "
                      ."href=\"$CFG->wwwroot/course/category.php?id=$cattree->id\">$cattree->name</a> -> "
                      .$nav;
            }
        } else if (is_object($category)) {
            $nav = $navigation;             // If you want 'course categories' in the breadcrumb, use this.
//            $nav = $category->name;         // If you don't want 'course categories' in the breadcrumb, use this.
            $cattree = $category;
            while ($cattree->parent) {
                $cattree = get_record("course_categories", "id", $cattree->parent);
                $linkcss = $cattree->visible ? "" : " class=\"dimmed\" ";
                $nav = "<a $linkcss title=\"".htmlspecialchars($cattree->description)."\" "
                      ."href=\"$CFG->wwwroot/course/category.php?id=$cattree->id\">$cattree->name</a> -> "
                      .$nav;
            }
        } else {
            $nav = $navigation;
        }
        $navigation = $nav;
?>

        <table width="100%" cellpadding="0" cellspacing="0" border="0"><tr>
        <td width="10"><img src="<?php echo "$CFG->wwwroot/theme/$CFG->theme" ?>/pix/spacer.gif" width="10"></td>
        <td valign="middle" rowspan="2"><div class="breadcrumb"><?php print_navigation($navigation); ?></td>
        <td align="right"><?php echo $menu ?></td>
        <td width="10"><img src="<?php echo "$CFG->wwwroot/theme/$CFG->theme" ?>/pix/spacer.gif" width="10"></td>
        </tr>
        <tr>
        <td width="10"><img src="<?php echo "$CFG->wwwroot/theme/$CFG->theme" ?>/pix/spacer.gif" width="10"></td>
        <td colspan="2" align="right"><div class="navbutton"><?php echo $button; ?></div></td>
        <td width="10"><img src="<?php echo "$CFG->wwwroot/theme/$CFG->theme" ?>/pix/spacer.gif" width="10"></td>
        </tr></table>

<?php } else if ($heading) { // If no navigation, but a heading, then print a line  ?>

----------------- aquí continua + código pero no es relevante, ojo es el mismo del theme clouds

Espero les sirva, salu2

En respuesta a José Escarcha

Re: Me rindo, ho he podido agregar un flash a mi header...

de sonia villar -

Gracias, voy a revisarlo con detenimiento.

Sonia

En respuesta a sonia villar

Re: Me rindo, ho he podido agregar un flash a mi header...

de alejandro sanchez -
Hola,

En un foro anterior me resolvieron esta duda ya que tampoco sabia y en realidad es muy sencillo, pero para no olvidarlo cuando modifique el header.html le agregue bastantes comentarios asi que lo adjunto, espero que les sirva, a y aprovecho para agradecer a Jimmy Morales y al foro de desarroladores donde me resolvieron la duda.

Alejo-X

msn: batualejox@msn.com
mail: batualejox2003@yahoo.com.ar