Code: Select all
<a href="{postrow.U_EDIT}">
Code: Select all
<a href="#" id="quick_edit{postrow.POST_ID}" onclick="quick_edit({postrow.POST_ID}); return false;">{QUICKEDIT_IMG}</a>
Code: Select all
function quick_edit(post_id)
{
divname = 'postdiv' + post_id;
get_text(post_id);
contents = document.getElementById('quick_edit' + post_id).style.display = 'none';
}
function get_text(post_id, contents)
{
if (contents)
{
contents = '&contents=' + contents + '&submit=true';
}
else
{
contents = '';
}
param = 'post_id=' + post_id + contents;
http_request.open("POST", '{U_QUICKEDIT}', true);
http_request.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
http_request.onreadystatechange = handle_text;
http_request.send(param);
}
Code: Select all
$sql = 'SELECT p.*, f.*, t.* FROM ' . POSTS_TABLE . ' p, ' . TOPICS_TABLE . ' t, ' . FORUMS_TABLE . " f WHERE p.post_id = $post_id AND p.topic_id = t.topic_id AND p.forum_id = f.forum_id";
Code: Select all
function quick_edit(post_id)
{
divname = 'postdiv' + post_id;
get_text(post_id);
contents = document.getElementById('quick_edit' + post_id).style.display = 'none';
}
function submit_changes(post_id)
{
divname = 'postdiv' + post_id;
contents = document.forms['quickedit' + post_id].elements['textarea' + post_id].value;
get_text(post_id, contents);
contents = document.getElementById('quick_edit' + post_id).style.display = '';
}
function cancel_changes(post_id)
{
divname = 'postdiv' + post_id;
contents = 'cancel';
get_text(post_id, contents);
contents = document.getElementById('quick_edit' + post_id).style.display = '';
}
Code: Select all
<form method="post" name="quickedit{POST_ID}" id="quickedit{POST_ID}">
<textarea id="textarea{POST_ID}" style="width:95%;" rows="5">{POST_TEXT}</textarea><br />
Can you tell us how to implement this mod into prosilver ?Jonnsn wrote:i use the current version with prosilver and it works fine