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 -> RN v2.10.01 - All Issues
Author Message
pezzer
New Member
New Member



Joined: Nov 28, 2007
Posts: 10

PostPosted: Fri Mar 14, 2008 2:24 pm Reply with quote

When one creates a new block then chooses to put it on the center of the home page by choosing display "Center Up," which file is that block using?

To go into more specifics - I created a new block and using the built in editor typed in text then placed that block in "Center Up" position. Now that block shows up on my index page as the primary center section.

Nothing I do in the html editor affects the text style (size wise) as it's governed by css somewhere, but I can't find the block file it uses and can't seem to modify it no matter what I do in my theme's css file.

Ultimately, I want to know which theme file it uses as I simply need to tweak some table padding and fiddle with some text size, but I need to know which file is called to display this block. It's doesn't seem to be one of the block files, though I can't be certain.

Though it's a "block" when I modify the block theme, it only affects the left and right side blocks, not the center block.

I don't understand why I'm having such a difficult time tracking this down, but I am - any help would certainly be appreciated.
 
View user's profile Send private message
Gremmie
Former Moderator in Good Standing



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

PostPosted: Fri Mar 14, 2008 2:31 pm Reply with quote

It sounds like you made a database block with the nukeWYSIWYG editor? If so, there is no file, your block contents are stored in the database. It could be that your theme's CSS is interfering with the styles and code generated by nukeWYSIWYG. You should be able to modify your theme's style.css file, just remember to clear your browser's cache after tweaking that file on the server so you can be sure you are looking at your changes.

We saw this problem you are describing with several themes that came with RN. Their style.css files had fixed sizes for all text and thus the editor's styles could not be used when displayed on the page. We ended up removing the sizes in the style.css file on some themes.

_________________
Only registered users can see links on this board! Get registered or login! - An Event Calendar for PHP-Nuke
Only registered users can see links on this board! Get registered or login! - A Google Maps Nuke Module 
View user's profile Send private message
pezzer







PostPosted: Fri Mar 14, 2008 2:53 pm Reply with quote

Thanks for the quick response...

When I mentioned the file, I meant the one that displays/formats the contents. Though the contents of what I entered are stored in the database, something has to tell the page where and how to display the border, title and body, right?

For example, there is a border around the entire contents of this center block, just as with each left and right block - within this border, there is a little too much padding on the right side - there must be a file somewhere that tells the page padding-right: 10 or whatever.

It's just strange because no matter what I do in my css file, I can't seem to change this (the text size, not the padding.) I took everything one by one from 11 px to 15 px clearing out each time. Everything else would change, just not this one silly center block.

I'm using a 3rd party theme, with multiple template files - there is a block.html which formats each left and right block, just not the center one. I agree with you that there doesn't appear to be a "template" file in my theme folder that directly affects this, but something should, that's why I was trying to find the file that displays this block, even if it's index.php (of course if it is, I can't find the place there that does it.) Surely there is something being called to display and create the formatting here, I just can't find it.

I'll keep making more drastic changes to the css file to see if something trips a change here...
 
Gremmie







PostPosted: Fri Mar 14, 2008 4:54 pm Reply with quote

Oh, ok. Your theme may have a function called themecenterbox(), which may be found in your theme's theme.php file.

If your theme doesn't have one, mainfile.php uses the themecenterbox() as found inside mainfile.php. All it does is call OpenTable() and CloseTable() (2 more functions that your theme must implement).
 
pezzer







PostPosted: Fri Mar 14, 2008 5:59 pm Reply with quote

Ah, perfect - that's what I needed. That will lead me to where I need to go. I've solved the font issue, but I still can't figure out the origin of the mysterious padding on the right side of that block. I just need to keep playing around with it and I'll figure it out.

There is nothing in my theme that references themecenterbox() - it just uses the mainfile.php. I wonder if I could build a new template in my theme to further customize the look. Sounds like a good project for tomorrow.

Thanks for the help...
 
Gremmie







PostPosted: Fri Mar 14, 2008 7:52 pm Reply with quote

Yes, that is the idea. If you include your own themecenterbox() in theme.php it will get called instead of the "fall back" one in mainfile.php. Happy hacking!
 
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 -> RN v2.10.01 - All Issues

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 ©