Centesimus at 19h57
28
Oct
2011
Okay, first of all, hey. I'm trying to make a clean, professional forum and i've seen a layout that i really like and that looks pretty neat.
Here it is
THis might seem like a lot to ask, but i really need help with this, i've been trying to figure out how to do this for quite a while so i hope any of you guys know. I'd also like the admistrators to have a yellow post layout like on the picture and the members brown.
Forum version is PunBB
Here it is
THis might seem like a lot to ask, but i really need help with this, i've been trying to figure out how to do this for quite a while so i hope any of you guys know. I'd also like the admistrators to have a yellow post layout like on the picture and the members brown.
Forum version is PunBB
1 LGforum, on 28/10/2011 at 21h50
I don't see an image..?
Is this just me?
Is this just me?
2 Drogba921, on 28/10/2011 at 21h58
It'd be helpful if you posted the image hehe..
LGForum, it's not just you
LGForum, it's not just you
3 Centesimus, on 29/10/2011 at 11h01
can't you guys see the picture? It works fine for me , one second i'll upload the link aswell.
Edit : here's the link, hope it works now
http://images1.wikia.nocookie.net/__cb20111026121813/runescape/images/a/ae/Onepiercingnote.png
Edit : here's the link, hope it works now
http://images1.wikia.nocookie.net/__cb20111026121813/runescape/images/a/ae/Onepiercingnote.png
4 FrozenX, on 29/10/2011 at 11h02
404 not found, please upload the image, on a different website, such as..
Tinypic.com
Tinypic.com
5 Centesimus, on 29/10/2011 at 11h02
FrozenX wrote:404 not found, please upload the image, on a different website, such as..
Tinypic.com
This is so weird, i have no problem at all viewing the picture, does the link work?
6 Base, on 29/10/2011 at 11h05
For those that need it, here's the image:
I can see it just fine.
I can see it just fine.
7 Centesimus, on 29/10/2011 at 13h35
@ Base : Thanks, i also had no problems viewing it, might be browser based.
8 Drogba921, on 29/10/2011 at 15h56
Pretty sure this isn't possible, since you'd need to make the code to have just the admin posts show the highlighted background.
9 LGforum, on 29/10/2011 at 16h03
It is possible through a javascript put its pretty nasty and slow.
Nera knows it, so i'll let her share it because i know very little about PunBB versions class names and ID's.
Nera knows it, so i'll let her share it because i know very little about PunBB versions class names and ID's.
10 Nera., on 29/10/2011 at 19h51
Hi,
Go to your viewtopic_body template and find this
After it add this
Save and publish your template on the green cross.
You must have the special ranks assigned to users, without it it wont work.
Now go to Users and groups > Rank administration & edit the rank you want to add color to.
In the rank title instead only the word "Administrator" add this
Now go to your AP > Modules > JS managment and add this there
If you would like to add an other color for mods too you'd go to the mods rank title and wrap it with a span class named for example "mod2" and than in your script (the same one you added before) add an other line, like this
So the script in the end would look like this:
Go to your viewtopic_body template and find this
- Code:
{postrow.displayed.POST_SUBJECT}</a> {postrow.displayed.POST_DATE_NEW}
After it add this
- Code:
<span class="novo" style="display:none;">{postrow.displayed.POSTER_RANK}</span>
Save and publish your template on the green cross.
You must have the special ranks assigned to users, without it it wont work.
Now go to Users and groups > Rank administration & edit the rank you want to add color to.
In the rank title instead only the word "Administrator" add this
- Code:
<span class="admin1">Administrator</span>
Now go to your AP > Modules > JS managment and add this there
- Code:
$(document).ready(function() {
$('.postmain:has(".admin1"),.post:has(".admin1"),.posthead:has(".admin1")').css('background-color', 'purple');
});
If you would like to add an other color for mods too you'd go to the mods rank title and wrap it with a span class named for example "mod2" and than in your script (the same one you added before) add an other line, like this
- Code:
$('.postmain:has(".mod2"),.post:has(".mod2"),.posthead:has(".mod2")').css('background-color', 'pink');
So the script in the end would look like this:
- Code:
$(document).ready(function() {
$('.postmain:has(".admin1"),.post:has(".admin1"),.posthead:has(".admin1")').css('background-color', 'purple');
$('.postmain:has(".mod2"),.post:has(".mod2"),.posthead:has(".mod2")').css('background-color', 'pink');
});
Example of it working on punBB
- Spoiler:

11 Centesimus, on 30/10/2011 at 16h36
thanks, this solved part of it, but i also need help with the boxes and the profile in the center of the right side, i found the code before but i can't seem to find it again.
I want to do the whole style like the image, not just the colors.
I want to do the whole style like the image, not just the colors.
12 LGforum, on 30/10/2011 at 16h41
I want to do the whole style like the image, not just the colors.
You can't just take and copy someones design completely. Take inspiration from it and create something of your own.
13 Centesimus, on 30/10/2011 at 17h28
i know LG, but i want that border like on that forum, and the post profile in the center, that's all i'm asking ;l
14 Nera., on 30/10/2011 at 21h41
Hi,
Viewtopic_body template and find this:
Replace it with this:
Save and publish your template on the green cross.
Than add this to CSS:
Example of it working on punBB:

Viewtopic_body template and find this:
- Code:
{postrow.displayed.POSTER_AVATAR}
Replace it with this:
- Code:
<span class="avic">{postrow.displayed.POSTER_AVATAR}</span>
Save and publish your template on the green cross.
Than add this to CSS:
- Code:
.pun .user-ident .user-basic-info {
text-align: center;
}
.pun .user-ident .username {
position: relative !important;
text-align: center;
}
.avic img {
border: 3px solid black;
}
Example of it working on punBB:

15 Centesimus, on 31/10/2011 at 10h14
thanks, Nera ! You really helped me with this, i'll mark this as solved 
16 Sanket, on 31/10/2011 at 12h59
Since this thread is marked solved, I will archive this thread.
Sanket
Sanket
Similar topics
I noticed in the Forum Profiles that for some if not most of the Moderators, where it says "Support:" some of them say "No Support Via PM" - I'm not sure if that's just a default option, or if that means that they do not help people vi
I have decided to go with either phpbb2 or punBB due to both of them offering template editing and phpbb3 doesn't but I am having a hard time figuring out which one is better and which on I should use. Which one do you guys like better and why? I value al
hello.
How i can Allow topics title color only for admins or moderators ?
Replies 1 to 16 on 16 for "Post color for administrators and moderators - PunBB"
Search
Informations
16 Replies For the topic :
"Post color for administrators and moderators - PunBB"
This topic has been viewed 1592 times.
Last message :
28/10/2011 at 19h57 by "Centesimus"





