Author |
Message |
vxr
New Member
![New Member New Member](modules/Forums/images/ranks/1star.gif)
![](modules/Forums/images/avatars/gallery/blank.gif)
Joined: Apr 03, 2006
Posts: 10
|
Posted:
Sat Jul 15, 2006 4:22 am |
|
Hi I hope someone can help cause this is doing my head in!
The forum within on Only registered users can see links on this board! Get registered or login! is not alligned properly. If you have a look at the left hand side of the forum and compare it to the top banner, they do not line up. The right hand side looks fine.
I have tried a different theme / template to rule that out but the same thing happens.
Any ideas...? |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
kguske
Site Admin
![](modules/Forums/images/avatars/41f0b40a419280935f3a0.gif)
Joined: Jun 04, 2004
Posts: 6437
|
Posted:
Sat Jul 15, 2006 5:07 am |
|
That's because there are no blocks on the left. You'll need to modify the themes not to expect blocks on the left. |
_________________ I search, therefore I exist...
Only registered users can see links on this board! Get registered or login! |
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Guardian2003
Site Admin
![](modules/Forums/images/avatars/125904890252d880f79f312.png)
Joined: Aug 28, 2003
Posts: 6799
Location: Ha Noi, Viet Nam
|
Posted:
Sat Jul 15, 2006 5:12 am |
|
Checking the site with Firefox, I see numerous errors (9 critical, over 340 others).
The most likely ones you might want to check are a closing center tag (with no opening tag) a closing TD tag (with no opening tag), a missing opening TR tag, a missing closing SPAN tag etc.
You will need to check all your theme files, nuke header.php, the nuker footer.php and mainfile.php are the most likely places you have added code which needs to be corrected. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
kguske
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sat Jul 15, 2006 5:18 am |
|
I think a lot of the errors are caused by the missing left blocks. A quick way to test that is activate a left block and see if the errors go away. Either way, most Nuke themes (and Nuke itself) aren't designed to have no left blocks. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
vxr
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sat Jul 15, 2006 5:30 am |
|
Grrrr, I was hoping it was going to be something simple!
How did you find the errors? (9 critical, over 340 others) |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Guardian2003
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sat Jul 15, 2006 5:58 am |
|
With the Firefow browser just select from the toolbar menu 'View Source' (you might need the TIDY plugin, I cannot remember). |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Guardian2003
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sat Jul 15, 2006 6:01 am |
|
You'll still need to check into those errors but it would be worth trying what kguske suggested and try a theme that allows left blocks to see if there is any difference. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
hitwalker
Sells PC To Pay For Divorce
![](modules/Forums/images/avatars/gallery/blank.gif)
Joined:
Posts: 5661
|
Posted:
Sat Jul 15, 2006 9:03 am |
|
i also see a table set for 98%
the missing part perhaps? |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
vxr
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sun Jul 16, 2006 2:16 am |
|
The table at 98% adjusts the margin on the outside of the left/right blocks... |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
hitwalker
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sun Jul 16, 2006 4:08 am |
|
i see ,but i dont think you can change that...
that is cellspacing and cellpadding and sets the distance between the blocks and center content.
if you change that then it will effect the other stuff as well.
best solution is to take out right blocks . |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
vxr
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sun Jul 16, 2006 7:24 am |
|
Looking at the source, I think the problem is the top line containing from below:
Code:</td><td> </td><td valign="top" width="100%">
<table width="100%" border="0" cellspacing="1" cellpadding="0" bgcolor="#002948"><tr><td>
<table width="100%" border="0" cellspacing="1" cellpadding="8" bgcolor="#EBF5FF"><tr><td>
<center><span class="title"><strong>Breastfeeding Awareness - Support, Guidance & Resources For Breastfeeding Mums: Forums</strong></span></center></td></tr></table></td></tr></table>
<br><table width="100%" border="0" cellspacing="1" cellpadding="0" bgcolor="#002948"><tr><td>
<table width="100%" border="0" cellspacing="1" cellpadding="8" bgcolor="#EBF5FF"><tr><td>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html dir="ltr">
<head>
|
Does anyone know what file I would been to modify to remove the two spaces? |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
hitwalker
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sun Jul 16, 2006 7:27 am |
|
....lol
You think that?
a question......
you see anything weird in the code you posted? |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
hitwalker
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sun Jul 16, 2006 7:36 am |
|
but never mind that.....
like i said....you cant change that....
just disable the right blocks...
hats better.....
if your gonna mess around with the design it will damage the layout.. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
hitwalker
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sun Jul 16, 2006 7:44 am |
|
Look at this screenshot....
I marked the space im talking about...
thats set in your theme...
for keeping a space between the blocks and center content...
So that space is reserved even when it shows the forums... |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
vxr
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sun Jul 16, 2006 11:46 am |
|
Thanks for your help hitwalker...
Are we talking about the same "space"???
In the screenshot below, the red arrow is the gap I am trying to remove. If you look at the green arrow on the right, there is no gap. This is the same with both left & right blocks disabled... If you drag your mouse over the "space", there appears to be two spaces, ie
![Image Image](http://www.breastfeedingawareness.co.uk/screendump.jpg) |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
hitwalker
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sun Jul 16, 2006 1:42 pm |
|
hi, well you didnt explained that very well...lol
i thought you were talking about the left space as shown on the screenshot..
but this could be easy...
first backup your files and edit the file center_right.html OR left_center.html and change from this.....
</td><td> </td><td valign="top" width="160">
to
</td><td></td><td valign="top" width="160">
backup first.. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
vxr
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sun Jul 16, 2006 3:48 pm |
|
My discription was a a bit lame, sorry!
Ok, so... removing " " from left_center.html does correct the problem when viewing the forum, however, when viewing the rest of the site and other modules, the left hand side of the center block overlaps the left blocks.
So somewhere, the file(s) that display the forum is calling left_center.html. If I knew what that was, I could remove the reference to it and that should sort the problem... |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
vxr
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sun Jul 16, 2006 4:23 pm |
|
In addition, it looks like theme.php is what is calling left_center.html. Is there an "if" statement or similar i can use to say:
If forum, do not include left_center.html
??? |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
evaders99
Former Moderator in Good Standing
![](modules/Forums/images/avatars/803d73f6452557b947721.jpg)
Joined: Apr 30, 2004
Posts: 3221
|
Posted:
Sun Jul 16, 2006 11:13 pm |
|
Something like:
if ($module_name != "Forums") {
include('left_center.html');
} |
_________________ - Only registered users can see links on this board! Get registered or login! -
Need help? Only registered users can see links on this board! Get registered or login! |
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
vxr
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Mon Jul 17, 2006 1:16 am |
|
I tried evaders99 suggestion but it didnt make any difference...
Only registered users can see links on this board! Get registered or login! |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Guardian2003
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Mon Jul 17, 2006 1:31 am |
|
Code:if ($name=="Forums"){}
else {
//if ($name=="Gallery"){}
//else
blocks(left);
}
if ($name !='Forums') {
$tmpl_file = "themes/Freefun/left_center.html";
$thefile = implode("", file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = "\$r_file=\"".$thefile."\";";
eval($thefile);
print $r_file;
}
|
|
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
vxr
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Mon Jul 17, 2006 1:58 am |
|
The above code throws out the error: "Parse error: parse error, unexpected $ in /usr/local/home/httpd/vhtdocs/breastfeedingawareness.co.uk/html/themes/Freefun/theme.php on line 197"
Checked theme.php and there are only 196 lines? Checked there was no space on 197. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Guardian2003
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Mon Jul 17, 2006 2:30 am |
|
Oops, try adding another } after that last one on a new line |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
vxr
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Mon Jul 17, 2006 2:41 am |
|
Ok, thats alligned the left hand side but left a larger gap on the right hand side of the forum! We're getting there! Thanks for your help... |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
|