Notifications
Clear all

Add social network

10 Posts
6 Users
0 Likes
7,004 Views
zetmouse
Posts: 12
Topic starter
(@zetmouse)
Active Member
Joined: 5 years ago

I'm from Russia.
We have a Russian social network VKONTAKTE (vk.com)
Can I add this to a member profile?

9 Replies
Robert
Posts: 9912
Admin
(@robert)
Support Team
Joined: 7 years ago

I think the easiest way to change one of Social Network to VKONTAKTE, for example in phrase system search for ICQ or AOL IM and change the phrase to Vkontakte. This will be displayed as Vkontakte field on forum front.

Reply
1 Reply
zetmouse
(@zetmouse)
Joined: 5 years ago

Active Member
Posts: 12

And how to replace the icon?

Reply
Robert
Posts: 9912
Admin
(@robert)
Support Team
Joined: 7 years ago

For example you change AOL IM to Vkantacte.

$field = 'aim';

For example you change ICQ to Vkantacte.

$field = 'icq';

You should add a small code in wpForo Field hook. Navigate to Dashboard > Appearance > Editor and put this code in functions.php file of your active child theme's functions.php file. If it doesn't have child theme put it in current theme functions.php file.

I'd also recommend use WP Editor plugin instead of WordPress native editor. The native editor sometimes doesn't save changes. Just install WP Editor then navigate to the same page and put this code as described above.

function wpforo_change_social_field_icon( $fields ){
//Field name
$field = 'aim';
//Font-Awesome icon class http://fontawesome.io/icons/
$icon = 'fa-vk';
if( !empty($fields) && isset($fields[$field])) $fields[$field]['faIcon'] = $icon;
return $fields;
}
add_filter( 'wpforo_member_after_init_fields', 'wpforo_change_social_field_icon' );

 

 

 

Reply
1 Reply
zetmouse
(@zetmouse)
Joined: 5 years ago

Active Member
Posts: 12

I did not understand.
Where should I insert the code?
Installed topic News Magazine ( http://themedemo.web-dorado.com/theme-newsmagazine/)

Reply
Robert
Posts: 9912
Admin
(@robert)
Support Team
Joined: 7 years ago

The functions.php file is not the same for all themes, the content code is different, but all extra codes people insert in functions.php file. Just click on line #4, copy the code and paste there. Then save it and check. If you doubt, just send admin login details to support[at]gvectors.com email address, we'll do that for you.

Reply
annabwashere
Posts: 38
(@annabwashere)
Eminent Member
Joined: 4 years ago

Do we do this for every social network we need to change?

For example, I am changing AIM for Instagram, ICQ for Flickr and MSN for YouTube.

I have done it for Instagram already, but when filling out the field, it doesn't ask for a URL so the result isn't a link (like the Twitter field).

And how do we remove the other fields we don't need?

Reply
Page 1 / 2