Buenas, tengo aquí un formulario para mi foro, y quisiera que en ves de crearse un tema sea responder uno ya creado.
Osea al llenar el formulario se cree una respuesta en el tema que yo especifique, sera que me pueden ayudar en esto?.
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="es" lang="es">
<head>
<title>Formulario</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"
/>
<style type="text/css">
<!-- body {
background-color:#7D7B7B;
color:#ffffff;
text-align:center;
}
form {
width:450px;
text-shadow:2px 2px 0px black;
margin:auto;
}
fieldset {
width:430px;
}
-->
</style>
<script type="text/javascript" src="http://code.jquery.com/jquery-latest.min.js"></script>
<script type="text/javascript">
var auth1;
var auth2;
jQuery(function () {
//
var id_foro = Probando;
jQuery("#hidden").load("/post?f=" + id_foro + "&mode=newtopic form[action='/post']");
});
function enviarMensaje(form) {
// Crear mensaje a partir de los datos suministrados
var txt_message = "<strong>Nickname :</strong> " + form.pseudo.value + '\n' + "<strong>Nivel del PJ :</strong> " + form.prenom.value + '\n' + "<strong>¿Que quieres que te enseñemos? :</strong> " + form.age.value + '\n' + "<strong>País :</strong> " + form.passions.value + '\n' + "<strong>Correo :</strong> ";
// Ahora se insertará todo lo que hayamos metido en el formulario
form.message.value = txt_message;
jQuery("#hidden").find("input[name='auth[]']").each(function (index) {
if (index == 0) auth1 = jQuery(this).attr("value");
if (index == 1) auth2 = jQuery(this).attr("value");
});
jQuery("input#auth1").attr("value", auth1);
jQuery("input#auth2").attr("value", auth2);
jQuery("#titulo").val("Ficha de presentación de " + jQuery("#pseudo").val());
}
</script>
</head>
<body>
<div id="hidden" style="display:none"></div>
<form action="/post" method="post" name="post" enctype="multipart/form-data"
onSubmit="enviarMensaje(this)" target="_parent">
<input type="hidden" name="lt" value="0" />
<input type="hidden" name="mode" value="newtopic" />
<input id="auth1" type="hidden" value="" name="auth[]">
<input id="auth2" type="hidden" value="" name="auth[]">
<!-- Se creará un nuevo tema automaticamente con la información suministrada -->
<input type="hidden" name="topictype" value="0" checked="checked" />
<!-- Value 0: Tema Normal (1=p ost-it / 2=A nuncio) -->
<input type="hidden" name="message" value="" />
<!-- Contendra el texto del mensaje -->
<input type="hidden" name="f" value="3" />
<!-- alumnosasasda -->
<input type="hidden" name="subject" id="titulo" value="" class="USERNAME" />
<h3>Academia S4League </h3>
<table>
<tr>
<td>
<label for="pseudo">
<B>Nickname :</B>
</label>
</td>
<td>
<input type="text" name="pseudo" id="pseudo" class="USERNAME" size="30" required="required" />
</td>
</tr>
<tr>
<td>
<label for="prenom">
<B>Nivel del PJ :</B>
</label>
</td>
<td>
<input type="text" name="prenom" id="prenom" size="30" required="required" />
</td>
</tr>
<tr>
<td>
<label for="age">
<B>¿Que quieres que te enseñemos?:</B>
</label>
</td>
<td>
<p><input type='radio' value='Unlimited' name='Sexo' id='Sexo'>Unlimited</p>
<p><input type='radio' value='OS(Only Sword)' name='Sexo' id='Sexo'>OS(Only Sword)</p>
</td>
</tr>
<tr>
<td>
<label for="passions">
<B>País :</B>
</label>
</td>
<td>
<input class="text" name="passions" id="passions" size="30" required="required"
</tr>
<tr>
<td>
<label for="prenom">
<B>Correo :</B>
</label>
</td>
<td>
<input type="text" name="prenom" id="prenom" size="30" required="required" />
</td>
</tr>
<B></B>
</legend>
<center>
<br />
<input name="post" value="¡Inscribete!" type="submit" />
</center>
</fieldset>
</form>
</body>
</html>
<BODY BACKGROUND = "http://img.s4project.net/wallpapers/S4_League_Wallpaper_by_Ferchu.jpg">
Versión de SMF? El motivo por el cual los usuarios no pueden usar el botón responder o respuesta rápida?