Jump to the post that solved this thread.
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Not Solved moderation tool dont accept html prefix
#1
Not Solved
Hello, when i add prefixed, that user can choose its aight. But when i make moderation tool that adds prefix in html it's not working.

<div class="prefix" style="background-color: #FF6666"> prefix </div> orginal thread name


and it adds this code and not color text.
Reply
#2
Not Solved
Test it like this:

<div style="color:#fff!important;background-color:#ff5722!important">Prefix</div>

Then if it works, you can make a class prefix

.prefix {color:#fff!important;background-color:#ff5722!important}

Edit: you should not use div, you should use span, else your layout will break. So

<span style="color:#fff!important;background-color:#ff5722!important">Prefix</span>

should be sufficient.
What goes around comes around
Reply
#3
Not Solved
yeah but i made css prefix style and i want to use it Sad

* <div style="color:#fff!important;background-color:#ff5722!important">Prefix</div>

* <span style="color:#fff!important;background-color:#ff5722!important">Prefix</span>

*= this two dont work also Sad

Is there any code that says: hey! u can now use html in moderation tool prefix!
Reply
#4
Not Solved
It works when i test it.

In ACP make sure that you have it like this:

<span class="prefix">Prefix</span>

and your CSS will be

.prefix {color:#fff!important;background-color:#ff5722!important}

Change the colors to suit
What goes around comes around
Reply
#5
Not Solved
still Sad

look:

http://myextreme.pl/cs/showthread.php?tid=10


And css that i want:

.prefix {
color: #FFFFFF;
display: inline-block;
font-size: 10px;
line-height: 18px;
box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.8);
padding: 0 5px; text-shadow: 0 1px 1px #000000;
text-transform: uppercase;
border-radius: 1px;
margin-left: 2px; }

* Also simple <span> </span> thread dont work.
Reply
#6
Not Solved
I have it working on the breadcrumb and threadlist. Where did you go to edit the thread title ?

[Image: screen300.jpg]

[Image: screen301.jpg]
What goes around comes around
Reply
#7
Not Solved
ACP--> configuration--> moderation tols-> add --> <span class="prefixtest">Prefix</span>{subject}
Reply
#8
Not Solved
Ok, I am lost there. I would not expect to go there to be styling a prefix.
What goes around comes around
Reply
#9
Not Solved
ok Sad but thanks for helping

i'm giving you + for time and everything
Reply
#10
Not Solved
Yeah, sorry. At least you can have it working in the other places, where you would normally configure it under ACP -> Configuration -> Thread prefixes.
What goes around comes around
Reply
Jump to the post that solved this thread.


Forum Jump:


Users browsing this thread: 1 Guest(s)