Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Default user icon
I am not a big fan of users with no icon, so I decided to modify my global stylesheet and the controls/comments.php file accordingly. It would be simplier to include that URL in the role management panel, but I don't want to overwrite member's icon, I just want to use a default icon. Anyway, here's what I did...
On line 130 from /controls/comments.php, I changed (in bold) :
Then on line 131, I added the line below :
Of course, I duplicated the style CommentAuthorWithIcon and renamed it CommentAuthorWithoutIcon in the /styles/vanilla/global.css. The file /styles/vanilla/defaultuser.gif is the default icon.
I think I did everything by the book... Any comments?
On line 130 from /controls/comments.php, I changed (in bold) :
$sReturn .= "<div class=\"CommentAuthor".($ShowIcon?" CommentAuthorWithIcon":"")."\">";
$sReturn .= "<div class=\"CommentAuthor".($ShowIcon?" CommentAuthorWithIcon":" CommentAuthorWithoutIcon")."\">";
Then on line 131, I added the line below :
if ($ShowIcon) $sReturn .= "<span class=\"CommentIcon\" style=\"background-image:url('".$Comment->AuthIcon."')\"></span>";
else $sReturn .= "<span class=\"CommentIcon\" style=\"background-image:url('/styles/vanilla/defaultuser.gif')\"></span>";
Of course, I duplicated the style CommentAuthorWithIcon and renamed it CommentAuthorWithoutIcon in the /styles/vanilla/global.css. The file /styles/vanilla/defaultuser.gif is the default icon.
I think I did everything by the book... Any comments?
0
This discussion has been closed.
Comments
You pay way too much attention to the aesthetics of your forum. I barely even notice the gaps between posts anymore.
I am a graphic designer. Sorry.