Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Converting/Creating Themes
Author Message
wizardquest
New Member
New Member



Joined: Nov 11, 2006
Posts: 8

PostPosted: Tue Feb 05, 2013 11:33 am Reply with quote

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.
 
View user's profile Send private message
nuken
RavenNuke(tm) Development Team



Joined: Mar 11, 2007
Posts: 2024
Location: North Carolina

PostPosted: Tue Feb 05, 2013 11:52 am Reply with quote

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







PostPosted: Tue Feb 05, 2013 2:42 pm Reply with quote

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







PostPosted: Tue Feb 05, 2013 2:55 pm Reply with quote

To remove the gap between the center blocks and the news, add:
Code:


br {line-height: 0}


to your style.css
 
wizardquest







PostPosted: Tue Feb 05, 2013 3:21 pm Reply with quote

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







PostPosted: Tue Feb 05, 2013 4:47 pm Reply with quote

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







PostPosted: Tue Feb 05, 2013 5:09 pm Reply with quote

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







PostPosted: Tue Feb 05, 2013 5:39 pm Reply with quote

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.


Wave Wave Wave
 
nuken







PostPosted: Tue Feb 05, 2013 6:34 pm Reply with quote

Code:


br {line-height: 0}


In the themes style.css at the bottom worked on my test site.
 
wizardquest







PostPosted: Tue Feb 05, 2013 9:54 pm Reply with quote

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







PostPosted: Wed Feb 06, 2013 6:46 am Reply with quote

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

PostPosted: Wed Feb 06, 2013 12:28 pm Reply with quote

If you are using messages, there is also the same issue within function message_box in the same file.
 
View user's profile Send private message Visit poster's website
wizardquest







PostPosted: Wed Feb 06, 2013 4:43 pm Reply with quote

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 />';
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Converting/Creating 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 ©