Jump to content

Postbit Background Image?


AtlasDevelopment

Recommended Posts

I am pretty active on a forum running IPS 4.4 (I made my own running on 4.4.8 as well)

They have this thing where you can use a background image/gif on your postbit (I think it's called) it is marked in red in the attached screenshot.

nulledbg.png

Link to comment
Share on other sites

this might not be what you are looking for but its close to what you want

you have to  make some changes in your post container

got to post container look for this

<article {{if $comment->author()->hasHighlightedReplies()}}data-memberGroup="{$comment->author()->member_group_id}" {{endif}} id='elComment_{$comment->$idField}' class='cPost ipsBox {{if $otherClasses}}{$otherClasses}{{endif}} ipsComment {{if ( settings.reputation_enabled and settings.reputation_highlight and $comment->reactionCount() >= settings.reputation_highlight ) OR $comment->isFeatured()}}ipsComment_popular{{endif}} ipsComment_parent ipsClearfix ipsClear ipsColumns ipsColumns_noSpacing ipsColumns_collapsePhone {{if $comment->author()->hasHighlightedReplies()}}ipsComment_highlighted{{endif}}{{if $comment->isIgnored()}}ipsHide{{endif}} {{if $comment->hidden() OR $item->hidden() === -2}}ipsModerated{{endif}}'>

replace it with this

<article {{if $comment->author()->hasHighlightedReplies()}}data-memberGroup="{$comment->author()->member_group_id}" {{endif}} id='elComment_{$comment->$idField}' class='pec cPost ipsBox {{if $otherClasses}}{$otherClasses}{{endif}} ipsComment {{if ( settings.reputation_enabled and settings.reputation_highlight and $comment->reactionCount() >= settings.reputation_highlight ) OR $comment->isFeatured()}}ipsComment_popular{{endif}} ipsComment_parent ipsClearfix ipsClear ipsColumns ipsColumns_noSpacing ipsColumns_collapsePhone {{if $comment->author()->hasHighlightedReplies()}}ipsComment_highlighted{{endif}}{{if $comment->isIgnored()}}ipsHide{{endif}} {{if $comment->hidden() OR $item->hidden() === -2}}ipsModerated{{endif}}' data-group_id='{$comment->author()->member_group_id}'>

than look for

<aside class='ipsComment_author cAuthorPane ipsColumn ipsColumn_medium ipsResponsive_hidePhone'>

replace with

<aside class='pec ipsComment_author cAuthorPane ipsColumn ipsColumn_medium ipsResponsive_hidePhone' data-group_id='{$comment->author()->member_group_id}'>

than in your css add this

.pec[data-group_id="4"] {
}
aside.pec[data-group_id="4"] {
 background: url("https://www./Image/cat-bg.jpg") repeat 50% 50%; 
}

you can fiddle around with it to see what ya like

ttttt.png

when I load your site, I was like a vampire, slept for thousands of years and just now is my first glimpse of light haha.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...