[REQ] Thread Starter on postbit

Looking for a MOD? Have a MOD request? Post here for help. (Note: This forum is community supported; phpBB does not have official MOD authors)
Scam Warning
Locked
User avatar
Linda Carter
Registered User
Posts: 514
Joined: Fri Feb 15, 2008 6:45 am

[REQ] Thread Starter on postbit

Post by Linda Carter » Fri Dec 26, 2008 5:21 pm

This is the MOD I saw this week and I find the idea very cool, take a look:
Description:

I saw this on a Burning Board 2.3.3 system, but vb misses it so I make it for my board and to share it here.
Pretty simple in a mind of a coder, just one line of template condition. It won't show in the first post of the thread because, of course first poster is the thread starter.

FIND IN TEMPLATES postbit:
???????

ADD BELOW:
????????????

put the file thread_starter.gif in your images/misc directory. You can use my image in the attachment. Repeat the method if you want to show it on postbit_legacy, and of course you can put it anywhere you feel like in the postbit.
Example of the MOD above working:

Image

Image

As you can see, the first image shows one random user (called "ared") replying my thread. These are pictures from the viewtopic. The first user (called "ared") is normal.

The second user it's myself ("inho"), the creator of the original thread. Can you see the "thread-starter" icon on the right side of my nick? That's what this MOD is doing. :)

I need this for the subSilver2 from phpBB 3 style. proSilver if possible, but it's not my favorite template.
"Whoever has not known himself has known nothing. But whoever has known himself has simultaneously achieved knowledge about the depth of all things."

User avatar
Linda Carter
Registered User
Posts: 514
Joined: Fri Feb 15, 2008 6:45 am

Re: [REQ] Thread Starter on postbit

Post by Linda Carter » Tue Dec 30, 2008 8:28 pm

*BUMP* :ugeek:
"Whoever has not known himself has known nothing. But whoever has known himself has simultaneously achieved knowledge about the depth of all things."

User avatar
kavee
Registered User
Posts: 31
Joined: Sat Oct 11, 2008 1:46 pm
Location: 保健室

Re: [REQ] Thread Starter on postbit

Post by kavee » Thu Oct 08, 2009 5:47 am

in case someone need it...
http://www.phpbb.com/community/viewtopi ... 15&start=0 same as http://www.phpbb.com/community/viewtopi ... &t=1785325 and http://www.phpbb.com/community/viewtopi ... 2&t=585511

based/stolen from hilit topic poster mod by eviL<3
http://svn2.assembla.com/svn/evilmods/3 ... pic_poster

viewtopic.php
find

Code: Select all

'S_TOPIC_POSTER'	=> ($topic_data['topic_poster'] == $poster_id) ? true : false,
add after

Code: Select all

		'S_TOPIC_STARTER'	=> ($topic_data['topic_poster'] == $poster_id && $row['post_id'] != $topic_data['topic_first_post_id'] && $poster_id != ANONYMOUS) ? true : false,
/styles/prosilver/viewtopic_body.html
find

Code: Select all

<!-- IF not postrow.U_POST_AUTHOR --><strong>{postrow.POST_AUTHOR_FULL}</strong><!-- ELSE -->{postrow.POST_AUTHOR_FULL}<!-- ENDIF -->
in-line find

Code: Select all

<!-- ENDIF -->
In-line add before

Code: Select all

<!-- IF postrow.S_TOPIC_STARTER -->&nbsp;<img src="{T_ICONS_PATH}topic_starter.png" width="10" height="10" alt="" title="Topic starter" style="vertical-align: middle;" /><!-- ENDIF -->
for subsilver2
find

Code: Select all

<b class="postauthor"<!-- IF postrow.POST_AUTHOR_COLOUR --> style="color: {postrow.POST_AUTHOR_COLOUR}"<!-- ENDIF -->>{postrow.POST_AUTHOR}</b>
In-line add after

Code: Select all

<!-- IF postrow.S_TOPIC_STARTER -->&nbsp;<img src="{T_ICONS_PATH}topic_starter.png" width="10" height="10" alt="" title="Topic starter" style="vertical-align: middle;" /><!-- ENDIF -->
save this Image image then copy to /images/icon
refresh ur cache and see if it worked :lol:

Locked

Return to “[3.0.x] MOD Requests”