Jump to content

User post background?


sweethoney

Recommended Posts

Posted

here is how you add a backround color or an image it will only show just for the admin and moderator messages

Search for postContainer find this line

<div class='ipsColumn  ipsColumn_fluid'>

Replace it with 

{{if $comment->author()->isAdmin() AND !$comment->hidden()}}
	<div class='ipsColumn adminPost ipsColumn_fluid'>
           {{elseif $comment->author()->modPermissions() AND !$comment->author()->isAdmin() AND !$comment->hidden()}}
            <div class='ipsColumn moderatorPost ipsColumn_fluid'>
           {{else}}
              <div class='ipsColumn  ipsColumn_fluid'>
                {{endif}}

Add this to custom.css

/**
 * Modify the colors, add a border if you want, your choice.
 */

.adminPost {
 background-color: #debebe; 
}

.moderatorPost {
 background-color: #bebede; 
}

and if you want to add an image to the post just modify your css and add it like this

.adminPost {
background: url(https://www.site.com/Image/image.jpg);
background-color: #debebe; 
}

.moderatorPost {
 background-color: white; 
}

and it will look like this if you add the image

image.thumb.png.525b0495be0fd668f5658519e3973823.png

 

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...