Ver Mensaje Individual
  #1 (permalink)  
Antiguo 22/09/2013, 13:08
Avatar de Gabrieru
Gabrieru
 
Fecha de Ingreso: marzo-2013
Ubicación: Lima
Mensajes: 7
Antigüedad: 11 años, 1 mes
Puntos: 0
Combinar php y html

Hola, no se si alguien me pudiese ayudar en esto:

este es el codigo de un launcher:
Código PHP:

<!DOCTYPE html>
<
html lang="en">
<
head>
    <
meta charset="utf-8">
    <
meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <
meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <
meta name="viewport" content="width=device-width, initial-scale=1.0">
    <
title></title>
    <
link rel="stylesheet" media="screen" href="http://image.webzen.net/mu_rebirth/css/launcher.css">
    <
script src ="http://platform.webzen.com/Scripts/HeadInfo.js" type="text/javascript"></script>
    <script src="/Scripts/jquery.easing.1.3.js"></script>
    <script src="/Scripts/jquery.bxslider.min.js"></script>
</head>
<body>

<div id="launcher_wp">
    <section class="eventlist_wp">
        <a href="javascript:location.relord();" class="blind btn_reload">Reload</a>
        <a href="http://forums.webzen.com/Forum493.aspx" class="blind btn_more" target="_blank">more</a>
        <ul class="eventlist">
            <li>
                <a href="http://forums.webzen.com/Topic1048179.aspx" target="_blank">
                    <strong class="mj">Notice</strong><span>Tue, Jan 2, 0001</span>
                    <p>Grand Rebirth Reset Issue</p>
                </a>
            </li>
            <li>
                <a href="http://forums.webzen.com/Topic1052604.aspx" target="_blank">
                    <strong class="mj">Notice</strong><span>Tue, Jan 2, 0001</span>
                    <p>Banned Account &amp; Fixed Bug</p>
                </a>
            </li>
            <li>
                <a href="http://forums.webzen.com/Topic1040816.aspx" target="_blank">
                    <strong class="mj">Notice</strong><span>Tue, Jan 2, 0001</span>
                    <p>How to VOTE for MU Rebirth?</p>
                </a>
            </li>
            <li>
                <a href="http://forums.webzen.com/Topic1044761.aspx" target="_blank">
                    <strong class="mj">Notice</strong><span>Tue, Jan 2, 0001</span>
                    <p>Master Skill Point issue has been fixed</p>
                </a>
            </li>
            <li>
                <a href="http://forums.webzen.com/Topic1052235.aspx" target="_blank">
                    <strong class="mj">Notice</strong><span>Tue, Jan 2, 0001</span>
                    <p>[Notice] About Server Crash</p>
                </a>
            </li>
        </ul>
    </section><!-- //section -->
</div>


</body>
</html> 
lo que quiero hacer es añadirle el rss para que lea cualquier foro mostrando el mismo diseño, el codigo rss que tengo es el siguiente:
Código PHP:
<?php

$long_descripcion
=100
$num_noticias=10
$n=0
$noticias simplexml_load_file('http://muz-online.net/comunidad/external.php?type=RSS2'); 
foreach (
$noticias as $noticia) {  
    foreach(
$noticia as $reg){ 
        if(
$reg->title!=NULL && $reg->title!='' && $reg->description!=NULL && $reg->description!='' && $n<$num_noticias){ 
            
?> <div class="noticia"> <?php
            
echo '<h4><a href="'.$reg->link.'" target="_blank">'.$reg->title.'</a></h4>'
            if(
strlen($reg->description)>$long_descripcion
                echo 
'<p>'.substr($reg->description,0,$long_descripcion).'...</a></p>'
            else if (
$reg->description==NULL || $reg->description==''){
            }
            else 
                echo 
'<p>'.$reg->description.'</p>'
            
$n++; 
            
?> </div><?php
        

    } 
}
?>
Alguien que me dé una pista por favor si no es molestia, he llevado nociones básicas de programacion por lo que entiendo un poco leerlo pero no se como crear el codigo espero alguien me pueda hechar una mano