JEvents 1.5 (No longer actively supported)

Plugin for jEvents 1.5 for sh404_SEF

JEvents 2.0 was launched over 2 years ago and the latest stable version is version 2.2 which will run on Joomla 1.5 and Joomla 2.5. JEvents 1.5 is therefore no longer actively supported - you should upgrade to JEvents 2.2+ as soon as possible.
Forum rules
Please include as much detail in any test or bug reports for JEvents 1.5 as possible.

First of all, check if you are running the latest available version of Joomla! and JEvents. Posts for issues, where both systems are not updated, will be ignored.

We need the following at least:

* PHP version (e.g. 5.2.5). Note: Support for PHP4 is discontinued.
* Joomla! version
* JEvents version
* Web Server software (Apache or IIS with version number if possible)
* Server Operating system (e.g. Linux, Windows, Solaris, Darwin ...)
* Database version
* memory_limit from your phpinfo
* Web browser and version

Please enable error reporting and include any error messages in your posting. You do this via the Joomla Configuration - set "error reporting" to "maximum" on the Server tab.

Finally, please describe the steps required to recreate the problem and also please enable error reporting and give us any error messages generated.

Postby charlynancy » Wed Oct 27, 2010 10:31 am

Hi,
1°)i make addition in components/com_sh404sef/sef_ext/com_jevents.php
add under // remove common URL from GET vars list, so that they don't show up as query string in the URL :
Code: Select all
if (isset($title))//if &title=blablabla in URL
shRemoveFromGETVarsList('title');//remove it


so the complet code is :
Code: Select all
<?php
/**
 * sh404SEF support for com_events component.
 * Author :  Hi-Fi
 * contact : juho.saarinen@gmail.com
 *
 * {shSourceVersionTag: Version x - 2007-09-20}
 *
 * This is a jEvents sh404SEF native plugin file
 *   
 */
defined( '_JEXEC' ) or die( 'Direct Access to this location is not allowed.' );

// ------------------  standard plugin initialize function - don't change ---------------------------
global $sh_LANG, $sefConfig;
$shLangName = '';
$shLangIso = '';
$title = array();
$shItemidString = '';
$dosef = shInitializePlugin( $lang, $shLangName, $shLangIso, $option);
if ($dosef == false) return;
// ------------------  standard plugin initialize function - don't change ---------------------------

// ------------------  load language file - adjust as needed ----------------------------------------
$shLangIso = shLoadPluginLanguage( 'com_jevents', $shLangIso, '_COM_SEF_SH_JEVENTS_DAY');
// ------------------  load language file - adjust as needed ----------------------------------------

//$dosef=false;

//function to get event name
if (!function_exists( 'shEventTitle')) {
   function shEventTitle($evid){
      if ($evid==0) return "";
      global $sefConfig;
      $database =& JFactory::getDBO();
      $EventTitle = null;
      $q  = "
         SELECT r.rp_id, e.evdet_id, e.summary, r.eventid
         FROM #__jevents_vevdetail e, #__jevents_repetition r
         WHERE r.rp_id = " . $evid." AND r.eventid = e.evdet_id";
      $database->setQuery( $q );
      $EventTitle = $database->loadObjectList('rp_id');
      $jeventTitle = $EventTitle[$evid]->summary;   // title
      $title= $jeventTitle;
      return $title;
   }
}

if (!function_exists( 'shJevCatTitle')) {
   function shJevCatTitle($id){
      $id = urldecode($id);
      $ids = explode("|",$id);
      if (count($ids)>0) return "";
      global $sefConfig;
      $database =& JFactory::getDBO();
      $EventCatTitle = null;
      $q  = "
         SELECT id, title
         FROM #__categories
         WHERE id = " . $id;
      $database->setQuery( $q );
      $EventCatTitle = $database->loadObjectList('id');
      $jeventCatTitle = $EventCatTitle[$id]->title;   // title
      $title= $jeventCatTitle;
      return $title;
   }
}

// remove common URL from GET vars list, so that they don't show up as query string in the URL
shRemoveFromGETVarsList('option');
shRemoveFromGETVarsList('lang');
if (!empty($Itemid))
shRemoveFromGETVarsList('Itemid');
if (!empty($limit))
shRemoveFromGETVarsList('limit');
if (isset($limitstart))
shRemoveFromGETVarsList('limitstart'); // limitstart can be zero
shRemoveFromGETVarsList('day');
shRemoveFromGETVarsList('month');
shRemoveFromGETVarsList('year');
shRemoveFromGETVarsList('task');
shRemoveFromGETVarsList('evid');
if (!isset($evid)) $evid = 0;
shRemoveFromGETVarsList('rp_id');
shRemoveFromGETVarsList('uid');
shRemoveFromGETVarsList('format');
shRemoveFromGETVarsList('modid');
shRemoveFromGETVarsList('type');
shRemoveFromGETVarsList('view');
if (isset($title))//if &title=blablabla in URL (charly)
shRemoveFromGETVarsList('title');//remove it (charly)

// if no date in the query then use TODAY not the calendar date
jimport("joomla.utilities.date");
$t_datenow = new JDate();
if (!isset($year)) $year   = $t_datenow->toFormat("%Y");
if (!isset($month)) $month   = $t_datenow->toFormat("%m");
if (!isset($day)) $day   = $t_datenow->toFormat("%d");

// start by inserting the menu element title (just an idea, this is not required at all)
$task = isset($task) ? @$task : null;
$Itemid = isset($Itemid) ? @$Itemid : null;
$shEventsName = shGetComponentPrefix($option);
$shEventsName = empty($shEventsName) ?
getMenuTitle($option, $task, $Itemid, null, $shLangName) : $shEventsName;
$shEventsName = (empty($shEventsName) || $shEventsName == '/') ? 'EventsCom':$shEventsName;

$title[] = $shEventsName;
$title[] = '/';
//unset($vars['shEventsName']);

//and then the real vars


switch ($task) {
   case 'day.listevents':
      $title[] = $sh_LANG[$shLangIso]['_COM_SEF_SH_JEVENTS_DAY'].'/'.$day.'.'.$month.'.'.$year.'/';
      break;

   case 'cat.listevents':
   case 'range.listevents':
      break;
      
   case 'week.listevents':
      $title[] = $sh_LANG[$shLangIso]['_COM_SEF_SH_JEVENTS_WEEK'].'/'.$day.'.'.$month.'.'.$year.'/';
      break;

   case 'month.calendar':
      if (!isset($month)) {
         $title[] = '/';
      }
      else {
         $title[] = $sh_LANG[$shLangIso]['_COM_SEF_SH_JEVENTS_MONTH'].'/'.$month.'.'.$year.'/';
      }
      break;

   case 'year.listevents':
      $title[] = $sh_LANG[$shLangIso]['_COM_SEF_SH_JEVENTS_YEAR'].'/'.$year.'/';
      break;

   case 'search.form':
      $title[] = $sh_LANG[$shLangIso]['_COM_SEF_SH_JEVENTS_SEARCH'].'/';
      break;

   case 'icalrepeat.detail':
      $title[] = $sh_LANG[$shLangIso]['_COM_SEF_SH_JEVENTS_DETAILS'].'/'.$evid.'/';
      $title[] = shEventTitle($evid);
      $title[] = '/';
      break;

   case 'icalevent.edit':
      if (!isset($evid)) {
         $title[] = $sh_LANG[$shLangIso]['_COM_SEF_SH_JEVENTS_DETAILS'].'/'.$sh_LANG[$shLangIso]['_COM_SEF_SH_JEVENTS_ADD'].'/';
      }
      else {
         $title[] = $sh_LANG[$shLangIso]['_COM_SEF_SH_JEVENTS_DETAILS'].'/'.$evid.'/'.$sh_LANG[$shLangIso]['_COM_SEF_SH_JEVENTS_EDIT'].'/';
         $title[] = shEventTitle($evid).'/'.$rp_id;
         $title[] = '/';
      }
      break;

   case 'modlatest.rss':
      $title[] = '/RSS/';
      break;

   case 'admin':
      $title[] = $sh_LANG[$shLangIso]['_COM_SEF_SH_JEVENTS_ADMIN'].'/';
      break;

   case 'search.results':
      $title[] = $sh_LANG[$shLangIso]['_COM_SEF_SH_JEVENTS_SEARCH'].'/'.$keyword;
      shRemoveFromGETVarsList('push');
      shRemoveFromGETVarsList('keyword');
      break;

   default:
      $dosef=false;
      break;
}

if (isset($catids)) {
   $title[] = shJevCatTitle($catids);
   shRemoveFromGETVarsList('catids');
}

//$dosef=false;

// ------------------  standard plugin finalize function - don't change ---------------------------
if ($dosef){
   $string = shFinalizePlugin( $string, $title, $shAppendString, $shItemidString,
   (isset($limit) ? @$limit : null), (isset($limitstart) ? @$limitstart : null),
   (isset($shLangName) ? @$shLangName : null));
}
// ------------------  standard plugin finalize function - don't change ---------------------------



2°)And i add a new file com_jevents.php in components/com_sh404sef/meta_ext/ with this code :
Code: Select all
<?php
defined( '_JEXEC' ) or die( 'Direct Access to this location is not allowed.' );
?>
charlynancy
Silver Members
 
Posts: 26
Joined: Thu Oct 07, 2010 6:01 am

Postby quaints » Wed Oct 27, 2010 12:44 pm

Many thanks for this plugin!

Everything is working well except my JLegends menu.

For example the usual link
http://thebabygroupfinder.co.uk/index.p ... =10&day=26

(with shs404sef enabled) is taking me to the monthly view without filtering by category.

Also, noticed that when viewing upcoming events for a location, it no longer lists any.

Is anyone able to help please?
quaints
 
Posts: 33
Joined: Mon Jun 07, 2010 9:35 pm

Postby charlynancy » Thu Oct 28, 2010 12:36 pm

For example the usual link
http://thebabygroupfinder.co.uk/index.p ... =10&day=26

What is your unrewrited link in legend module (i don't use legends module and on your site SH404 is on)
charlynancy
Silver Members
 
Posts: 26
Joined: Thu Oct 07, 2010 6:01 am

Postby quaints » Thu Oct 28, 2010 3:03 pm

Thanks for the reply :) I've turned off sh404 for now

The link for one of the jlegend menu items is:
http://www.thebabygroupfinder.co.uk/index.php?option=com_jevents&catids=50&Itemid=2&task=month.calendar&year=2010&month=10&day=28

The link to show the location details page (address, map and upcoming events - not viewable on site), the page address is:
http://www.thebabygroupfinder.co.uk/index.php?option=com_jevlocations&task=locations.detail&loc_id=37&se=1&title=academy-sport-leisure-centre&Itemid=3

On this page, the upcoming events list is blank.
quaints
 
Posts: 33
Joined: Mon Jun 07, 2010 9:35 pm

Postby savvygroup » Wed Feb 02, 2011 5:36 am

Hello,

I am having a problem with the sh404 plugin and wanted to see if someone could help. I am using the sh404 plugin from the jevents downloads area.

Here is the issue i am having.

I have 6 menu links to the monthly view. Each of the links selects different categories to show in the monthly view.

When i turn on sh404 the url that is generated is the same for all the menu items and sh404 recognizes it as duplicate content. ( http://uscombatsports.com/tempdev/calendar/month.calendar/ ). It should create a unique url for each menu item.

Has anyone else experienced this issue or have any solutions.
savvygroup
 
Posts: 33
Joined: Sat Sep 04, 2010 2:17 pm

Postby Geraint » Wed Feb 02, 2011 3:57 pm

What do the non-sef URLs look like? The Itemid should be different in each of them
JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!
User avatar
Geraint
 
Posts: 42795
Joined: Fri Feb 15, 2008 6:14 pm

Postby savvygroup » Wed Feb 02, 2011 4:49 pm

Hello Geraint,

Thanks you for the reply they are different items ids

2 of the urls are below

index.php?option=com_jevents&view=month&task=month.calendar&Itemid=48

index.php?option=com_jevents&view=month&task=month.calendar&Itemid=102
savvygroup
 
Posts: 33
Joined: Sat Sep 04, 2010 2:17 pm

Postby Geraint » Thu Feb 03, 2011 11:07 am

these urls should pick up and use the menu alias.

Did you configure sh404sef to use the plugin?
JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!
User avatar
Geraint
 
Posts: 42795
Joined: Fri Feb 15, 2008 6:14 pm

Postby savvygroup » Thu Feb 03, 2011 2:43 pm

i put the plugin in the

components->com_sh404sef->sef_ext folder

the only config i did for the plugin was in components
sh404 ->configuration->by component-> jevents is set to use (default handler) and use sh404sef plugin if available.

if i go to sh404 -> configuration -> extension configuration there is no tab for jevents but i dont think there is supposed to be one.

Let me know your thoughts and thanks for the help
savvygroup
 
Posts: 33
Joined: Sat Sep 04, 2010 2:17 pm

Postby Geraint » Thu Feb 03, 2011 4:43 pm

On my site I get URLs like
http://www.domain.com/revision4ce/jeven ... .calendar/
and http://www.domain.com/revision4ce/jeven ... .calendar/

jevents-15 and jevents-dark are the menu item aliases - it looks as though yours are both set to 'calendar' is that possible?
JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!
User avatar
Geraint
 
Posts: 42795
Joined: Fri Feb 15, 2008 6:14 pm

PreviousNext

Return to JEvents 1.5 (No longer actively supported)

  • Who is online
  • View new posts
  • View unanswered posts
  • In total there is 1 user online :: 1 registered and 0 hidden (based on users active over the past 5 minutes)
  • Most users ever online was 94 on Tue Sep 01, 2009 12:33 am
  • Users browsing this forum: Google [Bot]