Foros del Web » Programando para Internet » Javascript »

Hacer sistema de Updates

Estas en el tema de Hacer sistema de Updates en el foro de Javascript en Foros del Web. Hola. Estoy tratando de hacer el sistema en java que usa SMF(simplemachinesforums). En el admin de ese foro se encuetra un recuadro el cual muestra ...
  #1 (permalink)  
Antiguo 27/06/2005, 14:11
 
Fecha de Ingreso: mayo-2005
Mensajes: 49
Antigüedad: 19 años
Puntos: 0
Hacer sistema de Updates

Hola.

Estoy tratando de hacer el sistema en java que usa SMF(simplemachinesforums).

En el admin de ese foro se encuetra un recuadro el cual muestra noticias de un archivo en simplemachines.org. yo quiero hacer eso, he recopilado esto,

Código PHP:
<style type="text/css">
/* Alternating backgrounds for posts, and several other sections of the forum. */
.windowbg2
{
    color: #000000;
    background-color: #E1E1E1;
}
</style>

<?php



$txt
['smf217'] = 'Live from Simple Machines...';
$txt['lfyi'] = 'You are unable to connect to simplemachines.org\'s latest news file.';


// Display the "live news" from simplemachines.org.
    
echo '
            <td valign="top">
                <table width="100%" cellpadding="5" cellspacing="1" border="0" class="bordercolor">
                    <tr>
                        <td class="catbg">
                            <a href="'
$scripturl'?action=helpadmin;help=13" onclick="return reqWin(this.href);" class="help"><img src="'$settings['images_url'], '/helptopics.gif" alt="'$txt[119], '" border="0" align="top" /></a> '$txt['smf217'], '
                        </td>
                    </tr><tr>
                        <td class="windowbg2" valign="top" style="height: 18ex; padding: 0;">
                            <div id="smfAnnouncements" style="height: 18ex; overflow: auto; padding-right: 1ex;"><div style="margin: 4px; font-size: 0.85em;">'
$txt['lfyi'], '</div></div>
                        </td>
                    </tr>
                </table>
            </td>
            <td style="width: 1ex;">&nbsp;</td>'
;

    
// Show the user version information from their server.
    
echo '
            <td valign="top" style="width: 40%;">
                <table width="100%" cellpadding="5" cellspacing="1" border="0" class="bordercolor" id="supportVersionsTable">
                    <tr>
                        <td class="catbg"><a href="'
$scripturl'?action=admin;credits">'$txt['support_title'], '</a></td>
                    </tr><tr>
                        <td class="windowbg2" valign="top" style="height: 18ex;">
                            <b>'
$txt['support_versions'], ':</b><br />
                            '
$txt['support_versions_forum'], ':
                            <i id="yourVersion" style="white-space: nowrap;">'
$context['forum_version'], '</i><br />
                            '
$txt['support_versions_current'], ':
                            <i id="smfVersion" style="white-space: nowrap;">??</i><br />
                            '
$context['can_admin'] ? '<a href="' $scripturl '?action=detailedversion">' $txt['dvc_more'] . '</a>' '''<br />';

                            
// This sets the announcements and current versions themselves ;).
    
echo '
        <script language="JavaScript" type="text/javascript"><!--
            function smfSetAnnouncements()
            {
                if (typeof(window.smfAnnouncements) == "undefined" || typeof(window.smfAnnouncements.length) == "undefined")
                    return;

                var str = "<div style=\"margin: 4px; font-size: 0.85em;\">";

                for (var i = 0; i < window.smfAnnouncements.length; i++)
                {
                    str += "\n    <div style=\"padding-bottom: 2px;\"><a hre" + "f=\"" + window.smfAnnouncements[i].href + "\">" + window.smfAnnouncements[i].subject + "</a> '
$txt[30], ' " + window.smfAnnouncements[i].time + "</div>";
                    str += "\n    <div style=\"padding-left: 2ex; margin-bottom: 1.5ex; border-top: 1px dashed;\">"
                    str += "\n        " + window.smfAnnouncements[i].message;
                    str += "\n    </div>";
                }

                setInnerHTML(document.getElementById("smfAnnouncements"), str + "</div>");

            }
</script>
    

            '
;
            
?>
lo que no funciona es el Java, me ayudan?

Gracias
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 12:57.