Re: phpBB Calendar block on Board3 Portal (Update 1.0.3)
Posted: 3. August 2009 01:01
This is one possible way to hide Blocks and for thus, its ok
I used your code but afterwards the event add on wasn't hidden. Only after I deleted <!-- INCLUDE portal/block/calendar.html --> in the styles/prosilver/template/portal/portal_body.html the event add on was hidden.hegse wrote:You only can hide the minicalendar. The Event add on ist then hidden too when you do this with my code...
Sorry! The link already changed in the first post.Rotsblok wrote:I'm sorry but as I cannot read Taiwanees (dont know how to write it in english) I cannot seem to find the right link... to download this...
Possibly try removing your Calendar 0.0.8 / 0.1.0 instances/edits/etc... as if it was never there, and then re-install 0.1.0 fresh?Alexandrej wrote:Hello everyone,
I have a little problem with upgrading to calendar 0.1.0.
I previously had phpBB 3.0.5 with Board 3 v1.0.3 and Calendar 0.0.8 and everything worked fine.
I just upgraded to calendar 0.1.0 and the calendar works fine in my forum, but it blew up the portal completely.
When I go to the portal, I get a blank page with the following message :
Fatal error: Call to undefined function calendar_display_mini_month() in C:\weblocal\sites\phpbb3_torontois\portal\block\calendar.php on line 21
I then did also upgrade the calendar portal block to 1.0.3, but I still get the same message.
Has someone encountered this issue too ?
Since the calendar is working fine within the forum, then this points me to believe this issue is with the portal block ... Any ideas ?
Code: Select all
<!--version $Id: mini_calendar.html 481 2009-03-15 23:16:32Z Christian_N $ //-->
{$LR_BLOCK_H_L}<img src="{T_THEME_PATH}/images/portal/portal_minical.png" width="16px" height="16px" alt=""/> <a href="{U_CALENDAR}" title="{L_CALENDAR}">{L_CALENDAR}</a>{$LR_BLOCK_H_R}
<table cellspacing="0" width="100%">
<tr>
<td align="left" colspan="2"><!-- IF CALENDAR_PREV_MINI -->{CALENDAR_PREV_MINI}</a><!-- ENDIF --></td>
<td colspan="3" align="center"><span class="genmed">{CALENDAR_HEADER_MINI}</span></td>
<td align="right" colspan="2"><!-- IF CALENDAR_NEXT_MINI -->{CALENDAR_NEXT_MINI}</a><!-- ENDIF --></td>
</tr>
</table>
<table class="table_minical" cellspacing="0" cellpadding="0">
<!--<tr>
<th style="text-align:left;" colspan="7">{L_MINI_CAL_CALENDAR}</td>
</tr>-->
<tr class="row1">
<td style="width: 5%; text-align: center"><span class="gensmall" style="color:#FF0000">{SUNDAY_MINI}</span></td>
<td style="width: 5%; text-align: center"><span class="gensmall" style="color:#0000FF">{MONDAY_MINI}</span></td>
<td style="width: 5%; text-align: center"><span class="gensmall" style="color:#0000FF">{TUESDAY_MINI}</span></td>
<td style="width: 5%; text-align: center"><span class="gensmall" style="color:#0000FF">{WEDNESDAY_MINI}</span></td>
<td style="width: 5%; text-align: center"><span class="gensmall" style="color:#0000FF">{THURSDAY_MINI}</span></td>
<td style="width: 5%; text-align: center"><span class="gensmall" style="color:#0000FF">{FRIDAY_MINI}</span></td>
<td style="width: 5%; text-align: center"><span class="gensmall" style="color:#FF0000">{SATURDAY_MINI}</span></td>
</tr>
<!-- BEGIN mini_calendar_days -->
<!-- IF mini_calendar_days.START_WEEK -->
<tr>
<!-- ENDIF -->
<!-- IF mini_calendar_days.DUMMY_DAY -->
<td valign="top" class="bg3_calMon"> </td>
<!-- ELSE -->
<td valign="top" class="{mini_calendar_days.DAY_CLASS}">
<table cellpadding="0" cellspacing="1" border="0" width="100%">
<tr>
<td class="{mini_calendar_days.HEADER_CLASS}" style="font-weight:{mini_calendar_days.WRITE_BOLD}; text-align:center;">
<a href="{mini_calendar_days.DAY_VIEW_URL}">{mini_calendar_days.NUMBER}</a>
<br />
</td>
</tr>
</table></td>
<!-- ENDIF -->
<!-- IF mini_calendar_days.END_WEEK -->
</tr>
<!-- ENDIF -->
<!-- END mini_calendar_days -->
</table>
<br clear="all" />
<table class="table_minical" cellspacing="0" cellpadding="0" width="100%">
<tr class="row1">
<td style="width: 100%; text-align: center" class="bg4">{L_UPCOMING_EVENTS}</td>
</tr>
</table>
<table class="table_minical" cellspacing="0" cellpadding="0">
<tr>
<td class="row1">
<!-- BEGIN events -->
<!-- IF events.S_FIRST_ROW -->
<!-- ELSE --><hr><!-- ENDIF -->
<a href="{events.DAY_VIEW_URL}"><!-- IF events.COLOR --><span style="color:#{events.COLOR}"><!-- ENDIF -->
[{events.NUMBER}]<!-- IF events.COLOR --></span><!-- ENDIF --></a>
<a href="{events.EVENT_URL}" title="{events.EVENT_SUBJECT}">
<!-- IF events.COLOR --><span style="color:#{events.COLOR}"><!-- ENDIF -->
<!-- IF events.DISPLAY_BOLD --><strong><!-- ENDIF -->
<!-- IF events.IMAGE --><img src="{events.IMAGE}" title="{events.ETYPE_DISPLAY_NAME}" height="20" width="20" /><!-- ENDIF -->
<!-- IF events.ETYPE_DISPLAY_NAME -->{events.ETYPE_DISPLAY_NAME}:<!-- ENDIF -->
{events.EVENT_SUBJECT}
<!-- IF events.DISPLAY_BOLD --></strong><!-- ENDIF -->
<!-- IF events.SHOW_TIME --><br /><!-- IF events.ALL_DAY -->{L_ALL_DAY}<!-- ELSE -->
{L_FROM_TIME}: {events.START_TIME} <br />{L_TO_TIME}: {events.END_TIME}<!-- ENDIF -->
<!-- ENDIF -->
<!-- IF events.COLOR --></span><!-- ENDIF --></a><br />
<!-- END events -->
</td>
</tr>
</table>
{$LR_BLOCK_F_L}{$LR_BLOCK_F_R}