Jump to content

Thomas Hop

Clients
  • Posts

    150
  • Joined

  • Last visited

 Content Type 

Downloads

Release Notes

IPS4 Guides

IPS4 Developer Documentation

Invision Community Blog

Development Blog

Deprecation Tracker

Providers Directory

Forums

Events

Store

Gallery

Posts posted by Thomas Hop

  1. Hello everyone,

    I have a question about possibly updating the search we use on our forum. 

    We currently use the default MySQL as search engine and we noticed that whenever we use for something the results are not like we want, our forum members even resorted to searching what they want in google plus the name of our forum, which have gotten them a lot better results. 

    Now I was wondering if there were maybe plugins, settings or other things I can do to improve the search?

    Thanks,

    search options.PNG

  2. Hey guys,

    The plugin suddenly stopped working. When a user enters their address in the field that is being used to sync the markers on the map it is not being pased on the map.

    We still need to update to the newest version of Invision 3.4.6. Could this be the problem? Or are more people experiencing these kind of issues?

     

    Best regards,

    Thomas

  3. On 8/12/2018 at 8:24 AM, Martin A. said:

    Hello,

    What you're missing here is that popup content is loaded with AJAX (this was done to reduce the size of the cache). See \IPS\membermap\modules\front\membermap\ajax getPopup().

    You can do this in the template:

    
    {{if $marker->container()->type == 'member'}}
    	{{$profileFields = $marker->author()->contentProfileFields();}}
    	{{error_log( print_r( $profileFields, 1 ) );}}
    {{endif}}

     

    Hey Martin,

    Been a bit inactive for a few days but I have seen your post and I will check up on it when I have the time!

     

    Thanks a lot!

  4. Yes that did add the table to $markers. When I print it inside the file: 

    try
                {
                    $groupId = $this->getMemberGroupId();
    
                    $db = \IPS\Db::i()->select( '*', array( 'membermap_markers', 'mm' ), array( 'mm.marker_member_id=? AND mm.marker_parent_id=?', intval( $memberId ), intval( $groupId ) ) );
    
                    
                    if ( $loadMemberdata )
                    {
                        $db->join( array( 'core_members', 'm' ), 'mm.marker_member_id=m.member_id' );
                        $db->join( array( 'core_groups', 'g' ), 'm.member_group_id=g.g_id' );
                        $db->join( array( 'core_pfields_content', 'pc' ), 'mm.marker_member_id=pc.member_id' ); 
                        
                    }
                    
                    $_marker = $db->first();
                    
                
                    
                    if ( ! $format OR ! $loadMemberdata )
                    {
                        $_marker = \IPS\membermap\Markers\Markers::constructFromData( $_marker );
                    }
    
                    $marker[ $memberId . '-' . ( $format ? '1' : '0' ) ] = $_marker;
                            error_log(print_r($marker,true));
                }
                catch( \UnderflowException $e )
                {
                    return false;
                }
            }

    However when I print $markers inside the template popupContent there are only like 25 items left of the array. What am I missing here?

    Knipsel1.PNG

    Knipsel2.PNG

    Knipsel3.PNG

  5. Is it possible to add another table column to the Member Map application based on member id? 

    I want to add core_pfields_content -> field_1

    I inserted another hook but all I get is the table core_pfields_data when I try.

     

    try
    			{
    				$groupId = $this->getMemberGroupId();
    
    				$db = \IPS\Db::i()->select( '*', array( 'membermap_markers', 'mm' ), array( 'mm.marker_member_id=? AND mm.marker_parent_id=?', intval( $memberId ), intval( $groupId ) ) );
    
    				$memberPfield = \IPS\core\ProfileFields\Field::load( $memberId );
    				error_log(print_r($memberId,true));
    				error_log(print_r($memberPfield->data,true));
    				
    				if ( $loadMemberdata )
    				{
    					$db->join( array( 'core_members', 'm' ), 'mm.marker_member_id=m.member_id' );
    					$db->join( array( 'core_groups', 'g' ), 'm.member_group_id=g.g_id' );
    				}
    				
    				$_marker = $db->first();
    
    				if ( ! $format OR ! $loadMemberdata )
    				{
    					$_marker = \IPS\membermap\Markers\Markers::constructFromData( $_marker );
    				}
    
    				$marker[ $memberId . '-' . ( $format ? '1' : '0' ) ] = $_marker;
    						
    			}

     

    Any help here would be appriciated!

×
×
  • Create New...