Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 7.7
Author Message
vxr
New Member
New Member



Joined: Apr 03, 2006
Posts: 10

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

Hi I hope someone can help cause this is doing my head in!

The forum within on my phpnuke site 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: 6433

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

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



Joined: Aug 28, 2003
Posts: 6799
Location: Ha Noi, Viet Nam

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

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
kguske







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

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







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

Grrrr, I was hoping it was going to be something simple! Razz
How did you find the errors? (9 critical, over 340 others)
 
Guardian2003







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

With the Firefow browser just select from the toolbar menu 'View Source' (you might need the TIDY plugin, I cannot remember).
 
Guardian2003







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

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.
 
hitwalker
Sells PC To Pay For Divorce



Joined:
Posts: 5661

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

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







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

The table at 98% adjusts the margin on the outside of the left/right blocks...
 
hitwalker







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

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







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

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?
 
hitwalker







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

....lol
You think that?

a question......
you see anything weird in the code you posted?
 
hitwalker







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

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







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

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







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

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

Image
 
hitwalker







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

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







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

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







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

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

???
 
evaders99
Former Moderator in Good Standing



Joined: Apr 30, 2004
Posts: 3221

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

Something like:

if ($module_name != "Forums") {
include('left_center.html');
}

_________________
- Star Wars Rebellion Network -

Need help? Nuke Patched Core, Coding Services, Webmaster Services 
View user's profile Send private message Visit poster's website
vxr







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

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

here's the theme.php
 
Guardian2003







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

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;
}
 
vxr







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

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







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

Oops, try adding another } after that last one on a new line
 
vxr







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

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...
 
Display posts from previous:       
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 7.7

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
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©