(solved) Spacing in...
 
Notifications
Clear all

(solved) Spacing in-between Most Recent content on the main page.

8 Posts
4 Users
0 Reactions
2,709 Views
(@funkycanuck)
Posts: 13
Active Member
Topic starter
 

1.  Name your topic appropiately:  Trying to put spaces in-between content on the Most Recent block on the main page.

2.  Do not tack your request on to the end of an unrelated thread:  New post.

3.  Put a link to the page on your site where the problem appears:    http://www.slashedtodeth.com/index.php   As you can see, there is no spacing between the Most Recent content.

4.  Copy any errors you're getting on the top of your page:  There are no errors.

5.  Please narrow it down with a good description of the problem:  For the life of me, I can't figure out how to put a space in between the content on the Most Recent block.  I've created a test file and have kept the original .tpl file created by Kali.  This is what's in the header:

<!-- START BLOCK : header -->
<body>
<div id="sidebar">
<div class="headerblock">
<div class="title">Browse By:</div>
<div class="content">
<div id="sidemenu">
<ul id="sidemenu">
<li>{recent}</li>
<li>{authors}</li>
<li>{catslink}</li>
<li>{titles}</li>
<li>{series}</li>
<li>{challenges}</li>
<li>{tens}</li> 
<li>{search}</li>
</ul>
<p>{search_content}</p>
</div>
</div>
</div>
<div class="headerblock">
   <div class="title">{categories_title}</div>
       <div class="content">{categories_content}</div>
     </div>
<div class="headerblock">
       <div class="title">{recent_title}</div>
       <div class="content">{recent_content}</div>
     </div>
<div class="headerblock">
       <div class="title">{featured_title}</div>
       <div class="content">{featured_content}</div>
     </div>
     <div class="headerblock">
       <div class="title">{random_title}</div>
       <div class="content">{random_content}</div>
     </div>
</div>
<div id="container">
<div id="banner">
&nbsp;
</div>
<div id="menu">
<ul id="menulist">
<li>{home}</li>
<li>{login}</li>
<li>{tos}</li>
<li>{rules}</li>   
<li>{help}</li>
<li>{contactus}</li>
<li>{adminarea}</li> 
</ul>
</div>
<div id="mainpage">
<!-- END BLOCK : header --> 

I was able to put spaces in the NewsBox .tpl but there is none for Most Recent.  Would I create a MostRecent .tpl file?

6.  Please search the forums before you post:  I have searched the forum and also searched Tammy's site for modding skins and checked Kali's site.  But after a week of hunting, I can't find a way to do this.

7.  Please check your site settings before you report that something doesn't work:  N/A

8.  Please check the main forum for updates:  I have checked.

9. Please turn debug on in your settings:  N/A

10.  If you have modified your installation of eFiction, we need to know this:  I've only modded .tpl files, not any php files.  I've posted the modded .tpl header file.

11.  Do NOT cross post your problem to multiple forums:  Did not do this.

12.  For skin problems, we MUST have the name of the specific skin you're having problems with:  It is the "jelly" skin by Kali.  Gorgeous skin, BTW.

Any help would be appreciated.  Thanks.


 
Posted : 24/04/2008 1:22 pm
(@jacci)
Posts: 503
Honorable Member
 

to get an extra space bewteen them go to
blocks>recent>recent.php

open it up and edit line 13 from

if(!$use_tpl) $content .= "<div class='recentstory'>".title_link($stories)." "._BY." ".author_link($stories)." ".$ratingslist[$stories['rid']]['name']."<br />".stripslashes($stories['summary'])."</div>";

to

	if(!$use_tpl) $content .= "<div class='recentstory'>".title_link($stories)." "._BY." ".author_link($stories)." ".$ratingslist[$stories['rid']]['name']."<br />".stripslashes($stories['summary'])."<br />"."<br />"."</div>";

and that should give you an extra line of spacing between each story

ETA: that will change it site wide, it will affect all skins


why is nothing ever easy?
url: http://www.pretendercentre.com/missingpieces/     
php: 5.2.5  msql: 5.0.45-community
efic version: 3.4.3           latest patches: yes
bridges: none              mods: challenges, displayword, beta-search

 
Posted : 24/04/2008 3:16 pm
(@funkycanuck)
Posts: 13
Active Member
Topic starter
 

That worked perfectly.  Thank you very much.  :mrgreen:


 
Posted : 24/04/2008 4:16 pm
(@babaca)
Posts: 722
Member Moderator
 

Jacci,

That's good to know... I had wondered. So when we do upgrades, does the new efic upgrades overwrite that? Or will it stay. (Actually I guess one would have to remember to alter that file first before uploading the new efiction files for upgrading. *Bookmarks this page*


******************************************
Mucking around in eFiction since circa 2001 (ver. 1.0)
Now running v.3

 
Posted : 24/04/2008 4:19 pm
(@jacci)
Posts: 503
Honorable Member
 

That worked perfectly.  Thank you very much.  :mrgreen:

You are very welcome, glad it was what you wanted

Jacci,

That's good to know... I had wondered. So when we do upgrades, does the new efic upgrades overwrite that? Or will it stay. (Actually I guess one would have to remember to alter that file first before uploading the new efiction files for upgrading. *Bookmarks this page*

babaca,
yeah, the upgrades will overwrite. I have a list of 'hard code' i have played with, stuff outside of the skins, and that way i know which files to dig into again after an upgrade. the little tweaks are easy enough to edit (once you figure them the first time lol,) it is just remembering what you have done to what  πŸ˜€


why is nothing ever easy?
url: http://www.pretendercentre.com/missingpieces/     
php: 5.2.5  msql: 5.0.45-community
efic version: 3.4.3           latest patches: yes
bridges: none              mods: challenges, displayword, beta-search

 
Posted : 24/04/2008 4:24 pm
(@carissa)
Posts: 791
Member Moderator
 

Editing the code is by no means the best way to accomplish this. The best way is through CSS. Add a margin-bottom and/or a padding bottom to the #recentstory div. l


 
Posted : 26/04/2008 1:58 pm
(@jacci)
Posts: 503
Honorable Member
 

thanks for that Carissa, i added

.recentstory {padding-bottom: 12px;}

and it achieved the result i had wanted  πŸ˜€


why is nothing ever easy?
url: http://www.pretendercentre.com/missingpieces/     
php: 5.2.5  msql: 5.0.45-community
efic version: 3.4.3           latest patches: yes
bridges: none              mods: challenges, displayword, beta-search

 
Posted : 27/04/2008 10:57 am
(@funkycanuck)
Posts: 13
Active Member
Topic starter
 

thanks for that Carissa, i added

.recentstory {padding-bottom: 12px;}

and it achieved the result i had wanted   πŸ˜€

I added that too.  It worked excellent.  TY jacci and Carissa


 
Posted : 29/04/2008 9:23 pm
Share: