social network icon...
 
Notifications

social network icon icq link problem  

  RSS

can aktaş
(@can-aktas)
Member Customer
Joined: 5 months ago
Posts: 19
18/10/2019 12:49 pm  

Hi, I have changed the ICQ icon to the Instagram icon with using this code. But I have a problem Smile when clicking to the Instagram icon, the ICQ page is opened. How can I do fix that?

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

Quote
can aktaş
(@can-aktas)
Member Customer
Joined: 5 months ago
Posts: 19
18/10/2019 3:34 pm  

I solved this problem by using "wpf-includes/class-template.php" file. I wonder that Does that change disappear at the next update?


ReplyQuote
Elvina
(@elvina)
Honorable Member Moderator
Joined: 6 months ago
Posts: 583
18/10/2019 4:23 pm  

Hi @can-aktas,

Please put the following code in the active theme functions.php file:

add_filter('wpforo_member_after_init_fields', function($fields){
if( wpfkey($fields, 'gtalk') ){
$fields['gtalk']['label'] = $fields['gtalk']['title'] = $fields['gtalk']['placeholder'] = wpforo_phrase('Instagram', false);
$fields['gtalk']['faIcon'] = 'fab fa-instagram';
}
return $fields;
});

 Also please remove all your previous added codes (that's very important).


ReplyQuote
can aktaş
(@can-aktas)
Member Customer
Joined: 5 months ago
Posts: 19
25/01/2020 5:14 am  
add_filter('wpforo_member_after_init_fields', function($fields){
if( wpfkey($fields, 'icq') ){
$fields['icq']['label'] = $fields['icq']['title'] = $fields['icq']['placeholder'] = wpforo_phrase('icq', false);
$fields['icq']['faIcon'] = 'fab fa-youtube';
}
return $fields;
});

hi again Smile I have already used "gtalk" field for Instagram. So I have used this code for youtube this time. But the youtube field does not become a link. it became only a text. I want a youtube link that is clickable on the profile page. What can I do?

Example link : https://www.spearfishingturkey.com/forum/profil/zipkinci/


ReplyQuote
Tom
 Tom
(@tomson)
Support Team Admin
Joined: 5 years ago
Posts: 3088
25/01/2020 1:31 pm  

Hi @can-aktas,

I'm really sorry but there is no way to make it link. I think you should checkout the wpForo Users Custom Field paid addon. This will extend your users profile page without any issue.

Addon Page: https://gvectors.com/product/wpforo-user-custom-fields/

Documentation: https://wpforo.com/docs/root/addons/wpforo-user-custom-fields/


ReplyQuote
Share: