PHP Web Host - Quality Web Hosting For All PHP Applications Free RavenNuke(tm) Add Ons
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.
Author Message
morpheus_75
Involved
Involved


Joined: Oct 07, 2003
Posts: 302

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

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: 2499

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

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 to the forums!

Only registered users can see links on this board!
Get registered or login to the forums!


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
Involved
Involved


Joined: Oct 07, 2003
Posts: 302

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

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


Joined: Jan 02, 2003
Posts: 2499

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

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


Joined: Jan 02, 2003
Posts: 2499

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

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


Joined: Oct 07, 2003
Posts: 302

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

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


Joined: Jan 02, 2003
Posts: 2499

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

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

No won't effect any other areas of the site.
View user's profile Send private message
morpheus_75
Involved
Involved


Joined: Oct 07, 2003
Posts: 302

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

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
Only registered users can see links on this board!
Get registered or login to the forums!


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


Joined: Oct 07, 2003
Posts: 302

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

Any idea on this?Confused Raven? Chat?
View user's profile Send private message
morpheus_75
Involved
Involved


Joined: Oct 07, 2003
Posts: 302

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

Problem solved. It was a language problem related to the theme I use. I put everything in english and now everything works properly...
View user's profile Send private message
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.

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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2011 by Raven

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::
:: fisubice Theme Modified by the RavenNuke™ Team ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum