[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.
User avatar
natalia26
Registered User
Posts: 36
Joined: Mon May 24, 2010 11:20 am

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

Post by natalia26 » Mon Feb 21, 2011 8:17 pm

Maybe someone to integrate it with phpBB Premod? :cry:

ezepim6
Registered User
Posts: 2
Joined: Fri Mar 18, 2011 6:56 pm

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

Post by ezepim6 » Fri Mar 18, 2011 9:00 pm

Still support????

I Installed it satisfactorily.

I know that with this mod when users click on thanks button the page dosen´t reload, that´s great....

when clicking on thanks button the counter´s of thanks_recived It gets up-to-date, that´s great....

But the information below of the message of whom thanks the message and the date , dont gets up-to-date when clicking on thanks button

This is the way how mod works????? It´s posible to do it????

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 Mar 18, 2011 9:15 pm

This is the way how mod works. It´s posible to do it.
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.

ezepim6
Registered User
Posts: 2
Joined: Fri Mar 18, 2011 6:56 pm

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

Post by ezepim6 » Fri Mar 18, 2011 9:31 pm

how can i do it???? please ;)

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 » Sat Mar 19, 2011 4:28 pm

CherryJimbo wrote: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);

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

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

Post by trickoff » Sat Mar 19, 2011 5:08 pm

CherryJimbo wrote:
CherryJimbo wrote: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);
Same for me, I've had this problem since phpbb 3.0.6
impossible to find a solution, which host du you use?

IGCNWizzy
Registered User
Posts: 42
Joined: Mon Apr 11, 2011 7:26 am

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

Post by IGCNWizzy » Sat Apr 30, 2011 2:58 am

Great mod, works with no problems at all.

Can just someone tell me how to remove useless pop-ups? too many us for me..

the popup "you just have removed your thank" and "you have just thanked for the message"

thanks a lot

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 Apr 30, 2011 11:02 am

IGCNWizzy
Go to -> ACP -> .Mods -> Thanks Settings ->
Information messages: (If enabled, after the issuance / cancellation of gratitude displayed information messages) - Disabled

PROFIT!
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.

IGCNWizzy
Registered User
Posts: 42
Joined: Mon Apr 11, 2011 7:26 am

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

Post by IGCNWizzy » Sat Apr 30, 2011 1:54 pm

Thanks a lot, just didnt notice it is there, sorry ;)

Well, does the question popup "are u sure you want to remove your thank" can be removed manually? where please? cuz I want no any popups.

BTW, the 'share on' mod from your forum can be downloaded somewhere? does it has option to exclude forum on which it wont be used?
Thanks a lot!

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 Apr 30, 2011 2:19 pm

IGCNWizzy wrote: Well, does the question popup "are u sure you want to remove your thank" can be removed manually? where please? cuz I want no any popups.

Code: Select all

#-------- [OPEN] -------------
styles/YOUR_STYLE/template/ajax_thanks.js

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

				if (mode == 'rthanks' && confirm(this.l_remove_confirm) == false)
				{
					return;
				}

#-------- [REPACE WITH] -------------
# Just remove this line

IGCNWizzy wrote:BTW, the 'share on' mod from your forum can be downloaded somewhere? does it has option to exclude forum on which it wont be used?
Add this to social bookmark (Share On) for phpBB3
http://forum.aeroion.ru/topic531.html
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.

IGCNWizzy
Registered User
Posts: 42
Joined: Mon Apr 11, 2011 7:26 am

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

Post by IGCNWizzy » Sat Apr 30, 2011 4:26 pm

Thanks a lot for your assistance

I know it is not really related to ajax addon to the mod, but i am not sure is it works properly, I added a thank to user, and at start he has a 100% Rating and all starts, is that correct? this shouldnt work like earning starts on getting more thanks? because what for to use grey and gold starts images?

Sorry for a small offpost.

Do you also help in other issues? http://phpbb.com/community/viewtopic.php?f=74&t=2128418

User avatar
san3auni
Registered User
Posts: 133
Joined: Mon May 10, 2010 5:45 am
Location: yemen
Contact:

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

Post by san3auni » Mon May 16, 2011 7:20 pm

hi
thanks for this add-on

i try to install it but i get this erorr

Code: Select all

Parse error: syntax error, unexpected ';' in /home/w7oshy/public_html/bb/viewtopic.php on line 680
i use supernova style

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 » Mon May 16, 2011 8:24 pm

1. Check installation this mod

2. Show me please a code + / - 10 lines around line 680
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
san3auni
Registered User
Posts: 133
Joined: Mon May 10, 2010 5:45 am
Location: yemen
Contact:

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

Post by san3auni » Tue May 17, 2011 12:29 am

I will check it again tomorrow

this code from 664 to 702

Code: Select all

	'U_WATCH_TOPIC' 		=> $s_watching_topic['link'],
	'L_WATCH_TOPIC' 		=> $s_watching_topic['title'],
	'S_WATCHING_TOPIC'		=> $s_watching_topic['is_watching'],

	'U_BOOKMARK_TOPIC'		=> ($user->data['is_registered'] && $config['allow_bookmarks']) ? $viewtopic_url . '&bookmark=1&hash=' . generate_link_hash("topic_$topic_id") : '',
	'L_BOOKMARK_TOPIC'		=> ($user->data['is_registered'] && $config['allow_bookmarks'] && $topic_data['bookmarked']) ? $user->lang['BOOKMARK_TOPIC_REMOVE'] : $user->lang['BOOKMARK_TOPIC'],

	'U_POST_NEW_TOPIC' 		=> ($auth->acl_get('f_post', $forum_id) || $user->data['user_id'] == ANONYMOUS) ? append_sid("{$phpbb_root_path}posting.$phpEx", "mode=post&f=$forum_id") : '',
	'U_POST_REPLY_TOPIC' 	=> ($auth->acl_get('f_reply', $forum_id) || $user->data['user_id'] == ANONYMOUS) ? append_sid("{$phpbb_root_path}posting.$phpEx", "mode=reply&f=$forum_id&t=$topic_id") : '',
'U_BUMP_TOPIC'			=> (bump_topic_allowed($forum_id, $topic_data['topic_bumped'], 
// [begin] ajax thank by Sergey aka Porutchik
// Send added vars to template
$template->assign_vars(array(
	'S_SHOW_THANKS'				=> false,
	'S_FORUM_THANKS'			=> ($auth->acl_get('f_thanks', $forum_id)) ? true : false,
	'U_AJAX_THANKS'				=> append_sid("{$phpbb_root_path}ajax_thanks.$phpEx"),
));
// [end] ajax thank by Sergey aka Porutchik
$topic_data['topic_last_post_time'], $topic_data['topic_poster'], $topic_data['topic_last_poster_id'])) ? append_sid("{$phpbb_root_path}posting.$phpEx", "mode=bump&f=$forum_id&t=$topic_id&hash=" . generate_link_hash("topic_$topic_id")) : '',
'S_SHARE_TOPIC_ENABLED'			=> ($config['share_topic_enable']) ? true : false)
);
$topic_url = generate_board_url() . "/viewtopic.$phpEx?f=$forum_id%26t=$topic_id";
$s_find = array('{TOPIC_URL}', '{TOPIC_TITLE}');
$s_replace = array($topic_url, $topic_data['topic_title']);
$sql_share = 'SELECT *
              FROM ' . SHARE_TOPIC_TABLE;
$result_share = $db->sql_query($sql_share);
while( $row_share = $db->sql_fetchrow($result_share) )
{
  $template->assign_block_vars('share_links', array(
    'S_IMG_URL'			=> $row_share['share_icon'],
    'S_URL'			=> str_replace($s_find, $s_replace, $row_share['share_url']),
  ));
}


//-- mod : quick title edition -------------------------------------------------
//-- add
include $phpbb_root_path . 'includes/functions_attributes.' . $phpEx;

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 May 21, 2011 10:35 pm

wrong

Code: Select all

'U_BUMP_TOPIC'         => (bump_topic_allowed($forum_id, $topic_data['topic_bumped'], 
// [begin] ajax thank by Sergey aka Porutchik
// Send added vars to template
$template->assign_vars(array(
   'S_SHOW_THANKS'            => false,
   'S_FORUM_THANKS'         => ($auth->acl_get('f_thanks', $forum_id)) ? true : false,
   'U_AJAX_THANKS'            => append_sid("{$phpbb_root_path}ajax_thanks.$phpEx"),
));
// [end] ajax thank by Sergey aka Porutchik
$topic_data['topic_last_post_time'], $topic_data['topic_poster'], $topic_data['topic_last_poster_id'])) ? append_sid("{$phpbb_root_path}posting.$phpEx", "mode=bump&f=$forum_id&t=$topic_id&hash=" . generate_link_hash("topic_$topic_id")) : '',
'S_SHARE_TOPIC_ENABLED'         => ($config['share_topic_enable']) ? true : false)
);

Code: Select all

# ---- [find] -------------
$topic_url = generate_board_url() . "/viewtopic.$phpEx?f=$forum_id%26t=$topic_id";

# ---- [before, add] -------------

// [begin] ajax thank by Sergey aka Porutchik
// Send added vars to template
$template->assign_vars(array(
   'S_SHOW_THANKS'            => false,
   'S_FORUM_THANKS'         => ($auth->acl_get('f_thanks', $forum_id)) ? true : false,
   'U_AJAX_THANKS'            => append_sid("{$phpbb_root_path}ajax_thanks.$phpEx"),
));
// [end] ajax thank by Sergey aka Porutchik
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”