[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.
plasmino
Registered User
Posts: 261
Joined: Sat Jul 25, 2009 11:12 am

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

Post by plasmino » Wed May 19, 2010 9:49 pm

plasmino wrote: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
the problem persist... with i.e and firefox

^_^

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

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

Post by Porutchik » Wed May 19, 2010 10:36 pm

plasmino
What style do you use for your board?

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

EDIT
I think I'm beginning to understand the problem.
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.

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

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

Post by Porutchik » Wed May 19, 2010 11:10 pm

plasmino
Try to it hot fix

Code: Select all

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

#
#--------- [FIND] --------------
#
	$response_result['thanks_button'] = trim($template->assign_display('ajax_thanks', '',  true));

	if (get_user_count($poster_id, true) > 0 || get_user_count($poster_id, false) > 0)
	{
		$template->assign_var('S_SHOW_THANKS', 'info');
		$response_result['thanks_info_user'] = trim($template->assign_display('ajax_thanks', '',  true));
	}
	if (get_thanks_number($post_id) > 0)
	{
		$template->assign_var('S_SHOW_THANKS', 'list');
		$response_result['thanks_list'] = trim($template->assign_display('ajax_thanks', '',  true));
#
#--------- [REPLACE WITH] --------------
#
	$response_result['thanks_button'] = trim(str_replace(array("\n", "\t"), '', $template->assign_display('ajax_thanks', '',  true)));

	if (get_user_count($poster_id, true) > 0 || get_user_count($poster_id, false) > 0)
	{
		$template->assign_var('S_SHOW_THANKS', 'info');
		$response_result['thanks_info_user'] = trim(str_replace(array("\n", "\t"), '', $template->assign_display('ajax_thanks', '',  true)));
	}
	if (get_thanks_number($post_id) > 0)
	{
		$template->assign_var('S_SHOW_THANKS', 'list');
		$response_result['thanks_list'] = trim(str_replace(array("\n", "\t"), '', $template->assign_display('ajax_thanks', '',  true)));
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.

plasmino
Registered User
Posts: 261
Joined: Sat Jul 25, 2009 11:12 am

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

Post by plasmino » Wed May 19, 2010 11:41 pm

fixeddddddddddddddd thanksssssssssss

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

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

Post by Porutchik » Thu May 20, 2010 9:17 pm

Mod is updated. Current version 1.0.3

Copy: root/ajax_thanks.php To: ajax_thanks.php

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.

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

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

Post by Neubivljiv » Fri May 21, 2010 6:25 pm

Thanks I'll try updated mod. ;)

EDIT:
I try updated and problem still persist with strange characters. Than I fixed thanks to this post: http://www.phpbb.com/community/viewtopi ... #p12790758

Only I have problem with this:
Joined: Sun May 09, 2010 5:12 pm
Posts: 5
Has thanked: 1 times
Have thanks: 1 times 1 times
Have thanks: 1
EDIT: Ok, I found "bug"

Instructions for subsilver2:

Code: Select all

<find><![CDATA[									<!-- IF not postrow.S_POST_ANONYMOUS and postrow.S_FORUM_THANKS and S_USER_LOGGED_IN and not postrow.S_IS_OWN_POST and (not postrow.S_ALREADY_THANKED or postrow.S_REMOVE_THANKS) --><a href="{postrow.THANKS_LINK}"]]></find>
I have this in my template:

Code: Select all

									<!-- IF not postrow.S_POST_ANONYMOUS and postrow.S_FORUM_THANKS and S_USER_LOGGED_IN and not postrow.S_IS_OWN_POST and (not postrow.S_ALREADY_THANKED or postrow.S_REMOVE_THANKS) --><a href="{postrow.THANKS_LINK}" alt="{postrow.THANK_ALT}{postrow.POST_AUTHOR}" title="{postrow.THANK_ALT}{postrow.POST_AUTHOR}">{postrow.THANK_IMG}</a>	<!-- ENDIF -->
If I change/replace all code (up to <!-- ENDIF --> ) its working, but with double thanks info in mini-info profile.
But if I change/replace code as in instructions, I got template error.

Next:
Instructions:

Code: Select all

		<find><![CDATA[					<!-- IF not postrow.S_POST_ANONYMOUS and postrow.THANKS_COUNTERS_VIEW --><br /><b>{L_GIVEN}]]></find>
This is in my template (all code):

Code: Select all

<!-- IF not postrow.S_POST_ANONYMOUS and postrow.THANKS_COUNTERS_VIEW --><br /><b>{L_GIVEN}:</b> {postrow.POSTER_GIVE_COUNT} {L_THANKS}<br /><b>{L_RECEIVED}:</b> {postrow.POSTER_RECEIVE_COUNT}<br /><div class="gensmall" style="float: {S_CONTENT_FLOW_BEGIN};">
EDIT2:
Fixed all. This was problem:

Code: Select all

		<action type="after-add"><![CDATA[					</span>
					<!-- ENDIF -->]]></action>
I just add this code in the end of my code so it looks like this:

Code: Select all

					<!-- IF not postrow.S_POST_ANONYMOUS and postrow.S_FORUM_THANKS -->
					<span id="thanks_info_user{postrow.POST_ID}">
					<!-- IF not postrow.S_POST_ANONYMOUS and postrow.THANKS_COUNTERS_VIEW --><br /><b>{L_GIVEN}:</b> {postrow.POSTER_GIVE_COUNT} {L_THANKS}<br /><b>{L_RECEIVED}:</b> {postrow.POSTER_RECEIVE_COUNT}<br /><div class="gensmall" style="float: {S_CONTENT_FLOW_BEGIN};">					</span>

User avatar
Mess
Registered User
Posts: 985
Joined: Wed Jul 01, 2009 6:37 am
Name: Kim

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

Post by Mess » Wed Jun 02, 2010 9:41 am

Interesting, Ill try this out. :)

thesecret
Registered User
Posts: 270
Joined: Mon Sep 29, 2008 12:13 pm

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

Post by thesecret » Wed Jun 02, 2010 4:08 pm

very cool
any demo?

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.3

Post by Porutchik » Wed Jun 02, 2010 6:16 pm

See first post for demo url.
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
darkonia
Registered User
Posts: 1901
Joined: Tue May 13, 2008 1:10 pm
Location: Munich, Germany
Contact:

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

Post by darkonia » Wed Jun 02, 2010 6:33 pm

Porutchik wrote:See first post for demo url.
there is no demo-url...
MMOG-Heaven - Das Gaming Portal
Community bedeutet Gleichgesinnte finden - MMOG-Heaven ist Deine Community! Von Spielern für Spieler bietet Dir dieses Portal genau das, was ein Spieler braucht. Bleibe ständig informiert, finde die neuesten MMORPGs, oder suche die frischesten News aus der Welt des Online Gamings - dieses und vieles mehr erwartet Dich auf MMOG-Heaven.

mladen88
Registered User
Posts: 158
Joined: Wed May 30, 2007 9:06 pm

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

Post by mladen88 » Mon Jun 07, 2010 7:24 pm

Will this addon work on new 1.2.8 version of this MOD?!

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.3

Post by Porutchik » Fri Jun 11, 2010 12:44 pm

Tested on 1.2.5 version of Thahks for post MOD
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
Ahmad110
Registered User
Posts: 5
Joined: Fri May 21, 2010 12:24 pm

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

Post by Ahmad110 » Tue Jun 15, 2010 1:25 pm

Tested on 1.2.8 version of Thahks for post MOD and nice work :)

thank's Porutchik

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.4

Post by Porutchik » Sat Jun 19, 2010 8:06 pm

Adapted for the Thanks for posts version 1.2.7

Delete:
styles/ajax_thanks.js
styles/json_sans_eval.js

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
Copy: root/styles/prosilver/template/json_sans_eval.js To: styles/prosilver/template/json_sans_eval.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
Copy: root/styles/subsilver2/template/json_sans_eval.js To: styles/subsilver2/template/json_sans_eval.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.

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.4

Post by Porutchik » Sun Jun 20, 2010 7:36 pm

Mod is updated.

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.

Locked

Return to “[3.0.x] Abandoned MODs”