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: 400
  • Total: 400

SMF Calendar Block

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

Previous topic - Next topic

0 Members and 3 Guests are viewing this topic.

Rus

How odd, its exactly reversed for me

jacortina

I'll look into it and see what can be put in place to insure the order.

Rus

Thanks, here is my default time format if that helps:

%B %d, %Y, %I:%M:%S %p

jacortina

OK. Put in an attempted fix for this indeterminate ordering.

Edited the code in:
http://www.tinyportal.net/index.php?topic=700.msg156369#msg156369

dannbass

Thank you so much!!!
I really appreciate all the work that you put here!! I have no words to thank you enough!!!!

dannbass

I have a comment and a question... :-\

The comment is that the months, when change the language doesn't work unless you cut the list and put it after this line:
list($month, $year, $month_name, $weekday) = explode(',',gmstrftime('%m,%Y,%B,%w',$first_of_month));

Before that it was messed up, the days didn't align and the month's name didn't appear next to the 2007.

And the question is...
With the previous version I was able to add class="windowbg" so it look more like me theme... is it possible to add classes to this one? specially for the highlighted events and the event listing... I'm sort of php challenged.

Thanks a lot, and if it is not possible I'm still more than happy with the new version!!

Here is how it looked before.

jacortina

No, you shouldn't have to do any cutting and pasting like that.

You DO need to remove (or 'neutralize') the comment block lines which surround the non-english langauge area. Everything that appears between the line that starts with "/*******" and the on that ends with "*******/" will be treated as a comment unless you do so. From the internal comments in the code:

Quote// To use Month and Day names other than the default on your server,
//   remove the two asterisk '*******' lines (the first starts with '/***'
//   and the second ends '***/')

The line that you give above will NEVER be executed if you remove those '*****' lines (or simply prefix both of them with a "//  ") as that will set the array value which will make it fail the 'if' clause that contains that line.

Coding to allow a 'class' specification for any of the things I'm already building 'style' specifiers for shouldn't present too big of a problem. I'll work on it.

dannbass


Quote from: J.A.Cortina on October 05, 2007, 07:14:54 PM
You DO need to remove (or 'neutralize') the comment block lines which surround the non-english langauge area. Everything that appears between the line that starts with "/*******" and the on that ends with "*******/" will be treated as a comment unless you do so. From the internal comments in the code:

It didn't work both times... I removed the lines and everything and didn't worked

Quote from: J.A.Cortina on October 05, 2007, 07:14:54 PM
(or simply prefix both of them with a "//  ") as that will set the array value which will make it fail the 'if' clause that contains that line.

I did that and that was what make the language work. Also had to move the names of the days...

Quote from: J.A.Cortina on October 05, 2007, 07:14:54 PM
Coding to allow a 'class' specification for any of the things I'm already building 'style' specifiers for shouldn't present too big of a problem. I'll work on it.

Thanks a lot!! You are the greatest!!!

jacortina

OK. Tracked down the glitch.

Updated the code in the post (back a page).

Please try it now and see if it works as advertised.

dannbass

The month came up!!
But the days are messed up

I put the $first_day = 1;
as 1
And removed the '/********...*******/' and it looks like this...
Thanks a lot!!

This website is proudly hosted on Crocweb Cloud Website Hosting.