Search
Close
AI Search
Classic Search
 Search Phrase:
 Search Type:
Advanced search options
 Search in Forums:
 Search in date period:

 Sort Search Results by:

AI Assistant
social network icon...
 
Notifications
Clear all

social network icon icq link problem

5 Posts
3 Users
0 Reactions
2,314 Views
(@zipkinci)
Member Customer
Joined: 6 years ago
Posts: 28
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
  [#4637]

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: 6 years ago
Posts: 28
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
 

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: 7 years ago
Posts: 1403
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
 

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: 6 years ago
Posts: 28
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
 
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: 11 years ago
Posts: 4238
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
 

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