Welcome, Guest
Username: Password: Remember me

TOPIC: Display JO Facebook Events Module in Article

Display JO Facebook Events Module in Article 7 years 1 month ago #4978

  • Scott
  • Scott's Avatar
  • OFFLINE
  • New Member
  • Posts: 4
  • Karma: 0
I would like to display the Facebook Events module in the component area of my site. To do this I published the module to an unused position in my template (position8) and created an article with this: {loadposition position8}

I then created a menu item to link to that article but I get the following error when I try to load the page:

Fatal error: Class 'JFile' not found in mysite/path/modules/mod_jo_facebookevents/helper.php on line 109

Do you have any suggestions in how I could make this work?
The administrator has disabled public write access.

Display JO Facebook Events Module in Article 7 years 1 month ago #4979

  • Super User
  • Super User's Avatar
  • OFFLINE
  • Administrator
  • Posts: 3519
  • Thank you received: 278
  • Karma: 65
Hello Scott
Please help me find and open file modules/mod_jo_facebookevents/helper.php and go to line 13 after line defined('_JEXEC') or die ('Restricted access'); and please help me add code
jimport('joomla.filesystem.file');


Best regards
Bach Pham
The administrator has disabled public write access.
The following user(s) said Thank You: Scott

Display JO Facebook Events Module in Article 7 years 1 month ago #4980

  • Scott
  • Scott's Avatar
  • OFFLINE
  • New Member
  • Posts: 4
  • Karma: 0
That solved the issue. Thank you so much for your quick response!

Also, I have other questions:
Is there a reason height has to be set for module? Would it be better to let the module height be determined by the contents?

Also, you should add spaces before and after "until". When the event has an end time, the start time and end time all run together like this: 10 March 2017 07:00until10March 2017 09:00. I resolved this by adding spaces in the file language/en-GB for the MOD_JO_FACEBOOKEVENTS_UNTIL entry.

Thanks!
The administrator has disabled public write access.

Display JO Facebook Events Module in Article 7 years 1 month ago #4981

  • Scott
  • Scott's Avatar
  • OFFLINE
  • New Member
  • Posts: 4
  • Karma: 0
Regarding module height...

I modified the tmpl/default.php site. I went to line 45 and removed

style="height:<?php echo $params->get('height')?>"

The module displays fine on my test site: http://http://scott.rhinodome.com/index.php/events
Last Edit: 7 years 1 month ago by Scott. Reason: fixed link
The administrator has disabled public write access.

Display JO Facebook Events Module in Article 7 years 1 month ago #4982

  • Super User
  • Super User's Avatar
  • OFFLINE
  • Administrator
  • Posts: 3519
  • Thank you received: 278
  • Karma: 65
:) Great
Thank you for using our products
Best regards
Bach Pham
The administrator has disabled public write access.
Time to create page: 0.093 seconds