News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Add & Create Social Media Icons To Profiles

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

Previous topic - Next topic

hcfwesker

oh, dear lord ....

Quote from: JackTheKnife22 on March 22, 2012, 01:12:55 AM
i cant seem to upload it when i try things are failing to change:
2.    Execute Modification    ./Sources/Load.php    Test failed
Execute Modification    /home/bazzaro/public_html/RTGC/forum/Themes/core/PersonalMessage.template.php    Test failed
1.    Add Before    /home/bazzaro/public_html/RTGC/forum/Themes/core/PersonalMessage.template.php    Test failed

I dont understand what im doin wrong, im just using the upload a .zip function

Quote from: Tyler Style on March 27, 2012, 03:42:41 PMI just tried to install the mod on a fresh install of SMF and got the same error, so I took a peek.  Looks like there is a typo in the install code for ./Themes/core/PersonalMessage.template.php - there are one too many tab stops before the "Find" text
// Show the profile, website, email address, and personal message buttons., it should be
// Show the profile, website, email address, and personal message buttons.


Please READ the Mod description page.

QuoteThis Package ONLY makes edits to the SMF Default Curve theme.  Any other themes will require custom edits to the same files listed for the 'default' theme.

Kindred

more specifically -- 2.0.x will TRY to make the edits to themes other than default/curve, but unless the coding in the custom theme matches the same lines in curve, yes... it will "fail" and require a manual edit.

So, since this installed just fine on Curve, it would appear that curve and core use a different number of spaces/tabs to precede that line.
Сл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

Quote from: Liam_michael on April 01, 2012, 07:23:19 PM
Worked like a charm on 1.x :)

Some reason I don't see LinkedIn, or DeviantArt in the image.  Plus the text string for Facebook description is different, unless you manually made these changes yourself?

Biology Forums

Quote from: hcfwesker on April 02, 2012, 02:00:14 AM
Quote from: Liam_michael on April 01, 2012, 07:23:19 PM
Worked like a charm on 1.x :)

Some reason I don't see LinkedIn, or DeviantArt in the image.  Plus the text string for Facebook description is different, unless you manually made these changes yourself?

I didn't include those, and yes, I manually changed the wording a little bit, just because I thought it looked a bit too repetitive.

hcfwesker

Quote from: Liam_michael on April 02, 2012, 06:42:49 PMyes, I manually changed the wording a little bit, just because I thought it looked a bit too repetitive.

I thought so, and wanted to know just to warn you, if members are confused by your wording change and actually add their entire FaceBook profile link, then it's going to be a broken link.   They only need to add their name, not their profile link.  Just be cautious.

It works like this ...  www.facebook.com/(username) , the way its coded, if member are being told to add their URL, then the link will be broken, and come out like this...  www.facebook.com/www.facebook.com/(username)

Biology Forums

Quote from: hcfwesker on April 02, 2012, 08:52:50 PM
Quote from: Liam_michael on April 02, 2012, 06:42:49 PMyes, I manually changed the wording a little bit, just because I thought it looked a bit too repetitive.

I thought so, and wanted to know just to warn you, if members are confused by your wording change and actually add their entire FaceBook profile link, then it's going to be a broken link.   They only need to add their name, not their profile link.  Just be cautious.

It works like this ...  www.facebook.com/(username) , the way its coded, if member are being told to add their URL, then the link will be broken, and come out like this...  www.facebook.com/www.facebook.com/(username)

True, but I also changed the coding that dealt with the URL leading to their profile. I went through it for hours till I got it right. Try to create an account on my forum to see it.

Biology Forums

I just noticed that the mod gives me a ton of errors with the following code:

if ($context['member']['options']['facebook'] != '')

echo'

<tr><td><img border="0" src="' . $settings['images_url'] . '/smifacebook.png" alt="' . $message['member']['options']['facebook'] . '"> ', !empty($context['member']['options']['facebook']) ? '<a href="' . $context['member']['options']['facebook'] . '">My Facebook</a>'  : '', '</td></tr>';


The error is:

8: Undefined index: facebook
File: /home/biologyf/public_html/Themes/default/UltimateProfile.template.php
Line: 765

My question is, how do I define: 'facebook'?

I get the same problem with google+, youtube, etc.

hcfwesker

#108
I didn't add Ultimate Profile compatibility for SMf 1.x

Plus that line of code you're using, does not appear in this MOD.   Not smf2 or smf1 edits.  Unless it's an older version of the mod.  Is that something you're trying to add yourself?

Maybe try adding this at the bottom of your Themes/default/languages/Modifications.english.php  file

$txt['facebook'] = 'Facebook';
$txt['myspace'] = 'MySpace';
$txt['twitter'] = 'Twitter';
$txt['youtube'] = 'Youtube';
$txt['deviantart'] = 'DeviantArt';
$txt['googleplus'] = 'Google+';
$txt['linkedin'] = 'LinkedIn';

novill

Hungarian translation  :)

Quote
$txt['smi_facebook_title'] = 'Facebook';
$txt['smi_facebook_desc'] = 'Írd be a Facebook felhasználó neved.';      
$txt['smi_myspace_title'] = 'MySpace';
$txt['smi_myspace_desc'] = 'Írd be a MySpace felhasználó neved.';
$txt['smi_twitter_title'] = 'Twitter';
$txt['smi_twitter_desc'] = 'Írd be a Twitter felhasználó neved.';
$txt['smi_youtube_title'] = 'Youtube';
$txt['smi_youtube_desc'] = 'Írd be a Youtube felhasználó neved.';
$txt['smi_deviantart_title'] = 'DeviantArt';
$txt['smi_deviantart_desc'] = 'Írd be a DeviantArt felhasználó neved.';
$txt['smi_googleplus_title'] = 'Google+';
$txt['smi_googleplus_desc'] = 'Írd be a Google+ felhasználó azonosítódat (User ID).';
$txt['smi_linkedin_title'] = 'LinkedIn';
$txt['smi_linkedin_desc'] = 'Másol & Beilleszt a LinkedIn profil linket.';   

Dimur

Thank you for this mod guys!

But what about Members List? Will you update mode in order to make new columns with new Social Media links?

Web Help Forums

Thanks for a nice mod :)


Just a quick question: Would it be possible to have social profile links show to guests as well? Can I set this anywhere? The URL is shown and I think social profile links should behave similar to that

Kindred

BAD idea...   if guests can see that sort of info, then you get all sorts of harvesters
Сл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."

Web Help Forums

I can appreciate the argument, but most people link to public profiles at social network, so the possible damage seems limited to me?

I think it should be an option to have social profile links have same visibility as SMF profile website URL link.

Anyhow, no biggie, I am happy as it is of course :)

SMUchacz

Hey Everyone,

I just started using this package and I am using it on my test site, the social icons are displaying as a vertical list in the forum threads in stead of a horizontal list (see picture) thoughts? I have been unsuccessful at finding a solution. The icons display properly in the members profile.

Thanks!

TinMan

I had a similar problem with a theme.
In Themes/yourtheme/Display.template.php:
Find:
<li class="im_icons">
<ul>


Replace With:
<li class="im_icons">
<ul class="reset nolist">


I think this worked for mine, not sure for yours though.

hcfwesker

It's been a little while, but not much to update, and most support questions have been answered.  thanx everyone.

V1.0.6 released.
Just added all language translations contributions to the package.


hcfwesker

Quote from: Dimur on July 25, 2012, 04:44:32 AM
Thank you for this mod guys!

But what about Members List? Will you update mode in order to make new columns with new Social Media links?

Member List would just seem too crowded with all the info on that page, plus I don't see many browsing a forum's memberlist for their social sites.  I could possible provide the edits for you, if you do want them.

Quote from: Microsys on July 26, 2012, 10:00:26 AM
Thanks for a nice mod :)  Just a quick question: Would it be possible to have social profile links show to guests as well? Can I set this anywhere? The URL is shown and I think social profile links should behave similar to that

Agree with Kindred on this one.  Most members wnat as much of their personal info private on a public forum.  Which members should only have access to in the first place. :)


Matthew K.


hcfwesker

Had to take a little hiatus from the internet realm.  Been about 2-3 months, i been lurking here and there just no time for much activity. :(

Advertisement: