How to configure mentions

Socialveo allow to configure the tag used for mentions users and networks. The default settings for users and networks it’s standard @. But you can for example change this by using +NetworkName for mention networks, and &UserName for mention users. You can also change this settings for mention friends using +FriendName, and for other members standard @UserName. Each network type allow also custom tag.

Let’s see the default settings:

    'mentions' => [ 
        'profile' => [ 
            '@',
            'fullname',
        ],
        'network' => [ 
            '@', 
            'fullname'
        ],
    ],

This setting use always the standard @ for all users and all networks.

Below settings use custom for friends, no friends and custom for networks and one custom network type business which use symbol $ as mention, so it will be for example $MyBusinessPage.

    'mentions' => [ 
        'friend' => [ // friends only
            '+', // NOTICE: friend type must use unique id (first symbol) what not used by any other types
            'fullname', // fullname or url
        ],
        'profile' => [ // regular user profile
            '@', 
            'fullname', // fullname or url
        ],
        'network' => [ 
            '@', // id can be the same as for 'profile'
            'fullname', // fullname or url
            'custom' => [ // can set custom for each type of network (network_type), e.g. business, group, etc
                'business' => [ // NOTICE: custom networks types must use unique id (first symbol) what not used by any other types
                    '$',
                    'url',
                    'private', // access to network: 'private' | 'protected' | 'public',
                               // default is public, private means access only for owner, protected - detect by status (public, private, protected)
                    '\\Namespace\\To\\ClassName::method', // method for customize criteria
                ],
            ],
        ],
    ],

Now it’s up to you to create something unique 🙂

Was this article helpful?

Related Articles

Leave A Comment?

You must be logged in to post a comment.