kisiera pediros su valiosa ayuda
les comento mi problema .....
instale el siguiente mod , lel cual me permitiria poner un cuadro de respuesta rapida para mi foro phpbb
Cita:
el mod aparentemente funciono bien al menos eso pense en un principio ........################################################## ############
## MOD Title: Quick Reply and Actions MOD
## MOD Author: porplemontage, information from Smartor
## MOD Description: This will add a quick-reply and actions table form below every topic
## It will only display when user has the Reply access
## User have a option to quote the last message
## MOD Version: 1.1
##
## Installation Level: easy
## Installation Time: 5 Minutes
## Files To Edit: 3
## viewtopic.php
## language/lang_XX/lang_main.php
## templates/template_XX/viewtopic_body.tpl
## Included Files: N/A
################################################## ############
## Author Notes: You can change the color tags in viewtopic_body.tpl
## to match your template colors.
################################################## ############
## This MOD is released under the GPL License.
## Intellectual Property is retained by the MOD Author(s) listed above
################################################## ############
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
################################################## ############
#
#-----[ OPEN ]------------------------------------------
#
viewtopic.php
#
#-----[ FIND ]------------------------------------------
#
$template->pparse('body');
include($phpbb_root_path . 'includes/page_tail.'.$phpEx);
#
#-----[ BEFORE, ADD ]------------------------------------
#
//
// Quick Reply and Actions Mod
//
if ( ((!$is_auth['auth_reply']) or ($forum_topic_data['forum_status'] == FORUM_LOCKED) or ($forum_topic_data['topic_status'] == TOPIC_LOCKED)) and ($userdata['user_level'] != ADMIN) )
{
$quick_reply_form = "";
}
else
{
if ( $can_watch_topic && $is_watching_topic )
{
$notify = 1;
}
else
{
$notify = $userdata['user_notify'];
}
$bbcode_uid = $postrow[$total_posts - 1]['bbcode_uid'];
$last_poster = $postrow[$total_posts - 1]['username'];
$last_msg = $postrow[$total_posts - 1]['post_text'];
$last_msg = str_replace(":1:$bbcode_uid", "", $last_msg);
$last_msg = str_replace(":u:$bbcode_uid", "", $last_msg);
$last_msg = str_replace(":o:$bbcode_uid", "", $last_msg);
$last_msg = str_replace(":$bbcode_uid", "", $last_msg);
$last_msg = str_replace("'", "'", $last_msg);
$last_msg = "
$quick_reply_form = "
<script language='JavaScript' type='text/javascript'>
function checkForm() {
formErrors = false;
document.post.message.value = '';
if (document.post.input.value.length < 2) {
formErrors = '" . $lang['Empty_message'] . "';
}
if (formErrors) {
alert(formErrors);
return false;
} else {
if (document.post.quick_quote.checked) {
document.post.message.value = document.post.last_msg.value;
}
document.post.message.value += document.post.input.value;
return true;
}
}
</script>
<form action='".append_sid("posting.$phpEx")."' method='post' name='post' onsubmit='return checkForm(this)'>
<span class='genmed'><b>".$lang["Quick_Reply"].":</b><br />";
if (!$userdata['session_logged_in'])
{
$quick_reply_form .= $lang['Username'] . ": <input class='post' type='text' name='username' size='25' maxlength='25' value='' /><br />";
}
$quick_reply_form .= "<textarea name='input' rows='6' style='width: 98%;' wrap='virtual' class='post''></textarea><br />
<input type='checkbox' name='quick_quote' />".$lang["Quick_quote"]."<br />
<input type='checkbox' name='attach_sig' checked='checked' />".$lang["Attach_signature"]."<br />
<input type='hidden' name='mode' value='reply' />
<input type='hidden' name='sid' value='" . $userdata['session_id'] . "' />
<input type='hidden' name='t' value='" . $topic_id . "' />
<input type='hidden' name='message' value='' />
<input type='hidden' name='notify' value=" . $notify . " />
<input type='hidden' name='last_msg' value='" . $last_msg . "' />
<input type='submit' name='preview' class='liteoption' value='".$lang['Preview']."' />
<input type='submit' name='post' class='mainoption' value='".$lang["Submit"]."' />
</form></span>";
}
$template->assign_vars(array(
'QUICK_REPLY_FORM' => $quick_reply_form)
);
//
// END Quick Reply and Actions Mod
//
#
#-----[ OPEN ]------------------------------------------
#
lang_main.php
#
#-----[ FIND ]------------------------------------------
#
//
// That's all Folks!
#
#-----[ BEFORE, ADD ]------------------------------------
#
// Quick Reply Mod
$lang['Quick_Reply'] = 'Quick Reply';
$lang['Quick_quote'] = 'Quote the last message';
#
#-----[ OPEN ]------------------------------------------
#
viewtopic_body.tpl
#
#-----[ DELETE ]------------------------------------------
#
<tr>
<td align="left" colspan="3"><span class="nav">{PAGE_NUMBER}</span></td>
</tr>
#
#-----[ FIND ]------------------------------------
#
<table width="100%" cellspacing="2" border="0" align="center">
<tr>
<td width="40%" valign="top" nowrap="nowrap" align="left"><span class="gensmall">{S_WATCH_TOPIC}</span><br />
<br />
{S_TOPIC_ADMIN}</td>
<td align="right" valign="top" nowrap="nowrap">{JUMPBOX}<span class="gensmall">{S_AUTH_LIST}</span></td>
</tr>
</table>
#
#-----[ REPLACE WITH ]------------------------------------------
#
<table align="center" width="100%" border="0" cellspacing="0" cellpadding="2">
<tr>
<th height='25' class='thCornerL' nowrap='nowrap' colspan="5">Quick Reply and Actions</th>
</tr>
<tr>
<td height="1" colspan="5" bgcolor="E5E5E5" class="row3"> </td>
</tr>
<tr>
<td width="1" bgcolor="dedeee" class="row3_c"> </td>
<td width="60%" valign="top" bgcolor="EFEFEF" class="gensmall_l_row1"><p><span class="row1_l">{QUICK_REPLY_FORM}</span></p>
</td>
<td width="1" bgcolor="dedeee" class="row3_c"> </td>
<td width="35%" valign="top" bgcolor="EFEFEF" class="gensmall_l_row1"><p><span class="row1_l"><span class="nav">{PAGE_NUMBER}</span><br>
<span class="gensmall">{S_WATCH_TOPIC}</span></span></p>
<hr>
<p><span class="row1_l">{JUMPBOX}<span class="gensmall">{S_AUTH_LIST}</span></span><br />
</p>
</td>
<td width="1" bgcolor="dedeee" class="row3_c"> </td>
</tr>
<tr>
<td height="1" colspan="5" bgcolor="E5E5E5" class="row3"> </td>
</tr>
</table>
<p>{S_TOPIC_ADMIN}</p>
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoMQ
## MOD Title: Quick Reply and Actions MOD
## MOD Author: porplemontage, information from Smartor
## MOD Description: This will add a quick-reply and actions table form below every topic
## It will only display when user has the Reply access
## User have a option to quote the last message
## MOD Version: 1.1
##
## Installation Level: easy
## Installation Time: 5 Minutes
## Files To Edit: 3
## viewtopic.php
## language/lang_XX/lang_main.php
## templates/template_XX/viewtopic_body.tpl
## Included Files: N/A
################################################## ############
## Author Notes: You can change the color tags in viewtopic_body.tpl
## to match your template colors.
################################################## ############
## This MOD is released under the GPL License.
## Intellectual Property is retained by the MOD Author(s) listed above
################################################## ############
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
################################################## ############
#
#-----[ OPEN ]------------------------------------------
#
viewtopic.php
#
#-----[ FIND ]------------------------------------------
#
$template->pparse('body');
include($phpbb_root_path . 'includes/page_tail.'.$phpEx);
#
#-----[ BEFORE, ADD ]------------------------------------
#
//
// Quick Reply and Actions Mod
//
if ( ((!$is_auth['auth_reply']) or ($forum_topic_data['forum_status'] == FORUM_LOCKED) or ($forum_topic_data['topic_status'] == TOPIC_LOCKED)) and ($userdata['user_level'] != ADMIN) )
{
$quick_reply_form = "";
}
else
{
if ( $can_watch_topic && $is_watching_topic )
{
$notify = 1;
}
else
{
$notify = $userdata['user_notify'];
}
$bbcode_uid = $postrow[$total_posts - 1]['bbcode_uid'];
$last_poster = $postrow[$total_posts - 1]['username'];
$last_msg = $postrow[$total_posts - 1]['post_text'];
$last_msg = str_replace(":1:$bbcode_uid", "", $last_msg);
$last_msg = str_replace(":u:$bbcode_uid", "", $last_msg);
$last_msg = str_replace(":o:$bbcode_uid", "", $last_msg);
$last_msg = str_replace(":$bbcode_uid", "", $last_msg);
$last_msg = str_replace("'", "'", $last_msg);
$last_msg = "
Cita:
";
Iniciado por \"$last_poster\"
" . $last_msg . "
$quick_reply_form = "
<script language='JavaScript' type='text/javascript'>
function checkForm() {
formErrors = false;
document.post.message.value = '';
if (document.post.input.value.length < 2) {
formErrors = '" . $lang['Empty_message'] . "';
}
if (formErrors) {
alert(formErrors);
return false;
} else {
if (document.post.quick_quote.checked) {
document.post.message.value = document.post.last_msg.value;
}
document.post.message.value += document.post.input.value;
return true;
}
}
</script>
<form action='".append_sid("posting.$phpEx")."' method='post' name='post' onsubmit='return checkForm(this)'>
<span class='genmed'><b>".$lang["Quick_Reply"].":</b><br />";
if (!$userdata['session_logged_in'])
{
$quick_reply_form .= $lang['Username'] . ": <input class='post' type='text' name='username' size='25' maxlength='25' value='' /><br />";
}
$quick_reply_form .= "<textarea name='input' rows='6' style='width: 98%;' wrap='virtual' class='post''></textarea><br />
<input type='checkbox' name='quick_quote' />".$lang["Quick_quote"]."<br />
<input type='checkbox' name='attach_sig' checked='checked' />".$lang["Attach_signature"]."<br />
<input type='hidden' name='mode' value='reply' />
<input type='hidden' name='sid' value='" . $userdata['session_id'] . "' />
<input type='hidden' name='t' value='" . $topic_id . "' />
<input type='hidden' name='message' value='' />
<input type='hidden' name='notify' value=" . $notify . " />
<input type='hidden' name='last_msg' value='" . $last_msg . "' />
<input type='submit' name='preview' class='liteoption' value='".$lang['Preview']."' />
<input type='submit' name='post' class='mainoption' value='".$lang["Submit"]."' />
</form></span>";
}
$template->assign_vars(array(
'QUICK_REPLY_FORM' => $quick_reply_form)
);
//
// END Quick Reply and Actions Mod
//
#
#-----[ OPEN ]------------------------------------------
#
lang_main.php
#
#-----[ FIND ]------------------------------------------
#
//
// That's all Folks!
#
#-----[ BEFORE, ADD ]------------------------------------
#
// Quick Reply Mod
$lang['Quick_Reply'] = 'Quick Reply';
$lang['Quick_quote'] = 'Quote the last message';
#
#-----[ OPEN ]------------------------------------------
#
viewtopic_body.tpl
#
#-----[ DELETE ]------------------------------------------
#
<tr>
<td align="left" colspan="3"><span class="nav">{PAGE_NUMBER}</span></td>
</tr>
#
#-----[ FIND ]------------------------------------
#
<table width="100%" cellspacing="2" border="0" align="center">
<tr>
<td width="40%" valign="top" nowrap="nowrap" align="left"><span class="gensmall">{S_WATCH_TOPIC}</span><br />
<br />
{S_TOPIC_ADMIN}</td>
<td align="right" valign="top" nowrap="nowrap">{JUMPBOX}<span class="gensmall">{S_AUTH_LIST}</span></td>
</tr>
</table>
#
#-----[ REPLACE WITH ]------------------------------------------
#
<table align="center" width="100%" border="0" cellspacing="0" cellpadding="2">
<tr>
<th height='25' class='thCornerL' nowrap='nowrap' colspan="5">Quick Reply and Actions</th>
</tr>
<tr>
<td height="1" colspan="5" bgcolor="E5E5E5" class="row3"> </td>
</tr>
<tr>
<td width="1" bgcolor="dedeee" class="row3_c"> </td>
<td width="60%" valign="top" bgcolor="EFEFEF" class="gensmall_l_row1"><p><span class="row1_l">{QUICK_REPLY_FORM}</span></p>
</td>
<td width="1" bgcolor="dedeee" class="row3_c"> </td>
<td width="35%" valign="top" bgcolor="EFEFEF" class="gensmall_l_row1"><p><span class="row1_l"><span class="nav">{PAGE_NUMBER}</span><br>
<span class="gensmall">{S_WATCH_TOPIC}</span></span></p>
<hr>
<p><span class="row1_l">{JUMPBOX}<span class="gensmall">{S_AUTH_LIST}</span></span><br />
</p>
</td>
<td width="1" bgcolor="dedeee" class="row3_c"> </td>
</tr>
<tr>
<td height="1" colspan="5" bgcolor="E5E5E5" class="row3"> </td>
</tr>
</table>
<p>{S_TOPIC_ADMIN}</p>
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoMQ
pero ahora resulta que cada ves que envio un mensaje ya sea de la forma tradicioanl o usando el quick reply (respuesta rapida) .... el mensaje se envia pero automaticamente cierra mi sesion ... me explico mejor ,, despues de enviar el mensaje aparesco como si no ubiera ingresado .. osea como si no uviera opuesto mi nombre de user y pasword ...... kisiera saver si el problema es devido a esot o kisas sea otra cosa .. por eso dejo hay el contenido total del mod ... espero puedan ayudarme ...... orecomendarme un mod mejor , el que esta funcioando no me parece malo pero no creo sea tan bueno como para andar poniendo nombre y pasword cada ves que pòstee .....
mil gracias si alguien quiere provar su funcionamiento oc conocer mas del problema , prueve psotear en mi foro foro.logamweb.com casi todos los foros son publicos sin necesidad de pasword pero en caso se les pidiera user y pass aca tiene uno
ID= peruano
PAS=jim123