Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length

JoomlaTune Support Forum    JComments component    Integration with third-party extensions    Topic: Integration with gigCalendar
Pages: [1]   Go Down
  Print  
Author Topic: Integration with gigCalendar  (Read 15195 times)
0 Members and 1 Guest are viewing this topic.
HostBuster
Guest
« on: September 10, 2008, 01:31:44 »

Hi all,

has anybody already found a solution to integrate with gigCalendar (http://gigcalendar.net/) ?
It would be great to have a comments feature at least on the band details page.

TIA
Logged
era
Global Moderator
Jr. Member
*****

Karma: 9
Offline Offline

Gender: Male
Posts: 12


211194534
Email
« Reply #1 on: September 11, 2008, 01:08:50 »

1. Open file gigcal.php (<joomla>/components/com_gigcal/gigcal.php), find (for me line 91):
Code:
case 'details':
 if(($gigconfig['menu_top']) && ($gigconfig['menu_details'])) echo $gigcal_menu;
  if(isset($_GET['day'])) { require_once('daydetails.php'); }
  if(isset($_GET['gigcal_gigs_id'])) { require_once('gigdetails.php'); }
  if(isset($_GET['gigcal_bands_id'])) { require_once('banddetails.php'); }
  if(isset($_GET['gigcal_venues_id'])) { require_once('venuedetails.php'); }


and after add lines:
Code:

if (isset($_GET['gigcal_gigs_id'])) {
  global $mosConfig_absolute_path;
$comments = $mosConfig_absolute_path . '/components/com_jcomments/jcomments.php';
if (file_exists($comments)) {
require_once($comments);
echo JComments::showComments(intval($_GET['gigcal_gigs_id']), 'com_gigcal');
}
}

, result:
Code:
case 'details':
 if(($gigconfig['menu_top']) && ($gigconfig['menu_details'])) echo $gigcal_menu;
  if(isset($_GET['day'])) { require_once('daydetails.php'); }
  if(isset($_GET['gigcal_gigs_id'])) { require_once('gigdetails.php'); }
  if(isset($_GET['gigcal_bands_id'])) { require_once('banddetails.php'); }
  if(isset($_GET['gigcal_venues_id'])) { require_once('venuedetails.php'); }

// our code start
if (isset($_GET['gigcal_gigs_id'])) {
  global $mosConfig_absolute_path;
$comments = $mosConfig_absolute_path . '/components/com_jcomments/jcomments.php';
if (file_exists($comments)) {
require_once($comments);
echo JComments::showComments(intval($_GET['gigcal_gigs_id']), 'com_gigcal');
}
}
// our code end
  if(($gigconfig['menu_bottom']) && ($gigconfig['menu_details'])) echo "<br />" . $gigcal_menu;
 break;

2. copy plugin com_gigcal.plugin.php (in attachments) to <joomla>/components/com_jcomments/plugins

3. test, and reply Smiley

* com_gigcal.plugin.zip (0.81 KB - downloaded 936 times.)
Logged

English is not my native language - so I can write with mistakes Wink
HostBuster
Guest
« Reply #2 on: September 28, 2008, 01:26:43 »

Hi,

at first - sorry for the delayed reply, was too busy last weeks.

Thanks a lot for your work - works like a charm on gig details page Smiley

One further question ....

To put JComments also on eg. bands detail page it would be effectual to add

Code:
if (isset($_GET['gigcal_bands_id'])) {
  global $mosConfig_absolute_path;
$comments = $mosConfig_absolute_path . '/components/com_jcomments/jcomments.php';
if (file_exists($comments)) {
require_once($comments);
echo JComments::showComments(intval($_GET['gigcal_bands_id']), 'com_gigcal');
}
}

after your first code in gigcal.php or are there further changes to your plugin necessary?

Again, many thanks
« Last Edit: September 28, 2008, 01:39:07 by HostBuster » Logged
Pages: [1]   Go Up
  Print  
JoomlaTune Support Forum    JComments component    Integration with third-party extensions    Topic: Integration with gigCalendar
 
Jump to: