Page 1 of 5

[ABANDONED] AJAX Quick Reply

Posted: Tue May 22, 2007 11:36 pm
by Handyman`
Classification: Add-on
phpBB Part: Forum

MOD Name: AJAX Quick Reply
MOD Version: 0.2.0
Author: GroovePlugs (Handyman)
MOD Description: Super Quick Post without loading page.

Works with:
  • RC1
Features:
  • posts without reloading the page
Language: English

Licence: GNU General Public License v2

Installation Level: Easy
Installation Time: 3 Minutes
Format: MODX
Requirements: Simple Quick Reply by Evil3

Support: Support topic
Download: http://startrekguide.com/forum/download.php?id=1242
Screenshots: None needed for this mod

ToDo:
  1. Support Lew21's Quick Reply
  2. Posting review
  3. Redirect user to last page if not browsing last page of topic
  4. Fix IE Bug
  5. Add Post Preview
Special thanks: to Igor (Evil3) For helping me validate and test this mod.
Also for creating the simple quick reply, which this mod requires… it's a great mod to integrate with :)


I still need to install Lew's Quick reply on my localhost so I can write the install to work with that one… but it's coming soon.
Will be very easy to do.

Also, due to a tiny glitch, this currently does not work in IE.
That will also be fixed in the next version.

My Mod Roadmap: http://startrekguide.com/forum/f100-mod ... html#p8507

Re: [BETA] AJAX Quick Reply

Posted: Tue May 22, 2007 11:42 pm
by ac_roma
:shock: its fantastic mod

thanks :)

Re: [BETA] AJAX Quick Reply

Posted: Wed May 23, 2007 12:23 pm
by vbbgold
I got this:

Code: Select all

Fatal error: Cannot redeclare get_user_avatar() (previously declared in D:\WEB\Localhost\www\giotmohoi\includes\functions_display.php:1120) in D:\WEB\Localhost\www\giotmohoi\includes\functions_display.php on line 1181

Re: [BETA] AJAX Quick Reply

Posted: Wed May 23, 2007 4:13 pm
by Handyman`
vbbgold wrote:I got this:

Code: Select all

Fatal error: Cannot redeclare get_user_avatar() (previously declared in D:\WEB\Localhost\www\giotmohoi\includes\functions_display.php:1120) in D:\WEB\Localhost\www\giotmohoi\includes\functions_display.php on line 1181
lol… I think you missed the note on that one… it said to install that function only if you were using a CVS older than April 15th (I think it was the 15th).
I'll have an updated version without that line soon… but take that line out of your functions.php file.

Re: [BETA] AJAX Quick Reply

Posted: Wed May 23, 2007 4:39 pm
by Quezza
Hi,

Firstly, Great MOD but there is a slight issue with it... The preview button no longer works! I have tried to do my bit for the community and come up with my own solution for it, just follow these instructions (Handyman, feel free to update your download with the changes, unless you have a better fix.)

OPEN

Code: Select all

styles/prosilver/template/posting_qr_body.html
FIND

Code: Select all

onclick="document.getElementById('postform').action += '#preview';
IN-LINE FIND

Code: Select all

onclick="document.getElementById('postform').action += '#preview';
IN-LINE ADD AFTER

Code: Select all

 submit_type = 'preview';
FIND

Code: Select all

<input type="submit" name="post" tabindex="5" value="{L_SUBMIT}"
IN-LINE FIND

Code: Select all

 class="button1" accesskey="s"
IN-LINE ADD AFTER

Code: Select all

 onclick="submit_type = 'submit';"
OPEN

Code: Select all

includes/functions_quick_reply.php
FIND

Code: Select all

$s_action = append_sid("{$phpbb_root_path}posting.$phpEx
IN-LINE FIND

Code: Select all

$s_action = append_sid("{$phpbb_root_path}posting.$phpEx
IN-LINE ADD AFTER

Code: Select all

?mode=reply
FIND

Code: Select all

$s_action = 'javascript:void(0);';
IN-LINE FIND

Code: Select all

$s_action = 'javascript:void(0);';
IN-LINE ADD BEFORE

Code: Select all

// 
FIND

Code: Select all

get(this);" name="postform"
IN-LINE FIND

Code: Select all

get(this);" name="postform"
IN-LINE ADD BEFORE

Code: Select all

return 
OPEN

Code: Select all

styles/prosilver/theme/scripts/quickreply.html
FIND

Code: Select all

-->
REPLACE WITH

Code: Select all

<!--
var submit_type = 'none';
FIND

Code: Select all

var param = elem = '';
ADD BEFORE

Code: Select all

if (submit_type == 'submit'){
FIND

Code: Select all

document.postform.message.value = '';
ADD AFTER

Code: Select all

return false;
	} else {
		return true;
	}
FIND

Code: Select all

-->
REPLACE WITH

Code: Select all

//-->
That ended up being longer than I thought!

It should all work, but it is possible that I missed something when copying it from my working files. I think that is all the changes that I made.

Don't forget to refresh your templates and themes in the ACP!

Thanks, Luke

Re: [BETA] AJAX Quick Reply

Posted: Wed May 23, 2007 5:24 pm
by Handyman`
Hi Quezza,

Thanks for the post… my fix is much simpler, but when I finally get around to packaging mine up, you will be able to just replace your old files with the new ones… so that works for now 8-) thanks.

Re: [BETA] AJAX Quick Reply

Posted: Wed May 23, 2007 5:35 pm
by Quezza
Hi,

I thought my fix was a really simple one, until I started making the instructions for it! It is very long, but it works and its clean :D

Re: [BETA] AJAX Quick Reply

Posted: Thu May 24, 2007 4:03 pm
by JunglistPerfection
Im missing the functions_quick_reply.php file, I'd looked everywhere for it and no results. Where can I get this file?

Re: [BETA] AJAX Quick Reply

Posted: Thu May 24, 2007 5:24 pm
by JunglistPerfection
JunglistPerfection wrote:Im missing the functions_quick_reply.php file, I'd looked everywhere for it and no results. Where can I get this file?
Sorry for the post above, I found the file. :roll:

Re: [BETA] AJAX Quick Reply

Posted: Thu May 24, 2007 10:50 pm
by Handyman`
Not a problem… took me long enough to respond.

Re: [BETA] AJAX Quick Reply

Posted: Fri May 25, 2007 6:21 am
by JunglistPerfection
I just finished installing the mod and the preview nor the submit button works. So that means no preview and no text can be submitted. Also the quickpost image doesn't show up in prosilver.

Do you know when the update for the fix will be done?

Re: [BETA] AJAX Quick Reply

Posted: Fri May 25, 2007 9:33 am
by Quezza
If you follow the instructions in the MOD file, the submit button does work, but the preview does not. Then if you make the changes that I outlined here then the preview button starts working correctly.

Please try making the changes again. :)

Re: [BETA] AJAX Quick Reply

Posted: Fri May 25, 2007 6:01 pm
by Handyman`
JunglistPerfection wrote:I just finished installing the mod and the preview nor the submit button works. So that means no preview and no text can be submitted. Also the quickpost image doesn't show up in prosilver.

Do you know when the update for the fix will be done?
if the quickpost image doesn't show up, you will have to follow the instructions for adding it in prosilver for the simple quick posting mod by evil3.

Re: [BETA] AJAX Quick Reply

Posted: Fri May 25, 2007 6:12 pm
by JunglistPerfection
I did the simple quick posting installation first then I installed the ajax. The image works fine in subSilver but the preview and submit buttons doesnt work.

Re: [BETA] AJAX Quick Reply

Posted: Fri May 25, 2007 6:17 pm
by Quezza
Have you made the changes that I suggested? Let us know then we can help you fix the issue.