Not Solved Message with HTML prefix
#1
Not Solved
Hi everybody,

I have defined a message prefix as : <span style="color: red;">[Urgent]</span>

When I display my Forum "Bac à sable (Sandbox)", the message shows up correctly :

   

When I display the message, the breadcrumb shows up correctly, but not the message title :

   


I have tried to look where this difference comes from without success, being not enough fluent in MyBB and Php !


Can you give me directions for modifications so that the colored prefix appears when displaying the message?

Thanks
Reply
#2
Not Solved
74,713 members registered and No Answer,... please.

(2014-08-24, 03:33 PM)papa2fois Wrote: Can you give me directions for modifications so that the colored prefix appears when displaying the message?

Thanks

After digging, I could suggest :

In template "showthread", breakdown the following that displays both prefix and subject in H1:

<div style="padding: 20px;margin-top: -24px;">
<h1 style="font-size: 15px;padding-left: 10px;">{$thread['threadprefix']}{$thread['subject']}</h1>
</div>

into :

<div style="padding: 20px;margin-top: -24px;">
<h1 style="font-size: 15px;padding-left: 10px;">{$threadprefix['displaystyle']}{$thread['subject']}</h1>   
</div>
           
supposing that  $threadprefix['displaystyle'] is a valid HTML like <span style="color: red;">[Urgent]</span> ?

Can you confirm before applying this??Thx.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)