Author |
Message |
wizardquest
New Member


Joined: Nov 11, 2006
Posts: 8
|
Posted:
Tue Feb 05, 2013 11:33 am |
|
I have Raven 2.50 installed and trying to modify the fisubice theme's home page (News module currently activated in home) to close all the spacing between the modules, blocks, and top center message. I do have the fisubice theme set to show two columns for the active home module, if that makes a difference.
Trying to remove the spacing between the tables that contain the current news stories as well as the gap between the news stories and the current top center message table. I can see in the resulting html a break tag between the top center message and the two column news stories, but for the life of me can't find that any file to remove either.
For the tables I have set the cellspacing and cellpadding both to 0 in themes/fisubice/story_page.html in an attempt to close the spacing on the home page. It seems there are multiple css styles over writing each other, inherited ones, etc.?
Could some one please point me in the right direction, as we have searched about every file and seem to missing the correct files. |
|
|
|
 |
nuken
RavenNuke(tm) Development Team

Joined: Mar 11, 2007
Posts: 2024
Location: North Carolina
|
Posted:
Tue Feb 05, 2013 11:52 am |
|
It is probably going to be padding added in the style.css. |
_________________ Only registered users can see links on this board! Get registered or login! |
|
|
 |
nuken

|
Posted:
Tue Feb 05, 2013 2:42 pm |
|
The blocks padding is in blocks.html:
Code:
<table width="170" border="0" cellspacing="0" cellpadding="7">
|
change the 7 to 2
You will also find some padding in tables.html and in story_home.html, you can change the cellpadding from 5 to 0 |
|
|
|
 |
nuken

|
Posted:
Tue Feb 05, 2013 2:55 pm |
|
To remove the gap between the center blocks and the news, add:
Code:
br {line-height: 0}
|
to your style.css |
|
|
|
 |
wizardquest

|
Posted:
Tue Feb 05, 2013 3:21 pm |
|
nuken
thank you for the quick reply,
The blocks area we got figured out, the spacing vertically has been set to 0.
The problem is the center (News) modules are spaced about 2 - 4px apart and we already tried setting the story_page, story_home pages cellspacing to 0, with no affect.
Somewhere there is a setting over riding the story_page cellspacing value, that's our best guest at this point. Or we are changing the wrong cellspacing value.
We are trying to remove all the spacing in the fisubice theme so there is no background showing except for around the outer edge.
Edit: didn't see the post about adding the br value to the style.css, I will try that soon |
|
|
|
 |
wizardquest

|
Posted:
Tue Feb 05, 2013 4:47 pm |
|
nuken
I added the br code to the style.css in themes/fisubice/style with no affect, even tried with 0px
nuken wrote: | To remove the gap between the center blocks and the news, add:
Code:
br {line-height: 0}
|
to your style.css |
If you have any other suggestions, we're willing to try them. This has been a hair pulling experience to say the least. |
|
|
|
 |
nuken

|
Posted:
Tue Feb 05, 2013 5:09 pm |
|
In the modules/News/index.php on line 345 find:
Code:
echo '<td valign="top" style="width:'.$newspercent.'; padding:2px;">';
|
that is probably where the spacing is coming from. |
|
|
|
 |
wizardquest

|
Posted:
Tue Feb 05, 2013 5:39 pm |
|
Thank you nuken!
That was the trick for the news center blocks.
If you have another suggestion for the break tag between the news center blocks and the top center message block, would love to try it.
The RN team here is awesome.
 |
|
|
|
 |
nuken

|
Posted:
Tue Feb 05, 2013 6:34 pm |
|
Code:
br {line-height: 0}
|
In the themes style.css at the bottom worked on my test site. |
|
|
|
 |
wizardquest

|
Posted:
Tue Feb 05, 2013 9:54 pm |
|
nuken,
I sent you a link to the test site so you can see what I'm referring to.
I did move the br tag to the bottom of the style.css sheet in themes/fisubice/style/style.css with out any change.
Thanks again |
|
|
|
 |
nuken

|
Posted:
Wed Feb 06, 2013 6:46 am |
|
Look in mainfile.php and find the following code:
Code:
if(!function_exists('themecenterbox')) {
function themecenterbox($title, $content, $bid = '') {
global $admin, $admin_file;
OpenTable();
echo '<div class="text-center"><span class="option thick">' , $title , '</span></div><br />' , $content;
if (is_admin($admin) && !empty($bid)) {
echo '<br /><br /><div class="text-center"><span class="content">[ <a href="' , $admin_file , '.php?op=BlocksEdit&bid=' , $bid , '">' , _EDIT , '</a> ]</span></div>' , "\n";
}
CloseTable();
echo '<br />';
}
}
|
comment out the br. I don't think removing br tag will cause any issues. |
|
|
|
 |
spasticdonkey
RavenNuke(tm) Development Team

Joined: Dec 02, 2006
Posts: 1693
Location: Texas, USA
|
Posted:
Wed Feb 06, 2013 12:28 pm |
|
If you are using messages, there is also the same issue within function message_box in the same file. |
|
|
|
 |
wizardquest

|
Posted:
Wed Feb 06, 2013 4:43 pm |
|
Thank you nuken for the fix, and spasticdonkey is correct.
If anyone else is trying to remove the space between the center home modules and the admin message at center top:
Look in mainfile.php and find:
Code:function message_box() {
|
inside that function you will find 6 occurances of this code:
Code:
CloseTable();
echo '<br />';
|
change it to:
Code:CloseTable();
//echo '<br />';
|
|
|
|
|
 |
|