| Author |
Message |
tonydg Hangin' Around

Joined: Jul 16, 2003 Posts: 26
|
Posted:
Mon Aug 11, 2003 9:09 pm |
|
Hi Raven,
Do you know if the Nukecops site is going to be down long? The only reason I'm trying to get you here is that you answered part of this question for me today at Nukecops- I'm on deadline to launch my site - and now I went back to copy and implement the code you gave me in their forums and Nukecops is down!!!!
Trying to get image in as background for module
Ripped apart Metechnik's theme and made a blocks.html to give me more control artistically.
| Code: | <table border="1" cellpadding="0" cellspacing="0" bgcolor="\" width="165"><tr><td>
<table width="100%" border="1" cellpadding="0" cellspacing="0">
<tr><td><img src="themes/Mtechnik_Ultra/images/bb.png" width="100%" height="15"></td></tr>
<table border="1" cellpadding="3" cellspacing="1" bgcolor="\" width="100%">
<tr><td bgcolor="#FFFCD9" align="center" bordercolor="#000000"> <font class="content"><b>$title</b></font></td></tr>
<tr><td bgcolor="81CFFE" bordercolor="#ccdfcdf"><font class="content">$content</font></td></tr>
</table></td></tr></table><br><br>
<br>
|
1) I'm trying to replace the bg color with an image in lines 5 and 6 and can't access teh code you sent me this morning in Nukecops forums.
2) I f you look at beta site
you can see ther is a black cell between the header gradient image and the title cell - I don't know how I inadvertently got that when i converted the that portion of the theme.php file into my blocks.html file coded above.
Sorry to bother you with a PM here but I'm now 15 hours past the time for the site llaunch and I'm sesperate. As usual you are the best.
Thanks
Tony DG
PS - why is it that you have the right answers when no one else d |
|
|
|
 |
Raven Site Admin/Owner

Joined: Aug 27, 2002 Posts: 16987 Location: Kansas
|
Posted:
Mon Aug 11, 2003 9:26 pm |
|
I can't remember exactly the code I told you, but I probably told you to use either a SPAN or DIV tag, with a style property, something like | Code: | | <div style="background-image: url(someimage.gif);">blah blah</div> |
Does that sound familiar? |
|
|
|
 |
tonydg Hangin' Around

Joined: Jul 16, 2003 Posts: 26
|
Posted:
Mon Aug 11, 2003 9:38 pm |
|
Raven sort of : you did tell me there was two ways to do it :
Do I replace
| Code: | | <tr><td bgcolor="#FFFCD9" align="center" bordercolor="#000000"> <font class="content"><b>$title</b></font></td></tr> |
with
| Code: | | <tr><td <div style="background-image: url(themes/Mtechnik_Ultara/images/bb.gif);"</div>bgcolor="#FFFCD9" align="center" bordercolor="#000000"> <font class="content"><b>$title</b></font></td></tr> |
where themes..bah...blah.gif is my image location?Thanks
TonyDg |
|
|
|
 |
Raven Site Admin/Owner

Joined: Aug 27, 2002 Posts: 16987 Location: Kansas
|
Posted:
Mon Aug 11, 2003 9:42 pm |
|
Check your td tags. You need to close the first one before the div tag. |
|
|
|
 |
tonydg Hangin' Around

Joined: Jul 16, 2003 Posts: 26
|
Posted:
Mon Aug 11, 2003 10:03 pm |
|
Raven,
Not quite working - I must have coded this wrong:
| Code: | <table border="1" cellpadding="0" cellspacing="0" bgcolor="\" width="165"><tr><td>
<table width="100%" border="1" cellpadding="0" cellspacing="0">
<tr><td><img src="themes/Mtechnik_Ultra/images/bb.png" width="100%" height="15"></td></tr>
<table border="1" cellpadding="0" cellspacing="1" bgcolor="\" width="100%">
<tr><td><div style="background-image: url(themes/XtremeDream/images/bgbluetexture.gif);"</div><font class="content"><b>$title</b></font></td></tr>
<tr><td bgcolor="81CFFE" bordercolor="#ccdfcdf"><font class="content">$content</font></td></tr>
</table></td></tr></table><br><br>
<br>
|
Cell is now all black and not title:
Tnanks
TonyDG |
|
|
|
 |
Raven Site Admin/Owner

Joined: Aug 27, 2002 Posts: 16987 Location: Kansas
|
Posted:
Mon Aug 11, 2003 10:09 pm |
|
You have a syntax error and also I think you misplaced the tags. Try this | Code: | | <td><div style="background-image: url(themes/XtremeDream/images/bgbluetexture.gif);"><font class="content"><b>$title</b></font></div></td> |
If not, try this | Code: | | <td><font class="content"><div style="background-image: url(themes/XtremeDream/images/bgbluetexture.gif);"><b>$title</b></div></font> |
I'm going off line until morning. |
|
|
|
 |
tonydg Hangin' Around

Joined: Jul 16, 2003 Posts: 26
|
Posted:
Mon Aug 11, 2003 10:36 pm |
|
Raven -
Almost works perfect - if you look at site
You can see images work great - however if yo ulook at teh "Site Info" and Survey blocks - they now have a black area at the bottom that wasn't there before lst changes.
code im using is hopefully revise for last syntax error
| Code: | <table border="1" cellpadding="0" cellspacing="0" bgcolor="\" width="165"><tr><td>
<table width="100%" border="1" cellpadding="0" cellspacing="0">
<tr><td><img src="themes/Mtechnik_Ultra/images/bb.png" width="100%" height="15"></td></tr>
<table border="1" cellpadding="0" cellspacing="1" bgcolor="\" width="100%">
<tr><td> <div style="background-image: url(themes/XtremeDream/images/bgbluetexture.gif);"align="center"<font class="content"><b>$title</b></div></font></td></tr>
<tr><td> <div style="background-image: url(themes/XtremeDream/images/psbg2.gif);"bordercolor="#ccdfcdf"><font class="content">$content</div></font></td></tr>
</table></td></tr></table><br><br>
<br>
|
thanks
TonyDg |
|
|
|
 |
Raven Site Admin/Owner

Joined: Aug 27, 2002 Posts: 16987 Location: Kansas
|
Posted:
Tue Aug 12, 2003 7:35 am |
|
|
|
 |
tonydg Hangin' Around

Joined: Jul 16, 2003 Posts: 26
|
Posted:
Tue Aug 12, 2003 11:23 am |
|
Raven,
Correct URL is
Sorry after ten straight hours of coding I forget my own name!
Anyway - when you put use a color instead of a image - the color goes where the black is now visible in the cell. Thought it might be a tiling problem with image size - but site map block is twice as long and image goes in no problem. Also tried three other images and all exhibit samd - black hole- in User Info and Survey blocks.
Moved launch up bak till midnight tonight to fix layout then we can finish reloading the content!
Thanks once again - you are the patron saint of phpnewbies!
Tony DG |
|
|
|
 |
tonydg Hangin' Around

Joined: Jul 16, 2003 Posts: 26
|
Posted:
Tue Aug 12, 2003 11:35 am |
|
Raven,
As an afterthought I did hack your site-user-info block, to take out th ecounters at the bottom - but I never touched the Survey block that came with php 6.5.
Anyway here is the code for the hack I made - I don't think the hack is the problem thous as if you use a color and not an image the black hole is filled with the right color.
Regards
Tony
[Edited by Admin - Thanks Tony, I grabbed the code, but prefer to not have it for the public as I then am expected to support it ] |
|
|
|
 |
tonydg Hangin' Around

Joined: Jul 16, 2003 Posts: 26
|
Posted:
Tue Aug 12, 2003 3:04 pm |
|
Raven,
Any thoughts as to what to do to fix the black hole problem I referred to in my earlier post.
URL is up and working. (Was offline for about 30 mins a litle while ago.)
I'm launch minus seven hours and at a total loss.
thanks Tony |
|
|
|
 |
Raven Site Admin/Owner

Joined: Aug 27, 2002 Posts: 16987 Location: Kansas
|
Posted:
Tue Aug 12, 2003 8:19 pm |
|
Just a thought. I notice that both the UserInfo and Survey blocks use the FORM tags. Are the other blocks where you do not have a problem using them? |
|
|
|
 |
tonydg Hangin' Around

Joined: Jul 16, 2003 Posts: 26
|
Posted:
Tue Aug 12, 2003 10:18 pm |
|
I'm new so ... do you mean code like
| Code: | | $boxContent .= "<form action=\"modules.php?name=$module_name\" method=\"post\">"; |
If so you are correct the blocks that do not have FORM tags do not have the problem?
What should I do?
Thanks
Tony |
|
|
|
 |
Raven Site Admin/Owner

Joined: Aug 27, 2002 Posts: 16987 Location: Kansas
|
Posted:
Wed Aug 13, 2003 5:00 pm |
|
I fixed this in the actual blocks by moving the form tags around. |
|
|
|
 |
tonydg Hangin' Around

Joined: Jul 16, 2003 Posts: 26
|
Posted:
Wed Aug 13, 2003 10:21 pm |
|
Raven,
I the problem is resolved in IE but checked in other browsers,
Camino, Mozilla, Netscape, and Safari ---problem still there in other browsers.
Weirrd. What now.
You site admin is the same.
Changed PMing you the new infor.
Thanks
Couldn't have gone live w/o you. You're the best.
TonyDg
Site is now live |
|
|
|
 |
Raven Site Admin/Owner

Joined: Aug 27, 2002 Posts: 16987 Location: Kansas
|
Posted:
Thu Aug 14, 2003 6:03 am |
|
In your PM you clarify and say the problem is only with the Survey block under Netscape. What version are you using? It is NOT there under NN7.02. I do not use NN at all, other than for testing. I made a change in the block. See if that helps. |
|
|
|
 |
tonydg Hangin' Around

Joined: Jul 16, 2003 Posts: 26
|
Posted:
Fri Aug 15, 2003 9:07 am |
|
Figured out what happened.
We got spammed as you made last set of changes.
They totally filled up teh hard drive with e-mail. Locked machine so changes you made in FTP didn't get written to drive.
I looked at how you fixed code on the beta site and made teh changes on teh live site and it worked perfectly.
Thanks
TonyDg |
|
|
|
 |
|
|
|
|