Please login or register.

Login with username, password and session length
Advanced search  

News:

Latest sNews - sNews 1.7 - with its own forums - for discussion and user mods.

Author Topic: Need help please  (Read 2188 times)

Daun

  • Newbie
  • *
  • Karma: 0
  • Posts: 29
    • http://csstoplist.org
Need help please
« on: February 25, 2007, 09:22:11 pm »

How do make this main part look more like this

Example text
Kommentarer (0) 24.02.2007. 19:34
-------------------------------------------------------------------
Some text here



And not like thist

Example text
----------------------------------
Some text

Kommentarer (0) 24.02.2007. 19:34

Hope someone understand me
Logged

tarmithius13

  • Sr. Member
  • ****
  • Karma: 7
  • Posts: 469
Need help please
« Reply #1 on: February 25, 2007, 09:26:34 pm »

what are you using for a template? There is a CSS class called date, you can add a border-bottom to that class and it will separate the articles. Here is an example: http://realcompgeek.com/demos/motherearth/index.php

If the class does not exist in you style sheet then you can add the following:
Code: [Select]
.date {
border-bottom: 1px black solid;
margin-bottom: 5px;
}
Logged
The trick to flying is to throw yourself at the ground and miss.

Free sNews templates HERE

David

  • Hero Member
  • *****
  • Karma: 7
  • Posts: 567
Need help please
« Reply #2 on: February 25, 2007, 09:53:18 pm »

Hi Daun,

You can try to move this blue line in snews.php file (center function):

Quote
file_include(str_replace('[break]', '', $text), $shorten);
$commentable = $r['commentable'];
to
Quote
else if ($_SESSION[db('website').'Logged_In'] == token()) {echo '

'.$edit_link.'

';}
            }
                            file_include(str_replace('[break]', '', $text), $shorten);

         }
         if (!empty($currentPage) && ($numrows_articles > $article_limit) && s('display_pagination') == 'on') {
            paginator($categorySEF, $currentPage, $totalPages, '', l('paginator'));
         }
I never tested this, so...maybe Mika, Luka or another php guru have the correct solution.
Logged