Notice

The forum is in read only mode.

Support Forum

Welcome! Support Forums have been reactivated
Welcome the Technical Support section. Help us in assisting you by providing us with a concise and descriptive elaboration of your issues. Be specific and if possible, provide us with a step-by-step instruction in replicating your problem.

Events Module

10 years 10 months ago
  • Eric's Avatar
    Topic Author
  • Eric
  • Offline
  • Fresh Boarder
  • Posts: 16
  • Thank you received: 0
Licenses:
JomSocial Expired Socialize Expired

Hi,

Is it possible to set the Events Module to display only the NEXT event? If not, is there a 3rd party module I can use for this?

Thanks,

Eric.

10 years 10 months ago
Licenses:

Hi Eric,

It by simple customization, but this is not override. So it will disappear at upgrade process.
for Events Module to display only the NEXT event, please follow this steps:
1. edit /modules/mod_community_events/mod_community_events.php line 40, replace it with:

$result = $model->getEvents($categoryIds, null, $sorted, null, true, false, null, array('parent' => $eventparent), $handler->getContentTypes(), $default, null, true);

2. edit /components/com_community/models/events.php line 202 replace with:
public function getEvents($categoryId = null, $userId = null, $sorting = null, $search = null, $hideOldEvent = true, $showOnlyOldEvent = false, $pending = null, $advance = null, $type = CEventHelper::ALL_TYPES, $contentid = 0, $limit = null, $nextEventOnly = false) {

3. same file at line 364, put this new code:
if ($nextEventOnly) {
            $extraSQL .= ' AND a.' . $db->quoteName('startdate') . ' > ' . $db->Quote($pastDate->format('Y-m-d H:i:s', true, false));
        }

Let me know the result. If now not works or you don't know how to do it. you can provide FTP access detail by editing your first post at this topic. Put it at Site Info form.

Regards,
Albert

10 years 10 months ago
  • Eric's Avatar
    Topic Author
  • Eric
  • Offline
  • Fresh Boarder
  • Posts: 16
  • Thank you received: 0
Licenses:
JomSocial Expired Socialize Expired

Hi,

I tried making the changes suggested, but it broke the site (white screen). I re-loaded the original files and it is working again.

I don't really want a solution where you have to hack the code, then change every time there's an upgrade. Are you aware of an alternative module which has this functionality, or could it be built in as standard?

Thanks,

Eric.

10 years 10 months ago
Licenses:

Hi Eric,

I think that because you did typo on code. that blank screen caused by that.
for rightnow your changes need hack the core. Community module still not support upcoming event ONLY. but upcoming and current events.

you can use our feature request for your voice:
uservoice.jomsocial.com/forums/101561-jo...ial-feature-requests

If you want me do it for you (for the module changes). I will do it for you. but you need provide me FTP access detail. by editing your first post at this topic. put it at Site Info Form.

Regards,
Albert

10 years 10 months ago
Licenses:

Hi Eric,

We have not received any response back from you in over 7 days, and would like to know if you consider this issue to be resolved. If you have any further questions, simply reply to this post.

Regards,
Albert

10 years 7 months ago
  • Eric's Avatar
    Topic Author
  • Eric
  • Offline
  • Fresh Boarder
  • Posts: 16
  • Thank you received: 0
Licenses:
JomSocial Expired Socialize Expired

Hi,

Sorry for not getting back in touch. I found a 3rd party extension which I thought would work for me, but it is now causing a 1064 error. I am not keen to hack your extension to give me this functionality as I will lose it each time I upgrade.

Would you consider including this functionality within the Events module as standard i.e. display next event. My client really needs this, and I think your other customers would benefit from this too.

Please let me know.

Thanks,

Eric.

10 years 7 months ago
Licenses:

Hi Eric,

I reported this demand to our developer as "need some improvement".
please wait, when wee release it.

Regards,
Albert

10 years 6 months ago
  • Eric's Avatar
    Topic Author
  • Eric
  • Offline
  • Fresh Boarder
  • Posts: 16
  • Thank you received: 0
Licenses:
JomSocial Expired Socialize Expired

Do you have any news when you might introduce this feature in the Events Module yet?

Eric.

10 years 6 months ago
Licenses:

Hi Eric,

our product manager decided to put this at Jomsocial 3.3 version. estimation will be released at next year.
for quick solution I only can offer core changes for you. if you can provide me FTP access detail, I can do it for you.

Regards,
Albert

Moderators: Piotr Garasiński
Powered by Kunena Forum

Join 180,000 websites creating Amazing communities

JomSocial is the most complete, easy-to-use addon that turns Joomla CMS into a
full -fledged, social networking site

TRY NOW BUY NOW