Nueva pregunta

Pregunta:

Fecha: 30-03-2018 20:35:48 (En Español)

Estoy creado una Red Social tipo Facebook, pero tengo un problema con las publicaciones[Resuelta]

Hola comunidad, cuando publico una imagen, un estado o un vídeo de YouTube a mi Red Social, la foto del perfil del usuario que hizo la publicación se coloca al costado de la publicacion, cree la publicaciones con tablas de una fila y dos columnas pero algunos amigos me ha sujerido que lo haga por medio de etiqueta divs y css, pero no logro fijar la imagen de perfil justo arriba de las publicaciones.

Espero que puedan ayudarme. Gracias
Etiquetas: CSS - HTML - PHP - Pregunta Votos: 0 - Respuestas: 2 - Vistas: 11 Compartir en: Google Facebook Twitter LinkedIn Link
 

Respuestas:

  • Fecha: 31-03-2018 04:52:16 debes mostrar el código de lo que hiciste para poder ayudarte, ademas que usar tablas no es recomendable, usa divs y css para el trabajo   Votos: 1 - Link respuesta
     
  • Fecha: 31-03-2018 20:29:38
    <tr>
            <td><img src="archivos/<?php echo $row_todaslaspublicaciones['email']; ?>/<?php echo $row_todaslaspublicaciones['fotos']; ?>" width="40" height="40" /><br /><br /><br /><br /><br /></td>
            <td><span class="nombre"><?php echo $row_todaslaspublicaciones['nombre']; ?></span> <br />
    
    
    
              <?php echo $row_todaslaspublicaciones['texto']; ?> 
    		  <? if($row_todaslaspublicaciones['imagen']!=""){?>
            <left><img src="archivos/<?php echo $row_todaslaspublicaciones['email']; ?>/fotosmuro/<?php echo $row_todaslaspublicaciones['imagen']; ?>" width="480" height="470" /><left><br />
              
              
              
              <? }?>
              <? if($row_todaslaspublicaciones['video']!=""){?>
              <iframe width="460" height="250" src="https://www.youtube.com/embed/<?php echo $row_todaslaspublicaciones['video']; ?>" frameborder="0" allowfullscreen></iframe>
              
              
              <? }?> <br /> <br />
              
                                                       <span class="fecha">
                                                       <?php $date= $row_todaslaspublicaciones['fecha'];
    $sqldate=date('d / N / Y ' ,strtotime($date));
    $sqldate2=date('h:i a' ,strtotime($date));
    ?>
                                                       <?php echo $sqldate." a las ".$sqldate2; ?></span><br /><hr />
        </td>
    </tr>
    <tr><td width="40"></td>
    <td width="366">
    <div id="CollapsiblePanel<?php echo $numpanel;?>" class="CollapsiblePanel">
                                <div class="CollapsiblePanelTab" tabindex="0">
                                  <?php if ($totalRows_comentarios > 0) { // Show if recordset not empty ?>
                                    <span class="numero">Comentarios (<?php echo $row_todaslaspublicaciones['numcom']; ?>)</span>
    <?php } // Show if recordset not empty ?>
    <br /> </div>
                                <div class="CollapsiblePanelContent">
                                  <?php if ($totalRows_comentarios == 0) { // Show if recordset empty ?>
                                    <div align="center"><span class="numero">Aun no hay Comentarios</span>
                                  </div>
                                  <?php } // Show if recordset empty ?>
                                  <?php if ($totalRows_comentarios > 0) { // Show if recordset not empty ?>
                                    <?php do { ?>
                                      <table width="400" border="0">
                                        <tr>
                                          <td><img src="archivos/<?php echo $row_comentarios['email']; ?>/<?php echo $row_comentarios['fotos']; ?>" width="40" height="39" /><br /><br /><br /><br /></td>
                                          <td><span class="nombre2"><?php echo $row_comentarios['nombre']; ?></span>
                                            
                                            <?php echo $row_comentarios['texto']; ?><br /><br />
                                            <span class="fechacomentario">
                                            <?php $date= $row_comentarios['fecha'];
    $sqldate=date('d / N / Y ' ,strtotime($date));
    $sqldate2=date('h:i a' ,strtotime($date));
    ?>
                                            <?php echo $sqldate." a las ".$sqldate2; ?><br />
    
                                            </span></td>
                                        </tr>
                                      </table><HR />
                                      <?php } while ($row_comentarios = mysql_fetch_assoc($comentarios)); ?>
                                    <?php } // Show if recordset not empty ?>
                                    <form action="<?php echo $editFormAction; ?>" method="post" name="form2" id="form2">
                                      <table align="center">
                                        <tr valign="baseline">
                                          <td nowrap="nowrap" align="right" valign="top"><img src="archivos/<?php echo $row_myusuario['email']; ?>/<?php echo $row_myusuario['fotos']; ?>" width="35" height="33" /></td>
                            <td><textarea name="texto" cols="60"rows="2" class="placeholder2"  placeholder="Escribe un Comentario <?php echo $row_myusuario['nombre']; ?>"></textarea></td>
                          </tr>
                          <tr valign="baseline">
                            <td nowrap="nowrap" align="right">&nbsp;</td>
                            <td align="right"><input type="submit" class="botones" value="Comentar" /></td>
                          </tr>
                        </table>
                                      <input type="hidden" name="idpub" value="<?php echo $row_todaslaspublicaciones['idpub']; ?><br /><br />" /><br />
                                      <input type="hidden" name="email" value="<?php echo $row_myusuario['email']; ?>" />
                                      <input type="hidden" name="fecha" value="" />
                                      <input type="hidden" name="MM_insert" value="form2" />
                                    </form>
                                    <p>&nbsp;</p>
                                </div>
                      </div>
    
            <br /><br /><br /><br /><br /><script type="text/javascript">var TabbedPanel<?php echo $numpanel;?> = new Spry.Widget.TabbedPanels("TabbedPanel<?php echo $numpanel;?>");</script>
    <?php 
    	  $numpanel++;
    	  } while ($row_todaslaspublicaciones = mysql_fetch_assoc($todaslaspublicaciones)); ?>
    <?php } // Show if recordset not empty ?>
           </tr>   </table>
    
         
             
           </td>
      </tr>
    </table>
      Votos: 0 - Link respuesta
     
Para participar activamente de la comunidad primero debes autenticarte, ingresa al sistema.Iniciar Sesión
 
frjcbbae garagebible.com