PHP Web Host - Quality Web Hosting For All PHP Applications Sign up for PayPal and start accepting credit card payments instantly
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
vxr
New Member
New Member


Joined: Apr 03, 2006
Posts: 10

PostPosted: Sat Jul 15, 2006 4:22 am Reply with quote Back to top

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 to the forums!
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...?
View user's profile Send private message
kguske
Site Admin


Joined: Jun 04, 2004
Posts: 4887

PostPosted: Sat Jul 15, 2006 5:07 am Reply with quote Back to top

That's because there are no blocks on the left. You'll need to modify the themes not to expect blocks on the left.
View user's profile Send private message
Guardian2003
Site Admin


Joined: Aug 28, 2003
Posts: 4868

PostPosted: Sat Jul 15, 2006 5:12 am Reply with quote Back to top

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.
View user's profile Send private message Send e-mail Visit poster's website
kguske
Site Admin


Joined: Jun 04, 2004
Posts: 4887

PostPosted: Sat Jul 15, 2006 5:18 am Reply with quote Back to top

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.
View user's profile Send private message
vxr
New Member
New Member


Joined: Apr 03, 2006
Posts: 10

PostPosted: Sat Jul 15, 2006 5:30 am Reply with quote Back to top

Grrrr, I was hoping it was going to be something simple! Razz
How did you find the errors? (9 critical, over 340 others)
View user's profile Send private message
Guardian2003
Site Admin


Joined: Aug 28, 2003
Posts: 4868

PostPosted: Sat Jul 15, 2006 5:58 am Reply with quote Back to top

With the Firefow browser just select from the toolbar menu 'View Source' (you might need the TIDY plugin, I cannot remember).
View user's profile Send private message Send e-mail Visit poster's website
Guardian2003
Site Admin


Joined: Aug 28, 2003
Posts: 4868

PostPosted: Sat Jul 15, 2006 6:01 am Reply with quote Back to top

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.
View user's profile Send private message Send e-mail Visit poster's website
persona_non_grata



Joined:
Posts: 0

PostPosted: Sat Jul 15, 2006 9:03 am Reply with quote Back to top

i also see a table set for 98% Laughing
the missing part perhaps?
View user's profile Send private message
vxr
New Member
New Member


Joined: Apr 03, 2006
Posts: 10

PostPosted: Sun Jul 16, 2006 2:16 am Reply with quote Back to top

The table at 98% adjusts the margin on the outside of the left/right blocks...
View user's profile Send private message
persona_non_grata



Joined:
Posts: 0

PostPosted: Sun Jul 16, 2006 4:08 am Reply with quote Back to top

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 .
View user's profile Send private message
vxr
New Member
New Member


Joined: Apr 03, 2006
Posts: 10

PostPosted: Sun Jul 16, 2006 7:24 am Reply with quote Back to top

Looking at the source, I think the problem is the top line containing    from below:

Code:
</td><td>&nbsp;&nbsp;</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?
View user's profile Send private message
persona_non_grata



Joined:
Posts: 0

PostPosted: Sun Jul 16, 2006 7:27 am Reply with quote Back to top

....lol
You think that?

a question......
you see anything weird in the code you posted?
View user's profile Send private message
persona_non_grata



Joined:
Posts: 0

PostPosted: Sun Jul 16, 2006 7:36 am Reply with quote Back to top

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..
View user's profile Send private message
persona_non_grata



Joined:
Posts: 0

PostPosted: Sun Jul 16, 2006 7:44 am Reply with quote Back to top

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...

Image

So that space is reserved even when it shows the forums...
View user's profile Send private message
vxr
New Member
New Member


Joined: Apr 03, 2006
Posts: 10

PostPosted: Sun Jul 16, 2006 11:46 am Reply with quote Back to top

Thanks for your help persona_non_grata...

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 &nbsp;&nbsp;

Image
View user's profile Send private message
persona_non_grata



Joined:
Posts: 0

PostPosted: Sun Jul 16, 2006 1:42 pm Reply with quote Back to top

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>&nbsp;&nbsp;</td><td valign="top" width="160">

to

</td><td></td><td valign="top" width="160">

backup first..
View user's profile Send private message
vxr
New Member
New Member


Joined: Apr 03, 2006
Posts: 10

PostPosted: Sun Jul 16, 2006 3:48 pm Reply with quote Back to top

My discription was a a bit lame, sorry!

Ok, so... removing "&nbsp;&nbsp;" 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...
View user's profile Send private message
vxr
New Member
New Member


Joined: Apr 03, 2006
Posts: 10

PostPosted: Sun Jul 16, 2006 4:23 pm Reply with quote Back to top

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

???
View user's profile Send private message
evaders99
Moderator


Joined: Apr 30, 2004
Posts: 2853

PostPosted: Sun Jul 16, 2006 11:13 pm Reply with quote Back to top

Something like:

if ($module_name != "Forums") {
include('left_center.html');
}
View user's profile Send private message Visit poster's website
vxr
New Member
New Member


Joined: Apr 03, 2006
Posts: 10

PostPosted: Mon Jul 17, 2006 1:16 am Reply with quote Back to top

I tried evaders99 suggestion but it didnt make any difference...

Only registered users can see links on this board!
Get registered or login to the forums!
View user's profile Send private message
Guardian2003
Site Admin


Joined: Aug 28, 2003
Posts: 4868

PostPosted: Mon Jul 17, 2006 1:31 am Reply with quote Back to top

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;
}
View user's profile Send private message Send e-mail Visit poster's website
vxr
New Member
New Member


Joined: Apr 03, 2006
Posts: 10

PostPosted: Mon Jul 17, 2006 1:58 am Reply with quote Back to top

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.
View user's profile Send private message
Guardian2003
Site Admin


Joined: Aug 28, 2003
Posts: 4868

PostPosted: Mon Jul 17, 2006 2:30 am Reply with quote Back to top

Oops, try adding another } after that last one on a new line
View user's profile Send private message Send e-mail Visit poster's website
vxr
New Member
New Member


Joined: Apr 03, 2006
Posts: 10

PostPosted: Mon Jul 17, 2006 2:41 am Reply with quote Back to top

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...
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2008 by Raven
Proud to be listed at Lobo Links Web Directory

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::

:: fisubice Theme Recoded To 100% W3C CSS & HTML 4.01 Transitional Compliance by Raven and 64bitguy ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum