Code: Select all
'T_STYLESHEET_NAME' => $user->theme['theme_name'],
Code: Select all
'P_USERNAME' =>$user->data [username],
Code: Select all
<div id="p{postrow.POST_ID}" class="post <!-- IF postrow.S_ROW_COUNT is odd -->bg1<!-- ELSE -->bg2<!-- ENDIF -->
Code: Select all
<div id="p{postrow.POST_ID}" class="post <!-- IF P_USERNAME == postrow.POST_AUTHOR -->bg5<!-- ELSEIFIF postrow.S_ROW_COUNT is odd -->bg1<!-- ELSE -->bg2<!-- ENDIF -->
Code: Select all
.bg3 { background-color: #ebebeb; }
Code: Select all
.bg5 { background-color: #NEWCOLOR; }
Code: Select all
'P_USERNAME' =>$user->data [username],
Code: Select all
'P_USERNAME' =>$user->data ['username'],
Yeah, my fault. Thank you. The lack of a meaningful name was because I needed to clean up the code.GTFO. snuggles wrote:Worked a treat bud.
Just incase you were copying and pasting there is an error with:
The single quotes being missing:Code: Select all
'P_USERNAME' =>$user->data [username],
Only other thing I changed was the name for the new colour, I called it bg_author as that will possibly mean more to someone if they go prodding around my CSS to update the forum once I hand it across.Code: Select all
'P_USERNAME' =>$user->data ['username'],
Other than that (although the above aint exactly major) f'in superb.
Yeah, thank you. Like I said, I need to clean up the code. Thanks though!Brf wrote:Instead of putting in that new P_USERNAME, you can use the standard S_USERNAME