http://www.phpbb.com/community/viewtopi ... quick+editnick445 wrote:Does anyone know if they have this for PHPBB2?
that be hella nice if sum1 could do it :O
Then don't be like that, and go search for one that DOES.nick445 wrote:that mod doesnt work on phpbb 0.22.. rofl
LOL There's non that work with phpbb 2 broiyeru42 wrote:Then don't be like that, and go search for one that DOES.nick445 wrote:that mod doesnt work on phpbb 0.22.. rofl
Then go request one.nick445 wrote:LOL There's non that work with phpbb 2 bro
Code: Select all
<!-- IF EDIT_FORM -->
<form method="post" name="quickedit" id="quickedit">
<textarea id="textarea" style="width:95%; height:95%;" rows="5">{POST_TEXT}</textarea><br />
<input type="button" class="btnmain" onclick="submit_changes({POST_ID});" value="{L_SAVE}" />
<input type="button" class="btnmain" onclick="cancel_changes({POST_ID});" value="{L_CANCEL}" />
</form>
<!-- ELSEIF SEND_TEXT -->
{TEXT}
<!-- ELSE -->
<script type="text/javascript">
<!--
var http_request = getHTTPObject();
var divname = '';
var editando = '';
function quick_edit(post_id)
{
if(editando!='') {
window.alert('You can only edit an answer at once.');
} else {
editando = post_id;
divname = 'pd' + post_id;
get_text(post_id);
contents = document.getElementById('quick_edit' + post_id).style.display = 'none';
}
}
function submit_changes(post_id)
{
contents = document.forms['quickedit'].elements['textarea'].value;
contents = contents.replace("&","and");
get_text(post_id, contents);
contents = document.getElementById('quick_edit' + post_id).style.display = '';
editando = '';
}
function cancel_changes(post_id)
{
contents = 'cancel';
get_text(post_id, contents);
contents = document.getElementById('quick_edit' + post_id).style.display = '';
editando = '';
}
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);
}
function handle_text()
{
if (http_request.readyState == 4)
{
if (http_request.status == 200)
{
result = http_request.responseText;
document.getElementById(divname).innerHTML = result;
}
else
{
alert('ERROR! Problema de recepcion.');
}
}
}
function getHTTPObject()
{
if (window.XMLHttpRequest)
{
return new XMLHttpRequest();
}
else if(window.ActiveXObject)
{
return new ActiveXObject("Microsoft.XMLHTTP");
}
else
{
document.getElementById('p_status').innerHTML = 'Status: Cound not create XmlHttpRequest Object. Consider upgrading your browser.';
}
}
-->
</script>
<!-- ENDIF -->
Did you do the skin edits, purge the cache, refresh the templates and made sure you have JavaScript Enabled? If you did all that... well I'd be stumped.swbfguy wrote:when i click the quick edit, it reloads the current page.. doesn't allow you to even edit a post
Code: Select all
function submit_changes(post_id)
{
contents = document.forms['quickedit'].elements['textarea'].value;
contents = contents.replace(/[&]/g,"%26");
get_text(post_id, contents);
contents = document.getElementById('quick_edit' + post_id).style.display = '';
editando = '';
}