Add & Create Social Media Icons To Profiles

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

Previous topic - Next topic

Miker1029

Hey I found the problem Using FireFox Aren't you??

Try chrome, Dunno what the deal with F.F. is but It doesn't show my G+ button either or my Twitter Login Button, Does in chrome see Screenshot Below...

Mike

Dave J

Hi,

I have just installed this with no issues.

I have looked at the mod details and noticed that it should post an image of the social network that I've linked to in the post profile info and also on the stats page at the footer of the site, for some reason it doesn't show up in either places but it does show on my profile page...any ideas why it's not showing in either of those places?

I have checked this is not a theme issues as I also went back to the default theme to see and it still doesn't show.

Any help is appreciated

Dave
If you want quizzes to add to the new SMF2.1 quiz mod go here . There are also walkthroughs in the forum to explain how to install them and other tips.

hcfwesker

Quote from: davejo on October 18, 2015, 08:10:49 AMI have looked at the mod details and noticed that it should post an image of the social network that I've linked to in the post profile info and also on the stats page at the footer of the site, for some reason it doesn't show up in either places but it does show on my profile page...any ideas why it's not showing in either of those places?

Not sure what you mean, this MOD doesn't add those icons to the info center section on the board index page, that wouldn't make sense.  These are for members to link their own personal social media profile pages, not your site's social media links.  It will only display where member's info is displayed, profile page, posts mini-profile, etc.   What version did you download and use?

Dave J

Hi

Thanks for yhe reply

I installed v1.2.0.

The reason I posted originally is because on the mod download page you have images on there that show the icons in the locations where I don't see them on my site.

I have logged in as another test member and cant see the FB icon in my posts mini profile
If you want quizzes to add to the new SMF2.1 quiz mod go here . There are also walkthroughs in the forum to explain how to install them and other tips.

hcfwesker

Quote from: davejo on October 21, 2015, 01:17:08 PMThe reason I posted originally is because on the mod download page you have images on there that show the icons in the locations where I don't see them on my site.

Oh, you're thinking from the image showing them on the "Who's Online Page".  Well, pages like that, along with member list and buddies list page, were in the initial release, but from version 1.1.0 and up ( more info here ), the extra feature to add and create custom ones was added ... and those display options were removed because it would crowd up pages like those that shows them aligned horizontally with other member information.  The only pages they show up on, are the ones listed in the MOD description page.  I'll see about removing those older preview images and updating, sorry about that.

-Display page (mini profiles)
-Default Profile
-Ultimate Profile
-Personal Messaging (mini profiles)

Dave J

Quote from: hcfwesker on October 21, 2015, 02:09:33 PM
Quote from: davejo on October 21, 2015, 01:17:08 PMThe reason I posted originally is because on the mod download page you have images on there that show the icons in the locations where I don't see them on my site.

Oh, you're thinking from the image showing them on the "Who's Online Page".  Well, pages like that, along with member list and buddies list page, were in the initial release, but from version 1.1.0 and up ( more info here ), the extra feature to add and create custom ones was added ... and those display options were removed because it would crowd up pages like those that shows them aligned horizontally with other member information.  The only pages they show up on, are the ones listed in the MOD description page.  I'll see about removing those older preview images and updating, sorry about that.

-Display page (mini profiles)
-Default Profile
-Ultimate Profile
-Personal Messaging (mini profiles)

Ok thanks again for the reply.
If you want quizzes to add to the new SMF2.1 quiz mod go here . There are also walkthroughs in the forum to explain how to install them and other tips.

vkot

I would like to add another language to your mod (greek), as I have done for many other mods. I added the code in 2.x/language-utf8.xml so as to modify the Modifications.greek-utf8.php etc. But I am getting a parse error in 2.x/language-utf8.xml in Package Manager when I try to install. There are no missing ' or ; etc in the added code, I just copied/pasted the relevant code for the Modifications.english-utf8.php & Help.english-utf8.php and changed to Modifications.greek-utf8.php & Help.greek-utf8.php
When I use your mod without any additions from me, it passes the installation first check. I don't understand why I cannot add in 2.x/language-utf8.xml
For specialized SMF installation/customization, Web Development, Linux Server Administration, click here.
Για εξειδικευμένες υπηρεσίες στα παραπάνω, πατήστε εδώ.

Wellwisher

#587
Quote from: hcfwesker on September 21, 2014, 01:51:51 PM
Quote from: iain sherriff on September 21, 2014, 09:03:03 AMI am changing my site a bit and find the input for Devianart (which I am using for something else!) is limited to a max length of 32 characters. See the linkedin one is set at 65.

Why use it for something else?  When the MOD allows you to create and add your own, and you set the amount of characters that can be used for created ones.   LinkedIn is longer because it required the entire URL to be added; where all these others only require the username.

you will need to modify this in 2 places.

The Database table for {database_prefix}members , column name 'deviantart' ; change the limit from 32 to whatever.

And Sources/Profile-Modify.php


'deviantart' => array(
'type' => 'text',
'label' => $txt['smi_deviantart_title'],
'subtext' => $txt['smi_deviantart_desc'],
'size' => 24,
'input_attr' => array('maxlength="32"'),
'permission' => 'profile_extra',
),


change 32 to the same number you change the database column limit to.

Even after doing that, you'll have to change the hard link coded for deviantart under Load.php


If you don't know what you're doing then I would not recommend trying, and just create a "custom social icon" as the MOD Updates were intended for.

Got the same problem, I just noticed it because my Admins DA link was not linking properly. Looked inside the html, BAM 32 charcter limit.  ???

1. How do we set the length to unlimited? I am running version: 1.1.0 Sometimes members don't have a social "vanity URLs" and their URLs will be ridiculously long. ::) Even people with vanity urls sometimes take the pee example (114 characters):

https://www.facebook.com/This-Is-The-Page-With-The-Longest-URL-In-The-World-WOW-Its-Really-Very-Long-220173687842/

2. When members logout your social icons are no longer visible in posts, I want them visible to guests?

P.s. You can now remove the MySpace icon, it was a good april fools joke.  :P

hcfwesker

Quote from: Wellwisher on April 11, 2016, 09:24:03 PM
1. How do we set the length to unlimited? I am running version: 1.1.0 Sometimes members don't have a social "vanity URLs" and their URLs will be ridiculously long. ::) Even people with vanity urls sometimes take the pee example (114 characters):

Well, the DevaintArt profile option, they should only be putting their DA username, not the entire URL that links to their profile.   But if you wanna increase the value, just edit this line in Sources/Profile-Modify.php

'input_attr' => array('maxlength="32"'),

change 32 to something like 200 or whatever.   Then make the same changes to the database value, smf_members table, deviantart, change the "length/values" number to the same.



Quote2. When members logout your social icons are no longer visible in posts, I want them visible to guests?

There's an array in Displaytemplate.php that most of the mini profile codes go into that blocks guests from viewing them, I included them in this array for obvious reasons.  You'll have to move this section of the code outside of that array for guests to see them.

hcfwesker

Quote from: Darkorical on March 21, 2013, 12:49:52 PM
for my own usage I made a mod that adds twitch.tv, I included code that checks their API and changes between two different icons depending if you are streaming or not. I used your mod for a template to make it. If you would like the code I would happily give it to you so you could include a twitch /streaming indicator to your mod.

Dang!  How did I overlook this  :(  I know this was years ago but if you're still around and have the code for this that would be great!

Wellwisher

Quote from: hcfwesker on April 17, 2016, 06:31:45 PM
There's an array in Displaytemplate.php that most of the mini profile codes go into that blocks guests from viewing them, I included them in this array for obvious reasons.  You'll have to move this section of the code outside of that array for guests to see them.

Some instructions would be greatly appreciated my good sir. :) As I don't want things to go "kaboom!". You're right, for now I have just increased the number of characters. Also, just checked out your smash forum loved the design, congrats btw.

Some user-feedback @hcfwesker, most people just copy and paste in their social urls without a second thought. My members don't read "usernames only" and thus, as a result, most of my users have wrong social links.  :P I made the same mistake initially. Rest of your mod is on point and pretty swagg and the tiny social icons are as my GF puts it 'adorable'.  8)

Kindred

actually, Welwisher... most sites that I have dealt with ask you to ONLY put the USERNAME into the social media link section since (like this mod) they use  standard format for the URL.
That is actually, pretty much, the standard, from what I can tell.....
Сл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."

Wellwisher

Quote from: Kindred on April 18, 2016, 06:30:44 AM
actually, Wellwisher... most sites that I have dealt with ask you to ONLY put the USERNAME into the social media link section since (like this mod) they use  standard format for the URL.
That is actually, pretty much, the standard, from what I can tell.....

Perhaps you're right Kindred but I am stating what's happening on my forums. Most people are just copying and pasting in full social url's without a second thought. Two of my own moderators also assumed this but I haven't corrected them. I want to see how long before they spot the mistake. Now it's been a good couple of months. It's lol'sum. :P

hcfwesker

Quote from: Wellwisher on April 18, 2016, 04:45:21 AMSome user-feedback @hcfwesker, most people just copy and paste in their social urls without a second thought. My members don't read "usernames only" and thus, as a result, most of my users have wrong social links.  :P I made the same mistake initially. Rest of your mod is on point and pretty swagg and the tiny social icons are as my GF puts it 'adorable'.  8)

http://custom.simplemachines.org/mods/index.php?action=download;mod=3304;id=194607;image

The instructions are right there, I'm sorry.  Even if you were to change it to where they could paste the entire URL, yuo would have to edit how the links work, because then their URL would link like, facebook.com/facebook.com/USERNAME

hcfwesker

Ummm, apparently i can't edit my post, did SMF support change the threshold time allowed to edit or something? lol

Thanx for the feedback on my site.  And give me a day or so and I'll check where you should move the Display code to, for guests to see.  Though, it's not recommended since guests will have access to your member's social sites without any effort.

Bob Perry of Web Presence Consulting

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

Bob Perry of Web Presence Consulting

Just so you know, I got it working on 2.1 beta 3, yay!!
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

rickmastfan67

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

RobbyJ

Hi all, not sure if I am doing something wrong, but upon install I see an error message on Execute Modification   ./Sources/Load.php Please see attached image. Thank you for any and all help in advance!  :)

Mod Version: 1.2.0
SMF Version: 2.0.15

Code: (Find)

'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' => ''),


Code: (Add After)

'facebook' => $profile['facebook'] !='' && (empty($modSettings['guest_hideContacts']) || !$user_info['is_guest']) ? array(
'name' => $profile['facebook'],
'href' => 'http://www.facebook.com/'.$profile['facebook'],
'link' => '<a href="http://www.facebook.com/' . $profile['facebook'] . '" target="_blank" title="' . $txt['smi_facebook_title'] . ' - ' . $profile['facebook'] . '"><img src="' . $settings['images_url'] . '/smifacebook.png" alt="Facebook" border="0" /></a>',
'link_text' => '<a href="http://www.facebook.com/' . $profile['facebook'] . '" target="_blank" title="' . $txt['smi_facebook_title'] . ' - ' . $profile['facebook'] . '">' . $profile['facebook'] . '</a>'
) : array('name' => '', 'href' => '', 'link' => '', 'link_text' => ''),
'myspace' => $profile['myspace'] !='' && (empty($modSettings['guest_hideContacts']) || !$user_info['is_guest']) ? array(
'name' => $profile['myspace'],
'href' => 'http://www.myspace.com/'.$profile['myspace'],
'link' => '<a href="http://www.myspace.com/' . $profile['myspace'] . '" target="_blank" title="' . $txt['smi_myspace_title'] . ' - ' . $profile['myspace'] . '"><img src="' . $settings['images_url'] . '/smimyspace.png" alt="My Space" border="0" /></a>',
'link_text' => '<a href="http://www.myspace.com/' . $profile['myspace'] . '" target="_blank" title="' . $txt['smi_myspace_title'] . ' - ' . $profile['myspace'] . '">' . $profile['myspace'] . '</a>'
) : array('name' => '', 'href' => '', 'link' => '', 'link_text' => ''),
'twitter' => $profile['twitter'] !='' && (empty($modSettings['guest_hideContacts']) || !$user_info['is_guest']) ? array(
'name' => $profile['twitter'],
'href' => 'http://www.twitter.com/'.$profile['twitter'],
'link' => '<a href="http://www.twitter.com/' . $profile['twitter'] . '" target="_blank" title="' . $txt['smi_twitter_title'] . ' - ' . $profile['twitter'] . '"><img src="' . $settings['images_url'] . '/smitwitter.png" alt="Twitter" border="0" /></a>',
'link_text' => '<a href="http://www.twitter.com/' . $profile['twitter'] . '" target="_blank" title="' . $txt['smi_twitter_title'] . ' - ' . $profile['twitter'] . '">' . $profile['twitter'] . '</a>'
) : array('name' => '', 'href' => '', 'link' => '', 'link_text' => ''),
'googleplus' => $profile['googleplus'] !='' && (empty($modSettings['guest_hideContacts']) || !$user_info['is_guest']) ? array(
'name' => $profile['googleplus'],
'href' => 'http://www.googleplus.com/'.$profile['googleplus'],
'link' => '<a href="https://plus.google.com/' . $profile['googleplus'] . '" target="_blank" title="' . $txt['smi_googleplus_title'] . ' - ' . $profile['googleplus'] . '"><img src="' . $settings['images_url'] . '/smigoogleplus.png" alt="Google+" border="0" /></a>',
'link_text' => '<a href="https://plus.google.com/' . $profile['googleplus'] . '" target="_blank" title="' . $txt['smi_googleplus_title'] . ' - ' . $profile['googleplus'] . '">' . $profile['googleplus'] . '</a>'
) : array('name' => '', 'href' => '', 'link' => '', 'link_text' => ''),
'linkedin' => $profile['linkedin'] !='' && (empty($modSettings['guest_hideContacts']) || !$user_info['is_guest']) ? array(
'name' => $profile['linkedin'],
'href' => 'http://www.linkedin.com/'.$profile['linkedin'],
'link' => '<a href="' . $profile['linkedin'] . '" target="_blank" title="' . $txt['smi_linkedin_title'] . '"><img src="' . $settings['images_url'] . '/smilinkedin.png" alt="LinkedIn" border="0" /></a>',
'link_text' => '<a href="http://www.linkedin.com/' . $profile['linkedin'] . '" target="_blank" title="' . $txt['smi_linkedin_title'] . '">' . $profile['linkedin'] . '</a>'
) : array('name' => '', 'href' => '', 'link' => '', 'link_text' => ''),
'youtube' => $profile['youtube'] !='' && (empty($modSettings['guest_hideContacts']) || !$user_info['is_guest']) ? array(
'name' => $profile['youtube'],
'href' => 'http://www.youtube.com/'.$profile['youtube'],
'link' => '<a href="http://www.youtube.com/' . $profile['youtube'] . '" target="_blank" title="' . $txt['smi_youtube_title'] . ' - ' . $profile['youtube'] . '"><img src="' . $settings['images_url'] . '/smiyoutube.png" alt="Youtube" border="0" /></a>',
'link_text' => '<a href="http://www.youtube.com/' . $profile['youtube'] . '" target="_blank" title="' . $txt['smi_youtube_title'] . ' - ' . $profile['youtube'] . '">' . $profile['youtube'] . '</a>'
) : array('name' => '', 'href' => '', 'link' => '', 'link_text' => ''),
'deviantart' => $profile['deviantart'] !='' && (empty($modSettings['guest_hideContacts']) || !$user_info['is_guest']) ? array(
'name' => $profile['deviantart'],
'href' => 'http://' . $profile['deviantart'] . '.deviantart.com',
'link' => '<a href="http://' . $profile['deviantart'] . '.deviantart.com/" target="_blank" title="' . $txt['smi_deviantart_title'] . ' - ' . $profile['deviantart'] . '"><img src="' . $settings['images_url'] . '/smideviantart.png" alt="DeviantArt" border="0" /></a>',
'link_text' => '<a href="http://' . $profile['deviantart'] . '.deviantart.com/" target="_blank" title="' . $txt['smi_deviantart_title'] . ' - ' . $profile['deviantart'] . '">' . $profile['deviantart'] . '</a>'
) : array('name' => '', 'href' => '', 'link' => '', 'link_text' => ''),
'pinterest' => $profile['pinterest'] !='' && (empty($modSettings['guest_hideContacts']) || !$user_info['is_guest']) ? array(
'name' => $profile['pinterest'],
'href' => 'http://www.pinterest.com/'.$profile['pinterest'],
'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>',
'link_text' => '<a href="http://www.pinterest.com/' . $profile['pinterest'] . '" target="_blank" title="' . $txt['smi_pinterest_title'] . ' - ' . $profile['pinterest'] . '">' . $profile['pinterest'] . '</a>'
) : array('name' => '', 'href' => '', 'link' => '', 'link_text' => ''),




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

Advertisement: