Show topic starter

Started by Harro, May 20, 2007, 02:18:25 PM

Previous topic - Next topic

Harro

Link to Mod

This is a very small modification that will show who the topic starter was in all the post he made in a topic.
Look at the screenshot for an example.

Changelog
1.4
Package updated for SMF 1.1.4 and future versions.

1.3
Package updated for SMF 1.1.3

1.2
Fixed bug with multiple pages.

NEMINI

mod doesn't work properly past page 1 of a thread.  On the first page the first poster is properly identified as the topic starter.  However on subsequent pages the topic starter gets reassigned to the first person to post on the page, not the first poster of the thread.
signatures are boring.

Harro

Thanks for letting me know.
I'll try to fix it as fast as possible.

Lew Cipher

Quote from: Harro on May 24, 2007, 03:06:53 AM
Thanks for letting me know.
I'll try to fix it as fast as possible.

Thanks!
Version: SMF 1.1.2
Many mods installed

ディン1031

#4
Hi Harro ;)

I made this extension for a german support board, i used this in the Display.php for finding the topic starter ;), i hope it will help you.


// Hmmm i need this to know which one have startet the topic ;)
$context['ID_MEMBER_STARTED'] = $topicinfo['ID_MEMBER_STARTED'];


You must use this somewhere in the Display.php ;).

Bye
DIN1031
Support only via MOD Thread! NO PM Support!
My Forum: ayu][kult Forum
My Mods: My Small Mod Collection
My Parser: DIN1031's ModParser
Current Info: More away the next days, because i've to much work to do :x

Harro

#5
Thanks! :)
I'll take a look at it!

[edit]
Not even needed to put anything in Display.php
You can just use $context['topic_starter_id'] :)

[edit 2]
Package updated for SMF 1.1.3 :)

~Unkn0wn~

Im confused, how i make it work in AA New Damage

Harro

You'll have to install it manually for other themes.
Take a look at this: Manual Installation of Mods

Aileen

This is a nice mod

BTW Is there a way to change the color.

Thanks

PopsicleStickChick

Is there a way to have this display under the personal text instead of between the personal text and the avatar?  Sometimes our personal text relates to the avatar.
www.grubesismyleader.com

An Internet forum dedicated to a former board operator at a Dallas sports talk radio station

Harro

For the color open Display.template.php in your Themes folder and look for this:
echo '<span style="color:red; font-weight:bold"> ', $txt['topic_starter'] , ' </span><br />';
Change the red to any other colour you like.


And to move it under the personal text search for
//show if it's the topic starter
if($context['topic_starter_id'] == $message['member']['id']){
echo '<span style="color:red; font-weight:bold"> ', $txt['topic_starter'] , ' </span><br />';
}


And put it after this:
// Show their personal text?
if (!empty($settings['show_blurb']) && $message['member']['blurb'] != '')
echo '
', $message['member']['blurb'], '<br />
<br />';

Aileen

Thanks you so much. I would like to move it under the stars (member rank) hope you can help me. and also change the font size. thanks.

Ol' Wombat

Perhaps more subtle coloured would be great instead of red (hear the rhyme?)

Harro

If you want to put it under the starts, just put it after this:

echo '
', $message['member']['group_stars'], '<br />';


And you can change to colour to any other colour you want :)

Aileen

can I put color in this format #000000?


this is really a great mod and useful too ;) great job

Harro

Yupz, it's possible :)
any hexadecimal format will do the job.


Aileen


falguni1


Nutronic

I have installed the camo theme and it does not have a Display.template.php so is there alternative process?

Harro

You have to install it manually on other themes then the default.
Take a look at this: Manual Installation of Mods

Advertisement: