Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 6.8
Author Message
morpheus_75
Involved
Involved



Joined: Oct 07, 2003
Posts: 302

PostPosted: Fri Apr 16, 2004 4:30 am Reply with quote

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
 
View user's profile Send private message
sixonetonoffun
Spouse Contemplates Divorce



Joined: Jan 02, 2003
Posts: 2496

PostPosted: Fri Apr 16, 2004 8:44 am Reply with quote

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.
 
View user's profile Send private message
morpheus_75







PostPosted: Sat Apr 17, 2004 6:42 am Reply with quote

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
 
sixonetonoffun







PostPosted: Sat Apr 17, 2004 8:07 am Reply with quote

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)
 
sixonetonoffun







PostPosted: Sat Apr 17, 2004 8:14 am Reply with quote

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
 
morpheus_75







PostPosted: Sat Apr 17, 2004 9:53 am Reply with quote

Ok, thank you Smile 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...
 
sixonetonoffun







PostPosted: Sat Apr 17, 2004 10:21 am Reply with quote

Sorry just the theme.php of the theme of choice.

No won't effect any other areas of the site.
 
morpheus_75







PostPosted: Mon Apr 19, 2004 1:06 pm Reply with quote

Unfortunately, It does not work. Or at least I was not able to let it work Smile
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?
 
morpheus_75







PostPosted: Mon Apr 19, 2004 4:52 pm Reply with quote

Any idea on this?Confused Raven? Chat?
 
morpheus_75







PostPosted: Mon Apr 19, 2004 5:49 pm Reply with quote

Problem solved. It was a language problem related to the theme I use. I put everything in english and now everything works properly...
 
Display posts from previous:       
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 6.8

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©