1
eAthletes
Attachment Background Problem
  • 2005/5/18 1:06

  • eAthletes

  • Just popping in

  • Posts: 5

  • Since: 2005/5/18


Hi, I've used XOOPS for a while and LOVE IT!! I made my own theme and found lots of useful pointers here that guided me along my way. The one problem that has now become totally annoying, since I'm editing my theme again 3 months later, is my attachment background in Newbb!

Shown here

I've looked/searched everywhere on this site for answers looks like I'm the only Idiot with this problem.

I've edited my style.css for my theme COUNTLESS times and found that .outer or something else can't remember off the top of my head (it was a 3 months ago since I've tried to work on this problem) will change the color but will also change something else and thats not cool.

I've looked through newbb.css and tried editing some stuff in there with no success. I've also searched all the .html files looking for the class and sector the attached file would belong too.. NOTHING. Below is part of the source from the page above.. Page source comes from Firefox and seems to be the same with IE.
....<div class="comAttach"><br/><br/><table width="80%" bordercolor="#000000" border="1" cellspacing="1"><tr><td colspan="3" class="head"><b>Attach fileb>td>tr><tr class="even"><td width="50%"><b>Attached file:b>td><td><b>Sizeb>td><td><b>Hitsb>td>tr><tr bgcolor="#ffffff"><td><a href=" .....


Point of interest is
<tr bgcolor="#ffffff">

I'm almost postive this is why the background can't be edited through .css AND IS ALWAYS WHITE :|

Does anyone have a clue where I may find this code or how to fix my attachment problem?

Thanks in advance for the help!

e-Athletes.net
eAdmin

2
Bassman
Re: Attachment Background Problem
  • 2005/5/18 1:17

  • Bassman

  • Friend of XOOPS

  • Posts: 1272

  • Since: 2003/5/23


I'm guessing that there's a template for Newbb2 which has that as an inline style....which one i'm not sure, as I don't use Newbb2. You'll have to go through the templates for newbb2 to find it.

3
eAthletes
Re: Attachment Background Problem
  • 2005/5/18 1:20

  • eAthletes

  • Just popping in

  • Posts: 5

  • Since: 2005/5/18


Those are the .html files that I have been through before the ones in /newbb/templates/

I'll check them again...
thx

4
eAthletes
Re: Attachment Background Problem
  • 2005/5/19 6:19

  • eAthletes

  • Just popping in

  • Posts: 5

  • Since: 2005/5/18


Still can't find the code I'm looking for...
Anyone got any ideas?

5
Bassman
Re: Attachment Background Problem
  • 2005/5/19 6:47

  • Bassman

  • Friend of XOOPS

  • Posts: 1272

  • Since: 2003/5/23


OK, i used the Mozilla extension to check your CSS: Have a look at the following -

Quote:

CSS - http://www.e-athletes.net/modules/newbb/viewtopic.php?topic_id=179&start=0#forumpost969
http://www.e-athletes.net/modules/newbb/viewtopic.php?topic_id=179&start=0#forumpost969
http://www.e-athletes.net/xoops.css

img {border: 0;}

#xoopsHiddenText {visibility: hidden; color: #000000; font-weight: normal; font-style: normal; text-decoration: none;}

.pagneutral {font-size: 10px; width: 16px; height: 19px;text-align: center; background-image: url(./images/pagneutral.gif);}
.pagact {font-size: 10px; width: 16px; height: 19px;text-align: center; background-image: url(./images/pagact.gif);}
.paginact {font-size: 10px; width: 16px; height: 19px;text-align: center; background-image: url(./images/paginact.gif);}


#mainmenu a {text-align:left; display: block; margin: 0; padding: 4px;}
#mainmenu a.menuTop {padding-left: 3px;}
#mainmenu a.menuMain {padding-left: 3px;}
#mainmenu a.menuSub {padding-left: 9px;}

#usermenu a {text-align:left; display: block; margin: 0; padding: 4px;}
#usermenu a.menuTop {}
#usermenu a.highlight {color: #0000ff; background-color: #fcc;}

http://www.e-athletes.net/themes/realetheme/style.css

html {
scrollbar-face-color: #10314A;
scrollbar-highlight-color: #226C9B;
scrollbar-shadow-color: #081621;
scrollbar-3dlight-color: #000000;
scrollbar-arrow-color: #226C9B;
scrollbar-track-color: #000000;
scrollbar-darkshadow-color: #000000;
}

body {
color: #ffffff;
background: Black;
background-image: url(images/pc_bg.gif);
margin: 6px;
font-family: Verdana,Arial,Helvetica,sans-serif;
font-size: 11px;
padding: 0;
}

td.topnav{
font-size:10px;
text-align: center;
vertical-align: middle;
background: url(images/pc_bg.gif) repeat-x;
white-space:nowrap;border: 0px solid White;border-width: 1px 0px 1px 0px;
height:25px;
}

a:link,a:active,a:visited {
color: White;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 11px;
text-decoration: none;
background-color: transparent;
font-sytle: normal;
}
a:hover {
text-decoration: underline;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 11px; color: Red;
font-style: normal;
}

.bg{
background: #101349;
border: 1px solid Black;
font-family: Verdana, Arial, Helvetica, sans-serif;
margin: 5;
padding: 5;
}

.bg1{
background-image: url(images/pc_bg.gif);
color: 11px;
font-family: Verdana, Arial, Helvetica, sans-serif;
}

.outline{}
table {
width: 100%;
margin: 5;
padding: 5;
font-size: small;
}
table td {
padding: 0px;
border-width: 0;
vertical-align: top;
font-family: Verdana, Arial, Helvetica, sans-serif;
}
td {
font-family: Verdana, Arial, Helvetica, sans-serif;
color: White;
font-size: 11px;border-top-width : 1px;
border-right-width : 1px;
border-bottom-width : 1px;
border-left-width : 1px;
}

td.header {
padding:10px;
height:90px;
}

input {
background-color : #ffffff;
color : #000000;
font-size: 11px; font-family: Verdana, Arial, Helvetica, sans-serif;
}

textarea {
color : #000000;
font: normal 11px Verdana, Arial, Helvetica, sans-serif;
border: 1px solid #ffffff;
}
select {
color : #000000;
font: normal 11px Verdana, Arial, Helvetica, sans-serif;
border-color : #ffffff;
}
img {
border: 0;
}
ul {
margin: 2px;
padding: 2px;
list-style: decimal inside;
text-align: left;
}
li {
margin-left: 2px;
list-style: disc inside;
color: White;
}

.odd {
background-color: #10314A;
text-align: left;

}
.outer {
background-color: #10314A;
text-align:left;
border: 3px double White;
}
.even {
background-color: #0A212F;

}
th {
background-color: #2F5376;
color: #ffffff;
text-align: left;
padding: 2px;
}


.head {
font-size: 11px;
font-weight : bold;
height: 25px;
vertical-align: middle;
}
.foot {
background-image: url(images/pc_bg.gif);
padding: 3px;
}

.comTitle {
font-size: 11px;
font-weight : bold;
height: 23px;
text-align: left;
padding-top: 7px;
padding-left: 10px;

}
.comText {
padding: 2px;
text-align: left;
}
.comAttach {
padding: 2px;
text-align: left;
}
.comUserStat {
font-size: 10px;
color: #2F5376;
font-weight:bold;
border: 1px solid Black;
background-image: url(images/pc_bg.gif);
margin: 2px; padding: 2px;
}
.comUserStatCaption {
font-weight: normal;
}
.comUserStatus {
margin-left: 2px;
margin-top: 10px;
color: #ff0000;
font-weight:bold;
font-size: 10px;
}
.comUserRank {
margin: 2px;
}
.comUserRankText {
font-size: 10px;
font-weight:bold;
}
.comUserRankImg {
border: 0;
}
.comUserName {}
.comUserImg {
margin: 2px;
}
.comDate {
font-weight: normal;
font-style: italic;
font-size: smaller;
text-align: right;
}
.comDateCaption {
font-weight: bold;
font-style: normal;
text-align: right;
}

div.xoopsCode {
background: #ffffff;
border: 1px inset #000080;
color:#000000;
font: normal 11px Verdana, Arial, Helvetica, sans-serif;
padding: 0px 6px 6px 6px;
}

div.xoopsQuote {
background: #000000;
border: 1px inset #000080;
color:#ffffff;
font: normal 11px Verdana, Arial, Helvetica, sans-serif;
padding: 0px 6px 6px 6px;
}


.item {}
.itemHead {
color: #ffffff;
font-size: 11px;
font-weight : bold;
height: 20px;
padding-left: 7px;
border:double 3px #D9E2EC;
}
.itemInfo {
text-align: right;
padding: 3px;
background-color: #53514E;
border-left: double 3px #d9e2ec;
border-right:double 3px #d9e2ec;
}
.itemTitle a {
font-size: 130%;
font-size: 11px;
font-weight: bold;
font-variant: small-caps;
color: #ffffff;
background-color: transparent;
}
.itemPoster {
color: #ffffff;
font-size: 90%;
font-style: italic;
}

.itemPostDate {
font-size: 90%;
font-style: italic;
}
.itemStats {
font-size: 90%;
font-style: italic;
}
.itemBody {
font-size: 12px
padding-left: 5px;
text-align: left;
border:double 3px #ffffff
}
.itemText {
margin-top: 5px;
margin-bottom: 5px;
line-height: 1.5em;
}

.itemFoot {
text-align: right;
padding: 3px;
background-color: #53514E;
border-left: double 3px #d9e2ec;
border-right:double 3px #d9e2ec;
border-bottom:double 3px #d9e2ec;
}
.itemAdminLink {
font-size: 90%;
}
.itemPermaLink {
font-size: 90%;
}

.blockTitle {
color: #deeef3;
font-size: 13px;
font-weight: bold;
text-align: center;
background-image: url(images/cellpic3.gif);
border: 1px solid Black;
height: 28px;
vertical-align: middle;
}

.blockTitle2 {
color: #000000;
font-weight: bold;
font-size: 12px;
text-align: center;
background-image: url(images/cellpic1.gif);
border: solid 1px #000000;
height: 28px;
vertical-align: middle;
}

.blockContent {
background-image: url(images/pc_bg.gif);
padding: 2px;
border-left: solid 1px #000000;
border-right: solid 1px #000000;
border-bottom: solid 1px #000000;
line-height:133%;
}

http://www.e-athletes.net/modules/newbb/newbb.css

/* -- style.css -- */
div.karma
{
background-color: transparent;
text-align: center;
border-top: 1px solid #DDDDFF;
border-left: 1px solid #DDDDFF;
border-right: 1px solid #AAAAAA;
border-bottom: 1px solid #AAAAAA;
padding: 10px;
}

span.digest
{
}

body {
behavior:url("include/newbb.htc");
}
img {
behavior:url("include/pngbehavior.htc");
}

li.newbb_folder,.newbb_link {
display:block;
margin:0;
padding:0;
border:0;
}

ul.newbb_level1, ul.newbb_level2, ul.newbb_level3 {
display:block;
margin:0;
padding:0;
border:0;
width:160px;
border:0px solid #9d9da1;
background:#10314A;
list-style:none;
}

li.newbb_folder {
position:relative;
padding:0;
padding-left:10px;
background:#10314A;
z-index:9;
}

li.newbb {
background-color:#10314A;
color: White;
list-style:none;
}

li.newbb_folder:hover { z-index:10;}
li.newbb_folder ul {
position:absolute;
display:none;
left:-56px; /* IE */
top:13px;
}
li.newbb_folder>ul { left:-1px; top: 16px}

ul.newbb_level1 {z-index:1} li.newbb_folder:hover ul.newbb_level2,
ul.newbb_level2 li.newbb_folder:hover ul.newbb_level3 {
display:block;
}

.newbb_link {
border: 0px;
padding: 2px;
text-decoration: none;
color: #ffffff
!important;
font-weight: bold;
width: 100%; /* IE */
text-align: left;
}
li>.newbb_link { width:auto; }

li link.newbb_submenu {
background-color:#10314A;

}

.newbb_link:hover {
border:0px;
color: Red
!important;
}
li.newbb_folder .newbb_link:hover {
}

div.signature {

bottom: 10px;
}


If it ain't in there, then it MUST be in a template somewhere.

6
Bassman
Re: Attachment Background Problem
  • 2005/5/19 6:51

  • Bassman

  • Friend of XOOPS

  • Posts: 1272

  • Since: 2003/5/23


You could try adding this to your style sheet:

[quote]
.comAttach {
padding: 2px;
text-align: left;
background-color:#whatever
}

7
eAthletes
Re: Attachment Background Problem
  • 2005/5/20 5:10

  • eAthletes

  • Just popping in

  • Posts: 5

  • Since: 2005/5/18


Thx for the help, but I double checked my .css's and still can't find anything there.

Change comAttach and it changed the everything but the actually background the attachment is in.

:(

/cry
/tear

8
eAthletes
Re: Attachment Background Problem
  • 2005/5/20 5:15

  • eAthletes

  • Just popping in

  • Posts: 5

  • Since: 2005/5/18


OMG OMG OMG!!! I FOUND IT!!!

its in /newbb/class/post.php

$post_attachment .= '';
                    
$post_attachment .= '_MD_ATTACHMENT ''
;
                    
$post_attachment .= '_MD_THIS_FILE_WAS_ATTACHED_TO_THIS_POST '_MD_FILESIZE '_MD_HITS '';
                    
$post_attachment .= 'XOOPS_URL '/modules/' $xoopsModule->dirname() . '/dl_attachment.php?attachid=' $key '&post_id=' $this->getVar('post_id') . '"> $icon_filetype '" alt="' $filetype '" border="0"> ' $att['name_display'] . '';
                    
$post_attachment .= ' ' $file_size '';
                    
$post_attachment .= ' ' $att['num_download'] . '';
                    
$post_attachment .= ''; ......


I changed
<tr bgcolor="#ffffff">
to
<tr bgcolor="#10314A">


AND IT WORKED!!!

Thx for your help anyways!!

Problem solved this topic can be closed! or w/e

9
Bassman
Re: Attachment Background Problem
  • 2005/5/20 5:37

  • Bassman

  • Friend of XOOPS

  • Posts: 1272

  • Since: 2003/5/23


Awesome. It just had to be in there somewhere :)

Login

Who's Online

192 user(s) are online (109 user(s) are browsing Support Forums)


Members: 0


Guests: 192


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