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.

JS Nearby Events Search module and old events

8 years 11 months ago
  • Adriano's Avatar
    Topic Author
  • Adriano
  • Offline
  • Fresh Boarder
  • Posts: 3
  • Thank you received: 0
Licenses:
JomSocial Active

ISSUE SUMMARY: The near by search results show all near events (future, current and old).
The events module instead shows only current and future leaving the tab of past events for the passed ones.
How is it possible to receive from the nearby module only the current and future events as results, to mantain the same behaviour of the events infrastructure?


STEPS TO REPLICATE:
1
2
3
4
5
RESULT
EXPECTED RESULT
BROWSER

8 years 11 months ago
Licenses:

Hi Adriano,

you can do it by edit:
/modules/mod_community_search_nearbyevents/helper.php at line 41 find this code

$objs = $model->getEvents(null, null, null, null, null, null, null, $advance);
changing it to
$objs = $model->getEvents(null, null, null, null, true, false, null, $advance);

Regards

The following user(s) said Thank You: Adriano
8 years 11 months ago
  • Adriano's Avatar
    Topic Author
  • Adriano
  • Offline
  • Fresh Boarder
  • Posts: 3
  • Thank you received: 0
Licenses:
JomSocial Active

OK, it works.

Thanks

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