![]() |
Adding Facebook/Facebook Messenger as a Communication Option
1 Attachment(s)
With my forum being a Trading and Buy/Sell Forum, communication is a key and vital for members making deals. This hack is really opening up another mode of communication to allowing my members to communicate.
The hack is adding Facebook Messenger as a communication option to your forum. NOTE: This does require your members to have a Facebook Account and is using Messenger. The steps are fairly straight forward, but does require some template and profile hacks as well as image uploads. 1) Download the images and upload them to your forums images/misc directory 1 - Messenger Icon -https://vborg.vbsupport.ru/external/2018/03/1.png 2) Need to add a Profile Fields (Admincp->User Profile Fields->Add New User Profile Field) Note - I added a Profile Group Called PayPal Field 1 - Facebook/Messager Name - Facebook/Facebook Messenger Description - Add your Facebook (Messenger) username to add on your profile Field Required - No Editable - Yes Private, Searchable, Show on Memberlist - No Rest leave as default (unless you wish to set this) Make sure that you jot down the field ID numbers! There are 2 options that you can use to enable this hack. Option 1 - User Postbit Go to Styles & templates->Style Manager->Edit Template of the Style you wish to change Find the postbit or postbit_legacy template (depends which one you are using for your forum) - Doubleclick to Edit Note - I used postbit_legacy but this should be the same for postbit Find the following Code:
<dt>{vb:rawphrase posts}</dt> <dd>{vb:raw post.posts}</dd> Code:
<!-- Facebook/Messenger--> Could look as such this when applied https://vborg.vbsupport.ru/external/2018/03/2.png FYI - You can use the same type of structure to add other items like Twitter, Facebook, etc... Test! Option 2 - Member Action Dropdown For this option there are 2 ways you can do this 1) Template Hack 2) Plug-in You don't need both - either one should work Template Hack Go to Styles & templates->Style Manager->Edit Template of the Style you wish to change Find the memberaction_dropdown - Doubleclick to Edit Find the following Code:
Code:
<vb:if condition="$memberinfo['fieldXX']"> https://vborg.vbsupport.ru/external/2018/03/3.png Plug-in Thanks to MarkFL for this. If you choose to you a plug-in, this is the code that would need to be added. Create a plugin hooked at "memberaction_dropdown" with the PHP code: Code:
if ($memberinfo['fieldxx']) Again, Test Lastly, alert your members to the change and bask in the praise of your genius (in your members eyes :D ) Notes - 1st release on 3 March 2018 |
Reserved
AS a point of note - on the Profile fields, you COULD separate Facebook from Facebook Messenger if you decide this is the best route for your site, you would need to get a Facebook Icon and upload it to your Image folder of your choice. |
Is there a way to do it through whatsapp instead of Facebook Messenger?
|
All times are GMT. The time now is 09:12 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|