Simple Machines Community Forum

Customizing SMF => SMF Coding Discussion => Aiheen aloitti: Atarian - tammikuu 21, 2006, 05:14:52 IP

Otsikko: Mark thread poster in 1.0.6?
Kirjoitti: Atarian - tammikuu 21, 2006, 05:14:52 IP
Is there a way to differentiate the thread poster in every thread? Like make their name bold and put something like "Thread Poster" under their name on every post they have in their thread?

Thanks!
Otsikko: Re: Mark thread poster?
Kirjoitti: Atarian - helmikuu 16, 2006, 11:15:35 AP
Sorry to bump this, but it is still something I could get use out of if it can be done.

Thanks!
Otsikko: Re: Mark thread poster?
Kirjoitti: Compuart - helmikuu 16, 2006, 12:08:16 IP
Add a check in Display.template.php like:
if ($context['topic_starter_id'] == $message['member']['id'])
  echo 'topic starter';
Otsikko: Re: Mark thread poster?
Kirjoitti: Atarian - helmikuu 16, 2006, 01:12:13 IP
Thanks! :)
Otsikko: Re: Mark thread poster?
Kirjoitti: Atarian - helmikuu 16, 2006, 06:56:04 IP
Looks like this doesn't work on 1.0.6
Is there another way to make it work?

Thanks again
Otsikko: Re: Mark thread poster in 1.0.6?
Kirjoitti: Compuart - helmikuu 17, 2006, 10:42:53 AP
You'd need to add after:
Koodi (Display.php) [Valitse]
$context['user']['started'] = $ID_MEMBER == $topicinfo['ID_MEMBER_STARTED'] && !$user_info['is_guest'];

this line:
$context['topic_starter_id'] = $topicinfo['ID_MEMBER_STARTED'];