[ABANDONED] AJAX Quick Reply

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment!
Get Involved
User avatar
Handyman`
Former Team Member
Posts: 1751
Joined: Thu Feb 03, 2005 8:44 pm
Contact:

[ABANDONED] AJAX Quick Reply

Post by Handyman` » Tue May 22, 2007 11:36 pm

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
Last edited by Handyman` on Mon Sep 03, 2007 5:07 am, edited 1 time in total.
http://startrekguide.com My Mod Queue || 1/16/10 Display Posts Anywhere 1.2.0 RC5, Cash MOD 1.0.0 b1, MOD Version Check, AJAX Chat, SEO MOD, AJAX QR, Photo Gallery
MOD Development Manager (version 0.2.0-dev with MODX Generator)

User avatar
ac_roma
Registered User
Posts: 307
Joined: Thu Mar 08, 2007 2:48 pm
Location: egypt,alexandria
Contact:

Re: [BETA] AJAX Quick Reply

Post by ac_roma » Tue May 22, 2007 11:42 pm

:shock: its fantastic mod

thanks :)

User avatar
vbbgold
Registered User
Posts: 31
Joined: Sat Feb 19, 2005 2:45 am

Re: [BETA] AJAX Quick Reply

Post by vbbgold » Wed May 23, 2007 12:23 pm

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

User avatar
Handyman`
Former Team Member
Posts: 1751
Joined: Thu Feb 03, 2005 8:44 pm
Contact:

Re: [BETA] AJAX Quick Reply

Post by Handyman` » Wed May 23, 2007 4:13 pm

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.
http://startrekguide.com My Mod Queue || 1/16/10 Display Posts Anywhere 1.2.0 RC5, Cash MOD 1.0.0 b1, MOD Version Check, AJAX Chat, SEO MOD, AJAX QR, Photo Gallery
MOD Development Manager (version 0.2.0-dev with MODX Generator)

User avatar
Quezza
Registered User
Posts: 212
Joined: Sat Oct 23, 2004 7:17 pm
Location: Hertfordshire, UK
Contact:

Re: [BETA] AJAX Quick Reply

Post by Quezza » Wed May 23, 2007 4:39 pm

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

User avatar
Handyman`
Former Team Member
Posts: 1751
Joined: Thu Feb 03, 2005 8:44 pm
Contact:

Re: [BETA] AJAX Quick Reply

Post by Handyman` » Wed May 23, 2007 5:24 pm

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.
http://startrekguide.com My Mod Queue || 1/16/10 Display Posts Anywhere 1.2.0 RC5, Cash MOD 1.0.0 b1, MOD Version Check, AJAX Chat, SEO MOD, AJAX QR, Photo Gallery
MOD Development Manager (version 0.2.0-dev with MODX Generator)

User avatar
Quezza
Registered User
Posts: 212
Joined: Sat Oct 23, 2004 7:17 pm
Location: Hertfordshire, UK
Contact:

Re: [BETA] AJAX Quick Reply

Post by Quezza » Wed May 23, 2007 5:35 pm

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

User avatar
JunglistPerfection
Registered User
Posts: 611
Joined: Mon Apr 09, 2007 11:58 pm
Location: Chicago, IL

Re: [BETA] AJAX Quick Reply

Post by JunglistPerfection » Thu May 24, 2007 4:03 pm

Im missing the functions_quick_reply.php file, I'd looked everywhere for it and no results. Where can I get this file?

User avatar
JunglistPerfection
Registered User
Posts: 611
Joined: Mon Apr 09, 2007 11:58 pm
Location: Chicago, IL

Re: [BETA] AJAX Quick Reply

Post by JunglistPerfection » Thu May 24, 2007 5:24 pm

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:

User avatar
Handyman`
Former Team Member
Posts: 1751
Joined: Thu Feb 03, 2005 8:44 pm
Contact:

Re: [BETA] AJAX Quick Reply

Post by Handyman` » Thu May 24, 2007 10:50 pm

Not a problem… took me long enough to respond.
http://startrekguide.com My Mod Queue || 1/16/10 Display Posts Anywhere 1.2.0 RC5, Cash MOD 1.0.0 b1, MOD Version Check, AJAX Chat, SEO MOD, AJAX QR, Photo Gallery
MOD Development Manager (version 0.2.0-dev with MODX Generator)

User avatar
JunglistPerfection
Registered User
Posts: 611
Joined: Mon Apr 09, 2007 11:58 pm
Location: Chicago, IL

Re: [BETA] AJAX Quick Reply

Post by JunglistPerfection » Fri May 25, 2007 6:21 am

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?

User avatar
Quezza
Registered User
Posts: 212
Joined: Sat Oct 23, 2004 7:17 pm
Location: Hertfordshire, UK
Contact:

Re: [BETA] AJAX Quick Reply

Post by Quezza » Fri May 25, 2007 9:33 am

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. :)

User avatar
Handyman`
Former Team Member
Posts: 1751
Joined: Thu Feb 03, 2005 8:44 pm
Contact:

Re: [BETA] AJAX Quick Reply

Post by Handyman` » Fri May 25, 2007 6:01 pm

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.
http://startrekguide.com My Mod Queue || 1/16/10 Display Posts Anywhere 1.2.0 RC5, Cash MOD 1.0.0 b1, MOD Version Check, AJAX Chat, SEO MOD, AJAX QR, Photo Gallery
MOD Development Manager (version 0.2.0-dev with MODX Generator)

User avatar
JunglistPerfection
Registered User
Posts: 611
Joined: Mon Apr 09, 2007 11:58 pm
Location: Chicago, IL

Re: [BETA] AJAX Quick Reply

Post by JunglistPerfection » Fri May 25, 2007 6:12 pm

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.

User avatar
Quezza
Registered User
Posts: 212
Joined: Sat Oct 23, 2004 7:17 pm
Location: Hertfordshire, UK
Contact:

Re: [BETA] AJAX Quick Reply

Post by Quezza » Fri May 25, 2007 6:17 pm

Have you made the changes that I suggested? Let us know then we can help you fix the issue.

Locked

Return to “[3.0.x] MODs in Development”