Author |
Message |
morpheus_75
Involved
![Involved Involved](modules/Forums/images/ranks/4stars.gif)
![](modules/Forums/images/avatars/Star_Wars/Star_Wars_-_Obi_Wan_Kenobi.gif)
Joined: Oct 07, 2003
Posts: 302
|
Posted:
Fri Apr 16, 2004 4:30 am |
|
Hi everyone!
I'd like to eliminate the week day (monday, tuesday, etc) from the posted articles.
Basically I'd need to change the following:
Posted by Raven on Wednesday, April 07 @ 21:13:17 CDT (32 reads)
to this:
Posted by Raven on April 07 @ 21:13:17 CDT (32 reads)
Anyone knows how to do it? Is it possible to achieve the same in the Old Articles block? How?
Thank you very much in advance ![Smile](modules/Forums/images/smiles/icon_smile.gif) |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
sixonetonoffun
Spouse Contemplates Divorce
![](modules/Forums/images/avatars/d1ecfa674c890aee2698b.jpg)
Joined: Jan 02, 2003
Posts: 2496
|
Posted:
Fri Apr 16, 2004 8:44 am |
|
I think to do that you'd have to write a little function that takes $time and explodes it into parts and then pick the parts you'd like to display.
See php manual
Only registered users can see links on this board! Get registered or login!
Only registered users can see links on this board! Get registered or login!
There are several snippets of example code that should get you started.
Unless someone else has done this in a theme then you could just copy over their code. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
morpheus_75
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sat Apr 17, 2004 6:42 am |
|
Thank you very much for your advice, but I am not an advanced php user. I actually do not know how to do what you mentioned... ![Sad](modules/Forums/images/smiles/icon_sad.gif) |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
sixonetonoffun
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sat Apr 17, 2004 8:07 am |
|
Ok here it is then done in DeepBlue example:
Find:
formatAidHeader($aid);
Below that add
list($tmon, $tdat, $tyr) = explode(" ", $time);
Below that edit this line like so:
echo " "._ON." $tdat $tyr $timezone ($counter "._READS.")<br></font>\n"
Results:
Posted by admin on April, 15 (0 reads) |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
sixonetonoffun
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sat Apr 17, 2004 8:14 am |
|
I just noticed my names didn't match up very good there try ordering them like
list($tyr, $tdat, $tmon) = explode(" ", $time);
Then I think you'll get
$tyr = year
$tdat = date
$tmon = month |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
morpheus_75
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sat Apr 17, 2004 9:53 am |
|
Ok, thank you I have a few questions: what file(s) should I modify? Does this change involve ONLY the articles or it affects the forum too? I'm asking this because I don't want the date format to be changed in the forum... |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
sixonetonoffun
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sat Apr 17, 2004 10:21 am |
|
Sorry just the theme.php of the theme of choice.
No won't effect any other areas of the site. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
morpheus_75
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Mon Apr 19, 2004 1:06 pm |
|
Unfortunately, It does not work. Or at least I was not able to let it work
Basically I have this problem. If you visit my site
http://www.whatisthematrix.it
you can see that some articles in the HP have the full date (Posted by morpheus on Sabato, aprile 03 @ 17:18:24 CEST), while others lack the day of the week (Posted by morpheus on , aprile 14 @ 19:46:58 CEST).
How can this be possible? |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
morpheus_75
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Mon Apr 19, 2004 4:52 pm |
|
Any idea on this? Raven? Chat? |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
morpheus_75
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Mon Apr 19, 2004 5:49 pm |
|
Problem solved. It was a language problem related to the theme I use. I put everything in english and now everything works properly... |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
|