JoomEXT:Cal &Event

From Kb_JMY(晉明夷)

Jump to: navigation, search

Contents

Calendar & Event Management

gigCalender

Bugs & Fixes

BAD behavior in Full Calendar

  • Bugs:
  • I have an event on Jan 11, 2006.
  • From the mini GigCalendar, click on \'Jan 2006\'... the full calendar for Jan 2005 is displayed.
  • Try incrementing the year by clicking \'>>\'... still Jan 2005.
  • Try decrementing the year by clicking \'<<\'... Jan 2003 is displayed.
  • Try incrementing the month... the month advances BUT the year is decremented.
  • Try decrementing the month... BOTH month and year are decremented.
  • Try Jan 2006 from the dropdown list and click Go... still Jan 2005.
  • Try Jan 2007 from the dropdown list and click Go... Jan 2006 is displayed.
  • Solutions: Update the codes in "cal.php" as follows:
  • the file can be found here: <joomla directory>/components/com_gigcal/cal.php
  • look up to about line 54 and find the following codes:
<?php          if( !isset( $_REQUEST["year"] ) ) {
              $year = date("Y");
            } else {
              $year = $_REQUEST["year"];
              if( $month == 0 ) {
                                  $year = ($year - 1);
                          }
              if( $month == 13 ) {
                                  $year = ($year + 1);
                          }
            }

            if( !isset( $_REQUEST["month"] ) ) {
              $month = date("n");
            } else {
              $month = $_REQUEST["month"];
                          if( $month == 0 ) {
                                  $month = 12;
                          }
                          if( $month == 13 ) {
                                  $month = 1;
                          }
            }
  • Change these code into:
<?php      
       if ( !isset( $_REQUEST["month"] ) ) 
	    { $month = date("n");
	     } else { $month = $_REQUEST["month"]; }
			
	if ( !isset( $_REQUEST["year"] ) ) {
            $year = date("Y");
            } else 
            	{ $year = $_REQUEST["year"];
              	   if ( $month == 0 )   { $year = ($year - 1); }
                   if ( $month == 13 ) { $year = ($year + 1); }
	           if ( $month == 0 )   { $month = 12; }
             	   if( $month == 13 ) { $month = 1;}
                } //end: else ( !isset( $_REQUEST["year"] ) )

Date PopUp Problem: 1903 <-- bug fixes Still Not Tested!

  • Ref:
  1. Date PopUp: 1903
  2. joomlacode.org (SVN) -- Correcting Date PopUp Problem:1903
  • Assumes: com_gigcal-1.0.3.zip
  • looks for: <Joomla Directory>/administrator/components/com_gigcal/gig.php
  • in about line#58, codes similar to the following should be found:
<tr>
<td><div align="right"><b>Date </b></div></td>

<td>
<input id="gigdate" name="gigdate" size="12" maxlength="10" value="<?php if($edit) { echo date("Y-m-d", $result['gigdate']); } else { echo date("Y-m-d"); } ?>" type="text">

<input class="button" value="..." onclick="return showCalendar('gigdate', 'Y-m-d');" type="reset">

</td>
</tr>
  • The date there and the format was incorrect. Instead of m/d/y which appears 3 times in about line 61 it should read Y-m-d -- After correction, the codes are as shown above.


gigCalender Frontend Addon

It is the FrontEnd for gigCalendar management by registered users

  • Instructions for adding frontend menu Links to the component elements from Joomla's Backend
  • Menus for registered users:
Go to your usermenu administrator and add the following menu items:
  • for Adding a new Gig
Add a component menu item, linking to gigCal FrontEnd component
  • for Adding a new Venue
Add a link menu item to this url: "index.php?option=com_gigfe&task=venue"
  • for Adding a new Band
Add a link menu item to this url: "index.php?option=com_gigfe&task=band"
  • for Adding a new Event Category
Add a link menu item to this url: "index.php?option=com_gigfe&task=category"
  • for showing a list of all the user's entries
Add a link menu item to this url: "index.php?option=com_gigfe&task=myitems"
  • Public menus
Go to your menu manager and select the menu which you want to include the listings items then add the following items:
  • Display the Event List by adding the "Link-Url": "index.php?option=com_gigcal&task=alist&Itemid=46"
  • Displaying the Bands List
Add a link menu item to this url: "index.php?option=com_gigfe&task=bandlist"
  • Displaying the Venues List
Add a link menu item to this url: "index.php?option=com_gigfe&task=venuelist"



Personal tools