• Welcome to Simple Machines Community Forum. Please login or sign up.

AJAX Instant Quick Reply

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

Previous topic - Next topic

Hoochie Coochie Man

İnadına SMF 1.1.X

SlammedDime

Bah... fix for 1.1.5 or B3.1:
Open xml_topic.js
Code (Find) Select
function ajax_reply()
{
var i, x = new Array();
x[x.length] = 'topic=' + parseInt(document.forms.postmodify.elements['topic'].value);
x[x.length] = 'subject=' + escape(textToEntities(document.forms.postmodify['subject'].value.replace(/&#/g, "&#"))).replace(/\+/g, "%2B");


Code (Replace) Select
function ajax_reply()
{
var i, x = new Array();
x[x.length] = 'topic=' + parseInt(document.forms.postmodify.elements['topic'].value);
x[x.length] = 'goback=' + parseInt(document.forms.postmodify.elements['goback'].value);
x[x.length] = 'subject=' + escape(textToEntities(document.forms.postmodify['subject'].value.replace(/&#/g, "&#"))).replace(/\+/g, "%2B");


Sorry.
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

SantaClaws


_Anthony_

Yes pk3r own it is.
And SlammedDime I already fixed that :)
I was bored and couldn't wait for you to fix it.

TeenDev

how do add the green header with "Loading" at the top of the window?

_Anthony_

Quote from: TeenDev on May 30, 2008, 09:05:53 PM
how do add the green header with "Loading" at the top of the window?
Look at this mods source and figure it out for yourself :)
Don't be lazy

TeenDev

I installed it manually, and there is no green bar source in the mod. Don't call me lazy.

SlammedDime

May 30, 2008, 09:15:01 PM #67 Last Edit: May 30, 2008, 09:16:46 PM by SlammedDime
This is built using existing functions in SMF, which includes the loading bar for SMF AJAX functions.  Nothing extra is needed as long as you copied the additions into xml_topic.js exactly as in my install file.
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

Nathaniel

I keep on getting the same error from firebug whenever I try to post a quick reply, I am using SMF 2 Beta 3.1, is this fixed by the above code?

"oQuickReply.ajax_reply is not a function"
SMF Friend (Former Support Specialist) | SimplePortal Developer
My SMF Mods | SimplePortal

"Quis custodiet ipsos custodes?" - Who will Guard the Guards?

Please don't send me ANY support related PMs. I will just delete them.

SlammedDime

May 30, 2008, 10:00:33 PM #69 Last Edit: May 30, 2008, 10:08:41 PM by SlammedDime
It looks like your xml_topic.js file was not properly modified or you may need to do a hard refresh in your browser on your site so the xml_topic.js file is updated, rather than using a cached copy.
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

stanaca

Thanks SlammedDime!
I uninstalled the old version and installed the new version.
It installs cleanly on default theme and working fine.

...

SlammedDime

SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

Nathaniel

Quote from: SlammedDime on May 30, 2008, 10:00:33 PM
It looks like your xml_topic.js file was not properly modified or you may need to do a hard refresh in your browser on your site so the xml_topic.js file is updated, rather than using a cached copy.

Yeah, I feel kinda like a real Newbie now, I only had to do a hard refresh of my browser and now it works fine! ;)
SMF Friend (Former Support Specialist) | SimplePortal Developer
My SMF Mods | SimplePortal

"Quis custodiet ipsos custodes?" - Who will Guard the Guards?

Please don't send me ANY support related PMs. I will just delete them.

Hoochie Coochie Man

I think there is a little bug..
It is working on me, that's ok..
But when I post the message and leave the topic.. In BoardIndex on.gif button appears..  :-\
İnadına SMF 1.1.X

_Anthony_

May 31, 2008, 01:55:10 PM #74 Last Edit: May 31, 2008, 02:06:46 PM by MrMoney
There is a fix for that
Open xml_topic.js
Now find.
ajax_reply
And under
x[x.length] = 'topic=' + parseInt(document.forms.postmodify.elements['topic'].value);
Add
x[x.length] = 'goback=' + parseInt(document.forms.postmodify.elements['goback'].value);

All fixed :)

Alpay

yes hcm i have a same problem.

&
little bug..
display.template.php

bViewNewestFirst: ', $options['view_newest_first'], ',

error log :
view_newest_first

edit : thanks MrMoney  ..

Eliana Tamerin

Lol, went a little overboard on that copy/paste, did we MrMoney? :P
Do NOT PM me for support.

SimplePortal 2.3.6 is OUT!
SimplePortal Project Manager
Download | Docs
SimplePortal: Power of Simplicity!

_Anthony_

Oops something messed up :(
My comp is all funny right now

_Anthony_


Hoochie Coochie Man

İnadına SMF 1.1.X

Advertisement: