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

hcfwesker

Came across a couple of typos in version 1.0.7

Mod has been updated on the MOD page.  For those who don't want to uninstall then re-intsall, these manual edits will get you up to date.

Sources/Load.php

Find
'link' => '<a href="http://www.pinterest.com/' . $profile['pinterest'] . '" target="_blank" title="' . $txt['smi_pinterest_title'] . ' - ' . $profile['pinterest'] . '"><img src="' . $settings['images_url'] . '/smifacebook.png" alt="Pinterest" border="0" /></a>',

Replace with
'link' => '<a href="http://www.pinterest.com/' . $profile['pinterest'] . '" target="_blank" title="' . $txt['smi_pinterest_title'] . ' - ' . $profile['pinterest'] . '"><img src="' . $settings['images_url'] . '/smipinterest.png" alt="Pinterest" border="0" /></a>',


UltimateProfile.template.php
Find
<dt><img src="', $settings['images_url'] ,'/smipinterest.png" alt="', $txt['smi_deviantart_title'], '" /></dt>
<dd>', $context['member']['pinterest']['link_text'], '</dd>';


Replace with
<dt><img src="', $settings['images_url'] ,'/smipinterest.png" alt="', $txt['smi_pinterest_title'], '" /></dt>
<dd>', $context['member']['pinterest']['link_text'], '</dd>';

Realinfo

Duplicate column name 'myspace'
File: /home/realinfo/public_html/Packages/temp/2.x/install.php


2.0.2 default theme

hcfwesker

Are you using the current version of the MOD?  1.0.7

If you tried that, then try the attached package.  I thought the duplicate table issue was resolved back in 1.0.2 or so.


Realinfo

thanks............. Given pack is attachment working ok............... But  1.0.7 make me get that error

LisaE

Hello,

Do I ftp the entire folder over to my forums directory?  How does this get installed?

Thank you.

Lisa

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

Hristo

Thanks for the mod!

Here is Bulgarian translation:
<file name="$languagedir/Modifications.bulgarian-utf8.php" error="skip">
<operation>
<search position="after"><![CDATA[?>]]></search>
            <add><![CDATA[
$txt['smi_facebook_title'] = 'Facebook';
$txt['smi_facebook_desc'] = 'Въведи твоето Facebook потребителско име.';
$txt['smi_myspace_title'] = 'MySpace';
$txt['smi_myspace_desc'] = 'Въведи твоето MySpace потребителско име.';
$txt['smi_twitter_title'] = 'Twitter';
$txt['smi_twitter_desc'] = 'Въведи твоето Twitter потребителско име.';
$txt['smi_youtube_title'] = 'Youtube';
$txt['smi_youtube_desc'] = 'Въведи твоето Youtube потребителско име.';
$txt['smi_deviantart_title'] = 'DeviantArt';
$txt['smi_deviantart_desc'] = 'Въведи твоето DeviantArt потребителско име.';
$txt['smi_pinterest_title'] = 'Pinterest';
$txt['smi_pinterest_desc'] = 'Въведи твоето Pinterest потребителско име.';
$txt['smi_googleplus_title'] = 'Google+';
$txt['smi_googleplus_desc'] = 'Въведи твоя Google+ потребителски номер.';
$txt['smi_linkedin_title'] = 'LinkedIn';
$txt['smi_linkedin_desc'] = 'Постави връзка към твоя LinkedIn профил.';
$txt['smi_buddies_title'] = 'Социални мрежи';
]]></add>
        </operation>
</file>


I have a few notes:
For most sites the mod asks for the respective username. Some sites has different types of subscription and often that comes with a different URL for the given type of subscription. For example IIRC when I registered in YouTube the url for my channel was youtube.com/user/username and youtube.com/username doesn't worked until I found how to activate it. I do not know if this is true nowadays.
A few weeks ago I was forced :) to use Facebook and I found that there are a few types of subscription with different URLs. One could have only a page or a group, but not a profile and their URL's are different (facebook.com/pages/Some_Name/ or facebook.com/groups/Some_ID_or_Name/ ect.) and probably there are even more variations.

Maybe it will be better if you change the mod in a way that the user has to paste the full URL, like it is now for LinkedIn, instead just the username which may not work for some of them (unless they figure out how to "fix" that). But there is a problem with this variant because some members could abuse these fields to place URL to any site. Currently the LinkedIn field allows that - I can input URL to any domain/page.
So maybe a different approach - like it is now, but with a small (visual) change - place the domain in-front of the input field. Like "youtube.com/{please_input_the_rest}".

Kindred

I disagree....   Users on a forum should use this field to post their accounts, not a link to a group account. After all, they don't have a group account to post on the forum
Сл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."

Hristo

No problem with this here. That is possible even now - instead of username put groups/ID. I'm fine with that, as long as it's not a link for any other site, as it is currently possible with LinkedIn's field. But even if there is a check for valid input we can't stop the forum user to link to someone else's profile. Even manual check can't guarantee this is his/her profile and not someone else's.

My point was that current descriptions are misleading in some cases. That is - the user leaves with the impression that only the username is required, but in some cases this is not enough (the youtube example was a real world example). I know how to fix that, but I pointed it as potential problem the mod author may want to address.

J_WHISPERZ

I have uninstalled this mod and deleted it from my forum but all the info in the profile page is still there for members to fill out any reason the info would stay in my forum if I uninstalled it and deleted it?

Kindred

probably because
a- you did not get a clean uninstall
or
b- you manually applied portions of the mod to your forum... and did not manually un-apply.
Сл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."

J_WHISPERZ

I did not do a manual install. So if I didn't get a clean uninstall how do I remove that data, or is it stuck and can not be removed?

Kindred

well, as with any time you get an error message, just ignoring it and continuing is sure to lead to problems.

So, if you did not get a clean uninstall, you will have to manually go through your template and source files and remove or revert the mod's code. view the mod install instructions on the mod download page and do them in reverse.
Сл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."

J_WHISPERZ

Funny I never got any errors on the install or the uninstall... but thank you for the help I have to go figure out how to get in the source files I'm very new to this so I'm learning as I go.

winsoft

it s really interesting mod but when you have thousands of members already it takes ages to assign socials to each one of them and it crashes.

hcfwesker

Thanx, Kindred.  Always a pleasure to have a helping hand.

Quote from: winsoft on November 27, 2012, 05:38:50 AMit takes ages to assign socials to each one of them and it crashes.

Ummm, what?  The MOD doesn't assign anything, just adds new columns in the members table.

the gimp

were having issues on the redirect we keep getting page not found with facebook, we dont seem to have issues with anything else

hcfwesker

Members are only supplying their facebook username at the end of the URL?

http://www.facebook.com/USERNAME

attach a copy of Sources/Load.php if that's not the issue.

Bob Perry of Web Presence Consulting

#178
Quote from: hcfwesker on December 09, 2012, 05:15:05 AM
Members are only supplying their facebook username at the end of the URL?

http://www.facebook.com/USERNAME

attach a copy of Sources/Load.php if that's not the issue.

I was running your version 1.0.5 until today, I upgraded to latest available here on SMF... great mod and I want to keep it, but there are some issues that need your immediate attention before I will be able to do so without having to tweak the code myself and fix it... in the 1.0.5 version this little bug has persisted through to latest version... NOW, whether bug I'm going to point out is intrinsic to your mod or the result of some custom tweaking I've already done to another mod that I've got, I am not certain yet... for whatever reason the LinkedIn field is getting the root domain address of my site inserted onto the beginning of the resultant address. The custom tweak mentioned allows me to restrict posting a link of any type in the LinkedIn field until the member successfully posts a admin predetermined
number of posts in any board they have access to... works quite well I might add except for this little bug we have here, feel free to visit my site and view the member list to see the result of my current tweaks to this handy and valuable feature for professionals, it causes the spammers & scammers to spin their wheels pulling the antics they attempt typically...
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

hcfwesker

Quote from: bperry921 on December 23, 2012, 04:11:48 PMThe custom tweak mentioned allows me to restrict posting a link of any type in the LinkedIn field until the member successfully posts a admin predetermined
number of posts in any board they have access to... works quite well I might add

You lost me.  What kind of edits did you make to negate members from using the LinkedIn profile field until they reach this number of posts?

Quote from: bperry921 on December 23, 2012, 04:11:48 PMfeel free to visit my site and view the member list to see the result

Guests can't view the memberlist or SM fields on profiles.


Advertisement: