Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1] 2

Author Topic: Problem with template.  (Read 8280 times)

Michał Nowak

  • Newbie
  • *
  • Karma: 0
  • Posts: 11
    • http://www.nowakmichal.nazwa.pl
Problem with template.
« on: May 12, 2007, 06:31:35 PM »

Hi all!
I downloaded a template from http://www.solucija.com/home/css-templates/ and it's "what's your solution" template. I tried to run it on my server with sNews, and I have problem with it.
On first site it looks perfect, but when I want to login i see black/white page without pictures (style css not loaded?)

here is sample: http://www.nowakmichal.nazwa.pl/sNews/
login page: http://www.nowakmichal.nazwa.pl/sNews/login/

Please help me :-)
Michal Nowak
Logged
If you see a language mistake, do not hesitate to correct me. =)

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
Problem with template.
« Reply #1 on: May 12, 2007, 06:48:09 PM »

Whuhaaa... first of all you have no doctype in that document, you're gonna need doctype. Then a good read would be this one as I don't think you have implemented snews in a proper way...
Logged
"It's only dead fish that goes with the flow... "
Updated

Michał Nowak

  • Newbie
  • *
  • Karma: 0
  • Posts: 11
    • http://www.nowakmichal.nazwa.pl
Problem with template.
« Reply #2 on: May 12, 2007, 09:28:08 PM »

Thx for answer, I added doctype, and read this artice, and I have the same problem, what is more, when I'm using whole page cant start..
Please help me.
Logged
If you see a language mistake, do not hesitate to correct me. =)

codetwist

  • Hero Member
  • *****
  • Karma: 50
  • Posts: 940
Problem with template.
« Reply #3 on: May 12, 2007, 09:48:11 PM »

Don't use short php starting tag; use full one - like
And probably that menu_items() is yet another artifact from either old version of sNews or some template related legacy. For sNews 1.5.31 try to use pages()
Logged

Michał Nowak

  • Newbie
  • *
  • Karma: 0
  • Posts: 11
    • http://www.nowakmichal.nazwa.pl
Problem with template.
« Reply #4 on: May 12, 2007, 10:33:52 PM »

My sNews is 1.5.31, I changed all
Thx for help
Michal Nowak
Logged
If you see a language mistake, do not hesitate to correct me. =)

Rui Mendes

  • Development,Testing, Support
  • Hero Member
  • *****
  • Karma: 195
  • Posts: 1009
  • sNews1.7
    • Comunidade Portuguesa
Problem with template.
« Reply #5 on: May 13, 2007, 03:48:57 AM »

Please try this:
check in snews.php

$db['website'] = 'http://localhost/yoursite/';
remember the last char is /

if you have a folder login, rename to flogin, maybe is the problem
Logged
Need a Job on Europe. Linkdin - Facebook / Group

Michał Nowak

  • Newbie
  • *
  • Karma: 0
  • Posts: 11
    • http://www.nowakmichal.nazwa.pl
Problem with template.
« Reply #6 on: May 13, 2007, 09:09:02 AM »

I checked it, in snews.php is:
$db['website'] = 'http://www.nowakmichal.nazwa.pl/sNews/';
last is /

I don't have a login folder (flogin too).

On sNews15-designcriativo whole page works perfect, when I'm changeing to my index.php it looks good, but when You click "login" it looks like without css.


It's strange because look at this:
login: http://img527.imageshack.us/img527/6720/loginik7.gif
logged: http://img520.imageshack.us/img520/5803/loggedzd8.gif
newArticle: http://img521.imageshack.us/img521/3554/newartfw4.gif

what is going on?
Logged
If you see a language mistake, do not hesitate to correct me. =)

codetwist

  • Hero Member
  • *****
  • Karma: 50
  • Posts: 940
Problem with template.
« Reply #7 on: May 13, 2007, 10:16:51 AM »

Aren't You trying to set up sNews 1.5.30 per chance? If so better try 1.5.31 or even better wait for release of 1.6; after all it's only couple of days to wait.
Logged

Michał Nowak

  • Newbie
  • *
  • Karma: 0
  • Posts: 11
    • http://www.nowakmichal.nazwa.pl
Problem with template.
« Reply #8 on: May 13, 2007, 10:31:29 AM »

snews.php file is from 1.5.31 version, I tried template from 1.5.30 and it's works perfect...
 hmm... I will wait for 1.6. Thx rof advice.
Logged
If you see a language mistake, do not hesitate to correct me. =)

Joost

  • Guest
Problem with template.
« Reply #9 on: May 13, 2007, 04:16:38 PM »

I think I have got it!

Past      in the header of index.php.
Right now you are missing  
Logged

Michał Nowak

  • Newbie
  • *
  • Karma: 0
  • Posts: 11
    • http://www.nowakmichal.nazwa.pl
Problem with template.
« Reply #10 on: May 13, 2007, 04:59:47 PM »

It work in 50%, before adding I couldn't open Customize, Publish Date... Now I can open it, and write something, but page doesnt have layout. Joost you are great :)
Logged
If you see a language mistake, do not hesitate to correct me. =)

Joost

  • Guest
Problem with template.
« Reply #11 on: May 14, 2007, 12:14:01 AM »

@nowakmichal
  produces this:


sNews 1.5




Which means you have some code twice in the header. Below is what you have hardcoded in index.php. It would be better to delete this.




jakiś tam tytuł

Description,  Keywords, and charset can be set through the admin panel (site, settings and for every page/article)
Title is the same as the title of the article or page. So sNews wil produce a different title for every page.
Logged

Fred K

  • Still trying to learn stuff
  • ULTIMATE member
  • ******
  • Karma: 130
  • Posts: 2728
    • Personal
Problem with template.
« Reply #12 on: May 14, 2007, 12:33:23 AM »

To add to what Joost just said: the stylesheet link rel you currently have in the index.php file is placed before . Ghange the order of these things so that is the very first thing placed after . Once that's in place you can then add meta tags that aren't already brought in through the function as well as stylesheet links, javascript refs etc.

Since brings in , any other head elements with link refs, like stylesheets, favicons and script files, must come after to work as intended.
Logged

Rui Mendes

  • Development,Testing, Support
  • Hero Member
  • *****
  • Karma: 195
  • Posts: 1009
  • sNews1.7
    • Comunidade Portuguesa
Problem with template.
« Reply #13 on: May 14, 2007, 01:50:20 AM »

Hi I made changes, and is working.

Please download template
http://www.engcivil.net/main/downloads/ws.zip

Bye
Rui
Logged
Need a Job on Europe. Linkdin - Facebook / Group

Joost

  • Guest
Problem with template.
« Reply #14 on: May 14, 2007, 02:00:16 AM »

Quote from: agentsmith
Since brings in , any other head elements with link refs, like stylesheets, favicons and script files, must come after to work as intended.
Never thought of ordering, actually. I always did it right accidentally . Thank you, I'll keep it in mind. :)
Logged
Pages: [1] 2