TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,963
  • Latest: BiZaJe
Stats
  • Total Posts: 195,917
  • Total Topics: 21,308
  • Online today: 728
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 379
  • Total: 379

SMF Calendar Block

Started by Lesmond, September 03, 2005, 11:30:42 AM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

fangweile

If you go directly to the calendar
action=calendar
The date of the holiday is just right.
I use Ken's code btw
http://www.tinyportal.net/index.php/topic,700.msg193364.html#msg193364

Any idea?

G6Cad

Allready gave you the reply to that question, the code is fetching the same settings as you have in the smf calendar.
You have to ask on SMF

IchBin

G6, the holiday shows correct in the Calendar. This code snippet does not display that information right. The code snippet needs to be fixed.

Ken.

Don't know what the problem might be but for my display the dates show correctly.
" If everything seems under control, you're not going fast enough." - Mario Andretti
Yesterday When I was Young.

IchBin

Ken, can you look at your database in the calendar_holidays table, and tell me what the eventDate column says for Christmas?

G6Cad

I have this code on my testsite, and it fetch the calendar options and my hollidays are correct to  ???

Ken.

Quote from: IchBinâ,,¢ on December 10, 2008, 04:28:10 PM
Ken, can you look at your database in the calendar_holidays table, and tell me what the eventDate column says for Christmas?

Is this what you need?
" If everything seems under control, you're not going fast enough." - Mario Andretti
Yesterday When I was Young.

IchBin

Yes, that is it. Not sure why, I suppose it could be a PHP version difference or something. But my server, as well as fangweile's server does not parse the date properly. Mine is the same date format as yours. But if I change the 0004 to 2004 then the date displays properly. Can't figure it out. Not sure of another way to make it work though...

Ken.

Is it too complicated to have the snippet look at the PHP versions and adjust for the differences?
Having seen many discussions about versions of myPHPAdmin and the problems trying to get some code to work the same with different versions I take it the the answer is that it cannot be easily done?
" If everything seems under control, you're not going fast enough." - Mario Andretti
Yesterday When I was Young.

Jakki

Quote from: IchBinâ,,¢ on December 10, 2008, 04:59:17 PM
Yes, that is it. Not sure why, I suppose it could be a PHP version difference or something. But my server, as well as fangweile's server does not parse the date properly. Mine is the same date format as yours. But if I change the 0004 to 2004 then the date displays properly. Can't figure it out. Not sure of another way to make it work though...

I was trying use Ken's snippet also, and found that Christmas was going to fall on Dec. 31st, but then I followed your advise IchBin and went into the database php admin and changed the 0004 to 2004 and it works. Thanks.

This website is proudly hosted on Crocweb Cloud Website Hosting.