Advertisement:

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

Offline Alexa Lynne

  • Full Member
  • ***
  • Posts: 510
  • Gender: Female
  • Transgender Women ARE Women!
    • vgkfan83 on Facebook
    • @vgkfan83 on Twitter
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,003
  • 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

Offline shadav

  • Jr. Member
  • **
  • Posts: 101
  • Gender: Female
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....

Offline shadav

  • Jr. Member
  • **
  • Posts: 101
  • Gender: Female
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....