social network icon...
 
Notifications
Clear all

social network icon icq link problem

5 Posts
3 Users
0 Reactions
1,362 Views
(@zipkinci)
Member Customer
Joined: 5 years ago
Posts: 28
Topic starter  

Hi, I have changed the ICQ icon to the Instagram icon with using this code. But I have a problem πŸ™‚ 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
(@zipkinci)
Member Customer
Joined: 5 years ago
Posts: 28
Topic starter  

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)
Support
Joined: 5 years ago
Posts: 1403
 

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
(@zipkinci)
Member Customer
Joined: 5 years ago
Posts: 28
Topic starter  
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 πŸ™‚ 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
(@tomson)
Famed Member Admin
Joined: 10 years ago
Posts: 4209
 

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:
Scroll to top