Page 1 of 7

[ABD] (AJAX ADD-ON) Thanks for posts 1.0.8

Posted: Sun May 16, 2010 9:13 pm
by Porutchik
Modification Name: (AJAX ADD-ON) Thanks for posts

ADD-ON Author: Porutchik

MOD Author: Палыч

Modification Description: This ADD-ON adds an AJAX-feature a thanks for the post, without reloading the page.

:arrow: :arrow: This MOD is a ADD-ON and will require the Thanks for posts by Палыч to be installed before it will work.

See the below urls for any additional information about the Thanks for posts MOD and technical support.
phpbb.com Thanks for posts (eng.)
phpbbguru.net Thanks for post (Спасибо за пост) (rus.)

If you have the prosilver left side Style see contrib/prosilver_left_side.xml

Tested on IE 8, FireFox 3.5, Opera 10.53, Chrome.

Modification Version: 1.0.8

Demo URL: none

Modification Download: Main Download

Support page on russian

If you like this ADD-ON, please consider a small donation. Thank you!

Re: [BETA] (AJAX ADD-ON) Thanks for posts

Posted: Sun May 16, 2010 10:52 pm
by katib
Thanks Porutchik for this lonh awaited add on
I remember users already asked Палыч for such a feature
Thanks so much
Sbaciba :)

Re: [BETA] (AJAX ADD-ON) Thanks for posts

Posted: Sun May 16, 2010 11:03 pm
by Porutchik
For subsilver2 style was omitted instructions for adding a code. I updated the archive.

Re: [BETA] (AJAX ADD-ON) Thanks for posts 1.0.0

Posted: Mon May 17, 2010 2:13 pm
by Porutchik
There is some error with IE and FF, which is expressed in the message "Unknown runtime error" in the ajax_thanks.js file and only on prosilver style.
Now I'm trying to fix this error. I would be grateful if someone will offer his variant.

Re: [BETA] (AJAX ADD-ON) Thanks for posts 1.0.0

Posted: Mon May 17, 2010 2:49 pm
by plasmino
wonderful mod, I have one problem with IE when you press the button goes through this code.

Image

if you refresh the page becomes correct

Re: [BETA] (AJAX ADD-ON) Thanks for posts 1.0.0

Posted: Mon May 17, 2010 3:09 pm
by Porutchik
Thank you for using this mod and for reporting this bug.
I think that today I will post out fixed version of this mod.

Re: [BETA] (AJAX ADD-ON) Thanks for posts 1.0.1

Posted: Mon May 17, 2010 8:41 pm
by Porutchik
ADD-ON is updated.

To update enough upload to your website root/styles/ajax_thanks.js from the archives of mod.

Please update if you have prev version.

Re: [BETA] (AJAX ADD-ON) Thanks for posts 1.0.1

Posted: Tue May 18, 2010 6:09 am
by Neubivljiv
Thanks for this nice addon.

I still have same problem as plasmino (and after update - $Id: ajax_thanks.js, v 1.0.1 2010/05/18). Cache cleared, but still I get: "ntttnttttnttttntttt" and also in user miniprofile I have double "has thanks/thanked":
Has thanked: 1 times
Have thanks: 1. It looks like this:
Joined: Sun May 09, 2010 5:12 pm
Posts: 5
Has thanked: 1 times
Have thanks: 1 times 1 times
Have thanks: 1

Re: [BETA] (AJAX ADD-ON) Thanks for posts 1.0.1

Posted: Tue May 18, 2010 6:25 am
by Porutchik
Neubivljiv, What do you use style on your forum?

If you have a problem with incorrect symbols, try to it

Code: Select all

#
#------------- [ OPEN ] -------------
#
ajax_thanks.php

#
#------------- [ FIND ] -------------
#

send_php2json_to_browser($response_result);

#
#------------- [ REPLACE WITH ] -------------
#

echo php2json($response_result);
I tested this mod in IE8, FF 3.5, Opera 10.53

Re: [BETA] (AJAX ADD-ON) Thanks for posts 1.0.1

Posted: Tue May 18, 2010 6:49 am
by Porutchik
Hmmm, I found an error in the instructions for subsilver2

Must be:

Code: Select all

        <find><![CDATA[								<!-- IF postrow.THANKS and postrow.THANKS_POSTLIST_VIEW and not postrow.S_POST_ANONYMOUS -->]]></find>
        <action type="before-add"><![CDATA[								<!-- IF not postrow.S_POST_ANONYMOUS and postrow.S_FORUM_THANKS and not S_IS_BOT-->
								<span id="thanks_list{postrow.POST_ID}">]]></action>
      </edit>
I updated the instructions.

Neubivljiv, Can you post a link to view your viewtopic_body.html so that I might see the problem?

Re: [BETA] (AJAX ADD-ON) Thanks for posts 1.0.1

Posted: Tue May 18, 2010 7:21 am
by Pthelovod
It turns me on the left like prosilvere Problem of the files ... here ...
At the guru of the files laid..
files

Re: [BETA] (AJAX ADD-ON) Thanks for posts 1.0.1

Posted: Tue May 18, 2010 1:39 pm
by Porutchik
If you have the prosilver left side Style see contrib/prosilver_left_side.xml

Archive is updated now.

Re: [BETA] (AJAX ADD-ON) Thanks for posts 1.0.1

Posted: Tue May 18, 2010 4:17 pm
by Pthelovod
Thank you I will try to install.

Re: [BETA] (AJAX ADD-ON) Thanks for posts 1.0.2

Posted: Tue May 18, 2010 6:58 pm
by Porutchik
Small update this Mod. Current version 1.0.2
+ added load image

Download archive and upload to your website
Copy: root/styles/prosilver/template/ajax_thanks_viewtopic.html To: styles/prosilver/template/ajax_thanks_viewtopic.html
Copy: root/styles/prosilver/theme/images/ajax_load_small.gif To: styles/prosilver/theme/images/ajax_load_small.gif
Copy: root/styles/ajax_thanks.js To: styles/ajax_thanks.js
Copy: root/ajax_thanks.php To: ajax_thanks.php

Optional upload
Copy: root/styles/subsilver2/template/ajax_thanks_viewtopic.html To: styles/subsilver2/template/ajax_thanks_viewtopic.html
Copy: root/styles/subsilver2/theme/images/ajax_load_small.gif To: styles/subsilver2/theme/images/ajax_load_small.gif

Re: [BETA] (AJAX ADD-ON) Thanks for posts 1.0.2

Posted: Wed May 19, 2010 8:28 am
by ac_roma
good mod man

thanks i will try it