News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Add & Create Social Media Icons To Profiles

Started by hcfwesker, January 30, 2012, 10:06:52 AM

Previous topic - Next topic

Jeremy M.

Quote from: rickmastfan67 on December 31, 2017, 08:48:33 AM
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:
<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:
<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.

Bob Perry of Web Presence Consulting

Quote from: Alexa Lynne on January 31, 2019, 07:43:12 PM
Quote from: rickmastfan67 on December 31, 2017, 08:48:33 AM
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:
<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:
<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

shadav

Quote from: Bob Perry of Web Presence Consulting on October 07, 2016, 02:16:28 AM
@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....

shadav

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....

GravuTrad

#604
Modifications.french.php:

$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...
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.

boutdoor

Everything that I try to install with Social relationship fails the install test. Added a picture below

Kindred

Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

viyatjain

How to Integrate my forum's social media links on home page.

Please check attachment for proper idea.

Thanks

viyatjain

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?

Kindred

Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."


hcfwesker

I kinda hate how I just left and abandoned this cause I enjoyed my time on SMF.   But roughly 5 years or so ago we migrated to Discord and dropped forums altogether.  Decided to randomly log on back here today for old times sake and check on this mod among other things.
If any other developer wishes to take over this mod for support and updates you have my permission , or if it's already been integrated into an updated version of SMF  then feel free to remove it.  Again I apologize for not being around.  Thanx Kindred for steering others in the right direction along the way with support in my absent. 
Thank You, all.  I went through many forum version until finding SMF and its what we stuck with for many years and enjoyed my time on my old forum as well as hanging out on SMF support forum.  Take care, all :)

GigaWatt

Quote from: hcfwesker on January 12, 2021, 11:02:23 AM
If any other developer wishes to take over this mod for support and updates you have my permission...

I believe you need to add a license to the mod first. Everything's gotta be licensed now. Doesn't matter which license, WTFPL will do, BUT... you need to add it :-\.
"This is really a generic concept about human thinking - when faced with large tasks we're naturally inclined to try to break them down into a bunch of smaller tasks that together make up the whole."

"A 500 error loosely translates to the webserver saying, "WTF?"..."

shadav

this needs a bit of an update for 2.0.18

in Sources/ManageSettings.php

'placement' => array(
'header' => array(
'value' => $txt['custom_profile_placement'],
),
'data' => array(
'function' => create_function('$rowData', '
global $txt;
$placements = array(
0 => \'standard\',
1 => \'withicons\',
2 => \'abovesignature\',
3 => \'withsmiicons\',
);
$placement = empty($rowData[\'placement\']) ? 0 : $rowData[\'placement\'];
return $txt[\'custom_profile_placement_\' . $placements[$placement]];
'),


changed to
'placement' => array(
'header' => array(
'value' => $txt['custom_profile_placement'],
),
'data' => array(
'function' => function($rowData)
{
global $txt, $context;
$placements = array(
0 => 'standard',
1 => 'withicons',
2 => 'abovesignature',
3 => 'withsmiicons',
);
$placement = empty($rowData['placement']) ? 0 : $rowData['placement'];
return $txt['custom_profile_placement_' . $placements[$placement]];
},


and I think it'll work (seems to have worked for me that is)
*thanks to antechinus for helping with it

pikeman

Hello, is a modification for 2.1 planned?

Kindred

Not actually needed for 2.0 or 2.1, since custom profile fields is built in
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

pikeman


Advertisement: