Thanks for posts

All new MODs released in our MOD Database will be announced in here. All support for released MODs needs to take place in the Customisations Database.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

NOTICE: This forum is only for the announcement of new releases and/or updates of MODs. Any MOD support should be obtained through the Customisations Database in the support area designated for each MOD.

A direct link to support for each MOD is in the first post of the respective topic.
Locked
User avatar
Палыч
Translator
Posts: 1543
Joined: Sun Jul 01, 2007 7:59 pm
Location: St. Petersburg
Name: Сергей
Contact:

Re: Thanks for posts

Post by Палыч »

DoYouSpeakWak wrote:Is this just another version or what can be wrong ?
This version of 1.2.4 (still RC)
DoYouSpeakWak wrote:I hope this makes sense.
Frankly, not very much understood what you mean. :?
Sorry for my bad english
User avatar
DoYouSpeakWak
Registered User
Posts: 2310
Joined: Fri Jul 25, 2008 1:32 pm
Location: Island of Wak-Wak
Contact:

Re: Thanks for posts

Post by DoYouSpeakWak »

This guide is for Modification version: 1.2.4

Contrib

Iwe spend the evening making a alternative way to use this mod. I hope someone besides us can use it.

After doing the code changes this mod will look like this. Press images to see full size

Prosilver

Before thanks are given
Image

After thanks are given
Image

Memberlist view will look like this.

Before opening lists
Image

After opening lists
Image

Subsilver2

Before thanks are given
Image

After thanks are given
Image

Code changes (let me know if i missed anything)

OPEN /language/en/mods/thanks_mod.php

FIND

Code: Select all

For this message the author
Replace-with

Code: Select all

For the above message the author 
FIND

Code: Select all

 has received gratitude 
Replace-with

Code: Select all

 has received gratitude from
Prosilver

OPEN styles/prosilver/template/memberlist_view.html

FIND

Code: Select all

<script type="text/JavaScript">
function getElement(iElementId)
{
   if (document.all) 
   {
      return document.all[iElementId];
   }
   if (document.getElementById)
   {
      return document.getElementById(iElementId);
   }
}

function toggleElement(oElement)
{
   if (oElement.style.display == "none")
   {
      oElement.style.display = "";
   }
   else
   {
      oElement.style.display = "none";
   }
}
</script>

<div class="panel bg1">
	<div class="inner"><span class="corners-top"><span></span></span>
	<h3>{L_GRATITUDES}</h3>
		<dl>
			<dd><strong>{L_GIVEN}:</strong> {POSTER_GIVE_COUNT} {L_THANKS}</dd>
			<!-- IF POSTER_GIVE_COUNT and THANKS_PROFILELIST_VIEW -->
				<a href="javascript: toggleElement( getElement('show_thanks'));">{L_THANKS_LIST}</a>
				<div id="show_thanks" style="display: none;">{THANKS}</div>
			<!-- ENDIF -->
			<br />
			<dd><strong>{L_RECEIVED}:</strong> {POSTER_RECEIVE_COUNT} {L_THANKS}</dd>
			<!-- IF POSTER_RECEIVE_COUNT and THANKS_PROFILELIST_VIEW -->
				<a href="javascript: toggleElement( getElement('show_thanked'));">{L_THANKS_LIST}</a>
				<div id="show_thanked" style="display: none;">{THANKED}</div>
			<!-- ENDIF -->
		</dl>	
	<span class="corners-bottom"><span></span></span></div>
</div>
Delete this find

FIND

Code: Select all

				<dt>{L_ACTIVE_IN_TOPIC}:</dt> <dd><!-- IF ACTIVE_TOPIC --><strong><a href="{U_ACTIVE_TOPIC}">{ACTIVE_TOPIC}</a></strong><br />({ACTIVE_TOPIC_POSTS} / {ACTIVE_TOPIC_PCT})<!-- ELSE --> - <!-- ENDIF --></dd>
			<!-- ENDIF -->
Add-after

Code: Select all

			<script type="text/JavaScript">
			function getElement(iElementId)
			{
			if (document.all) 
			{
				return document.all[iElementId];
			}
			if (document.getElementById)
			{
				return document.getElementById(iElementId);
			}
			}

			function toggleElement(oElement)
			{
			if (oElement.style.display == "none")
			{
				oElement.style.display = "";
			}
			else
			{
				oElement.style.display = "none";
			}
			}
			</script>
			<dt>{L_GIVEN}:</dt>
				<dd>{POSTER_GIVE_COUNT} {L_THANKS}<br />
				<!-- IF POSTER_GIVE_COUNT and THANKS_PROFILELIST_VIEW -->
					<a href="javascript: toggleElement( getElement('show_thanks'));">{L_THANKS_LIST}</a>
					<div id="show_thanks" style="display: none;">{THANKS}</div>
				<!-- ENDIF -->
				</dd>
			<dt>{L_RECEIVED}:</dt>	
				<dd>{POSTER_RECEIVE_COUNT} {L_THANKS}<br />
					<!-- IF POSTER_RECEIVE_COUNT and THANKS_PROFILELIST_VIEW -->
					<a href="javascript: toggleElement( getElement('show_thanked'));">{L_THANKS_LIST}</a>
					<div id="show_thanked" style="display: none;">{THANKED}</div>
				<!-- ENDIF -->
				</dd>
OPEN styles/prosilver/template/viewtopic_body.html

FIND

Code: Select all

		<!-- IF postrow.THANKS and postrow.THANKS_POSTLIST_VIEW -->
			<hr />
			<div class="content">
				<dl class="postbody">
					<dt> 
						<!-- IF not postrow.S_POST_ANONYMOUS and not S_IS_BOT-->
						{postrow.THANK_TEXT}{postrow.POST_AUTHOR_FULL}{postrow.THANK_TEXT_2}: <dd>{postrow.THANKS}</dd>
						<!-- ENDIF -->	
					</dt>
				</dl>
			</div>
		<!-- ENDIF -->
Delete this find

FIND

Code: Select all

<!-- END postrow -->
Add-before

Code: Select all

   <!-- IF postrow.THANKS and postrow.THANKS_POSTLIST_VIEW -->
   <div class="post <!-- IF postrow.S_ROW_COUNT is odd -->bg1<!-- ELSE -->bg2<!-- ENDIF -->">
   <div class="inner"><span class="corners-top"><span></span></span>
			   <!-- IF not postrow.S_POST_ANONYMOUS and not S_IS_BOT-->
               {postrow.THANK_TEXT}{postrow.POST_AUTHOR_FULL}{postrow.THANK_TEXT_2}: <dd>{postrow.THANKS}</dd>
			   <!-- ENDIF -->
   <span class="corners-bottom"><span></span></span></div>
   </div>
   <!-- ENDIF -->
Subsilver2

OPEN styles/subsilver2/template/viewtopic_body.html

FIND

Code: Select all

								<!-- IF postrow.THANKS and postrow.THANKS_POSTLIST_VIEW and not postrow.S_POST_ANONYMOUS -->
									<table width="100%" cellspacing="0">
										<tr valign="middle">
											<td class="gensmall" align="{S_CONTENT_FLOW_BEGIN}">
											<hr />
											{postrow.THANK_TEXT}{postrow.POST_AUTHOR_FULL}{postrow.THANK_TEXT_2}: {postrow.THANKS}</td>
										</tr>
									</table>
								<!-- ENDIF -->
Delete this find

FIND

Code: Select all

<!-- END postrow -->
Add-before

Code: Select all

   <!-- IF postrow.THANKS and postrow.THANKS_POSTLIST_VIEW and not postrow.S_POST_ANONYMOUS -->
   <table class="tablebg" width="100%" cellspacing="1">
   <!-- IF postrow.S_ROW_COUNT is even --><tr class="row1"><td class="gensmall">
      <div style="padding-left:2px">{postrow.THANK_TEXT}{postrow.POST_AUTHOR_FULL}{postrow.THANK_TEXT_2}: <br />{postrow.THANKS}</div>
   </tr>
   <!-- ELSE -->
   <tr class="row2"><td class="gensmall">
      <div style="padding-left:2px">{postrow.THANK_TEXT}{postrow.POST_AUTHOR_FULL}{postrow.THANK_TEXT_2}: <br />{postrow.THANKS}</div><!-- ENDIF -->
   </tr>   
   </table>
   <!-- ENDIF -->
Refresh your templates
Last edited by DoYouSpeakWak on Thu Aug 06, 2009 10:48 am, edited 5 times in total.
Whatever you share comes back. Support the phpBB Communities
My Validated and Released Modifications
Offering paid services. 10+ years of experience with phpBB3 and as System Administrator.
User avatar
Палыч
Translator
Posts: 1543
Joined: Sun Jul 01, 2007 7:59 pm
Location: St. Petersburg
Name: Сергей
Contact:

Re: Thanks for posts

Post by Палыч »

DoYouSpeakWak wrote:If there was a forum permission called "Can view thanks in posts" then normal users could have set it to YES and then they would be able to see there thanks they have gotten in viewtopic.
This is not the right way. Permission Can view - part of permission Can thanks. You can achieve the desired as follows:

Code: Select all

== OPEN ==
viewtopic.php
== FIND ==
if ($auth->acl_get('f_thanks', $forum_id)) 
{	
output_thanks($row['user_id'], $start);
}
== REPLACE ==
output_thanks($row['user_id'], $start);
DoYouSpeakWak wrote:Iwe spend the evening making a alternative way to use this mod.
Perhaps, in this case it makes sense to change the size of img-buttons the same as used in subsilver2 :)
Sorry for my bad english
User avatar
DoYouSpeakWak
Registered User
Posts: 2310
Joined: Fri Jul 25, 2008 1:32 pm
Location: Island of Wak-Wak
Contact:

Re: Thanks for posts

Post by DoYouSpeakWak »

Perfect that did it. Thanks so much.

I havnt changed the images in anyway. im not that good with creating images. But instead of the prosilver image i use the topic solved image which looks a bit like the subsilver2 image in this mod. not that wide. But its a personal preference.
Whatever you share comes back. Support the phpBB Communities
My Validated and Released Modifications
Offering paid services. 10+ years of experience with phpBB3 and as System Administrator.
thinkfast
Registered User
Posts: 9
Joined: Sun Jun 28, 2009 2:14 pm

Re: Thanks for posts

Post by thinkfast »

hello, i have small problem, the thanks button doesn't show (yes i have refresh the style imagesets)

Image

i use avalon style

can someone help me please Image
Last edited by thinkfast on Tue Jul 28, 2009 3:25 pm, edited 1 time in total.
my Forex Forum thanks to phpBB :)
simpledollarz
Registered User
Posts: 2
Joined: Sat Jul 25, 2009 10:12 pm

Re: Thanks for posts

Post by simpledollarz »

Question for yall. I got everything installed on the template polyethylene. everything except for the edits for the css files in prosilver. When I am adding these mods, if I edit the template files in prosilver will it actually work correctly? Reason why I ask is because I am having a horrible time trying to get this installed, and installed correctly, because some of the edits its <dt> and <dd>, etc, and the templates for polyethylene all use normal <tr> <td>, etc. Someone have tips? I wish I could use some of these mods, but with the edits and finds that arent even similar in these other templates, it's pretty much impossible unless someone can actually walk me through this one.

If someone is willing to give me a hand it would be greatly appreciated, just send em a PM and I will give you my IM username for yahoo or AIM please. Thank you in advance, and I really would appreciate it!
User avatar
DoYouSpeakWak
Registered User
Posts: 2310
Joined: Fri Jul 25, 2008 1:32 pm
Location: Island of Wak-Wak
Contact:

Re: Thanks for posts

Post by DoYouSpeakWak »

A feature request for the next version.

Make the Has "thanked" and "Have thanks" clickable like "Posts","Location" and "Last active" in thankslist.php so its posible to see who has gotten the most or the least thanks or thanked.

It would be a very nice feature imo.
Whatever you share comes back. Support the phpBB Communities
My Validated and Released Modifications
Offering paid services. 10+ years of experience with phpBB3 and as System Administrator.
frenzy coke
Registered User
Posts: 7
Joined: Mon Jul 20, 2009 6:45 am

Re: Thanks for posts

Post by frenzy coke »

anyone, can i ask bout 'sql' stands for?

Image
PERVEZ
Registered User
Posts: 105
Joined: Wed Sep 17, 2008 4:07 pm
Contact:

Re: Thanks for posts

Post by PERVEZ »

I follow the all instruction but the thanks button is not appear in the viewtopic body. Can anyone help me??

My forum address is: http://www.mig33forum.com
User avatar
DoYouSpeakWak
Registered User
Posts: 2310
Joined: Fri Jul 25, 2008 1:32 pm
Location: Island of Wak-Wak
Contact:

Re: Thanks for posts

Post by DoYouSpeakWak »

frenzy coke wrote:anyone, can i ask bout 'sql' stands for?

Image
It stands for "Structured Query Language". See how to install mods here > http://www.phpbb.com/community/viewtopic.php?t=61611
PERVEZ wrote:I follow the all instruction but the thanks button is not appear in the viewtopic body. Can anyone help me??

My forum address is: http://www.mig33forum.com
you have to set the forum permission to YES
Whatever you share comes back. Support the phpBB Communities
My Validated and Released Modifications
Offering paid services. 10+ years of experience with phpBB3 and as System Administrator.
User avatar
jwhitakr
Registered User
Posts: 6
Joined: Thu Jun 04, 2009 3:48 pm
Contact:

Re: Thanks for posts

Post by jwhitakr »

Палыч wrote:
jwhitakr wrote:For anyone else who wants corrected English, here are the text changes that I made to the thanks_mod.php file
Thank you! I can use it in the archives of mods?
Sure - feel free to use it.

Cheers,
Justin
TopReviewShop.com - Reviews of the latest tech gadgets and PC hardware
PERVEZ
Registered User
Posts: 105
Joined: Wed Sep 17, 2008 4:07 pm
Contact:

Re: Thanks for posts

Post by PERVEZ »

PERVEZ wrote:I follow the all instruction but the thanks button is not appear in the viewtopic body. Can anyone help me??

My forum address is: http://www.mig33forum.com
you have to set the forum permission to YES[/quote]

I did it and my forum permission look like this.

Image

The problem is still there. Please help. There is no thanks button there in view topic body
User avatar
DoYouSpeakWak
Registered User
Posts: 2310
Joined: Fri Jul 25, 2008 1:32 pm
Location: Island of Wak-Wak
Contact:

Re: Thanks for posts

Post by DoYouSpeakWak »

Then there is the installer and file edits left. double check em.
Whatever you share comes back. Support the phpBB Communities
My Validated and Released Modifications
Offering paid services. 10+ years of experience with phpBB3 and as System Administrator.
PERVEZ
Registered User
Posts: 105
Joined: Wed Sep 17, 2008 4:07 pm
Contact:

Re: Thanks for posts

Post by PERVEZ »

Its now working fine !!! Thanks to mod author and DoYouSpeakWak. Thanks both of you. :)
asmalik12
Registered User
Posts: 91
Joined: Fri Mar 27, 2009 3:26 pm
Location: Lahore, Pakistan
Contact:

Re: Thanks for posts

Post by asmalik12 »

Error :

Parse error: syntax error, unexpected T_IF in /home/a4401631/public_html/forums/includes/functions.php on line 3730
"Think 100 times before you take a decision, But once that decision is taken, stand by it as one man." - Quaid-e-Azam

Image
Locked

Return to “[3.0.x] MOD Database Releases”