• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 1.2 Is it possible to add "Thread Starter" like this?

#1
Hello Everyone..

Now I'm asking for a small help. How to add thread starter image like this?



Is this is a addon or template modification?
 

Shelley

Well-known member
#3
I'm sure that is a template modification. I gave it a try and it's not exactly how you have it but near enough. It's probably not the correct way of doing this but it seems to work for me.

Go into you message_user_info template find

Code:
<span class="helper"></span>
add the following so it looks like so

Code:
<xen:if is="{$post.user_id} == {$thread.user_id} "><span class="helper"></span></xen:if>
Then go into your EXTRA.CSS template and paste the following

Code:
.messageUserInfo .helper  {
  display: block;
  position: absolute;
  top: -4px;
  left: -4px;
  background: url("@imagePath/xenforo/icons/starter.png") no-repeat  transparent;
  height: 56px;
  width: 56px;

}
And finally, upload the image in the attachment to your /icons folder.

The output of all that is as follows.

Screenshot_7.png Screenshot_8.png
 

Attachments

Last edited:

Shelley

Well-known member
#4
Just noticed it sets the ribbon in the quickreply messageuserinfo. if you don't want that to display there (i personally wouldn't) add the following to extra.css

Code:
.quickReply .messageUserInfo .helper {display:none;}
 
#5
I'm sure that is a template modification. I gave it a try and it's not exactly how you have it but near enough. It's probably not the correct way of doing this but it seems to work for me.

Go into you message_user_info template find

Code:
<span class="helper"></span>
add the following so it looks like so

Code:
<xen:if is="{$post.user_id} == {$thread.user_id} "><span class="helper"></span></xen:if>
Then go into your EXTRA.CSS template and paste the following

Code:
.messageUserInfo .helper  {
  display: block;
  position: absolute;
  top: -4px;
  left: -4px;
  background: url("@imagePath/xenforo/icons/starter.png") no-repeat  transparent;
  height: 56px;
  width: 56px;

}
And finally, upload the image in the attachment to your /icons folder.

The output of all that is as follows.

View attachment 55261 View attachment 55267
Thank You Very Much... Worked Fine In My site, take a look at an example: http://forum.digitalbuzzy.com/threads/dbf-rules-regulations.1/

(y)