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 Multiple Date & Time includes
William
Posted on 06 Jul 2010, 17:46:09

Access: Member
Total Posts: 38
Joined: 2010-02-12

Okay, I am wearing out the forums :laughing: BUT, I could use a touch of that all familiar epic insight from the n13 crew! Hears the thing. I am wanting to display different date/time formats on different pages. For example...

Homepage display the date like this... 07.2010
Blog page display the date like this... JULY, 2010

I thought I would be slick and find the possible function in the function.php directory.... EHHHH WRONG!!! While I did find a date/time include, I do not think that I coded it properly...Below is my include example...See whats the issue with the date/time, if you can.

Code:
            <?php
                $news_layout 
= '0';
                
$comments_layout = '2';
                
$newstimeformat = '%m.%y';
                
$template = 'home';
                
$cat[] = 'blog';
                
$nppage = '5';
                include 
'news/index.php';
            
?>

#2636
Last edited by William at 2010-07-06 17:46:54 Reason:
Chris
Posted on 06 Jul 2010, 18:03:27

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

http://n-13news.googlecode.com/svn-history/r195/branches/40/index.php

and

http://n-13news.googlecode.com/svn-history/r195/branches/40/functions.php

Replace your own copies.

2 new variables added

Code:
<?php
$newstimeformat 
= '%m.%y';
$commentstimeformat = '%m.%y';

include 
'news/index.php';
?>
#2637
Last edited by Chris at 2010-07-06 18:04:07 Reason:
William
Posted on 06 Jul 2010, 18:21:39

Access: Member
Total Posts: 38
Joined: 2010-02-12

That is BEAUTIFUL. 4.0 is going to kick rear!

Thank you sir
#2638
Network-13.com © 2013