Advertisement:

Author Topic: Add & Create Social Media Icons To Profiles  (Read 225112 times)

Offline Miker1029

  • Jr. Member
  • **
  • Posts: 165
  • Gender: Male
    • http://www.facebook.com/428239094034539 on Facebook
    • https://plus.google.com/+Android-x86Net/about on LinkedIn
    • @AndroidX86Forum on Twitter
    • Android - X86 Forums
Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
« Reply #580 on: March 28, 2015, 09:55:11 AM »
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

Offline davejo

  • Jr. Member
  • **
  • Posts: 283
    • Dave's Hobby Workshop
Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
« Reply #581 on: October 18, 2015, 08:10:49 AM »
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
To see the quizzes and try them sign up here Quiz Site


For the quiz questions go here  Quiz Questions

Offline hcfwesker

  • SMF Hero
  • ******
  • Posts: 2,213
  • Gender: Male
  • SMF 2.0.4
Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
« Reply #582 on: October 21, 2015, 01:33:40 AM »
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?

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?

Offline davejo

  • Jr. Member
  • **
  • Posts: 283
    • Dave's Hobby Workshop
Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
« Reply #583 on: October 21, 2015, 01:17:08 PM »
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
To see the quizzes and try them sign up here Quiz Site


For the quiz questions go here  Quiz Questions

Offline hcfwesker

  • SMF Hero
  • ******
  • Posts: 2,213
  • Gender: Male
  • SMF 2.0.4
Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
« Reply #584 on: October 21, 2015, 02:09:33 PM »
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.

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)

Offline davejo

  • Jr. Member
  • **
  • Posts: 283
    • Dave's Hobby Workshop
Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
« Reply #585 on: October 21, 2015, 02:25:10 PM »
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.

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.
To see the quizzes and try them sign up here Quiz Site


For the quiz questions go here  Quiz Questions

Offline vkot

  • Senior Translator
  • Full Member
  • *
  • Posts: 603
  • Gender: Male
  • @}-'-,--
    • vassiliskotaras on LinkedIn
    • kithara.gr
Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
« Reply #586 on: February 03, 2016, 04:13:58 AM »
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.
Για εξειδικευμένες υπηρεσίες στα παραπάνω, πατήστε εδώ.

Offline Wellwisher

  • Jr. Member
  • **
  • Posts: 375
  • Gender: Male
Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
« Reply #587 on: April 11, 2016, 09:24:03 PM »
I 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

Code: [Select]
'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
« Last Edit: April 11, 2016, 09:53:14 PM by Wellwisher »

Offline hcfwesker

  • SMF Hero
  • ******
  • Posts: 2,213
  • Gender: Male
  • SMF 2.0.4
Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
« Reply #588 on: April 17, 2016, 06:31:45 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

Code: [Select]
'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.



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

Offline hcfwesker

  • SMF Hero
  • ******
  • Posts: 2,213
  • Gender: Male
  • SMF 2.0.4
Re: Add Social Media Icons To Profiles ( SMF 1 & SMF2 )
« Reply #589 on: April 17, 2016, 06:35:26 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!

Offline Wellwisher

  • Jr. Member
  • **
  • Posts: 375
  • Gender: Male
Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
« Reply #590 on: April 18, 2016, 04:45:21 AM »
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)

Offline Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 55,241
  • Gender: Male
    • Kindred-999 on GitHub
Re: Add & Create Social Media Icons To Profiles
« Reply #591 on: April 18, 2016, 06:30:44 AM »
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.....
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

Offline Wellwisher

  • Jr. Member
  • **
  • Posts: 375
  • Gender: Male
Re: Add & Create Social Media Icons To Profiles
« Reply #592 on: April 18, 2016, 08:06:27 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

Offline hcfwesker

  • SMF Hero
  • ******
  • Posts: 2,213
  • Gender: Male
  • SMF 2.0.4
Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
« Reply #593 on: April 22, 2016, 09:48:16 PM »
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)

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
« Last Edit: April 22, 2016, 10:21:53 PM by hcfwesker »

Offline hcfwesker

  • SMF Hero
  • ******
  • Posts: 2,213
  • Gender: Male
  • SMF 2.0.4
Re: Add & Create Social Media Icons To Profiles
« Reply #594 on: April 23, 2016, 05:20:14 AM »
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.

Offline Bob Perry of Web Presence Consulting

  • Sr. Member
  • ****
  • Posts: 968
  • Gender: Male
  • (T)ogether (E)veryone (A)chieves (M)ore
    • Bobert921 on Facebook
    • https://www.linkedin.com/in/bperry921/ on LinkedIn
    • @bperry921 on Twitter
    • Web Presence Consulting
Re: Add & Create Social Media Icons To Profiles
« Reply #595 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
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

Offline Bob Perry of Web Presence Consulting

  • Sr. Member
  • ****
  • Posts: 968
  • Gender: Male
  • (T)ogether (E)veryone (A)chieves (M)ore
    • Bobert921 on Facebook
    • https://www.linkedin.com/in/bperry921/ on LinkedIn
    • @bperry921 on Twitter
    • Web Presence Consulting
Re: Add & Create Social Media Icons To Profiles
« Reply #596 on: October 08, 2016, 02:30:30 AM »
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

Offline rickmastfan67

  • Jr. Member
  • **
  • Posts: 105
  • Gender: Male
    • @rickmastfan67 on Twitter
Re: Add & Create Social Media Icons To Profiles
« Reply #597 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:
Code: [Select]
<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:
Code: [Select]
<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. :)