Fork me on GitHub

PostCalendar 5.8.2 "Upcoming Events" block  Bottom

  • I was wondering if it would be possible to modify the size of font or to re-arrange the view of upcoming event so that it fits better in my right block. Would anyone have any suggestions? Itried modifying the postcalendar_block_view_upcoming.html file in the PostCalendar blocks folder but it just seems that when I change the size of font it creates problems with whatever block I have under it (in this case the short "Menu" block that sits under it. You can see the problem here: http://www.musiqueancienne.org/NotaBene

    It just seems that it would fit better if the fonts were smaller. Any suggestions?

    The code in the block_view_upcoming.html file read like this:

    -------------------------

    Code

    <!--[* add JS to page if needed *]-->
    <!--[ pnmodgetvar module="PostCalendar" name="pcUsePopups" assign="pcUsePopups" ]-->
    <!--[ if $pcUsePopups eq true ]-->
        <!--[pnpageaddvar name="javascript" value="modules/PostCalendar/pnjavascript/postcalendar_overlibconfig.js"]-->
    <!--[ /if ]-->
    <!--[ pnmodgetvar module="PostCalendar" name="pcEventsOpenInNewWindow" assign="pcEventsOpenInNewWindow" ]-->
    <!--[ if pcEventsOpenInNewWindow eq true ]-->
        <!--[pnpageaddvar name="javascript" value="modules/PostCalendar/pnjavascript/postcalendar_jspopup.js"]-->
    <!--[ /if ]-->
    <div class="postcalendar_block_view_upcoming">
    <!--[ if $SHOW_TITLE eq 1 ]-->
    <h2 class='postcalendar_block_innertitle'><!--[gt text='Upcoming events']--></h2>
    <!--[ /if ]-->

    <!--[ counter start=0 assign=eventcount ]-->
    <!--[ pc_sort_events var="S_EVENTS" sort="time" order="asc" value=$A_EVENTS ]-->
    <!--[ foreach name=dates item=events key=date from=$S_EVENTS ]-->
        <!--[ if $date > $TODAY_DATE ]-->
            <!--[ foreach name=eventloop key=id item=event from=$events ]-->
                <!--[ if $eventcount < $DISPLAY_LIMIT ]-->
                    <!--[ if $event.alldayevent != true ]-->
                        <!--[ if HOUR_TIME  ]-->
                            <!--[ assign var="timestamp" value=$event.startTime|date_format:'%H:%M' ]-->
                        <!--[ else ]-->
                            <!--[ assign var="timestamp" value=$event.startTime|date_format:'%l:%M %p' ]-->
                        <!--[ /if ]-->
                    <!--[ else ]-->
                        <!--[ assign var="timestamp" value="" ]-->
                    <!--[ /if ]-->
                    <ul>
                        <!--[ if $smarty.foreach.eventloop.iteration eq 1 ]-->
                            <li class="pc_blockdate">
                                <!--[ $date|pc_date_format ]-->
                            </li>
                        <!--[ /if ]-->
                        <li class="pc_blockevent">
                            <a class="eventlink" href="<!--[ pc_url action=detail eid=$event.eid date=$date ]-->"
                                     <!--[ pc_popup delay="500"
                                                timeout="3600"
                                                bgcolor=$event.catcolor
                                                caption=$event.title
                                                text=$event.hometext|truncate:255:"..." ]-->><!--[ $timestamp ]--> <!--[ $event.title|strip_tags ]-->
                            <!--[ if $event.alldayevent != true ]-->
                                (<!--[ $event.duration_hours ]-->:<!--[ $event.duration_minutes ]--> <!--[gt text='Long']-->)
                            <!--[ /if ]-->
                            </a>
                        </li>
                    </ul>
                <!--[ /if ]-->
            <!--[ counter ]-->
            <!--[ /foreach ]-->
        <!--[ /if ]-->
    <!--[ /foreach ]-->

    <!--[ if $eventcount == 0 ]-->
        <!--[gt text='No events today.']-->
    <!--[ /if ]-->
    </div>


    -------------------------
  • Make the changes to the CSS.

    --
    Home Page | Find on Facebook | Follow on Twitter
  • Michael is correct, you should change the style.css file and override that in your theme instead of altering the actual template.
  • Thanks for the suggestion. I modified the .css and just a bit of the template.
  • Never modify the core tho, always do it either in /themes/yourtheme/templates/modules/PostCalendar or the corresponding location in /config That way your changes are not over written in an upgrade. And when 1.2.1 is stable and PC 6 is stable I highly recommend both. Speaking of which have we gotten an RC2 of 1.2.1?

    --
    Home Page | Find on Facebook | Follow on Twitter
  • Thanks for the note. I am just looking into the "overriding the theme" option and will mod this way as you and others have suggested. I'll get to it later and work off my mod notes.

    Not aware of any updates to 1.2.1 maybe someone else has some info.

This list is based on users active over the last 60 minutes.