Need help with post BG color
The forum of the forums :: Support forum :: Forum Design & Appearance Help :: Design & Appearance Problems Archives
Page 1 of 1 • Share •
Need help with post BG color
I need help with getting Nera's tutorial (below) to work on phpBB2
http://help.forumotion.com/t99001-post-color-for-administrators-and-moderators-punbb?highlight=color
http://help.forumotion.com/t99001-post-color-for-administrators-and-moderators-punbb?highlight=color
Last edited by jonnyuk100 on December 22nd 2011, 2:23 pm; edited 2 times in total
jonnyuk100- New Member
- Posts : 7
Reputation : 1
Language : english
Re: Need help with post BG color
Please change your topic title to someghing more descriptive.
The only difference is between first code, and also fourth:
First:

The only difference is between first code, and also fourth:
First:
- Code:
{postrow.displayed.POST_DATE}
- Code:
$(document).ready(function() {
$('.post:has(".admin1"),.post td.row1:has(".admin1"),.postbody:has(".admin1"),.post td.row1 table tbody tr:has(".admin1")').css('background-color', 'purple');
});
Guest- Guest
Re: Need help with post BG color
thank you for your help but..
It doesnt work
It doesnt work

Last edited by jonnyuk100 on December 22nd 2011, 12:07 pm; edited 1 time in total
jonnyuk100- New Member
- Posts : 7
Reputation : 1
Language : english
Re: Need help with post BG color
PHPBB2
Step 1: Click on user on your board and you will arrive on his nick in AP. Scroll down and you will see Assign special rank. Add the rank corresponding to the user. Without it it wont work.
Step 2: AP > Users and groups > Rank administration, edit the rank of for example administrators and wrap it with a class
Do the same thing for the moderator but with this
Step 3: AP > Diplay > Templates > General > Wievtopic_body template and find this
Replace it with this
Save and publish your template on the green
End: AP > JS managment (Mark all pages) and add this
There's probably an easier way but I would not know it.
Step 1: Click on user on your board and you will arrive on his nick in AP. Scroll down and you will see Assign special rank. Add the rank corresponding to the user. Without it it wont work.
Step 2: AP > Users and groups > Rank administration, edit the rank of for example administrators and wrap it with a class
- Code:
<span class="admin1">Administrator</span>
Do the same thing for the moderator but with this
- Code:
<span class="mod2">Administrator</span>
Step 3: AP > Diplay > Templates > General > Wievtopic_body template and find this
- Code:
<tr class="post">
<td class="{postrow.displayed.ROW_CLASS}"{postrow.displayed.THANK_BGCOLOR} valign="top" width="150">
<span class="name"><a name="{postrow.displayed.U_POST_ID}"></a><strong>{postrow.displayed.POSTER_NAME}</strong></span>
<span class="postdetails poster-profile">
{postrow.displayed.POSTER_RANK}
{postrow.displayed.RANK_IMAGE}{postrow.displayed.POSTER_AVATAR}
<!-- BEGIN profile_field -->
{postrow.displayed.profile_field.LABEL} {postrow.displayed.profile_field.CONTENT}{postrow.displayed.profile_field.SEPARATOR}
<!-- END profile_field -->
{postrow.displayed.POSTER_RPG}
</span>
<img src="http://illiweb.com/fa/empty.gif" alt="" style="width:150px;height:1px" />
</td>
<td class="{postrow.displayed.ROW_CLASS}"{postrow.displayed.THANK_BGCOLOR} valign="top" width="100%" height="28" colspan="2">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
Replace it with this
- Code:
<tr class="post">
<td class="post {postrow.displayed.ROW_CLASS}"{postrow.displayed.THANK_BGCOLOR} valign="top" width="150">
<span class="name"><a name="{postrow.displayed.U_POST_ID}"></a><strong>{postrow.displayed.POSTER_NAME}</strong></span>
<span class="postdetails poster-profile">
{postrow.displayed.POSTER_RANK}
{postrow.displayed.RANK_IMAGE}{postrow.displayed.POSTER_AVATAR}
<!-- BEGIN profile_field -->
{postrow.displayed.profile_field.LABEL} {postrow.displayed.profile_field.CONTENT}{postrow.displayed.profile_field.SEPARATOR}
<!-- END profile_field -->
{postrow.displayed.POSTER_RPG}
</span>
<img src="http://illiweb.com/fa/empty.gif" alt="" style="width:150px;height:1px" />
</td>
<td class="post {postrow.displayed.ROW_CLASS}"{postrow.displayed.THANK_BGCOLOR} valign="top" width="100%" height="28" colspan="2"><span class="novo" style="display:none;">{postrow.displayed.POSTER_RANK}</span>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
Save and publish your template on the green

End: AP > JS managment (Mark all pages) and add this
- Code:
$(document).ready(function() {
$('.post:has(".admin1")').css('background-color', 'lightblue');
$('.post:has(".mod2")').css('background-color', '#FF77B1');
});
Example:


There's probably an easier way but I would not know it.
Re: Need help with post BG color
if i want to change the BG color should i edit in the JS?
FL.ux- Forumember
-
Posts : 842
Reputation : 18
Language : I hope I could be a FM staff :'(
Location : I shall fly to the subterranean sky.
Re: Need help with post BG color
It messed up the posts !
Help please

Edit:
Nvm i fixed it now..
Thanks !!
Last edited by jonnyuk100 on December 22nd 2011, 12:13 pm; edited 2 times in total
jonnyuk100- New Member
- Posts : 7
Reputation : 1
Language : english
Re: Need help with post BG color
Press the red cross next to the template and undo the changes. That will reset your template and delete the changes. The image I showed you is taken when I did it on phpBB2 and it works.
Re: Need help with post BG color
<span class="mod2">Administrator</span>
If i change the above to
<span class="mod2">Moderator</span>
Will it still work?
If i change the above to
<span class="mod2">Moderator</span>
Will it still work?
jonnyuk100- New Member
- Posts : 7
Reputation : 1
Language : english
Re: Need help with post BG color
Yes.
Edit: Here, I did it all over again to show you that it works on phpBB2. All you need to do is follow the instructions correctly
http://tiki.makingforum.com/t8-test-test-test
I see you have fixed it, solved than?
Edit: Here, I did it all over again to show you that it works on phpBB2. All you need to do is follow the instructions correctly
http://tiki.makingforum.com/t8-test-test-test
I see you have fixed it, solved than?
Re: Need help with post BG color
Yes Solved 

jonnyuk100- New Member
- Posts : 7
Reputation : 1
Language : english
The forum of the forums :: Support forum :: Forum Design & Appearance Help :: Design & Appearance Problems Archives
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum