1
RSearcy
Question about color of username in forums (may concern CSS file)
  • 2006/5/11 16:40

  • RSearcy

  • Just popping in

  • Posts: 45

  • Since: 2004/3/2 2


Hello there. Sorry if this is in the wrong forum.....reason why I posted it here is I believe the answer may be in a CSS file.

I've been in the process of putting in a new theme called LyXoops for a very popular website that runs off of Xoops.

I'm having some troubles with the color of the username in the forums.

A pic of what I'm talking about is at http://www.robertsearcy.info/themehelp.jpg

How do I get the username inside the circle (yes, there's a username there, when you hover over it, it's dark blue to where you can't see it) to be white?

Here's the CSS file for the LyXoops theme....I'll let you look through it and tell me where I need to change the color (if it's even in this style.css file). I'm not sure what to change (I've tried out several things and couldn't find it).

Thanks a bunch in advance!

body {color#000000; background-color: #426BA5; margin: 0; padding: 0;}
html scrollbar-face-color#F0F0F0; scrollbar-highlight-color: #323232; scrollbar-shadow-color: #081621; scrollbar-3dlight-color: #000000; scrollbar-arrow-color: #000040; scrollbar-track-color: #426BA5; scrollbar-darkshadow-color: #000000;}



table {width100%; margin0padding0font-sizesmall}
table td {vertical-aligntop;padding0border-width0font-familyTahomaVerdanasans-seriffont-size11px;}

{color#000000; text-decoration: none; font-weight: bold; background-color: transparent;}
a:hover {color#0000C0;}

fieldset {border-color#424242;}

h1 {}
h2 {}
h3 {}
h4 {}
h5 {}
ul margin2pxpadding2px; list-styledecimal insidetext-alignleft;}
li margin-left2px; list-stylesquare insidecolor#525252}


.item {}
.
itemHead {border-bottom1px dotted #000000; padding: 3px; color: #000000;}
.itemInfo {text-alignrightpadding3px;}
.
itemTitle a font-size12pxfont-weightboldfont-variantsmall-capscolor#000000; }
.itemPoster {font-size90%; 
font-familyTahomaVerdanasans-serif;
color#000000;}
.itemPostDate {font-size90%; font-familyTahomaVerdanasans-serif;
color#000000;}
.itemStats {font-size90%; font-style:italic;}
.
itemBody {padding-left5px;
font-familyTahomaVerdanasans-serif;
font-size12px;}
.
itemText {margin-top5pxmargin-bottom5pxline-height1.5em;
font-familyTahomaVerdanasans-serif;
font-size12px;}
.
itemText:first-letter {font-size133%; font-weightboldcolor#FF0000;}
.itemFoot border-top1px dotted #000000; text-align: right; padding: 3px; }
.itemAdminLink {font-size90%;}
.
itemPermaLink {font-size100%; }

th {color#FFFFFF; padding : 2px; vertical-align : middle; font-family: Arial, Helvetica, sans-serif;}

td#headerbanner {width: 100%; background-color: #2F5376; vertical-align: middle; text-align:center;}
td#headerbar {border-bottom: 1px solid #dddddd; }



td#leftcolumn {width: 170px; font-size:10px;}
td#leftcolumn th {color: #000000; }
td#leftcolumn div.blockTitle {border-bottom: 1px solid #000000; padding: 3px; color: #000000; font-weight: bold;
font-size12px;}
td#leftcolumn div.blockContent {border-bottom: 1px dotted #000000; background-color: #ffffff; text-align: left; padding: 3px; line-height: 120%; line-height: 120%; font-size: 10px;}


td#centercolumn {font-size: 12px;}

td#centercolumn th {color: #ffffff; vertical-align: middle;}
td#centerCcolumn {padding: 0px 3px 1px 3px;}
td#centerCcolumn legend.blockTitle {padding: 3px; color: #000000; font-weight: bold; margin-top: 0px; margin-right: 0px;  margin-left: 0px;}
td#centerCcolumn div.blockContent {background-color: #ffffff; padding: 3px; margin-right: 0px;  margin-left: 0px; margin-bottom: 2px; line-height: 120%;}

td#centerLcolumn {width: 50%; padding: 0px 3px 0px 0px;}
td#centerLcolumn legend.blockTitle {padding: 3px; color: #000000; font-weight: bold; margin-top: 0px;}
td#centerLcolumn div.blockContent {background-color: #ffffff; padding: 3px; margin-left: 3px; margin-right: 2px; margin-bottom: 2px; line-height: 120%;}

td#centerRcolumn {width: 50%; padding: 0px 3px 0px 0px;}
td#centerRcolumn legend.blockTitle {padding: 3px; color: #000000; font-weight: bold; margin-top: 0px;}
td#centerRcolumn div.blockContent {background-color: #ffffff; padding: 3px; margin-left: 2px; margin-right: 3px; margin-bottom: 2px; line-height: 120%;}

div#content {text-align: left; padding: 8px;}

td#rightcolumn {width: 170px; font-size:12px;}
td#rightcolumn th {color: #000000; vertical-align: middle;}
td#rightcolumn div.blockTitle {border-bottom: 1px solid #000000; padding: 3px; color: #000000; font-weight: bold;}
td#rightcolumn div.blockContent {border-bottom: 1px dotted #000000; padding: 3px; line-height: 120%; font-size: 10px; font-family: Tahoma, Verdana, sans-serif;}

tr#footerbar {text-align:center;
font-familyTahomaVerdanasans-serif;
font-size10px;
color#c0c0c0;}

td#mainmenu a {display: block; margin: 0; padding: 4px;}
td#mainmenu a:hover {}
td#mainmenu a.menuTop {border-bottom: 1px dotted #000000; font-size: 11px; padding-left: 3px;}
td#mainmenu a.menuMain {font-size: 11px; border-bottom: 1px dotted #000000; padding-left: 3px;}
td#mainmenu a.menuSub {border-bottom: 1px dotted #000000; font-size: 11px; padding-left: 3px; color: #0000C0;}
td#usermenu a {border-bottom: 1px dotted #000000; font-size: 11px; display: block; margin: 0; padding: 4px;}
td#usermenu a:hover {}
td#usermenu a.menuTop {font-size: 11px;}
td#usermenu a.highlight {}



.outer {background-color#000000; width: 100%; color: #000000;}
.head {vertical-aligntopbackground-color#cccccc; padding: 5px; font-weight: bold;}
.even {background-color#EFEDED; padding: 5px;}
.odd {vertical-aligntopbackground-color#ffffff; padding: 5px;}
.foot {background-color#F0F0F0; padding: 5px; font-weight: bold;}
tr.even td {padding2px;}
tr.odd td {padding2px;}

div.errorMsg background-color#FFCCCC; text-align: center; border-top: 1px solid #DDDDFF; border-left: 1px solid #DDDDFF; border-right: 1px solid #AAAAAA; border-bottom: 1px solid #AAAAAA; font-weight: bold; padding: 10px;}
div.confirmMsg background-color#DDFFDF; color: #136C99; text-align: center; border-top: 1px solid #DDDDFF; border-left: 1px solid #DDDDFF; border-right: 1px solid #AAAAAA; border-bottom: 1px solid #AAAAAA; font-weight: bold; padding: 10px;}
div.resultMsg background-color #CCCCCC; color: #333333; text-align: center; border-top: 1px solid silver; border-left: 1px solid silver; font-weight: bold; border-right: 1px solid #666666; border-bottom: 1px solid #666666; padding: 10px;}

div.xoopsCode background#cccccc; border: 1px inset #424242; font-family: "Courier New",Courier,monospace; padding: 0px 6px 6px 6px;}
div.xoopsQuote background-color#cccccc; border: 1px inset #424242; font-family: "Courier New",Courier,monospace; padding: 0px 6px 6px 6px;}


.comTitle {font-weightboldmargin-bottom2px;}
.
comText {padding2px;}
.
comUserStat {vertical-aligntopfont-size10pxcolor#000000; font-weight:bold; border: 1px solid #082941; margin: 2px; padding: 2px;}
.comUserStatCaption {font-weightnormal;}
.
comUserStatus {margin-left2pxmargin-top10pxcolor#ff0000; font-weight:bold; font-size: 10px;}
.comUserRank {margin2px;}
.
comUserRankText {font-size10px;font-weight:bold;}
.
comUserRankImg {border0;}
.
comUserName {}
.
comUserImg {margin2px;}
.
comDate {font-weightnormalfont-styleitalicfont-sizesmaller}
.
comDateCaption {font-weightboldfont-stylenormal;}

2
iHackCode
Re: Question about color of username in forums (may concern CSS file)

its black because of
{color#000000; text-decoration: none; font-weight: bold; background-color: transparent;}
a:hover {color#0000C0;}


maybe edit the template : newbb_thread.html to make the poster.name white. since changing the color in css will change all of the links
CBB / LatestNews / Publisher / XM-Spotlight

(ノ◕ヮ◕)ノ*:・゚✧

3
RSearcy
Re: Question about color of username in forums (may concern CSS file)
  • 2006/5/11 17:20

  • RSearcy

  • Just popping in

  • Posts: 45

  • Since: 2004/3/2 2


I don't see poster.name anywhere in the newbb_thread.html file....

Oh, I may need to mention that I'm not using the actual NewBB software.....I'm using the CBB software.

<a id="forumpost<{$topic_post.post_id}>">a>
<
table class="outer" cellpadding="0" cellspacing="0" border="0" width="100%" align="center" style="border-bottom-width: 0px;">
  <
tr>
       <
th width="20%" align="left">
       <
div class="comUserName"><{$topic_post.poster.link}>div>
       th>

    <
th width="75%" align="left"><div class="comTitle"><{$topic_post.post_title}>div>th>
    <
th align="right"><div class="comTitle" style="float: right;"><a href="<{$xoops_url}>/modules/newbb/viewtopic.php?post_id=<{$topic_post.post_id}>#forumpost<{$topic_post.post_id}>">#<{$topic_post.post_no}>

  tr>

  <
tr>
      <
td width="20%" class="odd" rowspan="2" valign="top">
      <{if 
$topic_post.poster.uid != 0}>
      <
div class="comUserRankText"><{$topic_post.poster.rank.title}><br /><{$topic_post.poster.rank.image}>div>
      <{if 
$topic_post.poster.avatar}>
      <
img class="comUserImg" src="<{$xoops_upload_url}>/<{$topic_post.poster.avatar}>" alt="" />
      <{/if}>
      <
div class="comUserStat"><span class="comUserStatCaption"><{$smarty.const._MD_JOINED}>:span><br /><{$topic_post.poster.regdate}>div>
      <{if 
$topic_post.poster.from}>
      <
div class="comUserStat"><span class="comUserStatCaption"><{$smarty.const._MD_FROM}>span> <{$topic_post.poster.from}>div>
      <{/if}>
    <{if 
$topic_post.poster.groups}>
      <
div class="comUserStat"> <span class="comUserStatCaption"><{$smarty.const._MD_GROUP}>span>
      <{foreach 
item=group from=$topic_post.poster.groups}> <br /><{$group}><{/foreach}>
      div>
    <{/if}>
      <
div class="comUserStat"><span class="comUserStatCaption"><{$smarty.const._MD_POSTS}>:span
      <{if 
$topic_post.poster.posts gt 0}>
      <
a href="<{$xoops_url}>/modules/newbb/viewpost.php?uid=<{$topic_post.poster.uid}>" title="<{$smarty.const._ALL}>" target="_self"><{$topic_post.poster.posts}>a>
      <{else}>
      
0
      
<{/if}>
      div>
      <{if 
$topic_post.poster.level}>
      <
div class="comUserStat"><{$topic_post.poster.level}>div>
      <{/if}>
      <{if 
$topic_post.poster.status}>
      <
div class="comUserStatus"><{$topic_post.poster.status}>div>
      <{/if}>
    <{else}>
       <
div class="comUserRankText"><{$anonymous_prefix}><{$topic_post.poster.name}>div>
    <{/if}>
    td>

    <
td colspan="2" class="odd">
    <
div class="comText"><{$topic_post.post_text}>div>
    <{if 
$topic_post.post_attachment}>
    <
div class="comText"><{$topic_post.post_attachment}>div>
    <{/if}>
    <
br style="clear:both;" />
    <
div style="float: right; padding: 5px; margin-top: 10px;">
    <{if 
$topic_post.poster_ip}>
    
IP: <a href="http://www.whois.sc/<{$topic_post.poster_ip}>" target="_blank"><{$topic_post.poster_ip}>a> |
    <{/if}>
    <{
$smarty.const._MD_POSTEDON}><{$topic_post.post_date}>div>
    <{if 
$topic_post.post_edit}>
    <
br style="clear:both;" />
    <
div style="float: right; padding: 5px; margin-top: 10px;"><small><{$topic_post.post_edit}>small>div>
    <{/if}>
    td>
  tr>

  <
tr>
    <
td colspan="2" class="odd" valign="bottom">
    <{if 
$topic_post.post_signature}>
    <
div class="signature">
    
_________________<br />
    <{
$topic_post.post_signature}>
    div>
    <{/if}>
    td>
  tr>

  <
tr>
    <
td width="20%" class="foot">
    <
a href="<{$xoops_url}>/modules/newbb/action.transfer.php?post_id=<{$topic_post.post_id}>" target="_blank" title="<{$smarty.const._MD_TRANSFER_DESC}>"><img src="<{$xoops_url}>/modules/newbb/images/external.png" alt="<{$smarty.const._MD_TRANSFER_DESC}>" /> <{$smarty.const._MD_TRANSFER}>a>
    td>
    <
td colspan="2" class="foot"><div align="right">
    <{if 
$mode gt 1}>
        <
a href="<{$xoops_url}>/modules/newbb/action.post.php?post_id=<{$topic_post.post_id}>&op=split&mode=1" target="_self" title="<{$smarty.const._MD_SPLIT_ONE}>"><{$smarty.const._MD_SPLIT_ONE}>a> | 
        <
a href="<{$xoops_url}>/modules/newbb/action.post.php?post_id=<{$topic_post.post_id}>&op=split&mode=2" target="_self" title="<{$smarty.const._MD_SPLIT_TREE}>"><{$smarty.const._MD_SPLIT_TREE}>a> | 
        <
a href="<{$xoops_url}>/modules/newbb/action.post.php?post_id=<{$topic_post.post_id}>&op=split&mode=3" target="_self" title="<{$smarty.const._MD_SPLIT_ALL}>"><{$smarty.const._MD_SPLIT_ALL}>a> | 
        <
input type="checkbox" name="post_id[]" id="post_id[<{$topic_post.post_id}>]" value="<{$topic_post.post_id}>" />
    <{else}>
        <{foreach 
item=btn from=$topic_post.thread_buttons}> <a href="<{$btn.link}>&post_id=<{$topic_post.post_id}>" title="<{$btn.name}>"> <{$btn.image}>a> <{/foreach}>
    <{/if}>
    <
a href="#threadtop" title="<{$smarty.const._MD_UP}>"> <{$p_up}>a>
    div>
    td>
  tr>
table>

4
iHackCode
Re: Question about color of username in forums (may concern CSS file)

which version of CBB?
CBB / LatestNews / Publisher / XM-Spotlight

(ノ◕ヮ◕)ノ*:・゚✧

5
RSearcy
Re: Question about color of username in forums (may concern CSS file)
  • 2006/5/11 17:41

  • RSearcy

  • Just popping in

  • Posts: 45

  • Since: 2004/3/2 2


3.01 -- although when their (XoopsForge) CBB downloads are back up again, I'm upgrading to 3.03

6
iHackCode
Re: Question about color of username in forums (may concern CSS file)

ok i think this is the solution.

file. newbb/class/user.php

search for $userinfo["link"]

and add the things in red.
$userinfo["link"] = "/userinfo.php?uid=" . $user->getVar("uid") ."" [color=CC0000] style='color:white'[/color]>".$name."";
CBB / LatestNews / Publisher / XM-Spotlight

(ノ◕ヮ◕)ノ*:・゚✧

7
RSearcy
Re: Question about color of username in forums (may concern CSS file)
  • 2006/5/11 20:11

  • RSearcy

  • Just popping in

  • Posts: 45

  • Since: 2004/3/2 2


Thank you so much! It works!

8
RSearcy
Re: Question about color of username in forums (may concern CSS file)
  • 2006/5/12 20:43

  • RSearcy

  • Just popping in

  • Posts: 45

  • Since: 2004/3/2 2


Well, it did work sorta.

Check this out....http://www.robertsearcy.info/themehelp2.jpg

How do I go about fixing that problem of the quotes not showing up in white text against the black background? Is that in the user.php file? If so, where is it and what do I need to add/edit?

Thanks in advance!

9
synonym
Re: Question about color of username in forums (may concern CSS file)
  • 2006/8/1 10:54

  • synonym

  • Just popping in

  • Posts: 10

  • Since: 2005/7/19


Thank you Bandit-X!! A niggling problem for the past few months. Just came across this thread. Now solved. Genius!

Login

Who's Online

472 user(s) are online (345 user(s) are browsing Support Forums)


Members: 0


Guests: 472


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits