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

Any abandoned MODs will be moved to this forum.

WARNING: MODs in this forum are not currently being supported or maintained by the original MOD author. Proceed at your own risk.
Forum rules
IMPORTANT: MOD Development Forum rules

WARNING: MODs in this forum are not currently being supported nor updated by the original MOD author. Proceed at your own risk.
trickoff
Registered User
Posts: 513
Joined: Mon Jan 07, 2008 12:23 am

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

Post by trickoff » Wed Oct 27, 2010 11:50 am

Still haven't found a solution for this

Porutchik
I've Been Banned!
Posts: 275
Joined: Sat Dec 31, 2005 11:11 am
Location: Russia, Orenburg (Россия, Оренбург)
Name: Sergey O
Contact:

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

Post by Porutchik » Wed Oct 27, 2010 1:22 pm

My forum | Advanced Similar Topics
Excuse me please for my awful English. Thanks!. Please do not P.M., ICQ or email me for support help - you won't get any reply. If you have a question or issue, post it in the appropriate forum/topic.

User avatar
Tophon
Registered User
Posts: 212
Joined: Wed Oct 22, 2008 12:19 am
Contact:

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

Post by Tophon » Fri Oct 29, 2010 1:18 pm

I just removed it trickoff, with no answers its the easiest thing to do. Only takes a few minutes to revert back to the original thanks settings.

trickoff
Registered User
Posts: 513
Joined: Mon Jan 07, 2008 12:23 am

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

Post by trickoff » Fri Oct 29, 2010 1:34 pm

Tophon wrote:I just removed it trickoff, with no answers its the easiest thing to do. Only takes a few minutes to revert back to the original thanks settings.
Yes, ofcourse! I've also removed mine, but it would be nice to have the ajax working =)

Porutchik
I've Been Banned!
Posts: 275
Joined: Sat Dec 31, 2005 11:11 am
Location: Russia, Orenburg (Россия, Оренбург)
Name: Sergey O
Contact:

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

Post by Porutchik » Sat Nov 20, 2010 11:55 pm

Adapted for the Thanks for posts version 1.2.9
Current version 1.0.7

Copy: root/ajax_thanks.php To: ajax_thanks.php
Copy: root/styles/prosilver/template/ajax_thanks_viewtopic.html To: styles/prosilver/template/ajax_thanks_viewtopic.html
Copy: root/styles/prosilver/template/ajax_thanks.js To: styles/prosilver/template/ajax_thanks.js

Optional:
Copy: root/styles/subsilver2/template/ajax_thanks_viewtopic.html To: styles/subsilver2/template/ajax_thanks_viewtopic.html
Copy: root/styles/subsilver2/template/ajax_thanks.js To: styles/subsilver2/template/ajax_thanks.js

See first post for download link.
My forum | Advanced Similar Topics
Excuse me please for my awful English. Thanks!. Please do not P.M., ICQ or email me for support help - you won't get any reply. If you have a question or issue, post it in the appropriate forum/topic.

User avatar
Jorup16
Registered User
Posts: 386
Joined: Sun Dec 14, 2008 5:13 am
Location: Zacapa, Guatemala
Name: Jorge
Contact:

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

Post by Jorup16 » Mon Nov 22, 2010 6:39 am

Excellent Mod

Image

Image

Image

:D

Neubivljiv
Registered User
Posts: 76
Joined: Mon Jan 11, 2010 11:05 pm

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

Post by Neubivljiv » Wed Dec 08, 2010 11:46 pm

Any chance to make it to work with ReIMG Image Resizer.

It's working but when user click on Thanks button he see a constant loading image. After page refresh he can see his thanks and Un-thank button. There is probably conflict with some .js (lightbox?)

Maybe simple fix can solve this?

User avatar
Jorup16
Registered User
Posts: 386
Joined: Sun Dec 14, 2008 5:13 am
Location: Zacapa, Guatemala
Name: Jorge
Contact:

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

Post by Jorup16 » Fri Dec 10, 2010 9:46 am

I ReIMG I have installed the mod and this mod and I have no problem.

Neubivljiv
Registered User
Posts: 76
Joined: Mon Jan 11, 2010 11:05 pm

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

Post by Neubivljiv » Fri Dec 10, 2010 10:14 am

I am not sure...but when I remove ReIMG, Ajax Thanks for posts working fine. Also have Gallery mod and it also use highslide (or lightbox). Maybe there is some conflict with .js .

Anyway, ReIMG is removed (until I figure where is conflict) and everything working fine.

mr.vixus
Registered User
Posts: 69
Joined: Fri Jan 05, 2007 9:11 am
Location: Libya
Name: Mohamed Krayem
Contact:

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

Post by mr.vixus » Fri Dec 10, 2010 1:20 pm

please, attach script update in next release
at least update instruction from prev version to last one

thanx

Porutchik
I've Been Banned!
Posts: 275
Joined: Sat Dec 31, 2005 11:11 am
Location: Russia, Orenburg (Россия, Оренбург)
Name: Sergey O
Contact:

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

Post by Porutchik » Fri Dec 10, 2010 1:27 pm

My forum | Advanced Similar Topics
Excuse me please for my awful English. Thanks!. Please do not P.M., ICQ or email me for support help - you won't get any reply. If you have a question or issue, post it in the appropriate forum/topic.

pebumen
Registered User
Posts: 137
Joined: Tue Apr 20, 2010 3:50 pm
Location: Poland

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

Post by pebumen » Sun Dec 12, 2010 6:16 pm

I have a problem with this modification
after thanking the data show up on over post:
Image

The data should show up in this place (under post) as the image:
Image

When you refresh the page looks normal:
Image

I edited the ajax_thanks_viewtopic.html file (similar to viewtopic_body.html):
<!-- IF S_FORUM_THANKS -->
<script type="text/javascript" src="{T_TEMPLATE_PATH}/json_sans_eval.js"></script>
<script type="text/javascript" src="{T_TEMPLATE_PATH}/ajax_thanks.js"></script>
<script type="text/javascript">// <![CDATA[
var u_ajax_thanks = '{U_AJAX_THANKS}';
var l_remove_confirm = '{L_REMOVE_THANKS_CONFIRM}';
var ajax_thanks = new AjaxThanks(u_ajax_thanks, l_remove_confirm);
ajax_thanks.create_image_element('{T_THEME_PATH}/images/ajax_load_small.gif');
// ]]>
</script>
<!-- ENDIF -->

<!-- BEGIN postrow -->
<!-- IF S_SHOW_THANKS == 'button' -->
<a id="thanks_button{postrow.POST_ID}" href="{postrow.THANKS_LINK}" alt="{postrow.THANK_ALT}{postrow.POST_AUTHOR}" title="{postrow.THANK_ALT}{postrow.POST_AUTHOR}" onclick="ajax_thanks.thanks_post({postrow.POST_ID}, '{postrow.THANK_MODE}'); return false;">{postrow.THANK_IMG}</a>
<!-- ELSEIF S_SHOW_THANKS == 'list' -->
<!-- IF postrow.THANKS and postrow.THANKS_POSTLIST_VIEW and not postrow.S_POST_ANONYMOUS -->
<!-- IF postrow.S_ROW_COUNT is even --><tr class="row1"><!-- ELSE --><tr class="row1"><!-- ENDIF -->
<td class="row2" style="text-align: center;">{postrow.THANK_TEXT}{postrow.POST_AUTHOR_FULL}{postrow.THANK_TEXT_2}:</td>
<td valign="top" style="padding-left: 4px;">{postrow.THANKS}</td>
</tr>
<!-- ENDIF -->
<!-- IF postrow.S_THANKS_POST_REPUT_VIEW and postrow.POST_REPUT and not postrow.S_POST_ANONYMOUS and not S_IS_BOT -->
<!-- IF postrow.S_ROW_COUNT is even --><tr class="row1"><!-- ELSE --><tr class="row1"><!-- ENDIF -->
<td class="row2" style="text-align: center;"><strong>{L_REPUT}:</strong></td>
<td valign="top" style="padding-left: 4px;">
<!-- IF postrow.S_THANKS_REPUT_GRAPHIC -->
<div style="float: left; width: {postrow.THANKS_REPUT_GRAPHIC_WIDTH}; height: {postrow.THANKS_REPUT_HEIGHT}; background: URL({postrow.THANKS_REPUT_IMAGE_BACK});"><div style="height: {postrow.THANKS_REPUT_HEIGHT}; width: {postrow.POST_REPUT}; background: URL({postrow.THANKS_REPUT_IMAGE});"></div></div>&nbsp;
<!-- ENDIF -->
{postrow.POST_REPUT}
</td>
</tr>
<!-- ENDIF -->
<!-- ELSEIF S_SHOW_THANKS == 'info' -->
<!-- IF not postrow.S_POST_ANONYMOUS and postrow.THANKS_COUNTERS_VIEW --><div class="postdetails"><b>{L_GIVEN}:</b> <!-- IF postrow.POSTER_GIVE_COUNT < 1 --> {postrow.POSTER_GIVE_COUNT} {L_THANK}<!-- ELSEIF postrow.POSTER_GIVE_COUNT > 1 --> <a href="{postrow.POSTER_GIVE_COUNT_LINK}">{postrow.POSTER_GIVE_COUNT}</a> {L_THANKS}<!-- ELSE --> <a href="{postrow.POSTER_GIVE_COUNT_LINK}">{postrow.POSTER_GIVE_COUNT}</a> {L_THANK}<!-- ENDIF --></div>
<div class="postdetails"><b>{L_RECEIVED}:</b> <!-- IF postrow.POSTER_RECEIVE_COUNT < 1 --> {postrow.POSTER_RECEIVE_COUNT} {L_THANK}<!-- ELSEIF postrow.POSTER_RECEIVE_COUNT > 1 --> <a href="{postrow.POSTER_RECEIVE_COUNT_LINK}">{postrow.POSTER_RECEIVE_COUNT}</a> {L_THANKS}<!-- ELSE --> <a href="{postrow.POSTER_RECEIVE_COUNT_LINK}">{postrow.POSTER_RECEIVE_COUNT}</a> {L_THANK}<!-- ENDIF --></div><!-- ENDIF -->
<!-- ENDIF -->
<!-- END postrow -->
Piece of code from viewtopic_body.html:
</td>
<!-- ENDIF -->
</tr>
<!-- IF not postrow.S_POST_ANONYMOUS and postrow.S_FORUM_THANKS and not S_IS_BOT-->
<span id="thanks_list{postrow.POST_ID}">

<!-- IF postrow.THANKS and postrow.THANKS_POSTLIST_VIEW and not postrow.S_POST_ANONYMOUS -->
<!-- IF postrow.S_ROW_COUNT is even --><tr class="row1"><!-- ELSE --><tr class="row1"><!-- ENDIF -->
<td class="row2" style="text-align: center;">{postrow.THANK_TEXT}{postrow.POST_AUTHOR_FULL}{postrow.THANK_TEXT_2}:</td>
<td valign="top" style="padding-left: 4px;">{postrow.THANKS}</td>
</tr>
<!-- ENDIF -->
<!-- IF postrow.S_THANKS_POST_REPUT_VIEW and postrow.POST_REPUT and not postrow.S_POST_ANONYMOUS and not S_IS_BOT -->
<!-- IF postrow.S_ROW_COUNT is even --><tr class="row1"><!-- ELSE --><tr class="row1"><!-- ENDIF -->
<td class="row2" style="text-align: center;"><strong>{L_REPUT}:</strong></td>
<td valign="top" style="padding-left: 4px;">
<!-- IF postrow.S_THANKS_REPUT_GRAPHIC -->
<div style="float: left; width: {postrow.THANKS_REPUT_GRAPHIC_WIDTH}; height: {postrow.THANKS_REPUT_HEIGHT}; background: URL({postrow.THANKS_REPUT_IMAGE_BACK});"><div style="height: {postrow.THANKS_REPUT_HEIGHT}; width: {postrow.POST_REPUT}; background: URL({postrow.THANKS_REPUT_IMAGE});"></div></div>&nbsp;
<!-- ENDIF -->
{postrow.POST_REPUT}
</td>
</tr>
<!-- ENDIF -->
</span>
<!-- ENDIF -->

<!-- INCLUDE add_url_seo.html -->
<tr>
<td class="spacer" colspan="2" height="1"><img src="images/spacer.gif" alt="" width="1" height="1" /></td>
</tr>
</table>
Please help me


Sorry, my english is bad :cry:

maxwell2
Registered User
Posts: 150
Joined: Fri Apr 10, 2009 1:43 pm

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

Post by maxwell2 » Mon Dec 13, 2010 10:20 pm

The modification does not work, click on the icon but nothing happens. Maybe modification does not work with phpBB SEO Premod?

Porutchik
I've Been Banned!
Posts: 275
Joined: Sat Dec 31, 2005 11:11 am
Location: Russia, Orenburg (Россия, Оренбург)
Name: Sergey O
Contact:

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

Post by Porutchik » Tue Dec 14, 2010 8:41 am

This is untested on phpBB SEO Premod.
My forum | Advanced Similar Topics
Excuse me please for my awful English. Thanks!. Please do not P.M., ICQ or email me for support help - you won't get any reply. If you have a question or issue, post it in the appropriate forum/topic.

CherryJimbo
Registered User
Posts: 105
Joined: Mon Mar 01, 2010 10:01 pm

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

Post by CherryJimbo » Tue Dec 28, 2010 5:27 pm

Unfortunately, I'm also getting the 500 status response error.

However, after getting the error popup, and then refreshing, my thank is registered. I tried simply copying:

Code: Select all

						// Parses the responseText of well-formed JSON text.
							result = jsonParse(http_request.responseText);
							if (result !== undefined) 
							{
								//Processing results
								th.processing_results(result);
							}
over the alert message, but then, I just constantly got the spinning wheel animation.

Google chrome reported the following from ajax_thanks.php: Failed to load resource: the server responded with a status of 500 (Internal Server Error)

I also got the following error from ajax_thanks.js, line 136: POST http://sammyservers.com/forums/ajax_thanks.php 500 (Internal Server Error). My line 136 is:

Code: Select all

	http_request.send(param);

Locked

Return to “[3.0.x] Abandoned MODs”