Customizing SMF > Modifications and Packages

Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )

<< < (22/98) > >>

hcfwesker:

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

--- End quote ---

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)

Liam_michael:

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

--- End quote ---

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)

--- End quote ---

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.

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


--- 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>';
--- End code ---

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


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

--- End code ---

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

--- End quote ---

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version