Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Themes
Author Message
Doulos
Life Cycles Becoming CPU Cycles



Joined: Jun 06, 2005
Posts: 732

PostPosted: Mon Aug 11, 2008 1:12 am Reply with quote

I have modified fisubice to a fixed. I also have disabled the left and right blocks on forums. There is a problem when I try to center the forums to line it up with my header (which is centered), I modified left-center.txt like such
Code:
</td><td valign="top" align="center" width="100%">


Not only does are the forums centered, but everything within the forums is centered also - all titles, posts, everything.

Is there a way to center the forums without causing everything within them to be centered also?
 
View user's profile Send private message
wHiTeHaT
Life Cycles Becoming CPU Cycles



Joined: Jul 18, 2004
Posts: 579

PostPosted: Mon Aug 11, 2008 3:01 pm Reply with quote

if i'm correct it isnt needed at all?
Did you totaly took out left/right blocks..or did you told the theme to just not show blocks?
If step 1 you might get problems to have it centered.
If step 2....original theme already is centered, and it isnt needed.


Last edited by wHiTeHaT on Tue Aug 12, 2008 12:30 pm; edited 2 times in total 
View user's profile Send private message Send e-mail
wHiTeHaT







PostPosted: Mon Aug 11, 2008 3:06 pm Reply with quote

Doulos wrote:
I have modified fisubice to a fixed
Embarassed
Sorry,i missed that 1.
But even then , you forum basicly should show in the content area and left and right column still should load columns area.
What might also could bug you is that the forum itself alreadyhas blocks right disabled....if i'm correct.
So if i'm right and you keep your basic theme ( your fixed one for all the restof the site and let the forums also usethe same theme setting) then you only need to activate your right blocks for the forum.
 
warren-the-ape
Worker
Worker



Joined: Nov 19, 2007
Posts: 196
Location: Netherlands

PostPosted: Tue Aug 12, 2008 1:43 am Reply with quote

Isn't that just normal behaviour?
Children inheret the properties of the parent, in this case the center alignment unless overruled.

Code:
</td><td valign="top" align="center" width="100%">


Is this the complete code btw?
 
View user's profile Send private message
Doulos







PostPosted: Tue Aug 12, 2008 11:09 am Reply with quote

Actually, as I said, I added the align="center" to see if it would cause the theme to center instead of being fixed left. It did center all pages of the theme, but it also centered all the content of each part of every page.
 
jestrella
Moderator



Joined: Dec 01, 2005
Posts: 593
Location: Santiago, Dominican Republic

PostPosted: Tue Aug 12, 2008 2:23 pm Reply with quote

post here the content of your theme's header file

_________________
"For those whom have not reach the sky... Every mountain seems high"

Best Regards
Jonathan Estrella [ Only registered users can see links on this board! Get registered or login! ] 
View user's profile Send private message Visit poster's website
Gremmie
Former Moderator in Good Standing



Joined: Apr 06, 2006
Posts: 2415
Location: Iowa, USA

PostPosted: Tue Aug 12, 2008 3:17 pm Reply with quote

That behaviour you are noticing is one of the subtle things that changed from HTML to XHTML. RavenNuke is using XHTML.

_________________
GCalendar - An Event Calendar for PHP-Nuke
Member_Map - A Google Maps Nuke Module 
View user's profile Send private message
jestrella







PostPosted: Wed Aug 13, 2008 7:49 am Reply with quote

there must be an unclosed td, center or div tag
try validating your site to see what's wrong
 
Doulos







PostPosted: Wed Aug 13, 2008 6:21 pm Reply with quote

slaytanic_wehrmacht wrote:
there must be an unclosed td, center or div tag
try validating your site to see what's wrong


I installed a fresh copy of RN22001. I did not make it a fixed width, but only changed html/themes/fisubice/left_center.html from:
Code:
</td><td valign="top" width="100%">
to:
Code:
</td><td align="center" valign="top" width="100%">


This causes everything, everywhere to be centered - not just the site itself.

http://clanfga.com/forums.jpg

I just found out that this does NOT occur with Firefox, only with IE and Opera.

Any suggestions?
 
Gremmie







PostPosted: Wed Aug 13, 2008 8:05 pm Reply with quote

Like I said, this is because RavenNuke is using XHTML, and XHTML now propagates centering down to children (except on Firefox, which is broken right now). You need to use CSS or center a different way.
 
Doulos







PostPosted: Thu Aug 14, 2008 11:30 am Reply with quote

Ok, thanks. I will try.
 
Doulos







PostPosted: Thu Aug 14, 2008 12:36 pm Reply with quote

I found a solution. I don't understand specifically why this worked, but....
It might not be xhtml compliant, but it works so I will go with it unless/until a css solution is presented.

1. I set my fixed width.
2. Edited left_center.html to include < center >

Code:
</td><td valign="top" align="center" width="100%">


3. Edited tables.php by 'wrapping' the entire code with these to lines...

Code:
echo '<center>';


echo '</center>';


I have not experienced any problems with this so far, and it works with IE, Opera, and Firefox.

If anyone has some specific suggestions as to how to accomplish my goal without using these methods so as to keep the site xhtml compliant I would really appreciate it.

Thanks,
Doulos
 
Gremmie







PostPosted: Thu Aug 14, 2008 1:25 pm Reply with quote

I suggested using CSS or doing your centering "a different way". It sounds like you found that different way. Smile From what you described, it doesn't sound like you have broken XHMTL compatibility. You may want to check your theme with the online W3C validator (or not - it is scary how many themes out there were coded without compliance in mind).
 
Doulos







PostPosted: Fri Aug 15, 2008 11:51 am Reply with quote

floppy from clan-themes suggested I modify style.css as such:
Code:
body {font-family: Verdana,Helvetica,sans-serif; font-size: 10px;margin:0 auto;}


That did not work. I guess I'll have to stick to my solution. Thansk everyone for you help.
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Themes

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 ©