The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Reason for Edit Style Help

2 posters

Go down

Solved Reason for Edit Style Help

Post by FrOsTyXi January 17th 2015, 3:35 pm

Hello, I was trying to style my reason for edit in topics using this code but seems to have no effect, maybe it;s not correct?

Code:
.posthead [id] + .postmain  entry-content div p:not (:empty)  {
background: #ffebc8 url (http://imgur.com/PIQA4LA.png) no-repeat 6px 10px;
border: 1px solid #ecc272;
color: #ac6328;
font-family: "Trebuchet MS",tahoma,Helvetica,Arial,sans-serif;
font-size: 11px;
font-style: Normal;
font-variant: Normal;
font-weight: 700;
line-height: 18px;
margin-top: 15px;
padding: 8px 8px 8px 28px;
text-shadow: 0 1px 0 #fffaf1;
}
.entry-content p :not (:empty) br {display: none;}


Here is an image of what it should look like.
Reason for Edit Style Help Aedit10

punbb

Forum Link: http://www.team-psn.net/


Thank in advance!
FrOsTyXi
FrOsTyXi
Forumember

Male Posts : 460
Reputation : 12
Language : english

http://team-psn.forum-board.net/

Back to top Go down

Solved Re: Reason for Edit Style Help

Post by Ange Tuteur January 17th 2015, 4:42 pm

Hi,

Try changing the code to this :
Code:
.postmain  .entry-content p:not(:empty)  {
background:#ffebc8 url(http://imgur.com/PIQA4LA.png) no-repeat 6px 10px;
border: 1px solid #ecc272;
color: #ac6328;
font-family: "Trebuchet MS",tahoma,Helvetica,Arial,sans-serif;
font-size: 11px;
font-style: Normal;
font-variant: Normal;
font-weight: 700;
line-height: 18px;
margin-top: 15px;
padding: 8px 8px 8px 28px;
text-shadow: 0 1px 0 #fffaf1;
}
.entry-content p:not(:empty) br {display: none;}
Ange Tuteur
Ange Tuteur
Forumaster

Male Posts : 13246
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania

https://fmdesign.forumotion.com

Back to top Go down

Solved Re: Reason for Edit Style Help

Post by FrOsTyXi January 17th 2015, 8:24 pm

@Ange That worked to make t show but in all my private messages it's there too, weird here is the image
Reason for Edit Style Help Aedits10
FrOsTyXi
FrOsTyXi
Forumember

Male Posts : 460
Reputation : 12
Language : english

http://team-psn.forum-board.net/

Back to top Go down

Solved Re: Reason for Edit Style Help

Post by Ange Tuteur January 18th 2015, 5:31 pm

Go to Administration Panel > Display > Templates > General > viewtopic_body Edit

Find :
Code:
                        <p>
                           {postrow.displayed.EDITED_MESSAGE}
                        </p>

Replace by :
Code:
                        <p class="editpost">
                           {postrow.displayed.EDITED_MESSAGE}
                        </p>

Save and publish. Add

Then change your CSS to this :
Code:
p.editpost:not(:empty)  {
background:#ffebc8 url(http://imgur.com/PIQA4LA.png) no-repeat 6px 10px;
border: 1px solid #ecc272;
color: #ac6328;
font-family: "Trebuchet MS",tahoma,Helvetica,Arial,sans-serif;
font-size: 11px;
font-style: Normal;
font-variant: Normal;
font-weight: 700;
line-height: 18px;
margin-top: 15px;
padding: 8px 8px 8px 28px;
text-shadow: 0 1px 0 #fffaf1;
}
p.editpost:not(:empty) br {display: none;}

Then you should be good. ^^
Ange Tuteur
Ange Tuteur
Forumaster

Male Posts : 13246
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania

https://fmdesign.forumotion.com

Back to top Go down

Solved Re: Reason for Edit Style Help

Post by FrOsTyXi January 18th 2015, 5:44 pm

@Ange 100% perfect! Thank you kindly for the support!

Regards
FrOsTyXi
FrOsTyXi
FrOsTyXi
Forumember

Male Posts : 460
Reputation : 12
Language : english

http://team-psn.forum-board.net/

Back to top Go down

Solved Re: Reason for Edit Style Help

Post by Ange Tuteur January 18th 2015, 5:44 pm

You're welcome Smile

Topic archived
Ange Tuteur
Ange Tuteur
Forumaster

Male Posts : 13246
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania

https://fmdesign.forumotion.com

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum