Page 5 of 13

Re: Calendar block for phpBB Calendar 0.0.8

Posted: 13. December 2008 23:24
by jotne
It does not update the mini calendar that comes with Board3, it gives you a new one.
The new mini Calendar do display current day and upcoming events using bold numbers on the calendar.
It does alos show next event below the mini Calender.

PS you do need to install "phpBB Calendar 0.0.8" before you install this mod.

Re: Calendar block for phpBB Calendar 0.0.8

Posted: 14. December 2008 01:27
by the.ronin
jotne wrote:It does not update the mini calendar that comes with Board3, it gives you a new one.
The new mini Calendar do display current day and upcoming events using bold numbers on the calendar.
It does alos show next event below the mini Calender.

PS you do need to install "phpBB Calendar 0.0.8" before you install this mod.
Thanks jotne. Yes I was aware that it is a new calendar block. I must have done something wrong then since it is not displaying events.

Re: Calendar block for phpBB Calendar 0.0.8

Posted: 15. December 2008 16:24
by jotne
Minor bug in Calendar block.
All the standard block in Board3 portal do have rounded corner on the grey background, but not the Calendar block for phpBB Calendar 0.0.8. It does have square corner.

Re: Calendar block for phpBB Calendar 0.0.8

Posted: 17. December 2008 06:23
by the.ronin
I've got this mod laid out to where I really like it. Thank you for those contributing to it. Just a few questions:

1) How can I limit the number of events shown?

2) If I were to delete the mini calendar so it just showed events, what codes can I delete?

Thanks again.

[edit]

To clarify #1 above, what can I delete particularly from the php files? I'm pretty sure I know what to delete from the portal html file.

Also, would there be a way to limit the number of characters displayed for an event? So that events with particularly long names do not wrap too many times in the block.

Re: Calendar block for phpBB Calendar 0.0.8

Posted: 18. December 2008 00:57
by the.ronin
the.ronin wrote:
1) How can I limit the number of events shown?
Ok found this one in the functions file. :D

Code: Select all

          // find next 5 events
          $result = $db->sql_query_limit($sql, 5, 0);
Still wondering how I can truncate event descriptions and also what I can delete from the php files if I took out the mini calendar from the html file and left just the events.

Thanks!

Re: Calendar block for phpBB Calendar 0.0.8

Posted: 18. December 2008 01:01
by the.ronin
Oh snap I’m on a roll ... I think I found the truncate piece. :D

Code: Select all

                $event_output['EVENT_SUBJECT'] = censor_text($row['event_subject']);
                if( $subject_limit > 0 )
                {
                   if(utf8_strlen($event_output['EVENT_SUBJECT']) > $subject_limit)
                   {
                      $event_output['EVENT_SUBJECT'] = truncate_string($event_output['EVENT_SUBJECT'], $subject_limit) . '...';
                   }
                }
Where $subject_limit is probably the same character limit in the ACP for the calendar mod. I’m going to try and hardcode a number there to limit the event description. What I have in the ACP is fine but I have far more limited space in my 180px portal block.

Ok so last piece is what I can delete if I remove the mini calendar? Anyone? Beuller?

Re: Calendar block for phpBB Calendar 0.0.8

Posted: 18. December 2008 01:56
by thomas.d
the.ronin wrote:... Still wondering how I can truncate event descriptions ...
Hi t.r.,

in your calendar's ACP you can set, how many characters of the subject will be shown ("0" = no limit)

The portal's calender block displays the same then.

Re: Calendar block for phpBB Calendar 0.0.8

Posted: 18. December 2008 04:34
by the.ronin
thomas.d wrote:
the.ronin wrote:... Still wondering how I can truncate event descriptions ...
Hi t.r.,

in your calendar's ACP you can set, how many characters of the subject will be shown ("0" = no limit)

The portal's calender block displays the same then.
Indeed you are right, thomas ... however, I want to set a different limit in the portal than in the main calendar mod.

Re: Calendar block for phpBB Calendar 0.0.8

Posted: 22. December 2008 16:53
by the.ronin
There might be a bug when it is an all-day event. Someone setup an all day event for Christmas (12/25) in the main calendar and it is showing up in the block as 12/24.

Re: Calendar block for phpBB Calendar 0.0.8

Posted: 28. December 2008 10:51
by wang5555
Synthesize neaten (frold, Graceland) two means, with MODx 1.2.1 format writes become HACK.

Download here.

Demo:
Image
http://220.134.232.37/phpBB3/portal.php?style=1

Re: Calendar block for phpBB Calendar 0.0.8

Posted: 29. December 2008 15:22
by mattnyy
the.ronin wrote:There might be a bug when it is an all-day event. Someone setup an all day event for Christmas (12/25) in the main calendar and it is showing up in the block as 12/24.

I'm having this issue to, have u figured out a fix for it?

Re: Calendar block for phpBB Calendar 0.0.8

Posted: 30. December 2008 01:07
by urednik
Hello,

I install this block, and after that I have troubles with Calendar.

Mini calander is one Year ahead, and events are not shown.
On click "CALENDAR" open big calendar (one year ahad), but on click on event, there open event.

There is always different view, depend of browser. IE show different as Firefox ...

Any idea ?
Development forum link: http://www.borovnica.eu/phpbb/index.php

Re: Calendar block for phpBB Calendar 0.0.8

Posted: 30. December 2008 17:46
by urednik
There is something wrong with original calenadar version 0.0.8

Read http://www.phpbb.com/community/viewtopi ... start=2025

Re: Calendar block for phpBB Calendar 0.0.8

Posted: 3. January 2009 15:47
by wang5555
mattnyy wrote:
the.ronin wrote:There might be a bug when it is an all-day event. Someone setup an all day event for Christmas (12/25) in the main calendar and it is showing up in the block as 12/24.

I'm having this issue to, have u figured out a fix for it?
My forum finded the issue too.
Example:
One event is from "01/06/2009 07:30" to "01/06/2009 08:30".
Image
But it shows "[1.5]" on portal.
Image

I settle the problem following:

#
#-----[ OPEN ]-----
#
includes/functions_calendar.php

#
#-----[ FIND ]-----
#

Code: Select all

            $dayOfEvent =  getdate($row["sort_timestamp"]);
#
#-----[ REPLACE WITH ]-----
#

Code: Select all

            $dayOfEvent =  getdate($row["sort_timestamp"]+8*60*60);// UTC+8
#
#-----[ SAVE & CLOSE ]-----
#

Now it shows normal on portal.
Image

P.S.
Because the timezone of my forum is "UTC+8", so "+8*60*60".
Please change it by your timezone.
Example:
If your timezone is "UTC+5", you must change to "+5*60*60".

Re: Calendar block for phpBB Calendar 0.0.8

Posted: 3. January 2009 16:53
by derkubi
Hello

Two questions :

Image

1. Under style BF-VISTA the block is transparent .

2. Can i change the date from [1.4] to Date : 1.4 ?