[ABD] Thank Post Mod 0.4.0

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.
cedomirovic
Registered User
Posts: 30
Joined: Mon Aug 04, 2008 6:59 pm

Re: [BETA] Thank Post Mod 0.4.0

Post by cedomirovic »

I use aero green style what i must to change in viewtopic_body.html

this is for prosilver

Find

Code: Select all

<!-- IF postrow.POSTER_FROM --><dd><strong>{L_LOCATION}:</strong> {postrow.POSTER_FROM}</dd><!-- ENDIF -->
Add after

Code: Select all

<dd><strong>{L_GIVEN}:</strong> {postrow.POSTER_GIVE_COUNT} {L_THANKS}</dd>
<dd><strong>{L_RECEIVED}:</strong> {postrow.POSTER_RECEIVE_COUNT} {L_THANKS}</dd>
Find

Code: Select all

<!-- END postrow -->
Add before

Code: Select all

<!-- IF not S_USER_LOGGED_IN and not postrow.THANKS -->
	<!-- ELSEIF postrow.S_IS_OWN_POST and not postrow.THANKS -->
	<!-- ELSE -->
	<div class="post bg3">
		<div class="inner"><span class="corners-top"><span></span></span>
			<dl class="postbody">
				<dd> 
					<!-- IF postrow.THANKS -->
					{postrow.THANK_TEXT}{postrow.POST_AUTHOR_FULL}{postrow.THANKS_GENDER}:<br /> {postrow.THANKS}
					<!-- ENDIF -->	
				</dd>
			</dl>  
			<dl>
				<dt style="text-align: center">
					<!-- IF S_USER_LOGGED_IN and not postrow.S_IS_OWN_POST and not S_IS_BOT -->
					<a href="{postrow.THANKS_LINK}"><img src="{T_IMAGESET_PATH}{postrow.THANKS_IMG}" alt="{postrow.THANK_ALT}{postrow.POST_AUTHOR}{postrow.THANK_ALT2}" /></a> 
					<!-- ENDIF -->
				</dt>
			</dl>
		<span class="corners-bottom"><span></span></span></div>
	</div>
	<hr class="divider" />
	<!-- ENDIF -->
what to change ??????
Last edited by stickerboy on Thu Aug 07, 2008 7:02 pm, edited 1 time in total.
Reason: Use code in the future plzkthxbai
User avatar
Mahoney
Registered User
Posts: 196
Joined: Sun Mar 16, 2008 4:07 pm
Contact:

Re: [BETA] Thank Post Mod 0.4.0

Post by Mahoney »

Hello cedomirovic
aero green based on subSilver2.

The guide to install for this style can be found in the templates/subsilver2.xml




Best regards: Mahoney
cedomirovic
Registered User
Posts: 30
Joined: Mon Aug 04, 2008 6:59 pm

Re: [BETA] Thank Post Mod 0.4.0

Post by cedomirovic »

Ok but now i have this to do:

Find

Code: Select all

<!-- IF postrow.POSTER_FROM --><br /><b>{L_LOCATION}:</b> {postrow.POSTER_FROM}<!-- ENDIF -->
Find

Code: Select all

<tr>
		<td class="spacer" colspan="2" height="1"><img src="images/spacer.gif" alt="" width="1" height="1" /></td>
	</tr>
	</table>
<!-- END postrow -->
Add after

Code: Select all

<!-- IF postrow.U_PROFILE -->
<br /><strong>{L_GIVEN}:</strong> {postrow.POSTER_GIVE_COUNT} {L_THANKS}
<br /><strong>{L_RECEIVED}:</strong> {postrow.POSTER_RECEIVE_COUNT} {L_THANKS}
<!-- ENDIF -->
Add before

Code: Select all

<!-- IF not S_USER_LOGGED_IN and not postrow.THANKS -->
<!-- ELSEIF postrow.S_IS_OWN_POST and not postrow.THANKS -->
<!-- ELSE -->
<tr>
<td class="spacer" colspan="2" height="1"><img src="images/spacer.gif" alt="" width="1" height="1" /></td>
</tr>
<!-- IF postrow.S_ROW_COUNT is even --><tr class="row1"><!-- ELSE --><tr class="row2"><!-- ENDIF -->
<td style="text-align: center;"><!-- IF S_USER_LOGGED_IN and not postrow.S_IS_OWN_POST and not S_IS_BOT --><a href="{postrow.THANKS_LINK}"><img src="{T_IMAGESET_PATH}{postrow.THANKS_IMG}" alt="{postrow.THANK_ALT}{postrow.POST_AUTHOR}{postrow.THANK_ALT2}" /></a> <!-- ENDIF --></td>
<td valign="top" style="padding-left: 4px;">
<!-- IF postrow.THANKS -->  {postrow.THANK_TEXT}{postrow.POST_AUTHOR_FULL}{postrow.THANKS_GENDER}:<br/> {postrow.THANKS}<!-- ENDIF -->
</td>
</tr>
<!-- ENDIF -->
And i dont now what to add after end what before and I can't to find this code

Code: Select all

<tr>
		<td class="spacer" colspan="2" height="1"><img src="images/spacer.gif" alt="" width="1" height="1" /></td>
	</tr>
	</table>
<!-- END postrow -->
PLEASE HELP !!!
Last edited by stickerboy on Thu Aug 07, 2008 7:02 pm, edited 1 time in total.
Reason: Use code tags in future plzkthxbai
usenet2you
Registered User
Posts: 407
Joined: Sat Mar 22, 2008 7:31 pm
Location: The Netherlands

Re: [BETA] Thank Post Mod 0.4.0

Post by usenet2you »

Search words, you don't must search whole lines. :P
cedomirovic
Registered User
Posts: 30
Joined: Mon Aug 04, 2008 6:59 pm

Re: [BETA] Thank Post Mod 0.4.0

Post by cedomirovic »

Now how to add this vertical line ???

Image
cedomirovic
Registered User
Posts: 30
Joined: Mon Aug 04, 2008 6:59 pm

Re: [BETA] Thank Post Mod 0.4.0

Post by cedomirovic »

I have this:

Next 2 users will thanks to autor for posts.....

How to erase this count for users and autor, that only show something like this

Next users are thanks for post
User avatar
Ld00d
Registered User
Posts: 7
Joined: Sat Jul 05, 2008 4:34 am

Re: [BETA] Thank Post Mod 0.4.0

Post by Ld00d »

Something else I've noticed: the thanks table has no primary key! :shock:
cedomirovic
Registered User
Posts: 30
Joined: Mon Aug 04, 2008 6:59 pm

Re: [BETA] Thank Post Mod 0.4.0

Post by cedomirovic »

cedomirovic wrote:Now how to add this vertical line ???

Image
Next 2 users will thanks to autor for posts.....

How to erase this count for users and autor, that only show something like this

Next users are thanks for post
PLEASE HELP !!!
geoffreak
Registered User
Posts: 591
Joined: Sat Feb 12, 2005 8:39 am
Contact:

Re: [BETA] Thank Post Mod 0.4.0

Post by geoffreak »

Just want to bump up this thread and say I am rewriting the code for this mod. I am fixing the efficiency problems of the current version as well as clean up the code.
I just want to warn everyone that I will not provide ANY upgrade support to the next version. I will provide a php script to upgrade the database and resync the thanks, but ALL file edits will need to be removed before 0.5.0.
Anime Revolution - Your new #1 source for All things anime and manga!
READ MY BLOG ALREADY!
usenet2you
Registered User
Posts: 407
Joined: Sat Mar 22, 2008 7:31 pm
Location: The Netherlands

Re: [BETA] Thank Post Mod 0.4.0

Post by usenet2you »

Nice! Long time ago your last login. You're back?
geoffreak
Registered User
Posts: 591
Joined: Sat Feb 12, 2005 8:39 am
Contact:

Re: [BETA] Thank Post Mod 0.4.0

Post by geoffreak »

In and out. Versus being completely in before and completely out during my leave.
Anime Revolution - Your new #1 source for All things anime and manga!
READ MY BLOG ALREADY!
minhquan299
Registered User
Posts: 4
Joined: Sun Jul 06, 2008 8:31 pm

Re: [BETA] Thank Post Mod 0.4.0

Post by minhquan299 »

i want an option for disable "remove thanked"
geoffreak
Registered User
Posts: 591
Joined: Sat Feb 12, 2005 8:39 am
Contact:

Re: [BETA] Thank Post Mod 0.4.0

Post by geoffreak »

I might offer hard coded options such as "thank first post only" and "no remove thanks" for 0.5.0
Anime Revolution - Your new #1 source for All things anime and manga!
READ MY BLOG ALREADY!
annepenullar
Registered User
Posts: 137
Joined: Sun Oct 21, 2007 7:01 am

Re: [BETA] Thank Post Mod 0.4.0

Post by annepenullar »

I would like to request a enable/disable Thanks MOD option per forum. Thank you.
usenet2you
Registered User
Posts: 407
Joined: Sat Mar 22, 2008 7:31 pm
Location: The Netherlands

Re: [BETA] Thank Post Mod 0.4.0

Post by usenet2you »

geoffreak wrote:I might offer hard coded options such as "thank first post only" and "no remove thanks" for 0.5.0
Nice, that is what I want!
annepenullar wrote:I would like to request a enable/disable Thanks MOD option per forum. Thank you.
Yeah, I want that too. That are the most interest functions, I think. :oops:

It's great that you're back for an time. Hope that 0.5.0 very soon comes. Over 1,5 week begins my school. :(

Here you have hide mod compatible:

Search in viewtopic.php:

Code: Select all

// Check if the topic viewer has posted in a topic 
$unhide = false; 
if ($user->data['user_id'] != ANONYMOUS) 
{ 
   $sql = "SELECT poster_id, topic_id 
      FROM " . POSTS_TABLE . " 
      WHERE topic_id = $topic_id 
      AND poster_id = " . $user->data['user_id']; 

   $result = $db->sql_query($sql); 
   $unhide = $db->sql_affectedrows($result) ? true : false; 
   $db->sql_freeresult($result); 
}
Replace with:

Code: Select all

// Check if the topic viewer has posted in a topic 
$unhide = false; 
if ($user->data['user_id'] != ANONYMOUS) 
{ 
   // If moderator or admin, skip reply check, auto unhide 
   if ($auth->acl_get('m_', $forum_id)) 
   { 
      $unhide = true; 
   } 
   else if (already_thanked($post_id, $user->data['user_id'])) 
   { 
      $unhide = true; 
   } 
    
   else 
   { 
   $sql = "SELECT poster_id, topic_id 
      FROM " . POSTS_TABLE . " 
      WHERE topic_id = $topic_id 
      AND poster_id = " . $user->data['user_id']; 

   $result = $db->sql_query($sql); 
   $unhide = $db->sql_affectedrows($result) ? true : false; 
   $db->sql_freeresult($result); 
   }
Enjoy!

Greetz,
u2y
Locked

Return to “[3.0.x] Abandoned MODs”