Please login or register.

Login with username, password and session length
Advanced search  

News:

You need/want an older version of sNews ? Download an older/unsupported version here.

Author Topic: (Solved) Why my theme is bad?  (Read 1139 times)

Kontotestowe

  • Newbie
  • *
  • Karma: 0
  • Posts: 10
(Solved) Why my theme is bad?
« on: January 02, 2010, 05:36:55 pm »

Welcome.

I have just used Interactive Media template (http://www.solucija.com/template/interactive-media).
I have coped all files from template to my general directory in Snews:
  • CSS folder
    images folder
    index.php file
But template is bad :/
Look on an screen:


« Last Edit: January 24, 2010, 03:40:54 pm by Keyrocks »
Logged

Patric Ahlqvist

  • Nobodys perfect, but Im pretty effing close
  • ULTIMATE member
  • ******
  • Karma: 65
  • Posts: 4867
  • I'm a self-made man and worships my creator.
    • p-ahlqvist.com
Re: Why my theme is bad?
« Reply #1 on: January 02, 2010, 05:45:24 pm »

That specific template is not ready made for the snews engine, I think. It's mearly a HTML template for which you must find use yourself... Making it ready for sNews might take some fidduling...
Logged
"It's only dead fish that goes with the flow... "
Updated

Kontotestowe

  • Newbie
  • *
  • Karma: 0
  • Posts: 10
Re: Why my theme is bad?
« Reply #2 on: January 02, 2010, 06:23:40 pm »

Thank for Your reply. I used other theme and it is Ok.

And how can I prepare for example Wordpress theme for my Snews?
Logged

Patric Ahlqvist

  • Nobodys perfect, but Im pretty effing close
  • ULTIMATE member
  • ******
  • Karma: 65
  • Posts: 4867
  • I'm a self-made man and worships my creator.
    • p-ahlqvist.com
Re: Why my theme is bad?
« Reply #3 on: January 02, 2010, 07:34:10 pm »

If you go here, we've tried to explain it as well as we could:

http://snewscms.com/designers-guide/
Logged
"It's only dead fish that goes with the flow... "
Updated

Kontotestowe

  • Newbie
  • *
  • Karma: 0
  • Posts: 10
Re: Why my theme is bad?
« Reply #4 on: January 23, 2010, 11:16:38 pm »

I have read help pages - http://snewscms.com/designers-guide/.

But I have a problem with a template from Solucija - http://www.solucija.com/template/interactive-media
New post and Categories are not correcty look. They should on my right side, not center.
My index.php:
Code: [Select]
<?php include('snews.php'); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<?php title(); ?>
<meta name="robots" content="index,follow" />
<meta name="author" content="Solucija.com" />
<link rel="stylesheet" type="text/css" href="css/main.css" />
</head>
<body id="home">
<div class="wrap">
<div id="logo">
<h1><?php echo s('website_title'); ?></h1>
<p><?php echo s('website_description'); ?></p>
</div>
<ul id="nav">
<?php pages(); ?>
</ul>
</div>
<div class="wrap">
<div id="left">
<?php center(); ?>

<div id="right">
<h3>New Posts</h3>
<ul>
<?php menu_articles(0,10); ?>
</ul>
<h3>Categories</h3>
<ul>
<?php categories(); ?>
</ul>

</div>
<div id="footer">
<p>This site is powered by <a href="http://snewscms.com/" title="sNews CMS" onclick="target='_blank';">sNews</a> | <?php login_link(); ?></p>

</div>
</body>
</html>

and css file:
Code: [Select]
/*

project: interactive media (free css template)
author: luka cvrk (www.solucija.com)

*/
   
* { margin:0; padding:0; }
body { font: 72.5%/1.7em "Lucida Grande", "Lucida Sans Unicode", verdana, geneva, sans-serif; color:#555; background: #fff url(../images/headerbg.gif) repeat-x; }

/* general styling */
a { color:#007898; background: inherit; border-bottom:1px dotted #ccc; text-decoration:none; }
a:hover { border-bottom:1px solid #ccc; color: #808080; background: inherit; }
a:focus { outline: 0; }
ul { margin:10px 10px 10px 0; padding:0 0 0 15px; }
li { margin:0 0 0 10px; padding:3px; }
img { border: 0; text-decoration: none; }

/* content */
.wrap { padding:0 10px 10px 10px; width:860px; margin:0 auto; }
#logo {float:left; margin: 26px 20px 14px 5px; color:#768998; }
h1 { margin: 0 0 10px; letter-spacing: 1px; font-size: 2em; }
h1 a { color: #fff; }
h1 a:hover { color: #FFFCB3; }

/* main navigation */
#nav { float:right; border:none; padding:0; margin: 47px 10px 60px 0; }
#nav li { float:left; list-style:none; margin:0 4px 0 0; padding:0; font-size: 1.1em; }
#nav li a { display:block; padding: 10px 12px 15px; color:#768998; text-decoration:none; border: 0; margin:0 1px 0 0; }
#nav li a:hover, #nav li a.current { background: url(../images/barbg.gif) no-repeat bottom center; color:#fff; }
.akey { border-bottom: 1px dotted #4B5761; }

/* main content */
#left { float: left; width: 570px; margin: 0 0 20px 0; }
#left h2 { float: left; font: 2.1em "Trebuchet MS", Arial; background: url(../images/h2bg.gif) repeat-x bottom; color:#121212; letter-spacing:-1px; margin: 0px 0 20px 0; clear:left; }
#left h2 a { color:#121212; text-decoration:none; border: 0; }
#left p { clear: both; margin: 5px 0 20px 0; font-size:110%; line-height:21px; }

/* sidebar */
#right { width:230px; float:right; margin: 0 0 20px 0; }
#right h2 { color:#fff; margin: 0 0 5px 0; font: bold 1.2em "Trebuchet MS", Arial; background: #fff url(../images/sideh2bg.gif) repeat-x; padding: 4px 10px; border-bottom: 2px solid #000; }
#right ul { list-style:none; border-top:1px solid #eee; border:none; padding:0; margin:0 0 15px 0; }
#right ul li { border-bottom:1px solid #eee; padding:5px; margin:0; }
#right ul li a { border: 0; }

#tagcloud { margin: 0 0 20px; }
#tagcloud a { margin: 0 5px 0 0; color: #25771F; }
#tagcloud a:hover { background: #E7FEE5; color: #007898; }

#info { border: 1px solid #ccc; padding: 3px 5px; margin: 0 0 10px; }

#footer { clear: both; border-top: 1px solid #ccc; padding: 20px 0; color:#808080; }
#footer p { line-height: 2.5em; }






« Last Edit: January 23, 2010, 11:37:43 pm by Kontotestowe »
Logged

centered

  • Guest
Re: Why my theme is bad?
« Reply #5 on: January 24, 2010, 04:18:38 am »

You appear to be missing a closing div here:
<div id="left">
   <?php center(); ?>

<!-- Need the closing div here -->
</div>
Logged

Kontotestowe

  • Newbie
  • *
  • Karma: 0
  • Posts: 10
Re: Why my theme is bad?
« Reply #6 on: January 24, 2010, 01:21:29 pm »

Now it is OK.
Thanks You.
Logged