Sounds more like you want 2 modes, not colors. You want them being able to choose between "moderator background" and "default background", not colors which they can freely choose. Or not?totallybeautiful wrote: ↑Tue Jul 10, 2018 1:32 pmI want moderators to be able to post their posts in two background colors.
If you look more closely you might notice that every odd post has a different background, so effectively a default style already comes with 2 background colors.totallybeautiful wrote: ↑Tue Jul 10, 2018 1:32 pmIn phpbb there is always a postbackground defined. With my style, it's white by default.
Are you sure you want it this restrictive? The choice is permanent and should not be available when editing a post?totallybeautiful wrote: ↑Tue Jul 10, 2018 1:32 pmThe red background should only appear if the moderators select it before posting.
You could do this as a MOD, but you will be overcomplicating stuff and need to check with each and every minor update. A simple extension (such as ModBreak) would probably work without any further work until the end of life of phpBB 3.2 (and probably 3.3 and above as well).totallybeautiful wrote: ↑Tue Jul 10, 2018 6:58 pmNo, this should not be an extension request, because I would like to make this change to the code to be able to reintroduce it at any time and not run the risk of an extension being set.
You could still use it. Just add this litte JS snippet in your footer, just beforetotallybeautiful wrote: ↑Tue Jul 10, 2018 6:58 pmI don't know the modbreak from the look.
I would like to be able to change exactly the background after selection, if a moderator must give an instruction.
It's not just about the purpose, it's also about that exact look.
</body>
:
Code: Select all
<script>
$('.post').has('.bbc_mod_text').css('background', '#E2C8D3');
</script>
Code: Select all
.bbc_mod_head, .bbc_mod_text {
display: none;
}
If someone wants to do an extension now, it wouldn't be wrong, but a few months ago my question only remained a question, which is why I don't want to give up realizing it anyway.Ger wrote: ↑Wed Jul 11, 2018 8:14 amYou could do this as a MOD, but you will be overcomplicating stuff and need to check with each and every minor update. A simple extension (such as ModBreak) would probably work without any further work until the end of life of phpBB 3.2 (and probably 3.3 and above as well).
I already have a BBCode in use, it also creates a red box, but that's not what I want. I want to change the background color of the entire post. Example will follow soon.
No, not like this.
Code: Select all
p.bbc_mod_head {
display: none;
}
.bbc_mod_text {
border: 0;
width: inherit;
margin: 0;
padding: 0;
}
./ext/ger/modbreak/styles/all/theme/modbreak.css
Code: Select all
p.bbc_mod_head {
display: none;
}
.bbc_mod_text {
border: 0;
width: inherit;
margin: 0;
padding: 0;
}
./styles/yourstyle/template/overall_footer.html
Code: Select all
</body>
Code: Select all
<script>
$('.post').has('.bbc_mod_text').css('background', '#E2C8D3');
</script>
Users browsing this forum: No registered users and 3 guests