When userID is 51 the code then uses class bg1 with class blizz content.
How can I make it so that when userid is 51 the code calls class blizz bg1 with class bg content?
css class ids
Code: Select all
.bg1 .postprofile { background-image: url("./images/avatar-bg1.gif"); }
.bg2 .postprofile { background-image: url("./images/avatar-bg2.gif"); }
.blizz .bg1 .postprofile { background-image: url("./images/avatar-bg1-blizz.gif"); }
.blizz .bg2 .postprofile { background-image: url("./images/avatar-bg2-blizz.gif"); }
.red .bg1 .postprofile { background-image: url("./images/avatar-bg1-red.jpg"); }
.red .bg2 .postprofile { background-image: url("./images/avatar-bg2-red.jpg"); }
.content { color: #E1C492; }
.blizz .content { color: #00C0FF; }
.blizz .content strong { color: #FFF; }
.mvp .content { color: #5DF644; }
.mvp .content strong { color: #FFF; }
html phpbb code in viewtopic_body.html
Code: Select all
<div id = "p{{ postrow.POST_ID }}" class = "
post has-profile {% if postrow.S_ROW_COUNT is odd %}bg1{% else %}bg2{% endif %}
{% if postrow.S_UNREAD_POST %} unreadpost{% endif %}
{% if postrow.S_POST_REPORTED %} reported{% endif %}
{% if postrow.S_POST_DELETED %} deleted{% endif %}
{% if postrow.S_ONLINE and not postrow.S_POST_HIDDEN %} online{% endif %}
{% if postrow.RANK_BLIZZ %} blizz{% elseif postrow.POSTER_ID eq 51 %} blizz{% endif %}
{% if postrow.POSTER_WARNINGS %} warned{% endif %}">