[ABD] Thanks First Post 0.0.1

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.
.:: Chico ::.
Registered User
Posts: 463
Joined: Fri Aug 03, 2007 6:35 am
Location: Rio de Janeiro
Contact:

Re: [BETA] Thanks First Post 0.0.1

Post by .:: Chico ::. »

Great Mod, finally another thanks mod in the way i need!.

Thank you
hope someone with knowledge can help you.

Bye!
.:: Chico ::.
Registered User
Posts: 463
Joined: Fri Aug 03, 2007 6:35 am
Location: Rio de Janeiro
Contact:

Re: [BETA] Thanks First Post 0.0.1

Post by .:: Chico ::. »

Indonetsia Last visited:
Sat Jun 21, 2008 2:29 am

Hope he back soon!
sharathu7
Registered User
Posts: 173
Joined: Fri Jan 11, 2008 1:22 pm

Re: [DEV] Thanks First Post Only

Post by sharathu7 »

sharathu7 wrote:thanks a lot... waiting for this... please make this to work with simple hide bbcode mod ( a request.. please consider if possible)....
please consider this request :(
wearethebigsize
Registered User
Posts: 1
Joined: Sun Jun 08, 2008 1:48 pm

Re: [BETA] Thanks First Post 0.0.1

Post by wearethebigsize »

What happen to this can you fix it :D !
Image
maclanes
Registered User
Posts: 37
Joined: Thu Mar 09, 2006 2:53 am

Re: [BETA] Thanks First Post 0.0.1

Post by maclanes »

wearethebigsize wrote:What happen to this can you fix it :D !
[snip]http://img2.putfile.com/main/7/19308251422.jpg[/snip]
It must still be retrieving the name from the first post.
usenet2you
Registered User
Posts: 407
Joined: Sat Mar 22, 2008 7:31 pm
Location: The Netherlands

Re: [BETA] Thanks First Post 0.0.1

Post by usenet2you »

It doesn't work with Simple Hide BBCode, I know tha't's in viewtopic. In Geofreak's thank post mod was it:

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); 
   }
to works with the simple hide bbcode. How with this mod idiotnesia?

Sorry for my bad english. :oops:

Greetz,
...
User avatar
^[GS]^
Registered User
Posts: 274
Joined: Sun Aug 06, 2006 10:59 pm
Location: Argentina
Contact:

Re: [BETA] Thanks First Post 0.0.1

Post by ^[GS]^ »

wearethebigsize wrote:What happen to this can you fix it :D !
Image
In viewtopic.php find

Code: Select all

	'THANKS_FROM'	=> sprintf($user->lang['THANKS_FROM'], get_username_string('full', $topic_data['topic_poster'], $topic_data['topic_first_poster_name'], $topic_data['topic_first_poster_colour'])),
and delete it.!

Now find...

Code: Select all

		'U_POST_AUTHOR'			=> get_username_string('profile', $poster_id, $row['username'], $row['user_colour'], $row['post_username']),
After add..

Code: Select all

		'THANKS_FROM'	=> sprintf($user->lang['THANKS_FROM'], get_username_string('full', $poster_id, $row['username'], $row['user_colour'], $row['post_username'])), // GSX
Open styles/prosilver/template/viewtopic_body.html
Find

Code: Select all

{THANKS_FROM}
Replace with

Code: Select all

{postrow.THANKS_FROM}
Enjoy ^^
antivirus_B
Registered User
Posts: 14
Joined: Wed Jun 25, 2008 9:43 pm

Re: [BETA] Thanks First Post 0.0.1

Post by antivirus_B »

Will it work under phpbb 3.0.2?
usenet2you
Registered User
Posts: 407
Joined: Sat Mar 22, 2008 7:31 pm
Location: The Netherlands

Re: [BETA] Thanks First Post 0.0.1

Post by usenet2you »

antivirus_B wrote:Will it work under phpbb 3.0.2?
Ofcource, all phpBB3 mods here will work under 3.0.2. :D
User avatar
Mahoney
Registered User
Posts: 196
Joined: Sun Mar 16, 2008 4:07 pm
Contact:

Re: [BETA] Thanks First Post 0.0.1

Post by Mahoney »

Hello usenet2you
usenet2you wrote: to works with the simple hide bbcode. How with this mod idiotnesia?
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

Code: Select all

// Check if the topic viewer has posted in a topic
$unhide = false;
$sql = 'SELECT post_thanked
	FROM ' . POSTS_TABLE . '
	WHERE post_id = ' . $post_id;
$result = $db->sql_query($sql);
$post_thanked = $db->sql_fetchfield('post_thanked');
$db->sql_freeresult($result); 
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 ($post_thanked > 0)
   {
      $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);
	}
}

Best regards: Mahoney
User avatar
Sunka
Registered User
Posts: 566
Joined: Wed Mar 26, 2008 2:48 pm
Location: Croatia, Zvoneca

Re: [BETA] Thanks First Post 0.0.1

Post by Sunka »

Looking very good and I will wait for more stable version... :mrgreen:
usenet2you
Registered User
Posts: 407
Joined: Sat Mar 22, 2008 7:31 pm
Location: The Netherlands

Re: [BETA] Thanks First Post 0.0.1

Post by usenet2you »

Wow, thanks Mahoney, you are good! :D
usenet2you
Registered User
Posts: 407
Joined: Sat Mar 22, 2008 7:31 pm
Location: The Netherlands

Re: [BETA] Thanks First Post 0.0.1

Post by usenet2you »

@Mahoney, do you know the style changes for SubSilver2 based skins? Thanks in advance! :D
AcuteAngel
Registered User
Posts: 26
Joined: Wed Jan 14, 2009 7:24 pm

Re: [BETA] Thanks First Post 0.0.1

Post by AcuteAngel »

Anyone have this Thank You Mod?
Last edited by AcuteAngel on Sat Jan 24, 2009 4:28 am, edited 1 time in total.
AcuteAngel
Registered User
Posts: 26
Joined: Wed Jan 14, 2009 7:24 pm

Re: [BETA] Thanks First Post 0.0.1

Post by AcuteAngel »

idiotnesia wrote:Title: Thanks first post
Author: idiotnesia
Version: 0.0.1

Description:
After installing this mod, user can give thank for useful posts

Author notes:
  1. This is the first beta release, bugs expected. If you found bugs plz report here soon.
  2. After deleting posts/topics thanks count will not decrease, so you need to synchronize manually. For the next release I will try to add automatic synchronize. If someone can help me with this issue plz let me know.
Requests:
  1. Thanks icon for prosilver and subsilver2.
  2. Rephrasing the language
    Sorry, I'm not good at English :(
Planned features:
  1. Subsilver2 Support
  2. Automatic synchronize thanks count after deleting posts/topics
  3. ACP Configuration
  4. User permissions to give/receive thanks
  5. Enable/disable thanks post in certain forum
  6. Enable/disable thanks counts
  7. Change the name of this mod to Advanced Thanks Posts :D :D
Screenshoot:
Image
Image
Image

Download:
http://www.forumkomputer.web.id/downloa ... view&id=26


------------------------------------
Some users asking me about the possibility to thanks all posts not only the 1st posts. It quite easy to implement this.

Thanks All Post
note: You need to install the mod first

Open: thanks.php
FIND

Code: Select all

	WHERE p.post_id = ' . $post_id . '
		AND p.post_id = t.topic_first_post_id';
REPLACE-WITH

Code: Select all

	WHERE p.post_id = ' . $post_id;
Open: viewtopic.php
FIND

Code: Select all

	'S_FIRST_POST'		=> ($row['post_id'] == $topic_data['topic_first_post_id']) ? true : false,
REPLACE-WITH

Code: Select all

	'S_FIRST_POST'		=> true,
FINISH!!!!
Download Link doesn't exist
Locked

Return to “[3.0.x] Abandoned MODs”