Advertisement:

Author Topic: Add & Create Social Media Icons To Profiles  (Read 244419 times)

Offline Alexa Lynne

  • Full Member
  • ***
  • Posts: 510
  • Gender: Female
  • Transgender Women ARE Women!
    • rainbowpride83 on Facebook
    • @rainbowpride83 on Twitter
    • ArklahomaWx
Re: Add & Create Social Media Icons To Profiles
« Reply #600 on: January 31, 2019, 07:43:12 PM »
If anybody is having problems with installing this mod since the added support of 'https' in SMF, you need to change one section manually to get it to work.

Find the following line in the SMF2 'install' file:
Code: [Select]
<search position="before"><![CDATA[ 'msn' => $profile['msn'] !='' && (empty($modSettings['guest_hideContacts']) || !$user_info['is_guest']) ? array(
'name' => $profile['msn'],
'href' => 'http://members.msn.com/' . $profile['msn'],
'link' => '<a class="msn new_win" href="http://members.msn.com/' . $profile['msn'] . '" title="' . $txt['msn_title'] . ' - ' . $profile['msn'] . '"><img src="' . $settings['images_url'] . '/msntalk.gif" alt="' . $txt['msn_title'] . ' - ' . $profile['msn'] . '" /></a>',
'link_text' => '<a class="msn new_win" href="http://members.msn.com/' . $profile['msn'] . '" title="' . $txt['msn_title'] . ' - ' . $profile['msn'] . '">' . $profile['msn'] . '</a>'
) : array('name' => '', 'href' => '', 'link' => '', 'link_text' => ''),]]></search>
And replace it with this:
Code: [Select]
<search position="before"><![CDATA[ 'msn' => $profile['msn'] !='' && (empty($modSettings['guest_hideContacts']) || !$user_info['is_guest']) ? array(
'name' => $profile['msn'],
'href' => 'https://members.msn.com/' . $profile['msn'],
'link' => '<a class="msn new_win" href="https://members.msn.com/' . $profile['msn'] . '" title="' . $txt['msn_title'] . ' - ' . $profile['msn'] . '"><img src="' . $settings['images_url'] . '/msntalk.gif" alt="' . $txt['msn_title'] . ' - ' . $profile['msn'] . '" /></a>',
'link_text' => '<a class="msn new_win" href="https://members.msn.com/' . $profile['msn'] . '" title="' . $txt['msn_title'] . ' - ' . $profile['msn'] . '">' . $profile['msn'] . '</a>'
) : array('name' => '', 'href' => '', 'link' => '', 'link_text' => ''),]]></search>

It adds the missing 's' to the MSN urls, and will now pass and install. ;)

Hope this helps anybody who's having this problem as well. :)

I can't find the SMF Install file.  If it's the original one that was deleted after i installed SMF, then I no longer have it.

Offline Bob Perry of Web Presence Consulting

  • Sophist Member
  • *****
  • Posts: 1,024
  • Gender: Male
  • (T)ogether (E)veryone (A)chieves (M)ore
    • Bobert921 on Facebook
    • https://www.linkedin.com/in/bperry921/ on LinkedIn
    • @bperry921 on Twitter
    • Web Presence Consulting
Re: Add & Create Social Media Icons To Profiles
« Reply #601 on: January 31, 2019, 08:16:06 PM »
If anybody is having problems with installing this mod since the added support of 'https' in SMF, you need to change one section manually to get it to work.

Find the following line in the SMF2 'install' file:
Code: [Select]
<search position="before"><![CDATA[ 'msn' => $profile['msn'] !='' && (empty($modSettings['guest_hideContacts']) || !$user_info['is_guest']) ? array(
'name' => $profile['msn'],
'href' => 'http://members.msn.com/' . $profile['msn'],
'link' => '<a class="msn new_win" href="http://members.msn.com/' . $profile['msn'] . '" title="' . $txt['msn_title'] . ' - ' . $profile['msn'] . '"><img src="' . $settings['images_url'] . '/msntalk.gif" alt="' . $txt['msn_title'] . ' - ' . $profile['msn'] . '" /></a>',
'link_text' => '<a class="msn new_win" href="http://members.msn.com/' . $profile['msn'] . '" title="' . $txt['msn_title'] . ' - ' . $profile['msn'] . '">' . $profile['msn'] . '</a>'
) : array('name' => '', 'href' => '', 'link' => '', 'link_text' => ''),]]></search>
And replace it with this:
Code: [Select]
<search position="before"><![CDATA[ 'msn' => $profile['msn'] !='' && (empty($modSettings['guest_hideContacts']) || !$user_info['is_guest']) ? array(
'name' => $profile['msn'],
'href' => 'https://members.msn.com/' . $profile['msn'],
'link' => '<a class="msn new_win" href="https://members.msn.com/' . $profile['msn'] . '" title="' . $txt['msn_title'] . ' - ' . $profile['msn'] . '"><img src="' . $settings['images_url'] . '/msntalk.gif" alt="' . $txt['msn_title'] . ' - ' . $profile['msn'] . '" /></a>',
'link_text' => '<a class="msn new_win" href="https://members.msn.com/' . $profile['msn'] . '" title="' . $txt['msn_title'] . ' - ' . $profile['msn'] . '">' . $profile['msn'] . '</a>'
) : array('name' => '', 'href' => '', 'link' => '', 'link_text' => ''),]]></search>

It adds the missing 's' to the MSN urls, and will now pass and install. ;)

Hope this helps anybody who's having this problem as well. :)

I can't find the SMF Install file.  If it's the original one that was deleted after i installed SMF, then I no longer have it.

The poster I believe was referring to the install.php file inside the .zip package file, what you'd do is unzip the file onto your hard drive in a temporary folder, edit the file, rezip it, upload to server and after uninstalling old version install edited version and reinstall

It's faster to find the code in the package manager pre-install, go ahead and install original package, do the edit to the installed version, the package manager would be able to show you the correct file
Best Regards,
Bob Perry



"The world is moving so fast these days that the man who says it can't be done is generally interrupted by someone doing it." Elbert Hubbard

Online shadav

  • Jr. Member
  • **
  • Posts: 394
  • Gender: Female
    • Ask The Muslims: A Place To Ask Honest Questions and Receive Respectful Answers
Re: Add & Create Social Media Icons To Profiles
« Reply #602 on: August 17, 2019, 09:20:52 PM »
@hcfwesker

Hi man, been a while... I was wondering, are you still supporting this? I just installed on 2.1 beta 3 site and it looks good except it won't save edits in profile when you add the username... no log errors... its a good mod and I'd like to see if it will function on 2.1
do you by chance happen to remember how you fixed this?
I installed it onto 2.0.15 and everything installed fine
but every time I edit my profile and press save they just disappear....

Online shadav

  • Jr. Member
  • **
  • Posts: 394
  • Gender: Female
    • Ask The Muslims: A Place To Ask Honest Questions and Receive Respectful Answers
Re: Add & Create Social Media Icons To Profiles
« Reply #603 on: August 23, 2019, 05:15:40 PM »
i'm trying to get this working on 2.0.15
in  Admin -> Core Features -> Advanced Profile Fields, I have checked them for active but not show on register (I don't want it on the register, they can update their profiles after they register)
advanced profile fields is turned on....
if you modify your forum profile the options are there to fill out your info.... but it is not showing anywhere on the profile or post page....

Offline GravuTrad

  • Senior Translator
  • SMF Hero
  • *
  • Posts: 8,674
  • Gender: Male
  • One of the french SMF translators
Re: Add & Create Social Media Icons To Profiles
« Reply #604 on: November 14, 2019, 07:01:11 AM »
Modifications.french.php:

Code: [Select]
$txt['smi_buddies_title'] = 'R&eacute;seaux sociaux';
$txt['smi_facebook_title'] = 'Facebook';
$txt['smi_facebook_desc'] = 'Entrez votre nom d\'utilisateur Facebook.';
$txt['smi_myspace_title'] = 'MySpace';
$txt['smi_myspace_desc'] = 'Entrez votre nom d\'utilisateur MySpace.';
$txt['smi_twitter_title'] = 'Twitter';
$txt['smi_twitter_desc'] = 'Entrez votre nom d\'utilisateur Twitter.';
$txt['smi_youtube_title'] = 'Youtube';
$txt['smi_youtube_desc'] = 'Entrez votre nom d\'utilisateur Youtube.';
$txt['smi_deviantart_title'] = 'DeviantArt';
$txt['smi_deviantart_desc'] = 'Entrez votre nom d\'utilisateur DeviantArt.';
$txt['smi_pinterest_title'] = 'Pinterest';
$txt['smi_pinterest_desc'] = 'Entrez votre nom d\'utilisateur Pinterest.';
$txt['smi_googleplus_title'] = 'Google+';
$txt['smi_googleplus_desc'] = 'Entrez votre ID utilisateur Google+.';
$txt['smi_linkedin_title'] = 'LinkedIn';
$txt['smi_linkedin_desc'] = 'Copier coller le lien vers votre profil LinkedIn.';
$txt['custom_edit_placement_withsmiicons'] = 'Avec Ic&ocirc;nes M&eacute;dias Sociaux';
$txt['custom_profile_placement_withsmiicons'] = 'Avec Ic&ocirc;nes M&eacute;dias Sociaux';
$txt['custom_smi_enclose'] = '<strong>Ic&ocirc;nes M&eacute;dias Sociaux (Ne PAS Ignorer!):</strong>';
$txt['custom_smi_enclose_desc'] = 'Pour des <u>Ic&ocirc;nes M&eacute;dias Sociaux personnalis&eacute;s</u>, ceci doit &ecirc;tre rempli. Cliquez sur l\ic&ocirc;ne <strong>Aide</strong> pour les instructions d&eacute;taill&eacute;es.';
$txt['custom_smiicon_image'] = 'Ajouter une image Ic&ocirc;ne M&eacute;dia Social personnalis&eacute;e.';
$txt['custom_smiicon_image_desc'] = 'Uniquement pour les Ic&ocirc;nes M&eacute;dias Sociaux personnalis&eacute;s. Les images doivent &ecirc;tre de taille 16 X 16.<br />T&eacute;l&eacute;charger les images sur le r&eacute;pertoire <strong>Themes/{theme name}/images</strong>';
$txt['customsmi_images_url'] = '{theme URL}/images/';

Helptext should have a file too...
« Last Edit: November 14, 2019, 07:32:11 AM by GravuTrad »
On a toujours besoin d'un plus petit que soi! (Petit!Petit!)


Think about Search function before posting.
Pensez à la fonction Recherche avant de poster.

Offline boutdoor

  • Newbie
  • *
  • Posts: 3
Re: Add & Create Social Media Icons To Profiles
« Reply #605 on: April 13, 2020, 05:54:56 PM »
Everything that I try to install with Social relationship fails the install test. Added a picture below

Offline Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 59,297
  • Gender: Male
    • Kindred-999 on GitHub
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

Offline viyatjain

  • Newbie
  • *
  • Posts: 6
Re: Add & Create Social Media Icons To Profiles
« Reply #607 on: April 19, 2020, 01:49:32 PM »
How to Integrate my forum's social media links on home page.

Please check attachment for proper idea.

Thanks

Offline viyatjain

  • Newbie
  • *
  • Posts: 6
Re: Add & Create Social Media Icons To Profiles
« Reply #608 on: April 19, 2020, 03:40:59 PM »
I'm getting this error

2.   Execute Modification   ./Sources/Load.php   Test failed
   1.   Add After   ./Sources/Load.php   Test failed

what to do now?

Offline Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 59,297
  • Gender: Male
    • Kindred-999 on GitHub
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.