1. Fred 63
  2. Wishlist
  3. Tuesday, 06 June 2023
  4.  Subscribe via email
Hi,

I've made changes on components/com_comprofiler/plugin/user/plug_hotspots/hotspots.php file in order to choose category according to a CB Field.

For example, 2 categories :
cat id 1 : user with recent coordinates - blue ICON
cat id 2 : user with old coordinates - grey ICON


1/ CB Auto action fill the CB field like this : IF lastupdatedate < 6 month then cb_recent = 1 ELSE cb_recent = 2

2/ Configure Plugin Hotspot :
Hotspots category id : {cb_recent}
(it does work with just "1";)

Changes :
line 290, add :
$category = $params->get('category', 1);


line 318, change
$location['catid'] = $params->get('category', 1);

to
$location['catid'] = $this->replacePlaceholders($category, $user);


Would it be possible to include this in next release please ?
Thanks a lot
Responses (0)


There are no replies made for this post yet.
However, you are not allowed to reply to this post.

Last questions

Problem with matukio search plugin on J!4
We are still in the process of upgrading our site to J!4 Sadly we have a proble...
0 Replies
Posted on Friday, 22 September 2023
  • New
  • Custom Hotspot Marker fails to load
    I just updated from Joomla 3 to Joomla 4.3.4 and Hotspots 6.0.12. I decided to e...
    0 Replies
    Posted on Wednesday, 20 September 2023
  • New
    • #marker custom options
    • #hotspot joomla 4
    CMC for Joomla 4?
    Hello administrator I have updated my website to Joomla 4.x few days ago. Unf...
    3 Replies
    Posted on Thursday, 05 May 2022
    Unterschriftsliste, Buchungen Zahlungsfeld
    Hallo, Wie kann ich die Eingabefelder für z.B. die Zahlungsmethode umranden o...
    19 Replies
    Posted on Wednesday, 05 July 2023
    Hotspots on all sites suddenly not working...
    Not sure if this is a bug but all my sites are showing this error: Oops! Some...
    13 Replies
    Posted on Friday, 08 September 2023