News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

AJAX Instant Quick Reply

Started by SlammedDime, May 29, 2008, 06:59:11 PM

Previous topic - Next topic

elforoof

How can i make it work on all the members?

BigMike

#881
I installed this mod back with 2.0 was in a RC stage and it never worked. It also did not break my forum so I just left it be.

Recently I've had some time to tackle some forum work and decided to get this mod up and running. I removed it all and reinstalled for 2.0.4 and am still getting nothing.

In troubleshooting, I noticed that the lines for <!-- Start Single Post --> and <!-- End Single Post --> are not appearing in the final page output/render.

These lines are controlled by if (isset($context['message'])) so apparently my $context['message'] is never being set. I did a print_r of $context and sure enough [message] is not defined.

Looking over the code, this is only defined when !empty($_REQUEST['message']) is TRUE as per the first edit of /Sources/Display.php.

The code for Post.php has $_REQUEST['message'] being set when isset($_REQUEST['xml']) is TRUE.

This is as far as I can get. I assume this is set the moment someone tries to post a Quick Reply, as I believe it is the POST/GET data sent from the browser but I don't know how to capture & trouble shoot this...

Can someone help? Why would $_REQUEST['xml'] not be set? Or could someone show me how to print the contents of $_REQUEST so I can trouble shoot it?

Thanks!
BigMike


EDIT:
In Sources/Post.php I found:
if (!isset($_REQUEST['xml']))
loadTemplate('Post');

But not sure what to do with this.

BigMike

Quote from: BigMike on June 05, 2013, 04:06:30 PM
Can someone help? Why would $_REQUEST['xml'] not be set? Or could someone show me how to print the contents of $_REQUEST so I can trouble shoot it?
Anyone please?

Thanks
BigMike

elforoof

Can i get some advise, i installed it on my forum but its not working perfect. When i type then i hit post nothing happens. so i hit post again and nothing happens. but when you go to the board you see that you post twwice the same thing.

so it post but it looks like nothing its happening.

Biology Forums

If you've installed in on SMF 2, it's not programmed correctly for it. On SMF 1, however, it works perfectly.

BigMike

Thank you for the reply.
Quote from: Liam_michael on June 25, 2013, 12:18:06 AM
If you've installed in on SMF 2, it's not programmed correctly for it. On SMF 1, however, it works perfectly.
This is quite unfortunate.

Biology Forums

I've come to realize that this mod really isn't a big deal. It's a nice feature (a cool add-on), but it really isn't a website game changer.

BigMike

While I certainly agree its not a game changer, for the industry we are in nearly 90% of competing forums run vBulletin and they all have a instant quick reply feature. The main benefit in my opinion is a reduced server load, and secondary benefit would be increased participation.

I need to learn more about Javascript and AJAX before I can figure out what my issue is (as described six replies above).

BigMike

Jessica.

Quote from: Liam_michael on June 25, 2013, 12:18:06 AM
If you've installed in on SMF 2, it's not programmed correctly for it. On SMF 1, however, it works perfectly.

Works fine on my SMF.
Testing Zone - SMF 2.0.7, default Curve
School & Chat - phpBB3, over 170 mods installed, official live forum

I use the latest version of Chrome

phpBB: Forum = a section; Board = whole site
SMF: Forum = whole site; Board = a section

Padre gremista

Good Night everyone.
I am trying install this MOD in my forum, but, it is not working correctly, show the message
"It's not compatible in your version SMF"

Somebody know the resolution of problem?

Sorry for my bad english, i am brazilian.:

My SMF is 2.0.4 version
www.gremioemfoco.info - A comunidade gremista na internet.

dimspace

manual install on 2.0.3 worked just fine.

Only one line was a real issue
display: none;" onclick="oQuickModify.modifyMsg
in display.template doesnt exist in my 2.0.3 so i just ignored it. :D

Padre gremista

I have a problem here.
The page reload ever that i make a post and return to board.

How I modifity this and avoid this reload?
www.gremioemfoco.info - A comunidade gremista na internet.

Hj Ahmad Rasyid Hj Ismail

I don't really think it is that difficult to install even on a custom theme. However, I don't offer support. You can test quick reply (with this mod's ajax) in my test site. Even as a guest, it works.

BigMike

Quote from: Liam_michael on June 25, 2013, 12:18:06 AM
If you've installed in on SMF 2, it's not programmed correctly for it.

It seems there are some here who have successfully installed this on SMF 2.x, correct? ahrasis mentions it working on his or her test site, and although he or she does not provide a link, I went to his or her site from his or her profile and that site is SMF 2.1 ... but the site requires an account to view and therefore I cannot verify if that is indeed the test site in question.

Hj Ahmad Rasyid Hj Ismail

Quote from: BigMike on September 17, 2013, 01:12:32 PM
Quote from: Liam_michael on June 25, 2013, 12:18:06 AM
If you've installed in on SMF 2, it's not programmed correctly for it.

It seems there are some here who have successfully installed this on SMF 2.x, correct? ahrasis mentions it working on his or her test site, and although he or she does not provide a link, I went to his or her site from his or her profile and that site is SMF 2.1 ... but the site requires an account to view and therefore I cannot verify if that is indeed the test site in question.

Sorry. My test site is in my signature:  http://anypost.qom.my. It doesn't require registration / login to post a reply.

By the way, I haven't maintained my personal website http://ahrasis.com for quite sometimes. It seems to have some problems.

BigMike

ahrasis,

Thank you for the reply. I see this mod is not functioning properly on your SMF 2.0.5 test site. Not with Firefox 25.0, not with Chrome 29.0.x, and not with IE 8.

Can anyone help me with reply #882 above? If so then thanks!

Regards,
Mike

Hj Ahmad Rasyid Hj Ismail

#896
Quote from: BigMike on September 23, 2013, 03:47:39 PM
ahrasis,

Thank you for the reply. I see this mod is not functioning properly on your SMF 2.0.5 test site. Not with Firefox 25.0, not with Chrome 29.0.x, and not with IE 8.

Can anyone help me with reply #882 above? If so then thanks!

Regards,
Mike

Funny, I re-tested ajax reply but only find it working just fine on all three browser you said here: http://anypost.qom.my/index.php?topic=655770.msg828574#msg828574

EDITED: It works for registered user. Login: ajaxtester Password: ajaxtester http://anypost.qom.my/

Arantor

I just tried that as a guest and it posted and I was redirected back to the topic list. It works as expected for a registered user. Chrome 30 here.

Biology Forums

Has anyone else experience the quick edit not working with this thing installed?

Harvest

There seems to be a problem either on new version of SMF or Chrome. When the new post is aded the site does not "reload" and in the consol I get an error -
Uncaught TypeError: Object #<error> has no method 'getElementsByTagName'

in the onPostDone function.

Any ideas?

Advertisement: