Home N-13 News Forums Help Search
RegisterForgot password?
How to add image to post necklacesdiscou
Known bugs - 4.0.3 necklacesdiscou

Latest N-13 News 4.0.3

What is N-13 News?
Where can I get help?
Known bugs

Forums Help & Support Hello - timezone
1 2
Marjan
Posted on 21 Apr 2010, 00:09:47

Access: Member
Total Posts: 6
Joined: 2010-04-21

I just installed this news system and i get :

Code:
<?php 
Warning
: strftime() [function.strftime]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CEST/2.0/DST' instead in /home/marjanm/public_html/news/functions.php  on line 596
?>


in the php.ini file i have just
Code:
<?php 
magic_quotes_gpc 
= Off

register_globals 
= Off

?>


and i cant find there any timezone code, any help ? Thanks
#2248
Chris
Posted on 21 Apr 2010, 00:15:28

Access: Admin
Total Posts: 1395
Joined: 2006-05-19

Have a look at this page

http://network-13.com/thread/1309-4-N-13-News-3-4#2016
#2249
Marjan
Posted on 21 Apr 2010, 00:18:09

Access: Member
Total Posts: 6
Joined: 2010-04-21

Yes i already looked this, but in my php.ini there is no this code date.timezone ?
#2250
Chris
Posted on 21 Apr 2010, 00:25:53

Access: Admin
Total Posts: 1395
Joined: 2006-05-19

Add it yourself. If that doesn't work, ask your web host to change the setting for you in the main php.ini file.
#2251
Marjan
Posted on 21 Apr 2010, 00:28:43

Access: Member
Total Posts: 6
Joined: 2010-04-21

no, dont work
now i have this
Code:
<?php 
magic_quotes_gpc 
= Off

register_globals 
= Off

date
.timezone = Europe/London 
?>


and nothing change in my index page, anyother way to fix this except asking my webhost ? how they will change this?
#2252
Last edited by Marjan at 2010-04-21 00:30:38 Reason:
Chris
Posted on 21 Apr 2010, 00:45:09

Access: Admin
Total Posts: 1395
Joined: 2006-05-19

The php.ini file you can access is specific to your account. It only allows you to make certain changes specified by your web host. Your host has the ability to edit the main php.ini file and change this setting for you.
#2253
Marjan
Posted on 21 Apr 2010, 01:25:34

Access: Member
Total Posts: 6
Joined: 2010-04-21

ok i fixed this, but how can i integrate where to put this codes ?

Code:
<?php 
Number of news articles to show per page

<?php
$cppage 
= '10'; 
include 
'news/index.php';
?>
?>


and this is everything what include news13 cms ?

[img]http://img688.imageshack.us/img688/1849/35114415.jpg[/img]
#2254
Last edited by Marjan at 2010-04-21 01:27:57 Reason:
Chris
Posted on 21 Apr 2010, 01:28:44

Access: Admin
Total Posts: 1395
Joined: 2006-05-19

You put the code on your site where you want the news to be displayed.
#2255
Marjan
Posted on 21 Apr 2010, 01:33:47

Access: Member
Total Posts: 6
Joined: 2010-04-21

i put in index.php
<?php
$register = true;
include 'news/index.php';
?>

and says error
#2256
Marjan
Posted on 21 Apr 2010, 01:43:54

Access: Member
Total Posts: 6
Joined: 2010-04-21

?
#2257
1 2
Network-13.com © 2013