Page 8 of 52

Re: Thanks for posts

Posted: Wed Jul 29, 2009 4:34 pm
by PowWowPalace
I installed this mod on phpBB 3.0.5 and everything works fine. Great Mod!

Re: Thanks for posts

Posted: Wed Jul 29, 2009 5:43 pm
by Палыч
asmalik12 wrote:Parse error: syntax error
Check the editing includes/functions.php
Perhaps you forgot ";" after

Code: Select all

$user-> add_lang ('mods / thanks_mod');
DoYouSpeakWak wrote:A feature request for the next version.
Working on this.

simpledollarz
thinkfast
All styles for phpbb3 based on prosilver or subsilver2, so you need to choose the appropriate instructions in the archives of MOD use it by changing the rules when necessary to html

Re: Thanks for posts

Posted: Wed Jul 29, 2009 6:28 pm
by PERVEZ
jwhitakr wrote:Just got this mod installed. Very nice mod, thank you!

For anyone else who wants corrected English, here are the text changes that I made to the thanks_mod.php file:

Code: Select all

'REMOVE_THANKS'				=> 'To remove the Thank You that you have given to another user. ',
	'THANK_POST'				=> 'To give a Thank You to the author of the post: ',
	'THANK_FROM'				=> 'from',
	'THANK_TEXT_1'				=> 'The following people have thanked the author ',
	'THANK_TEXT_2'				=> ' for this post',
	'THANK_TEXT_2pl'			=> ' - %d',
	'RECEIVED'					=> 'Thanked',
	'THANKS'					=> 'times',
	'GIVEN'						=> 'Thanks given',
	'GRATITUDES'				=> 'Thanks',
	'FOR_MESSAGE'				=> ' for post',
	'THANKS_LIST'				=> 'View/Close list',
	'THANKS_PM_SUBJECT_GIVE'	=> 'Thanks for the post',
	'THANKS_PM_SUBJECT_REMOVE'	=> 'Remove thanks',
	'THANKS_PM_MES_GIVE'		=> 'Thanks for the post',
	'THANKS_PM_MES_REMOVE'		=> 'Remove thanks',
	'THANKS_INFO_GIVE'			=> 'You have just given a Thank You for this post.',
	'THANKS_INFO_REMOVE'		=> 'You have just removed your Thank You.',
	'RETURN_POST'				=> 'Return',
	'THANKS_USER'				=> 'List of thanks',
	'THANKS_BACK'				=> 'Return',
	'JUMP_TO_FORUM'				=> 'Jump to forum',
	'JUMP_TO_TOPIC'				=> 'Jump to topic',
	'INCORRECT_THANKS'			=> 'Invalid thanks',
	'REMOVE_THANKS_CONFIRM'		=> 'Are you sure you want to remove your thanks?',
Cheers!
EdITED

Re: Thanks for posts

Posted: Wed Jul 29, 2009 6:58 pm
by DoYouSpeakWak
This file has nothing at all to do with that. You must have deleted or moved something else.

upload the backup and restore it. If you didnt take a backup, well i guess you will do next time right.

Re: Thanks for posts

Posted: Wed Jul 29, 2009 9:28 pm
by sixtiesrule
The same thing happened to me...just a blank page when I tried to go to my forum, so I re-uploaded the original thanks_mod.php file, & all was well again.
I have a feeling it might have had something to do with this line:
'THANK_TEXT_2pl' => ' - %d',

but I don't really know.


I have one question though,

on my forum, once someone has given thanks for a particular post, then nobody else can give thanks for that same post.
The icon for thanking the poster doesn't even appear.

Is there some setting that determines how many times the one post can be given thanks?

Re: Thanks for posts

Posted: Wed Jul 29, 2009 9:50 pm
by drhime
sixtiesrule wrote:The same thing happened to me...just a blank page when I tried to go to my forum, so I re-uploaded the original thanks_mod.php file, & all was well again.
I have a feeling it might have had something to do with this line:
'THANK_TEXT_2pl' => ' - %d',

but I don't really know.


I have one question though,

on my forum, once someone has given thanks for a particular post, then nobody else can give thanks for that same post.
The icon for thanking the poster doesn't even appear.

Is there some setting that determines how many times the one post can be given thanks?
The procedure must be followed accurately! It works like a charm. Already running in my live forum.

@Палыч
Any features list which we can expect of the next release?

Thanks :)

Re: Thanks for posts

Posted: Wed Jul 29, 2009 10:20 pm
by indijanac
Hi, i installed MOD and everythink works great. I just have one question. I have redesigned the look of this mod so i need one think to finish it like i wanted it.

I've got that this code is for thanks or remove thanks button:

Code: Select all

<!-- IF  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 -->
So, can u tell me how to split this code to thanks and remove thanks, because i want to place Thanks button near EDIT button, and remove thanks to other location. I figured it out but when i click Tahnks button near edit then there is remove thanks, i want to splih this code too two buttons so when i click thanks that this button will disapire and remove thanks will appeare on other location. Thanks

Re: Thanks for posts

Posted: Thu Jul 30, 2009 12:11 am
by sixtiesrule
sixtiesrule wrote:The same thing happened to me...just a blank page when I tried to go to my forum, so I re-uploaded the original thanks_mod.php file, & all was well again.
I have a feeling it might have had something to do with this line:
'THANK_TEXT_2pl' => ' - %d',

but I don't really know.


I have one question though,

on my forum, once someone has given thanks for a particular post, then nobody else can give thanks for that same post.
The icon for thanking the poster doesn't even appear.

Is there some setting that determines how many times the one post can be given thanks?

:oops: Disregard this question, sorry...other users can give thanks to a post someone else has already thanked.

Re: Thanks for posts

Posted: Thu Jul 30, 2009 3:58 am
by PERVEZ
Is there any option so that guest users can see who thanks for the post? Now my forum guest can;t see who thank for the post.

Re: Thanks for posts

Posted: Thu Jul 30, 2009 8:55 am
by DoYouSpeakWak
PERVEZ wrote:Is there any option so that guest users can see who thanks for the post? Now my forum guest can;t see who thank for the post.
This will do it.

http://www.phpbb.com/community/viewtopi ... #p10333035

Re: Thanks for posts

Posted: Thu Jul 30, 2009 5:26 pm
by autinhyeu
Hi, if you use SEO Ultimate at phpbb-seo.com, try this in viewtopic.php ;)
find:

Code: Select all

// www.phpBB-SEO.com SEO TOOLKIT BEGIN -> Zero dupe
$phpbb_seo->seo_opt['zero_dupe']['start'] = $phpbb_seo->seo_chk_start( $start, $config['posts_per_page'] );
Before add:

Code: Select all

// Thanks mod
$to_id = request_var('to_id', 0);
$thanks = request_var('thanks', 0);
$rthanks = request_var('rthanks', 0);
find:

Code: Select all

$phpbb_seo->seo_chk_dupe();
Replace with:

Code: Select all

if (!$to_id && !$thanks && !$rthanks) {
     $phpbb_seo->seo_chk_dupe();
}
Done :D

I hope it's helpful ;)

Best regards!!!
Autinhyeu

Re: Thanks for posts

Posted: Thu Jul 30, 2009 6:23 pm
by PERVEZ
DoYouSpeakWak wrote:
PERVEZ wrote:Is there any option so that guest users can see who thanks for the post? Now my forum guest can;t see who thank for the post.
This will do it.

http://www.phpbb.com/community/viewtopi ... #p10333035
Image

Hi thanks but there is a little problem. I follow your modified instruction for this mod. But my :thank the author" button dont show in right place showed in your provided picture. May be its because i use prosilver_se style and use left side profile field.

Image

After follow the modified instruction the thank button shows in this place. I want to show it as shown in your provided picture. Thank button beside the quote button. I use prosilver_se and profile for left. How to do that? Please help.

Re: Thanks for posts

Posted: Thu Jul 30, 2009 7:15 pm
by Палыч
drhime wrote:@Палыч
Any features list which we can expect of the next release?
Thanks :)
  • Change the terms of inserting a thanks to avoid messages about sql-error when user double-click on button.
  • Optimized function refresh().
  • Fixed translation of linguistic variables.
  • Added option on/off display counters thanks.
  • Added option on/off display info pages.
  • Added option clear the list of thanks.
  • Added option thanks only to the first message to the topic.
  • Fix minor bag in viewtopic.php.
  • Change image buttons style prosilver.
thankposts.gif
thankposts.gif (1.2 KiB) Viewed 948 times
removethanks.gif
removethanks.gif (1.2 KiB) Viewed 948 times

Re: Thanks for posts

Posted: Thu Jul 30, 2009 7:19 pm
by Палыч
PERVEZ wrote:Thank button beside the quote button. I use prosilver_se and profile for left. How to do that? Please help.
Try it out yourself. It is not difficult, it just html
In reality, it is impossible to deal with all the styles are too many of them. :(

Re: Thanks for posts

Posted: Thu Jul 30, 2009 7:52 pm
by indijanac
What about my question?