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

SMF Calendar Block

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

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

True Knight

I did not do all the coding. All I changed was the Events/Birthdays/Holidays section. All the other coding was borrowed from a previous posters code.

BTW, I tried your revised code and I don't care for it as much as the code I posted. The colors are not as nice. On the code I posted the date is highlighted as a box as you mouseover. Your code only highlights the number itself in red. Also your code is much longer from top to bottom of the calendar, and whenever I mouseover on the Todays Birthday section it does a strange thing...compresses and decompresses from top to bottom. I just pasted your code as is.

I'll keep mine as is, unless something better comes along.

Xarcell

That doesn't sound like the code I just posted.

URPG

Nice Box! (only tried the last one posted)

Removed the mousover Effect, it looked kind of nervous...

How do i change the first day of week to Monday? It is monday in my SMF1.1RC2 calender!

tiochus

Quote from: URPG on June 18, 2006, 10:12:17 PM
How do i change the first day of week to Monday? It is monday in my SMF1.1RC2 calender!
You have to search in the 9th line of code this
$first_day = 0;
And you have to change 0 to 1
$first_day = 1;
And you will have Monday as first day of week.
:up:

URPG

Working  :up:

Now, all days are a hyperlink, but not the actual "today" inside the box? Is this a firefox issue or am i missing a line of code?

Lalato

Maybe I'm not understanding things so far, but do any of the versions noted in this thread allow you to click on a date to see the events that are happening on that date?  if so, which version?  If not, what are the difficulties involved in doing that (I'm a newbie, but I'm willing to give it a crack despite my lack of programming skill).

Thanks,
--sam

URPG

The version I installed displays events and allows you to click a date and visit it in SMF calender... With the small bug that you do not have a link on the "today" date.

Lalato

I installed one version where the dates (except "today") were clickable, but clicking on the dates resulted in a *new* post/event entry opening... not a listing of events for that day.

--sam

URPG

Uh, yes! The second one posted - that was looking nicer - does make you create an even on clicking a day...  :uglystupid2:

Lalato

Just realized that that isn't even an option in the SMF Calendar.  Now don't I have egg on my face.  At any rate...  Roarin's last one allows you to click on the current day.  The one by Xarcell doesn't.  I'm not sure why.  I haven't tried True Knight's yet.

Here's a quick list of what I would love to see in this block.  I'm getting a book on PHP today so I'm sure someone else will be able to do this way before me, but if not, I'll give it a go as my first project.

1.  << and >> links that allow browsing through the months.  This would be a very cool addition to this.

2.  There seems to be a problem with the way it handles the time offset.  Not sure why or how this would be fixed.

3.  Put the date of the event next to it so people don't have to click to see it.

Anyway... that's all I have for now.  Thanks to everyone that has worked on this.  Great Work!  :)

--sam

This website is proudly hosted on Crocweb Cloud Website Hosting.