Calendar block for phpBB Calendar 0.0.8

Forum rules
This forum is not for support requests.

Only post Modifications for Board3 Portal 1.0.x in this forum.
Locked
User avatar

jotne
Active Member
Posts: 14
Joined: 8. December 2008 08:42

Re: Calendar block for phpBB Calendar 0.0.8

Post 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.

the.ronin
Valued Contributor
Posts: 64
Joined: 30. October 2008 16:20

Re: Calendar block for phpBB Calendar 0.0.8

Post 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.
User avatar

jotne
Active Member
Posts: 14
Joined: 8. December 2008 08:42

Re: Calendar block for phpBB Calendar 0.0.8

Post 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.

the.ronin
Valued Contributor
Posts: 64
Joined: 30. October 2008 16:20

Re: Calendar block for phpBB Calendar 0.0.8

Post 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.

the.ronin
Valued Contributor
Posts: 64
Joined: 30. October 2008 16:20

Re: Calendar block for phpBB Calendar 0.0.8

Post 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!

the.ronin
Valued Contributor
Posts: 64
Joined: 30. October 2008 16:20

Re: Calendar block for phpBB Calendar 0.0.8

Post 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?
User avatar

thomas.d
Former Team Member
Posts: 625
Joined: 19. January 2008 23:56
phpBB.de User: thomas.d
phpBB.com User: thomas.d
Contact:

Re: Calendar block for phpBB Calendar 0.0.8

Post 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.
Viele Grüße

Thomas

Deutsche Sprachdateien für
[Alpha] phpBB Calendar 0.0.8 (alightner) | [RC] phpBB Arcade 1.0.RC8 |
ACP Add User MOD 1.0.0 |

the.ronin
Valued Contributor
Posts: 64
Joined: 30. October 2008 16:20

Re: Calendar block for phpBB Calendar 0.0.8

Post 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.

the.ronin
Valued Contributor
Posts: 64
Joined: 30. October 2008 16:20

Re: Calendar block for phpBB Calendar 0.0.8

Post 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.
User avatar

wang5555
Translator
Posts: 55
Joined: 18. December 2008 01:39
phpBB.com User: wang5555
Location: Taiwan

Re: Calendar block for phpBB Calendar 0.0.8

Post 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
It is more blessed to give than to reveive, welcome to letter, thanks & good-bye!
Good luck ^_^
Welcome to visit my forum!!
https://wang5555.dnsfor.me/phpBB3/
p.s. Shut down computer before 11 clock night!!!

mattnyy
Active Member
Posts: 1
Joined: 24. December 2008 11:19
phpBB.com User: mattnyy
Location: New Jersey
Contact:

Re: Calendar block for phpBB Calendar 0.0.8

Post 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?
User avatar

urednik
Active Member
Posts: 33
Joined: 25. April 2008 17:44

Re: Calendar block for phpBB Calendar 0.0.8

Post 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
User avatar

urednik
Active Member
Posts: 33
Joined: 25. April 2008 17:44

Re: Calendar block for phpBB Calendar 0.0.8

Post by urednik »

There is something wrong with original calenadar version 0.0.8

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

wang5555
Translator
Posts: 55
Joined: 18. December 2008 01:39
phpBB.com User: wang5555
Location: Taiwan

Re: Calendar block for phpBB Calendar 0.0.8

Post 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".
It is more blessed to give than to reveive, welcome to letter, thanks & good-bye!
Good luck ^_^
Welcome to visit my forum!!
https://wang5555.dnsfor.me/phpBB3/
p.s. Shut down computer before 11 clock night!!!
User avatar

derkubi
Portal Enthusiast
Posts: 159
Joined: 12. March 2008 18:52
Contact:

Re: Calendar block for phpBB Calendar 0.0.8

Post 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 ?
Last edited by derkubi on 3. January 2009 17:31, edited 4 times in total.
Locked

Return to “board3 Portal v1.0.x - Modifications”