Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: hcfwesker on January 30, 2012, 10:06:52 AM

Title: Add & Create Social Media Icons To Profiles
Post by: hcfwesker on January 30, 2012, 10:06:52 AM
Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=3304)

Add & Create Social Media Icons To Profiles

For suggestions, feedback, and support please use the MOD's support topic (http://www.simplemachines.org/community/index.php?topic=467074.msg3264200#msg3264200).

Current Release:  v1.2.0
     ((any previous versions need to be uninstalled before installing 1.2.0)) 

Compatible with SMF 2 versions : 2.0.XX
Compatible with SMF 1 versions : 1.1.19  ( maybe previous 1.1.xx versions, haven't tested.

Adds Social Media links to member profiles: Facebook, MySpace, Twitter, Google+, LinkedIn, Youtube, DevianArt, Pinterest.
[NEW!] Add Custom Icons to align seamlessly with default Social Media icons. (( for SMF2 ONLY! )) Click Here (http://www.simplemachines.org/community/index.php?topic=467074.msg3528592#msg3528592) for more info.

Advanced Profile Fields must be activated under 'Core Features' for this Mod to work.

By Default, This Modification allows your members to add the following Social Media sites to their Profile:

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi44.tinypic.com%2F14lj4vm.jpg&hash=5f03c9caae556cc14e2d5ef1520848c9ee5d076d) Facebook
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi40.tinypic.com%2F2zykb5u.jpg&hash=94145cae6b2f6960700b5f00c3ded4ba1bcb89bc) MySpace
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi42.tinypic.com%2Fwbewxt.jpg&hash=501cbaad8822d6c97c8a91b7c044a5ecc4095590) Twitter
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi41.tinypic.com%2Fvr7vkl.jpg&hash=9160d0d8d595ad316a94433174d2e4b7553b0278) Google+
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi43.tinypic.com%2Ff0s21k.jpg&hash=fc86253e50ad6e1d4bc46a37b7a65570e2449026) LinkedIn
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi41.tinypic.com%2F10gl3lj.jpg&hash=49da44d6425e576732b46a0039a5d2bad7dcfeec) Youtube
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi41.tinypic.com%2F2vc6t74.jpg&hash=2a9fbf5a77f82d1de8b7f201023bf17af9fe6a74) DeviantArt
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi45.tinypic.com%2F10r1gro.jpg&hash=9725d9e1ebb14150728ddaf131ee7c0cd93cbda0) Pinterest

Note on Images:
QuoteAll images are uploaded to each Theme's /images folder as .png images.  If you prefer your own images, just upload and overwrite the images originally installed
/smifacebook.png
/smimyspace.png
/smitwitter.png
/smiyoutube.png
/smideviantart.png
/smigoogleplus.png
/smilinkedin.png
/smpinterest.png


This Modification is compatible with Ultimate Profiles and Default profiles.

SMF2

Advanced Profile Fields must be activated under 'Core Features' for this Mod to work.Social Media Icons will be displayed on the following pages :

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

Admin Settings (optional)*
Admin > Configuration > Features & Options > Profile Fields
Admin settings to Activate/Deactivate which to allow members to modify ( All on by default)
Admin settings to select which to show on new member Registration (All off by default)
[NEW!] Add Custom Icons to align seamlessly with default Social Media icons. (( for SMF2 ONLY! )) Click Here (http://www.simplemachines.org/community/index.php?topic=467074.msg3528592#msg3528592) for more info.

SMF 1

Social Media Icons will be displayed on the following pages :

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

*No Admin settings are required from installation.  Just install the Modification, and members can update these settings under: Profile > Modify Profile > Forum Profile

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

No copyright links are added to any footer pages.

Submitted Language Modifications are appreciated

languages/Modifications.english.php
$txt['smi_buddies_title'] = 'Social Networks';
$txt['smi_facebook_title'] = 'Facebook';
$txt['smi_facebook_desc'] = 'Input your Facebook username.';
$txt['smi_myspace_title'] = 'MySpace';
$txt['smi_myspace_desc'] = 'Input your MySpace username.';
$txt['smi_twitter_title'] = 'Twitter';
$txt['smi_twitter_desc'] = 'Input your Twitter username.';
$txt['smi_youtube_title'] = 'Youtube';
$txt['smi_youtube_desc'] = 'Input your Youtube username.';
$txt['smi_deviantart_title'] = 'DeviantArt';
$txt['smi_deviantart_desc'] = 'Input your DeviantArt username.';
$txt['smi_googleplus_title'] = 'Google+';
$txt['smi_googleplus_desc'] = 'Input your Google+ User ID.';
$txt['smi_linkedin_title'] = 'LinkedIn';
$txt['smi_linkedin_desc'] = 'Copy & Paste your LinkedIn profile link.';


Language Contributions.  ( thank you to all for your support )
hungarian - novill
italian - etms52
serbian-latin - Zuća
spanish - emueses
portuguese - Joomlamz
turkish - tusuka



Change Log

v1.2.0
Removed Guests viewing of Social Icons in posts & profiles
Custom Social Links now open in new tabs/windows when clicked
Fixed alignment issues when default icons were not used

v1.1.0
Added admin settings to add their own Custom Social Media icons to display with default icons - SMF2 ONLY
Removed display from Buddies & Who's Online page

v1.0.8
! Fixed bug where Icons not activated were displaying on Display & Who Online pages.
Added language support for:  turkish

v1.0.7
Pinterest Integrated
SMF 1.1.xx added Personal Message & Ultimate Profile Compatibility.
Added language support for:  portuguese

v1.0.6
Added language support for:  hungarian, italian, serbian-latin, spanish

v1.0.5
LinkedIn Integrated
Added 1.1.xx Compatibility

v1.0.4
Added Admin settings to Activate/Deactivate which to allow members to modify ( All on by default)
Added Admin settings to select which to show on new member Registration (All off by default)

v1.0.3
Error fixed with Icons not displaying in Edit Buddies page with Ultimate Profiles installed.

v1.0.2
Fixed bug with Google+ not being added to database
Completely revamped file edits in modification file
Removed unnecessary language edits for Ultimate Profile
Next update release will be Upgrade compatible.

v1.0.1
Google+ Integrated

v1.0
-First Release


This mod is licensed under Attribution-ShareAlike 3.0 Unported (CC BY-SA 3.0) (http://creativecommons.org/licenses/by-sa/3.0/)

Title: Re: Add Social Media Icons To Profiles
Post by: Babadinho on January 30, 2012, 02:10:08 PM
great mod. tnx
Title: Re: Add Social Media Icons To Profiles
Post by: hcfwesker on January 30, 2012, 03:17:14 PM
Thank you.  Preview Images are on the MOD page, I'll have to add them here as well. 

If there are other popular Social Network sites I may have missed or not aware of, I will take suggestions and possibly add into this modification.  :)
Title: Re: Add Social Media Icons To Profiles
Post by: fungku on January 30, 2012, 05:11:50 PM
Awesome!

Would be perfect if you added G+
Title: Re: Add Social Media Icons To Profiles
Post by: hcfwesker on January 30, 2012, 05:24:30 PM
Quote from: fungku on January 30, 2012, 05:11:50 PM
Awesome!

Would be perfect if you added G+

Thank you.  And, this was originally made for my site and my members, and only went on which they preferred and suggested.  But like I said, I'm open for suggestions of other social network sites to be added to this Modification as long as they are popular and widely used.  I just can't add everything that everyone suggests :)

I'll look into adding Google+ into the next version.  I don't use it myself, so if someone can provide an example of how a link to someone's profile works I can see how the link needs to be implemented into this :)

Title: Re: Add Social Media Icons To Profiles
Post by: Matthew K. on January 30, 2012, 05:47:06 PM
It's https://plus.google.com/{uid}/posts
Title: Re: Add Social Media Icons To Profiles
Post by: hcfwesker on January 30, 2012, 05:50:33 PM
Thanx, bud.  So  {uid}  would need to be replaced with the members info they put as their username on Google+

like this? https://plus.google.com/hcfwesker/posts
Title: Re: Add Social Media Icons To Profiles
Post by: Matthew K. on January 30, 2012, 05:51:14 PM
Instead of a name, however, it's the users id. Example: https://plus.google.com/114522878621277726258/posts
Title: Re: Add Social Media Icons To Profiles
Post by: hcfwesker on January 30, 2012, 05:52:51 PM
Ah, I gotcha.  Strange they chose to do it that way ???

but, it can be done.  So only numbers need to be allowed in the input label for members, no letters or other characters/symbols.
Title: Re: Add Social Media Icons To Profiles
Post by: Matthew K. on January 30, 2012, 05:53:42 PM
That's how Facebook does it, still. Although if you have a username, it also works that way.
Title: Re: Add Social Media Icons To Profiles
Post by: fungku on January 30, 2012, 06:32:27 PM
Quote from: hcfwesker on January 30, 2012, 05:24:30 PM
Quote from: fungku on January 30, 2012, 05:11:50 PM
Awesome!

Would be perfect if you added G+

Thank you.  And, this was originally made for my site and my members, and only went on which they preferred and suggested.  But like I said, I'm open for suggestions of other social network sites to be added to this Modification as long as they are popular and widely used.  I just can't add everything anyone suggests :)

I'll look into adding Google+ into the next version.  I don't use it myself, so if someone can provide an example of how a link to someone's profile works I can see how the link needs to be implemented into this :)

Google is implementing it into all their sites, including search results. I think eventually everyone will have a G+ profile whether they use it or not, but I'm sure a lot will.

Profile examples.

my G+ page: https://plus.google.com/111342621260486139756/ (https://plus.google.com/111342621260486139756/)

my business G+ page: https://plus.google.com/111714518818316549014/ (https://plus.google.com/111714518818316549014/)

cheers

edit: the hxxp is supposed to be https like the poster above did in his link
Title: Re: Add Social Media Icons To Profiles
Post by: hcfwesker on January 30, 2012, 06:47:17 PM
I'll work on implementing this and updating the package in the next few days.   Just gotta find/make a decent, small, icon for Google+ and make other preparations when I have time.
Title: Re: Add Social Media Icons To Profiles
Post by: Matthew K. on January 30, 2012, 06:53:44 PM
When you update this, you should use the upgrade element in package-info.xml so people who are using this mod already don't have to uninstall and then re-install :)
Title: Re: Add Social Media Icons To Profiles
Post by: fungku on January 30, 2012, 06:57:46 PM
Two transparent bg, one black  ;D
Title: Re: Add Social Media Icons To Profiles
Post by: fungku on January 31, 2012, 01:44:39 AM
Quote from: Labradoodle-360 on January 30, 2012, 06:53:44 PM
When you update this, you should use the upgrade element in package-info.xml so people who are using this mod already don't have to uninstall and then re-install :)
I like this idea  ;D
Title: Re: Add Social Media Icons To Profiles
Post by: hcfwesker on January 31, 2012, 11:31:32 AM
Version 1.0.1

Added Google+ Integration
Cleaned up a lot of file edits for cleaner install and uninstalls

It is advised to uninstall, then install the latest version.   Upgrade options will be implemented in later versions.

Big thanx to Labradoodle-360 & Joker™  for helping steer me in the right direction. :)

For SMF4Mobile (http://smf-media.com/smf4mobile/) users , I've added integration edits on the support site for these to be included.

Preview:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi55.tinypic.com%2F1z6coc7.jpg&hash=43d938ed6e24dd60625467c43dff9eee2c4de531)


Quote from: Labradoodle-360 on January 30, 2012, 06:53:44 PM
When you update this, you should use the upgrade element in package-info.xml so people who are using this mod already don't have to uninstall and then re-install :)

This will be integrated with future updates, thanx to all your help in this.  I had to clean up some of the old coding so this would be implemented better in future releases, as well as cleaner installs/uninstalls after upgrade versions are added.

 
Title: Re: Add Social Media Icons To Profiles
Post by: Matthew K. on January 31, 2012, 11:34:18 AM
Congrats on the release :)
Title: Re: Add Social Media Icons To Profiles
Post by: Apllicmz on January 31, 2012, 04:18:39 PM
Nice work
when try download i see error
can check thank you
Title: Re: Add Social Media Icons To Profiles
Post by: Matthew K. on January 31, 2012, 04:19:30 PM
Quote from: Joomlamz on January 31, 2012, 04:18:39 PM
Nice work
when try download i see error
can check thank you

Providing more details would be helpful
Title: Re: Add Social Media Icons To Profiles
Post by: Apllicmz on January 31, 2012, 04:34:05 PM
Now is Ok

i see new Link

Add Social Media Icons to Profiles v1.0.1.zip (http://custom.simplemachines.org/mods/index.php?action=download;mod=3304;id=196525)

done
Title: Re: Add Social Media Icons To Profiles
Post by: hcfwesker on January 31, 2012, 04:45:02 PM
Yes, it may have given an error cause I re-added the original package just in case of uninstall errors and users may have need the parse page for uninstalling the first version.  It lagged a little while saving, but glad to see you got it downloaded.

the 1.0.1 is a much cleaner install than the first 1.0 package :)
Title: Re: Add Social Media Icons To Profiles
Post by: fungku on February 01, 2012, 01:04:05 AM
excellent
Title: Re: Add Social Media Icons To Profiles
Post by: hcfwesker on February 01, 2012, 01:21:53 AM
Quote from: fungku on February 01, 2012, 01:04:05 AM
excellent

No problem.  :)

And, I didn't have a proper image ready.  There is a G+ image, but not cropped well.  attached below is 2 to chose from and both align with the other SMI icons much better.  I'll have the cleaner image in the next update.
Title: Re: Add Social Media Icons To Profiles
Post by: rickmastfan67 on February 01, 2012, 07:01:12 AM
Nice mod, however, I'm having trouble getting 1.0.1 to work.  I just installed a 2.0.2 forum and noticed you addon and installed it.  Installing didn't cause any problems or throw up any errors, however, I got an error whenever I tried to go to my profile page.

Database Error
Unknown column 'mem.deviantart' in 'field list'
File: /*****/********/***********/****/smf2/Sources/Load.php
Line: 1005


Don't know if this is a problem with how my forum is setup, or you missed something with making the 1.0.1 version.

Just thought I would let you know.

Also, I just tried to install 1.0, and that works perfectly fine for my forum.
Title: Re: Add Social Media Icons To Profiles
Post by: hcfwesker on February 01, 2012, 10:06:56 AM
Quote from: rickmastfan67 on February 01, 2012, 07:01:12 AM
Nice mod, however, I'm having trouble getting 1.0.1 to work.  I just installed a 2.0.2 forum and noticed you addon and installed it.  Installing didn't cause any problems or throw up any errors, however, I got an error whenever I tried to go to my profile page.

Database Error
Unknown column 'mem.deviantart' in 'field list'
File: /*****/********/***********/****/smf2/Sources/Load.php
Line: 1005


Don't know if this is a problem with how my forum is setup, or you missed something with making the 1.0.1 version.

Just thought I would let you know.

Also, I just tried to install 1.0, and that works perfectly fine for my forum.

Yikes!  Thank you for the notice.   Was tiny typo in one of the lines, causing deviantart to be written over by googleplus in the database table.


Fixed package uploaded in v1.0.1.  Along with the cleaner Google+ image updated.

This error won't affect those who originally had v1.0 installed.  For those who first downloaded and used v1.0.1 , redownload the fixed package and replace it.

Title: Re: Add Social Media Icons To Profiles
Post by: Kindred on February 01, 2012, 10:49:33 AM
had to manually apply the update of adding googleplus. :)  but it's on my mod test site. :)
Title: Re: Add Social Media Icons To Profiles
Post by: hcfwesker on February 01, 2012, 10:57:56 AM
Any updates after v1.0.1 I plan on implementing the Upgrade element to future updates.  So if it's possible, you may want to update the newly applied v1.0.1 version :)   The 1.0 edits were kinda sloppy with before/after edits, 1.0.1 are all replace edits except for the language files.

I seen your post in Event Registration MOD about the 150+ MODs on test site.  :D  From what I recall, this one does throw errors on forums like that, but mostly directed in the mem. statements in Load.php
Title: Re: Add Social Media Icons To Profiles
Post by: Kindred on February 01, 2012, 11:03:33 AM
well, I'll tackle that when it comes to it. lol...


However, I disagree with your choice to use replace instead of add-before/add-after

IMO, it is better to ALWAYS use add-before and add-after if you are not changing the original source... Replace should onyl be used when you are actually changing an original source line.
Title: Re: Add Social Media Icons To Profiles
Post by: hcfwesker on February 01, 2012, 11:10:53 AM
Quote from: Kindred on February 01, 2012, 11:03:33 AMIMO, it is better to ALWAYS use add-before and add-after if you are not changing the original source... Replace should onyl be used when you are actually changing an original source line.

thank you, and noted!  However, when I tried to use the Upgrade element in the latest update, it added everything just fine, but when I wanted to uninstall the updated package as a whole, threw out too many errors.

So, I made sure to chose carefully which replace lines for statements that wouldn't be modified by other mods.    Lines like below, are replaced just as originally were, so adding after/before would have caused the same outcome.

// Show the profile, website, email address, and personal message buttons.

however, the mem. statements in Load.php are unavoidable due to so many MODs editing those lines.  But I'll take your advice
Title: Re: Add Social Media Icons To Profiles
Post by: Matthew K. on February 01, 2012, 11:58:48 AM
There are usually ways of sneaking around using the commonly hacked lines, and even better ways of doing most edits that just take a minute of thought to find.

I do agree with Kindred though, only use replace when necessary.

Also - I would encourage you to make a new patch (1.0.2 for instance) if you fix something, it just helps people keep track of what's going on better, rather than updating the same version package with a bugfix. If no one has used it yet? Sure, fix it, and upload it. But if people have already started using it, I'd suggest adding a new 1 :)
Title: Re: Add Social Media Icons To Profiles
Post by: hcfwesker on February 01, 2012, 03:16:52 PM
I Fail at this!  :(

Next version I'll work back in the before/after edits, and once I get everything synced in properly, the Upgrade elements should be integrated easily as well.  I just think my first version was riddled with random spaces in between edits that added before/after coding, reason I got so many uninstall errors when trying to uninstall after the Upgrade version was tacked on.

And, I'll remember to upload fixes with newer versions.   I guess I was a little embarassed with so many mistakes this early on lol.  I'm a learning though.  slowly but surely.

My plan now is to rewrite this from scratch, including just the v1.0 edits, then work in and test the v1.0.1 upgrade version to it, and see how that pulls off.  Then release the entire thing in a 1.0.2 version, so it's prepped for updated versions.


Title: Re: Add Social Media Icons To Profiles
Post by: Matthew K. on February 01, 2012, 03:19:29 PM
You're doing fine...trust me. Keep your head up dude. It's a learning process.
Title: Re: Add Social Media Icons To Profiles
Post by: hcfwesker on February 01, 2012, 06:37:29 PM
v1.0.2
Fixed bug with Google+ not being added to database
Completely revamped file edits in modification file
Removed unnecessary language edits for Ultimate Profile
Next update release will be Upgrade compatible.


Sorry for the frequent updates.  The new package is almost flawless and this is the version I wish was originally released.  I tested and re-tested and then tested some more.  File edits are perfectly added without line edits being distorted everywhere in the files.  ( I'm hoping all was fixed)

Plus i tested Upgrade elements and after a little trial and error I have it working now, and will be available in the NEXT update.

Title: Re: Add Social Media Icons To Profiles
Post by: Matthew K. on February 01, 2012, 07:08:08 PM
You should get the award for updating one mod the most :P
Title: Re: Add Social Media Icons To Profiles
Post by: Fed Drago on February 02, 2012, 07:45:51 AM
Hello there great Mod Would it be possible to add a Skype link in your next Upgrade?

Cheers

Fed
Title: Re: Add Social Media Icons To Profiles
Post by: hcfwesker on February 02, 2012, 09:56:13 AM
Quote from: Fed Drago on February 02, 2012, 07:45:51 AM
Hello there great Mod Would it be possible to add a Skype link in your next Upgrade?

Problem is that Skype doesn't exactly belong in this category.  But the edits used in this MOD are almost the exact same for adding Instant Messengers, so it wouldn't be too tough of a task.   And with all the other Skype MODs out dated I suppose I could see about submitting an updated Skype MOD for SMF 2.0.x   Or make one that would add several IMs , like Skype, Google Talk, etc.  ( I really don't know what the new popular IMs are these days besides msn and skype)
Title: Re: Add Social Media Icons To Profiles
Post by: hcfwesker on February 02, 2012, 03:44:41 PM
v1.0.3
Error fixed with Icons not displaying in Edit Buddies page with Ultimate Profiles installed.

To upgrade from v1.0.2 simply upload the v1.0.3 Package and install, no need to uninstall v1.0.2
Title: Re: Add Social Media Icons To Profiles
Post by: Fed Drago on February 02, 2012, 05:30:30 PM
Quote from: hcfwesker on February 02, 2012, 03:44:41 PM
v1.0.3
Error fixed with Icons not displaying in Edit Buddies page with Ultimate Profiles installed.

To upgrade from v1.0.2 simply upload the v1.0.3 Package and install, no need to uninstall v1.0.2

Makes sense thank you for getting back to me.
Title: Re: Add Social Media Icons To Profiles
Post by: hcfwesker on February 02, 2012, 05:45:41 PM
Quote from: Fed Drago on February 02, 2012, 05:30:30 PM
Makes sense thank you for getting back to me.

No problem. I'm working on the other MOD now. :)
Title: Re: Add Social Media Icons To Profiles
Post by: Fed Drago on February 02, 2012, 06:33:43 PM
Quote from: hcfwesker on February 02, 2012, 05:45:41 PM
Quote from: Fed Drago on February 02, 2012, 05:30:30 PM
Makes sense thank you for getting back to me.

No problem. I'm working on the other MOD now. :)

I just installed this Mod and it is Fantastic thank you for it.

Cheers
Title: Re: Add Social Media Icons To Profiles
Post by: hcfwesker on February 04, 2012, 02:26:25 PM
I appreciate the nice words. 

Plans for next update is to include options for Admins to Activate/Deactivate which Media Icons not to allow on the forum, and select which can be filled out on new member Registrations.
Title: Re: Add Social Media Icons To Profiles
Post by: Draffi on February 04, 2012, 03:25:28 PM
Quotewhich can be filled out on new member Registrations.

That was my question, too.

Hope you can hold your update-frequency.... ;D
Title: Re: Add Social Media Icons To Profiles
Post by: hcfwesker on February 04, 2012, 04:38:14 PM
Quote from: Fed Drago on February 02, 2012, 07:45:51 AM
Hello there great Mod Would it be possible to add a Skype link in your next Upgrade?

Cheers

Here you go, buddy ;)

http://www.simplemachines.org/community/index.php?topic=467631.msg3268474#msg3268474

Though, installing, from what I seen, will give you errors on Sources/Load.php and Sources/Profile-Modify.php , cause both these MODs edit similar lines.
Title: Re: Add Social Media Icons To Profiles
Post by: hcfwesker on February 04, 2012, 04:45:28 PM
Quote from: Draffi on February 04, 2012, 03:25:28 PMHope you can hold your update-frequency.... ;D

I'll try ;)

v1.0.4 Release
Added Admin settings to Activate/Deactivate which to allow members to modify ( All on by default)
Added Admin settings to select which to show on new member Registration (All off by default)

To configure theses settings goto  Admin > Configuration > Profile Fields

To upgrade from v1.0.3 simply upload the v1.0.4 Package and install, no need to uninstall v1.0.3
Title: Re: Add Social Media Icons To Profiles
Post by: Zuća on February 04, 2012, 06:29:06 PM
it would be nice to add skype
Title: Re: Add Social Media Icons To Profiles
Post by: hcfwesker on February 04, 2012, 06:32:15 PM
Quote from: Present. on February 04, 2012, 06:29:06 PM
it would be nice to add skype

As already asked, and responded to.  skype ins't a Social Site, it's an instant Messenger, so doesn't belong in this category.  but, alas, the MOD was just released for Skype & Google Talk.   http://www.simplemachines.org/community/index.php?topic=467631.msg3268474#msg3268474
Title: Re: Add Social Media Icons To Profiles
Post by: rickmastfan67 on February 04, 2012, 08:24:00 PM
Can you update from 1.0.1 to 1.0.4 directly, or do I have to uninstall it first and then re-install?
Title: Re: Add Social Media Icons To Profiles
Post by: hcfwesker on February 04, 2012, 08:31:49 PM
Quote from: rickmastfan67 on February 04, 2012, 08:24:00 PM
Can you update from 1.0.1 to 1.0.4 directly, or do I have to uninstall it first and then re-install?

Only from 1.0.2 can you update to 1.0.3 then to 1.0.4

you'll need to uninstall 1.0.1 , then install 1.0.4  to get to the latest release.  sorry
Title: Re: Add Social Media Icons To Profiles
Post by: rickmastfan67 on February 04, 2012, 08:33:06 PM
Quote from: hcfwesker on February 04, 2012, 08:31:49 PM
Quote from: rickmastfan67 on February 04, 2012, 08:24:00 PM
Can you update from 1.0.1 to 1.0.4 directly, or do I have to uninstall it first and then re-install?

Only from 1.0.2 can you update to 1.0.3 then to 1.0.4

you'll need to uninstall 1.0.1 , then install 1.0.4  to get to the latest release.  sorry

But any data that is stored from this mod will stay in the database and not have to be put back in, correct?
Title: Re: Add Social Media Icons To Profiles
Post by: hcfwesker on February 04, 2012, 08:34:57 PM
Yes, members data will still be stored :)

when uninstalling, just don't click the option  "Remove all data associated with this modification. [Details]"   <--- leave that unchecked ( should be unchecked by default).  this allows the data members have added to stay stored in the databse, and once MOd is reinstalled, their stuff will appear back as normally like it was never removed  :)
Title: Re: Add Social Media Icons To Profiles
Post by: rickmastfan67 on February 04, 2012, 08:35:57 PM
Good to know.  Thanks.
Upgrading now. ;)
Title: Re: Add Social Media Icons To Profiles
Post by: hcfwesker on February 04, 2012, 08:38:33 PM
No problem.  Once you make the full install of v1.0.4 , all later version will be upgradable, but must be upgraded from one version to the next.

example v1.0.2 > v1.0.3 > v.1.04 > v.1.0.5  and so on.  Can't just upgrade from 1.0.2 to 1.0.5 , must be done in succession
Title: Re: Add Social Media Icons To Profiles
Post by: etms52 on February 06, 2012, 04:39:31 AM
My italian translation:


File:./Themes/default/languages/Modifications.italian.php

Trova (alle fine del file):
?>

Aggiunti sopra:


$txt['smi_facebook_title'] = 'Facebook';
$txt['smi_facebook_desc'] = 'Immetti il tuo nome utente su Facebook.';
$txt['smi_myspace_title'] = 'MySpace';
$txt['smi_myspace_desc'] = 'Immetti il tuo nome utente su MySpace.';
$txt['smi_twitter_title'] = 'Twitter';
$txt['smi_twitter_desc'] = 'Immetti il tuo nome utente su Twitter.';
$txt['smi_youtube_title'] = 'Youtube';
$txt['smi_youtube_desc'] = 'Immetti il tuo nome utente su Youtube.';
$txt['smi_deviantart_title'] = 'DeviantArt';
$txt['smi_deviantart_desc'] = 'Immetti il tuo nome utente su DeviantArt.';
$txt['smi_googleplus_title'] = 'Google+';
$txt['smi_googleplus_desc'] = 'Immetti il tuo ID utente su Google+.';


File:./Themes/default/languages/Profile.italian.php

Trova (alle fine del file):
?>

Aggiunti sopra:


$txt['smi_buddies_title'] = 'Reti sociali';


File:./Themes/default/languages/UltimateProfile.italian.php

Trova (alle fine del file):
?>

Aggiunti sopra:


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


My website: http://www.ikariamtools.netsons.org/?p=70
Title: Re: Add Social Media Icons To Profiles
Post by: hcfwesker on February 06, 2012, 10:50:57 PM
Thank You very much for the contribution. I'll be sure to include this in the next update.
Title: Re: Add Social Media Icons To Profiles
Post by: CuteNeko on February 07, 2012, 12:13:13 AM
A nice mod but it's only partially working for me

as you can see http://timjm.com/cuteneko/index.php?topic=3.msg4#new
the social network links show up, but not the icons, the installation went okay according to the installer, however, it may have caused this issue:
http://www.simplemachines.org/community/index.php?topic=467858.0
Title: Re: Add Social Media Icons To Profiles
Post by: CuteNeko on February 07, 2012, 12:16:04 AM
Ah, my question looks like it's been answered in that thread.
Title: Re: Add Social Media Icons To Profiles
Post by: Matthew K. on February 07, 2012, 12:17:35 AM
I highly doubt it caused that issue...the fact the images are missing has absolutely no relation to custom profile fields.

Steps to look for the solution:
1) Make sure the images are on your server (navigate through FTP or cPanel's File Manager)
2) Visit the images via the URL (in your web browser)

What happens?
Title: Re: Add Social Media Icons To Profiles
Post by: hcfwesker on February 07, 2012, 12:40:33 AM
I was just fixing to ask if you Activated Profile Fields in the Core Features.  Though, this MOD shouldn't have anything to do with that , and should be working as soon as installed.  If you have a custom theme, the installer will ask if you want to install the images to other themes.  The images must be installed to all themes' images folder  for them to appear.

I just went to your site, and appears you are using a custom theme.  So you may want to uninstall the MOD, then reintsall, and make sure you click the options to install images to other themes.
Title: Re: Add Social Media Icons To Profiles
Post by: Matthew K. on February 07, 2012, 12:41:38 AM
Quote from: hcfwesker on February 07, 2012, 12:40:33 AM
I was just fixing to ask if you Activated Profile Fields in the Core Features.  Though, this MOD shouldn't have anything to do with that , and should be working as soon as installed.  If you have a custom theme, the installer will ask if you want to install the images to other themes.  The images must be installed to all themes' images folder  for them to appear.
And bang, there you have it. The dude's right, too ;)
Title: Re: Add Social Media Icons To Profiles
Post by: Zuća on February 07, 2012, 09:54:53 AM
Modifications.serbian_latin-utf-8.php

$txt['smi_facebook_title'] = 'Facebook';
$txt['smi_facebook_desc'] = 'Vaše Fejsbuk korisničko ime.';
$txt['smi_myspace_title'] = 'MySpace';
$txt['smi_myspace_desc'] = 'Vaše Myspace korisničko ime.';
$txt['smi_twitter_title'] = 'Twitter';
$txt['smi_twitter_desc'] = 'Vaše twiter korisničko ime.';
$txt['smi_youtube_title'] = 'Youtube';
$txt['smi_youtube_desc'] = 'Vaše Youtube korisničko ime.';
$txt['smi_deviantart_title'] = 'DeviantArt';
$txt['smi_deviantart_desc'] = 'Vaše DeviantArt korisničko ime.';
$txt['smi_googleplus_title'] = 'Google+';
$txt['smi_googleplus_desc'] = 'Vaš Google+ ID.';

Title: Re: Add Social Media Icons To Profiles
Post by: hcfwesker on February 09, 2012, 08:56:03 PM
Quote from: Zuca on February 07, 2012, 09:54:53 AM
Modifications.serbian_latin-utf-8.php

thank You for the contribution.  Before I can add , I also need this line translated please.  :)

$txt['smi_buddies_title'] = 'Social Networks';
Title: Re: Add Social Media Icons To Profiles
Post by: Zuća on February 09, 2012, 09:12:28 PM
Translate
$txt['smi_buddies_title'] = 'Društvene mreže';
Title: Re: Add Social Media Icons To Profiles
Post by: GlitchPC on February 17, 2012, 12:19:27 PM
hcfwesker...

Thanks for the mod, bud!
Title: Re: Add Social Media Icons To Profiles
Post by: Fed Drago on February 19, 2012, 12:30:33 PM
Yes the Mod works like a charm thank you.

Title: Re: Add Social Media Icons To Profiles
Post by: Papa on February 21, 2012, 04:54:47 AM
Not sure if your still open to feedback, but I would love to see LinkedIn added in. It is one of the large social networking sites and it is the only big one designed towards professionals.

Thanks for the great mod!

(PS. I don't think it would be a bad idea to combine your other mod titled "Additional Instant Messengers" with this one.. Skype and Google Voice are both much more active than ICQ and we have that by default. lol.)

EDIT: hcfwesker, could I PM you about doing a small mod that adds two social networking sites that are related to an online game I play? I have all the details needed just need someone to make the mod.
Title: Re: Add Social Media Icons To Profiles
Post by: hcfwesker on February 21, 2012, 09:28:40 PM
Quote from: Papa on February 21, 2012, 04:54:47 AM
Not sure if your still open to feedback, but I would love to see LinkedIn added in. It is one of the large social networking sites and it is the only big one designed towards professionals.

Thanks for the great mod!

you're welcome.  And, I heard of LinkedIn mentioned elsewhere before.  I'll look into adding it, possibly.

Quote(PS. I don't think it would be a bad idea to combine your other mod titled "Additional Instant Messengers" with this one.. Skype and Google Voice are both much more active than ICQ and we have that by default. lol.)

In the future I may add a "merge" MOD for both, where one can be installed much easier if the other is.  I just preferred them to be separate since users have different tastes and one MOd is for social sites, the other for instant messengers.

QuoteEDIT: hcfwesker, could I PM you about doing a small mod that adds two social networking sites that are related to an online game I play? I have all the details needed just need someone to make the mod.

Can't guarantee the timing, but I could take a look at what you're asking for.  Sure, PM the details.

Title: Re: Add Social Media Icons To Profiles
Post by: rad1701 on February 26, 2012, 12:54:22 PM
What edits do you need to make to get it to work on other themes besides the default theme?
Title: Re: Add Social Media Icons To Profiles
Post by: hcfwesker on February 26, 2012, 01:44:33 PM
Parse the MOD on the MOD download page.   And look for any edits in files labeled Themes/default/filename.php  , and if those same files appear in your custom theme, then you'll have to make the manual edits for those files in custom themes.

Manual Installation of Mods (http://wiki.simplemachines.org/smf/Manual_installation_of_mods)

Most likely your custom theme is going to have it's own Display.template.php file, that this MOD needs to edit.

You also need to copy the image, or upload them, to your custom themes images folder.
Title: Re: Add Social Media Icons To Profiles
Post by: Biology Forums on February 26, 2012, 02:08:26 PM
Is there an equivalent to this mod for 1.x?
Title: Re: Add Social Media Icons To Profiles
Post by: hcfwesker on February 26, 2012, 02:25:16 PM
I haven't used 1.x version in a long time.  I could possibly check and see how difficult the edits for adding a 1.1.x version would be.  No promises though, but I'll look into it. 
Title: Re: Add Social Media Icons To Profiles
Post by: Biology Forums on February 26, 2012, 04:31:03 PM
Quote from: hcfwesker on February 26, 2012, 02:25:16 PM
I haven't used 1.x version in a long time.  I could possibly check and see how difficult the edits for adding a 1.1.x version would be.  No promises though, but I'll look into it.

Thanks a lot!
Title: Re: Add Social Media Icons To Profiles
Post by: lurkalot on February 26, 2012, 07:07:37 PM
Any chance of adding Flikr to the list please? http://www.flickr.com/ 

It would make it a handy mod for photography sites. ;)
Title: Re: Add Social Media Icons To Profiles
Post by: hcfwesker on February 26, 2012, 07:21:36 PM
Quote from: lurkalot on February 26, 2012, 07:07:37 PM
Any chance of adding Flikr to the list please? http://www.flickr.com/ 

I could look into it.  What does a link to a member profile on their look like?  http://www.flickr.com/photos/MEMBERNAME  <--- soemthing like this?

It's important, because when trying LinkedIn, links to profiles are not all the same url path because of different profile settings some set-up, so in order to add LinkedIn, I'm most likely just going to have to have users copy/paste their entire LinkedIn profile url in the profile modify options.
Title: Re: Add Social Media Icons To Profiles
Post by: lurkalot on February 27, 2012, 01:51:00 AM
Quote from: hcfwesker on February 26, 2012, 07:21:36 PM
Quote from: lurkalot on February 26, 2012, 07:07:37 PM
Any chance of adding Flikr to the list please? http://www.flickr.com/ 

I could look into it.  What does a link to a member profile on their look like?  http://www.flickr.com/photos/MEMBERNAME  <--- soemthing like this?

It's important, because when trying LinkedIn, links to profiles are not all the same url path because of different profile settings some set-up, so in order to add LinkedIn, I'm most likely just going to have to have users copy/paste their entire LinkedIn profile url in the profile modify options.

Thanks for even considering adding this. ;)

Yes here's an example, not my profile, just to show you how it looks,

http://www.flickr.com/photos/michaelb104

There's also a sleeker way to view your Flickr pics using Fluidr, so not sure if this also needs adding. Would be nice. ;)

http://www.fluidr.com/photos/michaelb104/
Title: Re: Add Social Media Icons To Profiles
Post by: hcfwesker on February 27, 2012, 02:10:16 AM
v1.0.5 Release
LinkedIn Integration added  (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi43.tinypic.com%2Ff0s21k.jpg&hash=fc86253e50ad6e1d4bc46a37b7a65570e2449026)
Added 1.1.xx Compatibility

Note on LinkedIn for users.  As noted on the Modify Profile page, users will need to copy & paste their entire LinkedIn profile URL.

Compatible with SMF 1 versions : 1.1.16  ( maybe previous 1.1.xx versions, haven't tested myself).
Only placed I added these to appear on are Display page and Profile pages.  Kinda rushed myself, but I'll add more pages like the SMF2 version in a later update.

To upgrade from v1.0.4 simply upload the v1.0.5 Package and install, no need to uninstall v1.0.4
Title: Re: Add Social Media Icons To Profiles
Post by: hcfwesker on February 27, 2012, 02:12:13 AM
Quote from: lurkalot on February 27, 2012, 01:51:00 AMThanks for even considering adding this. ;)

Yes here's an example, not my profile, just to show you how it looks,

http://www.flickr.com/photos/michaelb104

There's also a sleeker way to view your Flickr pics using Fluidr, so not sure if this also needs adding. Would be nice. ;)

http://www.fluidr.com/photos/michaelb104/

If I to get around to it, I'm just going to add 1 of the 2.  Most likely just the Flickr site.  The space for Social Media Icons on the display page is already getting a bit crowded.

Title: Re: Add Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: lurkalot on February 27, 2012, 03:06:13 AM
Quote from: hcfwesker on February 27, 2012, 02:12:13 AM

If I to get around to it, I'm just going to add 1 of the 2.  Most likely just the Flickr site.  The space for Social Media Icons on the display page is already getting a bit crowded.


That's fine by me, yes the Flickr one would be best.  Thanks ;)
Title: Re: Add Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: !RFAN on February 27, 2012, 03:26:13 AM
i was trying to get google authorship and that is why i installed this mod. Now please help me how can i add "rel="author" for google plus

info: http://support.google.com/webmasters/bin/answer.py?hl=en&answer=1408986
Title: Re: Add Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: Goad on February 27, 2012, 03:29:16 AM
Duplicate column name 'myspace'
File: /home/xxxxxxxxxx/public_html/xxxx/Packages/temp/2.x/install.php
Line: 84

I was able to bypass this error, but figured I'd let you know. I had this column from a previous mod in a 1.1.x installation of the site and was no longer using it. I just renamed the column to myspace_old. it would have been nice if your install just ignored the duplicate so it carried over the old entries, but its no big deal, only 10 or so people had put their myspace into their profile field. ....but i mean, who uses myspace anymore anyways?  ;D
Title: Re: Add Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: Kindred on February 27, 2012, 07:38:56 AM
Rfan... This has nothing to do with the authorship tag.
Tat would be a completely different mod.
This mod adds the icons to the profile, just like aim and msn.

Goad... Yeah, I had the same problem with MySpace and skypse columns.... I just drop
D them, but your right... Te mod should not error if the columns xist.
Title: Re: Add Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: GlitchPC on February 27, 2012, 09:50:46 AM
Probably going to get blasted for this...but, I uploaded the latest version, 1.0.5 and installed it.  Not a prob.  When I went to package manager...version 1.0.4 was there...with no uninstall link.  There was only a List Files and Delete link.  So, I just deleted it.

Will this cause me any issues in the future?
Title: Re: Add Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: hcfwesker on February 27, 2012, 12:36:13 PM
Quote from: Goad on February 27, 2012, 03:29:16 AM
Duplicate column name 'myspace'
File: /home/xxxxxxxxxx/public_html/xxxx/Packages/temp/2.x/install.php
Line: 84

It honestly should have bypassed a duplicate table.  I'll test and and see whats up.

Quote from: GlitchPC on February 27, 2012, 09:50:46 AM
Probably going to get blasted for this...but, I uploaded the latest version, 1.0.5 and installed it.  Not a prob.  When I went to package manager...version 1.0.4 was there...with no uninstall link.  There was only a List Files and Delete link.  So, I just deleted it.   Will this cause me any issues in the future?

Nope, thats normal behavior.  If when you download the latest version to upgrade from the previous, but instead of immediately Installing it, go view the packages, it'll have [Upgrade] , instead of [Install].  So basically the newest version becomes the entire package after upgrading.  deleting the older version is what you should do.

Title: Re: Add Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: Zuća on February 27, 2012, 03:31:24 PM
what is new in v1.0.5 ?
Title: Re: Add Social Media Icons To Profiles
Post by: Kindred on February 27, 2012, 03:32:40 PM
try reading? :P

Quote from: hcfwesker on February 27, 2012, 02:10:16 AM
v1.0.5 Release
LinkedIn Integration added  (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi43.tinypic.com%2Ff0s21k.jpg&hash=fc86253e50ad6e1d4bc46a37b7a65570e2449026)
Added 1.1.xx Compatibility

Note on LinkedIn for users.  As noted on the Modify Profile page, users will need to copy & paste their entire LinkedIn profile URL.

Compatible with SMF 1 versions : 1.1.16  ( maybe previous 1.1.xx versions, haven't tested myself).
Only placed I added these to appear on are Display page and Profile pages.  Kinda rushed myself, but I'll add more pages like the SMF2 version in a later update.

To upgrade from v1.0.4 simply upload the v1.0.5 Package and install, no need to uninstall v1.0.4
Title: Re: Add Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: Godsongz on March 01, 2012, 10:50:38 PM
Quote from: hcfwesker on February 27, 2012, 02:10:16 AM
Note on LinkedIn for users.  As noted on the Modify Profile page, users will need to copy & paste their entire LinkedIn profile URL.

I've copied and pasted my entire LinkedIn profile URL, but after saving my forum profile and going back to look at the LinkedIn profile URL, I find that it's had several characters truncated off the end of it.

EDIT:  yep, looks like it's truncating the field to a maximum of 45 characters.  For me it was sufficient to remove the "www." from the front of the URL to get it to work.
Title: Re: Add Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: hcfwesker on March 01, 2012, 11:48:59 PM
Strange, because i set it to 65 characters max, I believe.  I noticed when browsing the site that some links were a tad larger than 45, so i went 65 to be safe.

EDIT:  well crap, nm.  i made it 65 on modify profile, but database is 45 limit.  I suck. :(
Title: Re: Add Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: emueses on March 02, 2012, 05:53:09 PM
Don't know if you are interested but here is the Spanish Language Modification:

$txt['smi_buddies_title'] = 'Redes Sociales';
$txt['smi_facebook_title'] = 'Facebook';
$txt['smi_facebook_desc'] = 'Su Usuario en Facebook.';         
$txt['smi_myspace_title'] = 'MySpace';
$txt['smi_myspace_desc'] = 'Su Usuario en MySpace.';
$txt['smi_twitter_title'] = 'Twitter';
$txt['smi_twitter_desc'] = 'Su Usuario en Twitter.';
$txt['smi_youtube_title'] = 'Youtube';
$txt['smi_youtube_desc'] = 'Su Usuario en YouTube.';
$txt['smi_deviantart_title'] = 'DeviantArt';
$txt['smi_deviantart_desc'] = 'Su Usuario en DevianArt.';
$txt['smi_googleplus_title'] = 'Google+';
$txt['smi_googleplus_desc'] = 'Su Numero de ID en Google+.';
Title: Re: Add Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: hcfwesker on March 02, 2012, 09:41:42 PM
Thank you for the spanish language contribution.  It's not that I haven't been slacking on adding them, it's just by time I get ready to add them, I add a new social Media site each time, and then I don't have the translation for the new site added. :(   I'll try and get a better system for this in the future.
Title: Re: Add Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: Sir Charles on March 03, 2012, 05:10:38 PM
Yeah I cant put my linkedIN profile  on because my URL for my profile is too long :(
Title: Re: Add Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: hcfwesker on March 03, 2012, 06:16:42 PM
Quote from: Sir Charles on March 03, 2012, 05:10:38 PM
Yeah I cant put my linkedIN profile  on because my URL for my profile is too long :(

Try the recently attached MOD.  Same edits and all, just ups the databse limit to 65 characters.  This is the main reason i didn't want to add LinbkIn, cause there's no absolute defined url to all profiles.
Title: Re: Add Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: Zuća on March 04, 2012, 07:45:01 AM
Add a steam ?
Title: Re: Add Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: rickmastfan67 on March 04, 2012, 08:20:33 AM
hcfwesker, I help run an older 1.1.16 forum which can't be upgraded at this time and I was wondering if the following mod (Profile Fields and Icons Mod (http://custom.simplemachines.org/mods/index.php?mod=1910)) data can be safely ported from it and converted to your mod?

If that is possible, it will help at least for the future when we do get around to upgrading it to the SMF2 branch as your mod is fully compatible with both 1.1.16 and 2.0.2 now. :)
Title: Re: Add Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: Sir Charles on March 04, 2012, 10:24:33 AM
Quote from: hcfwesker on March 03, 2012, 06:16:42 PM
Quote from: Sir Charles on March 03, 2012, 05:10:38 PM
Yeah I cant put my linkedIN profile  on because my URL for my profile is too long :(

Try the recently attached MOD.  Same edits and all, just ups the databse limit to 65 characters.  This is the main reason i didn't want to add LinbkIn, cause there's no absolute defined url to all profiles.

Recently attached mod? I downloaded v1.0.5 yesterday have you updated it since then?
Title: Re: Add Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: hcfwesker on March 04, 2012, 01:25:43 PM
Quote from: Zuća on March 04, 2012, 07:45:01 AM
Add a steam ?

Steam, and other gaming profiles are available with this MOD.  GamerIDs : http://custom.simplemachines.org/mods/index.php?mod=2769

Quote from: Sir Charles on March 04, 2012, 10:24:33 AMRecently attached mod? I downloaded v1.0.5 yesterday have you updated it since then?

Yes, after your post, I uploaded a new v1.0.5 , Last Modified: March 3, 2012 at 05:15:19 PM  (central time US)

Quote from: rickmastfan67 on March 04, 2012, 08:20:33 AM
hcfwesker, I help run an older 1.1.16 forum which can't be upgraded at this time and I was wondering if the following mod (Profile Fields and Icons Mod (http://custom.simplemachines.org/mods/index.php?mod=1910)) data can be safely ported from it and converted to your mod?

If that is possible, it will help at least for the future when we do get around to upgrading it to the SMF2 branch as your mod is fully compatible with both 1.1.16 and 2.0.2 now. :)

They use the same database table names I believe, so information from the previous MOD should port over after uninstalling it, then installing this one.


Title: Re: Add Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: GlitchPC on March 16, 2012, 06:02:20 PM
hcfwesker...

Still using and love this mod.  Feature request, though...

Would it be possible to have Admin options to select which pages the icons are actually displayed?  Like...if I don't want them to appear on the Who's Online page I'd have the ability to disable that feature of your mod.

Thanks...
Title: Re: Add Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: 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
Title: Re: Add Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: Kindred on March 22, 2012, 03:24:35 AM
http://wiki.simplemachines.org/smf/Error_in_mod_installation

Use search?
Title: Re: Add Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: Tyler Style on March 27, 2012, 03:42:41 PM
Quote from: Kindred on March 22, 2012, 03:24:35 AM
http://wiki.simplemachines.org/smf/Error_in_mod_installation

Use search?
I 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.
Title: Bug with G+ proflie link and Google Apps domains?
Post by: Tyler Style on March 27, 2012, 03:58:30 PM
I use Google Apps, which means my G+ profile has a custom domain, (eg) "[email protected]".  This seems to break the profile G+ link when viewing my SMF member profile and clicking on the G+ icon.
Title: Re: Bug with G+ proflie link and Google Apps domains?
Post by: hcfwesker on March 29, 2012, 10:25:11 AM
Quote from: Tyler Style on March 27, 2012, 03:58:30 PM
I use Google Apps, which means my G+ profile has a custom domain, (eg) "[email protected]".  This seems to break the profile G+ link when viewing my SMF member profile and clicking on the G+ icon.

Sorry.   I don't use Google Plus, or any kind of app for it.  I added the icon from other members' suggestions on how it works.  http://www.simplemachines.org/community/index.php?topic=467074.msg3264629#msg3264629
Title: Re: Add Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: hcfwesker on March 29, 2012, 10:26:06 AM
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.
Title: Re: Add Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: Kindred on March 29, 2012, 10:33:49 AM
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.
Title: Re: Add Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: Biology Forums on April 01, 2012, 07:23:19 PM
Worked like a charm on 1.x :)
Title: Re: Add Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: 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?
Title: Re: Add Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: Biology Forums on April 02, 2012, 06:42:49 PM
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.
Title: Re: Add Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: 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)
Title: Re: Add Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: Biology Forums on April 02, 2012, 10:14:12 PM
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.
Title: Re: Add Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: Biology Forums on April 02, 2012, 11:56:26 PM
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.
Title: Re: Add Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: hcfwesker on April 03, 2012, 12:41:31 AM
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';
Title: Re: Add Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: novill on May 05, 2012, 03:33:08 PM
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.';   
Title: Re: Add Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: 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?
Title: Re: Add Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: Web Help Forums 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
Title: Re: Add Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: Kindred on July 26, 2012, 10:50:08 AM
BAD idea...   if guests can see that sort of info, then you get all sorts of harvesters
Title: Re: Add Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: Web Help Forums on July 26, 2012, 08:45:08 PM
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 :)
Title: Re: Add Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: SMUchacz on August 09, 2012, 10:20:36 PM
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!
Title: Re: Add Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: TinMan on August 10, 2012, 10:12:48 AM
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.
Title: Re: Add Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: hcfwesker on August 11, 2012, 09:13:38 PM
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.

Title: Re: Add Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: hcfwesker on August 11, 2012, 09:15:44 PM
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. :)

Title: Re: Add Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: Matthew K. on August 11, 2012, 09:22:37 PM
NO WAY!?!?!? I THOUGHT YOU DIED!!! :O
Title: Re: Add Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: hcfwesker on August 11, 2012, 09:30:44 PM
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. :(
Title: Re: Add Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: Andrew Evenstar on August 19, 2012, 01:15:09 AM
I have a question. I am using 1.1.16 with the ultimate profile.

Is there anyway to have these icons show up on the users actual profile with the included information put into the users' fields? Under "Contact Information"

Has this already been addressed? I'll read through the pages but I wanted to ask first.

This mod is awesome, Thanks! I've already customized it. I removed myspace and I changed Linked In to Live Stream account.
Title: Re: Add Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: hcfwesker on August 19, 2012, 01:59:56 AM
Yes, it can be added.  Most likely just add the same edits from Profile.template.php , to where you want it to show on ultimateprofile.template.php

</tr><tr>
<td colspan="2"><hr size="1" width="100%" class="hrcolor" /></td>
</tr><tr>
<td><b>', $txt['smi_facebook_title'], ': </b></td>
<td>', !empty($context['member']['options']['facebook']) ? '<a href="http://www.facebook.com/' . $context['member']['options']['facebook'] . '" target="_blank">' . $context['member']['options']['facebook'] . '</a>'  : '', '</td>
</tr><tr>
<td><b>', $txt['smi_myspace_title'], ': </b></td>
<td>', !empty($context['member']['options']['myspace']) ? '<a href="http://www.myspace.com/' . $context['member']['options']['myspace'] . '" target="_blank">' . $context['member']['options']['myspace'] . '</a>'  : '', '</td>
</tr><tr>
<td><b>', $txt['smi_twitter_title'], ': </b></td>
<td>', !empty($context['member']['options']['twitter']) ? '<a href="http://www.twitter.com/' . $context['member']['options']['twitter'] . '" target="_blank">' . $context['member']['options']['twitter'] . '</a>'  : '', '</td>
</tr><tr>
<td><b>', $txt['smi_googleplus_title'], ': </b></td>
<td>', !empty($context['member']['options']['googleplus']) ? '<a href="https://plus.google.com/' . $context['member']['options']['googleplus'] . '" target="_blank">' . $context['member']['options']['googleplus'] . '</a>'  : '', '</td>
</tr><tr>
<td><b>', $txt['smi_linkedin_title'], ': </b></td>
<td>', !empty($context['member']['options']['linkedin']) ? '<a href="' . $context['member']['options']['linkedin'] . '" target="_blank">' . $context['member']['options']['linkedin'] . '</a>'  : '', '</td>
</tr><tr>
<td><b>', $txt['smi_youtube_title'], ': </b></td>
<td>', !empty($context['member']['options']['youtube']) ? '<a href="http://www.youtube.com/' . $context['member']['options']['youtube'] . '" target="_blank">' . $context['member']['options']['youtube'] . '</a>'  : '', '</td>
</tr><tr>
<td><b>', $txt['smi_deviantart_title'], ': </b></td>
<td>', !empty($context['member']['options']['deviantart']) ? '<a href="http://' . $context['member']['options']['deviantart'] . '.deviantart.com/" target="_blank">' . $context['member']['options']['deviantart'] . '</a>'  : '', '</td>
</tr><tr>
<td colspan="2"><hr size="1" width="100%" class="hrcolor" /></td>


I just never got around to adding UltProfile edits for SMF1, it was a request from a member that didnt use UltProfile so i didn't make it a priority at the time to add the edits for SMf1
Title: Re: Add Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: Andrew Evenstar on August 19, 2012, 05:23:36 AM
Quote from: hcfwesker on August 19, 2012, 01:59:56 AM
Yes, it can be added.  Most likely just add the same edits from Profile.template.php , to where you want it to show on ultimateprofile.template.php

</tr><tr>
<td colspan="2"><hr size="1" width="100%" class="hrcolor" /></td>
</tr><tr>
<td><b>', $txt['smi_facebook_title'], ': </b></td>
<td>', !empty($context['member']['options']['facebook']) ? '<a href="http://www.facebook.com/' . $context['member']['options']['facebook'] . '" target="_blank">' . $context['member']['options']['facebook'] . '</a>'  : '', '</td>
</tr><tr>
<td><b>', $txt['smi_myspace_title'], ': </b></td>
<td>', !empty($context['member']['options']['myspace']) ? '<a href="http://www.myspace.com/' . $context['member']['options']['myspace'] . '" target="_blank">' . $context['member']['options']['myspace'] . '</a>'  : '', '</td>
</tr><tr>
<td><b>', $txt['smi_twitter_title'], ': </b></td>
<td>', !empty($context['member']['options']['twitter']) ? '<a href="http://www.twitter.com/' . $context['member']['options']['twitter'] . '" target="_blank">' . $context['member']['options']['twitter'] . '</a>'  : '', '</td>
</tr><tr>
<td><b>', $txt['smi_googleplus_title'], ': </b></td>
<td>', !empty($context['member']['options']['googleplus']) ? '<a href="https://plus.google.com/' . $context['member']['options']['googleplus'] . '" target="_blank">' . $context['member']['options']['googleplus'] . '</a>'  : '', '</td>
</tr><tr>
<td><b>', $txt['smi_linkedin_title'], ': </b></td>
<td>', !empty($context['member']['options']['linkedin']) ? '<a href="' . $context['member']['options']['linkedin'] . '" target="_blank">' . $context['member']['options']['linkedin'] . '</a>'  : '', '</td>
</tr><tr>
<td><b>', $txt['smi_youtube_title'], ': </b></td>
<td>', !empty($context['member']['options']['youtube']) ? '<a href="http://www.youtube.com/' . $context['member']['options']['youtube'] . '" target="_blank">' . $context['member']['options']['youtube'] . '</a>'  : '', '</td>
</tr><tr>
<td><b>', $txt['smi_deviantart_title'], ': </b></td>
<td>', !empty($context['member']['options']['deviantart']) ? '<a href="http://' . $context['member']['options']['deviantart'] . '.deviantart.com/" target="_blank">' . $context['member']['options']['deviantart'] . '</a>'  : '', '</td>
</tr><tr>
<td colspan="2"><hr size="1" width="100%" class="hrcolor" /></td>


I just never got around to adding UltProfile edits for SMF1, it was a request from a member that didnt use UltProfile so i didn't make it a priority at the time to add the edits for SMf1

Thanks I was able to place the info on the ultimate profile, but the information just shows up as text, and not the icons. Is it supposed to be like that? Is it easy to change? Thanks!
Title: Re: Add Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: hcfwesker on August 20, 2012, 05:49:59 PM
Quote from: Andrew Evenstar on August 19, 2012, 05:23:36 AM

Thanks I was able to place the info on the ultimate profile, but the information just shows up as text, and not the icons. Is it supposed to be like that? Is it easy to change? Thanks!

Yes, because the code was for regular profiles that just shows text.  You can try this, but even if a member doesn't add info, it'll still show the icon.

echo '
<td><img src="' . $settings['images_url'] . '/smifacebook.png" alt="Facebook" border="0" /></a></td>
<td>', !empty($context['member']['options']['facebook']) ? '<a href="http://www.facebook.com/' . $context['member']['options']['facebook'] . '" target="_blank">' . $context['member']['options']['facebook'] . '</a>'  : '', '</td>
</tr><tr>
<td><img src="' . $settings['images_url'] . '/smimyspace.png" alt="MySpace" border="0" /></a></td>
<td>', !empty($context['member']['options']['myspace']) ? '<a href="http://www.myspace.com/' . $context['member']['options']['myspace'] . '" target="_blank">' . $context['member']['options']['myspace'] . '</a>'  : '', '</td>
</tr><tr>
<td><img src="' . $settings['images_url'] . '/smitwitter.png" alt="Twitter" border="0" /></a></td>
<td>', !empty($context['member']['options']['twitter']) ? '<a href="http://www.twitter.com/' . $context['member']['options']['twitter'] . '" target="_blank">' . $context['member']['options']['twitter'] . '</a>'  : '', '</td>
</tr><tr>
<td><img src="' . $settings['images_url'] . '/smigoogleplus.png" alt="GooglePlus" border="0" /></a></td>
<td>', !empty($context['member']['options']['googleplus']) ? '<a href="https://plus.google.com/' . $context['member']['options']['googleplus'] . '" target="_blank">' . $context['member']['options']['googleplus'] . '</a>'  : '', '</td>
</tr><tr>
<td><img src="' . $settings['images_url'] . '/smilinkedin.png" alt="LinkedIn" border="0" /></a></td>
<td>', !empty($context['member']['options']['linkedin']) ? '<a href="' . $context['member']['options']['linkedin'] . '" target="_blank">' . $context['member']['options']['linkedin'] . '</a>'  : '', '</td>
</tr><tr>
<td><img src="' . $settings['images_url'] . '/smiyoutube.png" alt="Youtube" border="0" /></a></td>
<td>', !empty($context['member']['options']['youtube']) ? '<a href="http://www.youtube.com/' . $context['member']['options']['youtube'] . '" target="_blank">' . $context['member']['options']['youtube'] . '</a>'  : '', '</td>
</tr><tr>
<td><img src="' . $settings['images_url'] . '/smideviantart.png" alt="Deviantart" border="0" /></a></td>
<td>', !empty($context['member']['options']['deviantart']) ? '<a href="http://' . $context['member']['options']['deviantart'] . '.deviantart.com/" target="_blank">' . $context['member']['options']['deviantart'] . '</a>'  : '', '</td>';
Title: Re: Add Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: Conay on August 20, 2012, 10:35:43 PM
Hi hcfwesker,
Thanks for the great mod :)

I wanted to ask if you would modify the modification (:P) to allow people to add additional fields (for social media stuff exclusively) OR if you'd be able to add Fanfiction.net/FictionPress to your list of social media sites?

Thanks.
Title: Re: Add Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: hcfwesker on August 20, 2012, 11:17:19 PM
Not really possible to add that functionality, least not my level of coding.  If i get some free time this week i may possibly add it, or make you a package with fanfiction options.
Title: Re: Add Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: Kindred on August 21, 2012, 07:26:33 AM
you know that SMF already has a customizable profile fields?   That's how we are doing the facebook and linked in options here....
Title: Re: Add Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: hcfwesker on August 21, 2012, 11:30:40 AM
Yeah, I was going to suggest that, but he/she probably wants them to line up with the icons from this Mod.  Which it is actually possible to do with one of the custom profile field selections if one knows what they're doing.
Title: Re: Add Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: Conay on August 21, 2012, 12:52:28 PM
Quote from: hcfwesker on August 21, 2012, 11:30:40 AM
Yeah, I was going to suggest that, but he/she probably wants them to line up with the icons from this Mod.  Which it is actually possible to do with one of the custom profile field selections if one knows what they're doing.

Thanks for your response. You've hit the nail on the head :) My FF.net field looks all lonely and out of place on my forum profile edit page.

Although I didn't know that was possible. I'll try having a go later.
Title: Re: Add Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: Andrew Evenstar on September 04, 2012, 12:31:34 PM
I have a question again,

I'm using SMF 1.1.16, is there a way to get these icons to display on the private message view?

Thanks!
Title: Re: Add Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: hcfwesker on September 04, 2012, 05:19:09 PM
Quote from: Andrew Evenstar on September 04, 2012, 12:31:34 PMis there a way to get these icons to display on the private message view?

Pretty sure you can make the same edits from the Display page to PersonalMessage.template.php

Code (Find) Select
// Show the profile, website, email address, and personal message buttons.

Code (Add Before) Select

  // Social Media Icons -->
echo
!empty($message['member']['options']['facebook']) ? '<a href="http://www.facebook.com/' . $message['member']['options']['facebook'] . '" target="_blank" title="'.$txt['smi_facebook_title'].'"><img border="0" src="' . $settings['images_url'] . '/smifacebook.png" alt="' . $message['member']['options']['facebook'] . '"></a> ' : '',
!empty($message['member']['options']['myspace']) ? '<a href="http://www.myspace.com/' . $message['member']['options']['myspace'] . '" target="_blank" title="'.$txt['smi_myspace_title'].'"><img border="0" src="' . $settings['images_url'] . '/smimyspace.png" alt="' . $message['member']['options']['myspace'] . '"></a> ' : '',
!empty($message['member']['options']['twitter']) ? '<a href="http://www.twitter.com/' . $message['member']['options']['twitter'] . '" target="_blank" title="'.$txt['smi_twitter_title'].'"><img border="0" src="' . $settings['images_url'] . '/smitwitter.png" alt="' . $message['member']['options']['twitter'] . '"></a> ' : '',
!empty($message['member']['options']['googleplus']) ? '<a href="https://plus.google.com/' . $message['member']['options']['googleplus'] . '" target="_blank" title="'.$txt['smi_googleplus_title'].'"><img border="0" src="' . $settings['images_url'] . '/smigoogleplus.png" alt="' . $message['member']['options']['googleplus'] . '"></a> ' : '',
!empty($message['member']['options']['linkedin']) ? '<a href="' . $message['member']['options']['linkedin'] . '" target="_blank" title="'.$txt['smi_linkedin_title'].'"><img border="0" src="' . $settings['images_url'] . '/smilinkedin.png" alt="' . $message['member']['options']['linkedin'] . '"></a> ' : '',
!empty($message['member']['options']['youtube']) ? '<a href="http://www.youtube.com/' . $message['member']['options']['youtube'] . '" target="_blank" title="'.$txt['smi_youtube_title'].'"><img border="0" src="' . $settings['images_url'] . '/smiyoutube.png" alt="' . $message['member']['options']['youtube'] . '"></a> ' : '',
!empty($message['member']['options']['deviantart']) ? '<a href="http://' . $message['member']['options']['deviantart'] . '.deviantart.com/" target="_blank" title="'.$txt['smi_deviantart_title'].'"><img border="0" src="' . $settings['images_url'] . '/smideviantart.png" alt="' . $message['member']['options']['deviantart'] . '"></a> ' : '',
!empty($message['member']['options']['myspace']) || !empty($message['member']['options']['facebook']) || !empty($message['member']['options']['twitter']) ||  !empty($message['member']['options']['googleplus']) || !empty($message['member']['options']['youtube']) || !empty($message['member']['options']['deviantart']) || !empty($message['member']['options']['linkedin']) ? '<br />' : '';
      // <-- Social Media Icons


Try and see if that works.  when I get spare time I'll try and add more options for SMF1

Title: Re: Add Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: Andrew Evenstar on September 04, 2012, 05:42:40 PM
I believe it worked, wow you are awesome and so is this mod!

I have the Social Media icons on posts, inbox messages and site profiles (using the ultimate profile)!
Title: Re: Add Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: hcfwesker on September 04, 2012, 07:23:18 PM
Thank you.  like I said I'll try and make SMF1 more indepth, like SMF2 version, its just my time is so limited, atm, but I'll have an update for it hopefully soon.
Title: Re: Add Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: hcfwesker on September 04, 2012, 09:47:11 PM
Quote from: Andrew Evenstar on September 04, 2012, 05:42:40 PMI have the Social Media icons on posts, inbox messages and site profiles (using the ultimate profile)!

Found the fix for Ultimate profiles, so if a member hasnt filled out the fields, they won't show on their profile page.

Just replace the other code I showed you, with this.

echo '
<td>', !empty($context['member']['options']['facebook']) ? '<img src="' . $settings['images_url'] . '/smifacebook.png" alt="Facebook" border="0" /></a></td>
<td><a href="http://www.facebook.com/' . $context['member']['options']['facebook'] . '" target="_blank">' . $context['member']['options']['facebook'] . '</a>'  : '', '</td>
</tr><tr>
<td>', !empty($context['member']['options']['myspace']) ? '<img src="' . $settings['images_url'] . '/smimyspace.png" alt="MySpace" border="0" /></a></td>
<td><a href="http://www.myspace.com/' . $context['member']['options']['myspace'] . '" target="_blank">' . $context['member']['options']['myspace'] . '</a>'  : '', '</td>
</tr><tr>
<td>', !empty($context['member']['options']['twitter']) ? '<img src="' . $settings['images_url'] . '/smitwitter.png" alt="Twitter" border="0" /></a></td>
<td><a href="http://www.twitter.com/' . $context['member']['options']['twitter'] . '" target="_blank">' . $context['member']['options']['twitter'] . '</a>'  : '', '</td>
</tr><tr>
<td>', !empty($context['member']['options']['googleplus']) ? '<img src="' . $settings['images_url'] . '/smigoogleplus.png" alt="GooglePlus" border="0" /></a></td>
<td><a href="https://plus.google.com/' . $context['member']['options']['googleplus'] . '" target="_blank">' . $context['member']['options']['googleplus'] . '</a>'  : '', '</td>
</tr><tr>
<td>', !empty($context['member']['options']['linkedin']) ? '<img src="' . $settings['images_url'] . '/smilinkedin.png" alt="LinkedIn" border="0" /></a></td>
<td><a href="' . $context['member']['options']['linkedin'] . '" target="_blank">' . $context['member']['options']['linkedin'] . '</a>'  : '', '</td>
</tr><tr>
<td>', !empty($context['member']['options']['youtube']) ? '<img src="' . $settings['images_url'] . '/smiyoutube.png" alt="Youtube" border="0" /></a></td>
<td><a href="http://www.youtube.com/' . $context['member']['options']['youtube'] . '" target="_blank">' . $context['member']['options']['youtube'] . '</a>'  : '', '</td>
</tr><tr>
<td>', !empty($context['member']['options']['deviantart']) ? '<img src="' . $settings['images_url'] . '/smideviantart.png" alt="Deviantart" border="0" /></a></td>
<td><a href="http://' . $context['member']['options']['deviantart'] . '.deviantart.com/" target="_blank">' . $context['member']['options']['deviantart'] . '</a>'  : '', '</td>';


I had the ', !empty($context['member']['options']['socialmediablablah']) ? '  coming after theimage, which is why the image would show whether they had one or not.

Now that it's working like it should, I can scratch that off my update to do list and get progress done a little quicker.



Title: Re: Add Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: Andrew Evenstar on September 04, 2012, 09:54:48 PM
Awesome stuff, tried it and it worked!

I think I'm going to change the myspace field to Last.fm or just program it in separately.
I already changed Linked to be Livestream instead too.
Title: Re: Add Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: hcfwesker on September 04, 2012, 10:34:06 PM
Yeah, I think MySpace died.
Title: Re: Add Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: DR1665 on September 12, 2012, 06:48:01 PM
Quote from: hcfwesker on February 26, 2012, 01:44:33 PM
You also need to copy the image, or upload them, to your custom themes images folder.
Hi there! Just installed this one, current version, and everything worked like a charm. Except I've got broken images for the icons.

Just want to make sure (as I'm fresh off a phpBB conversion and back into SMF after many years away) I don't botch this install. My community members have already been through a LOT. Trying to minimize shock.

Thanks.

EDIT: image attached.
Title: Re: Add Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: hcfwesker on September 12, 2012, 06:54:43 PM
Did you click on all other themes when installing the MOD.  Have you checked the SMF Default Curve theme to see if the icons show?
Title: Re: Add Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: DR1665 on September 13, 2012, 01:24:26 PM
Quote from: hcfwesker on September 12, 2012, 06:54:43 PM
Did you click on all other themes when installing the MOD.  Have you checked the SMF Default Curve theme to see if the icons show?
"Whenever there is any doubt, there is no doubt. That's the first thing they teach you." Clicking on "all other themes" does not sound like something I did. I recall seeing a list of zip files in a box toward the top right of the page, downloading the one with the latest version, and uploading that.

Icons work in Curve. I'm running BloQcs, though. I'll go back to package manager, remove the mod (I hope that works, SMF has come a long way since last time I used it regularly), and try being more careful about which package I select to download/install.

Thank you.
Title: Re: Add Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: hcfwesker on September 13, 2012, 01:51:57 PM
You can just simply do this.  Goto your default themes Images folder, and just copy all images that start with "smi" ... 

smifacebook.png
smimyspace.png
smitwitter.png
smiyoutube.png
smideviantart.png
smigoogleplus.png
smilinkedin.png


Just copy those over to your other Images folder in other themes ;)

Quote from: DR1665 on September 13, 2012, 01:24:26 PMI recall seeing a list of zip files in a box toward the top right of the page, downloading the one with the latest version, and uploading that.

No, the option for other themes are listed Directly below the list of files on the Install page.  Where you'll see a list of php files being modified.  then just below you'll see options to check for each other theme, which would just have the image files listed on these.  You have to check the box next to each theme name that you want it installed on.

However, if you have a theme set to be hidden from public view, then that theme won't appear as an option.

Title: Re: Add Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: DR1665 on September 13, 2012, 02:08:47 PM
Quote from: hcfwesker on September 13, 2012, 01:51:57 PM
You can just simply do this.  Goto your default themes Images folder, and just copy all images that start with "smi" ... 

smifacebook.png
smimyspace.png
smitwitter.png
smiyoutube.png
smideviantart.png
smigoogleplus.png
smilinkedin.png


Just copy those over to your other Images folder in other themes ;)

Excellent. For some reason, I did not have those images in any of the image folders for existing themes (default-curve/core/bloqcs). I simply went back to the mod page, right clicked > saved as .png files with the names you suggested, and dropped them into the images folder for the them I'm using. PROBLEM SOLVED.

THANK YOU. This is a very clean mod which I think will help our members build stronger connections away from the board, hopefully bringing more people to our community.

Cheers,
Title: Re: Add Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: Kindred on September 13, 2012, 03:30:38 PM
you didn't need to save them like that - all those images were in the mod package, too...
Title: Re: Add Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: DR1665 on September 13, 2012, 04:00:30 PM
Quote from: Kindred on September 13, 2012, 03:30:38 PM
you didn't need to save them like that - all those images were in the mod package, too...
I would expect them to be, but I downloaded the latest version of the package from the mod page, uploaded it via admin panel, and there were no such image files in any of the 'images' directories in the (3) themes present on this fresh install. No idea why that was the case, but figured I would share my findings in the hopes it helps anyone else who might encounter such a situation.
Title: Re: Add Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: Kindred on September 13, 2012, 04:03:00 PM
your images directory might not be writable...

(but when I said "in the package", I also meant that you could have unzipped the package on your PC and grabbed the files directly out of there.)
Title: Re: Add Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: DR1665 on September 13, 2012, 04:05:08 PM
Quote from: Kindred on September 13, 2012, 04:03:00 PM
your images directory might not be writable...

(but when I said "in the package", I also meant that you could have unzipped the package on your PC and grabbed the files directly out of there.)
You are wise in the ways of the SMFs, mate. I had not thought of this. #facepalm

And you are absolutely correct about where the images were. Lessons learned.

PS: Kudos on the lightning quick response. It's a newbie's dream! ;)
Title: Re: Add Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: Apllicmz on October 15, 2012, 02:47:38 PM
Nice work
When Update donf forget portuguese files

<file name="$languagedir/Modifications.portuguese_pt-utf8.php" error="skip">
        <operation>
            <search position="after"><![CDATA[?>]]></search>
            <add><![CDATA[$txt['smi_facebook_title'] = 'Facebook';
$txt['smi_facebook_desc'] = 'Introduza seu nome de utilizador do Facebook.';       
$txt['smi_myspace_title'] = 'MySpace';
$txt['smi_myspace_desc'] = 'Introduza seu nome de utilizador MySpace.';
$txt['smi_twitter_title'] = 'Twitter';
$txt['smi_twitter_desc'] = 'Introduza seu nome de utilizador Twitter.';
$txt['smi_youtube_title'] = 'Youtube';
$txt['smi_youtube_desc'] = 'Introduzaseu nome de utilizador do Youtube.';
$txt['smi_deviantart_title'] = 'DeviantArt';
$txt['smi_deviantart_desc'] = 'Introduza seu nome de utilizador DeviantArt.';
$txt['smi_googleplus_title'] = 'Google+';
$txt['smi_googleplus_desc'] = 'Introduza o seu ID de utilizador Google +.';
$txt['smi_buddies_title'] = 'Redes Sociais';
]]></add>
        </operation>
   </file>


[code]<file name="$languagedir/Modifications.portuguese_pt.php" error="skip">
        <operation>
            <search position="after"><![CDATA[?>]]></search>
            <add><![CDATA[$txt['smi_facebook_title'] = 'Facebook';
$txt['smi_facebook_desc'] = 'Introduza seu nome de utilizador do Facebook.';       
$txt['smi_myspace_title'] = 'MySpace';
$txt['smi_myspace_desc'] = 'Introduza seu nome de utilizador MySpace.';
$txt['smi_twitter_title'] = 'Twitter';
$txt['smi_twitter_desc'] = 'Introduza seu nome de utilizador Twitter.';
$txt['smi_youtube_title'] = 'Youtube';
$txt['smi_youtube_desc'] = 'Introduzaseu nome de utilizador do Youtube.';
$txt['smi_deviantart_title'] = 'DeviantArt';
$txt['smi_deviantart_desc'] = 'Introduza seu nome de utilizador DeviantArt.';
$txt['smi_googleplus_title'] = 'Google+';
$txt['smi_googleplus_desc'] = 'Introduza o seu ID de utilizador Google +.';
$txt['smi_buddies_title'] = 'Redes Sociais';
]]></add>
        </operation>
   </file>
Title: Re: Add Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: monkeyofstick on October 19, 2012, 02:23:52 PM
Hey,looks great!!
Any way we could get a pinterst added to it?
It has become the hottest bookmark.
Title: Re: Add Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: hcfwesker on October 19, 2012, 06:20:10 PM
Quote from: monkeyofstick on October 19, 2012, 02:23:52 PM
Hey,looks great!!
Any way we could get a pinterst added to it?
It has become the hottest bookmark.

I'm honestly wanting to rod of myspace from the MOD, or just leave it as an option that no one probably uses.  But there is room for others to be added, some requests i just didn't feel warranted an addition.   I'm not in the "know" of most social sites, so with pinterests, or any other requests anyone wants to suggest, just provide me of an example link of what someone's profile url is on a suggested site. :)

look something like this?  http://pinterest.com/hcfwesker/  ?

Title: Re: Add Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: Kindred on October 19, 2012, 07:38:38 PM
yes...
http://pinterest.com/kindred999/
Title: Re: Add Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: monkeyofstick on October 20, 2012, 01:09:53 PM
lol,
There are still a few myspace fans,but not nearly what it use to be 5 years ago.
Title: Re: Add Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: hcfwesker on October 20, 2012, 04:00:30 PM
Quote from: Joomlamz on October 15, 2012, 02:47:38 PM
Nice work
When Update donf forget portuguese files

wow Thanx!  You did all the work for me.  just copy and paste from what you supplied :)
Title: Re: Add Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: hcfwesker on October 21, 2012, 05:32:33 PM
I've got all the coding done.  But my gfx designer hasn't been around for a few days.  Anyone want to help with cleaning the attached image up, making the background transparent?  Or provide one of your own that may look better?

Edit.

I got it.
Title: Re: Add Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: hcfwesker on October 21, 2012, 07:47:55 PM
v1.0.7 Released! 7396

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi45.tinypic.com%2F10r1gro.jpg&hash=9725d9e1ebb14150728ddaf131ee7c0cd93cbda0) Pinterest Integrated
SMF 1.1.xx added Personal Message & Ultimate Profile Compatibility.
Added language support for:  portuguese

SMF2 users, To upgrade from v1.0.6 simply upload the v1.0.7 Package and install, then delete v1.0.6 after successful upgrade
Title: Re: Add Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: geek_andy on October 22, 2012, 05:53:48 AM
Not sure why there are 2 v1.0.7's on the mod download page but upgrade went fine, great mod! ;)
Title: Re: Add Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: hcfwesker on October 22, 2012, 06:13:03 AM
Thanx for the notice.  MOD Edit page froze while loading and i may have hit the 'Save' button a couple times to try and speed it up.  Glad to hear the upgrade went fine for you.  I'm sure some with several MODs installed may run into some errors most likely in Load.php.
Title: Re: Add Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: clericvash on October 23, 2012, 06:38:49 AM
I cannot get this mod to install:
      Execute Modification   ./Themes/core/PersonalMessage.template.php   Test failed
   1.   Add Before   ./Themes/core/PersonalMessage.template.php   Test failed
Title: Re: Add Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: Kindred on October 23, 2012, 07:08:28 AM
wow....   people really don't bother to even try to search, do they?
This question is answered (several times) in nearly every mod thread... and in the online manual
http://wiki.simplemachines.org/smf/Error_in_mod_installation
Title: Re: Add Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: clericvash on October 23, 2012, 07:22:03 AM
Not the politest support staff now are we...anyway thanks for the answer.
Title: Re: Add Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: DeroZ on October 25, 2012, 03:49:05 PM
i'm noob =/

how change language?
Title: Re: Add Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: Kindred on October 25, 2012, 04:00:50 PM
http://wiki.simplemachines.org/smf/Languages
Title: Re: Add Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: hcfwesker on October 25, 2012, 04:33:19 PM
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>';
Title: Re: Add Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: Realinfo on October 25, 2012, 09:45:14 PM
Duplicate column name 'myspace'
File: /home/realinfo/public_html/Packages/temp/2.x/install.php


2.0.2 default theme
Title: Re: Add Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: hcfwesker on October 26, 2012, 02:48:36 AM
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.

Title: Re: Add Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: Realinfo on October 26, 2012, 08:34:28 AM
thanks............. Given pack is attachment working ok............... But  1.0.7 make me get that error
Title: Re: Add Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: LisaE on November 03, 2012, 09:19:06 AM
Hello,

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

Thank you.

Lisa
Title: Re: Add Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: Kindred on November 03, 2012, 11:05:28 AM
use the package manager
Title: Re: Add Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: Hristo on November 25, 2012, 10:11:13 PM
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}".
Title: Re: Add Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: Kindred on November 25, 2012, 10:16:46 PM
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
Title: Re: Add Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: Hristo on November 26, 2012, 12:22:36 AM
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.
Title: Re: Add Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: J_WHISPERZ on November 26, 2012, 03:12:18 PM
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?
Title: Re: Add Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: Kindred on November 26, 2012, 03:14:11 PM
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.
Title: Re: Add Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: J_WHISPERZ on November 26, 2012, 03:18:17 PM
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?
Title: Re: Add Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: Kindred on November 26, 2012, 03:32:54 PM
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.
Title: Re: Add Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: J_WHISPERZ on November 26, 2012, 03:37:25 PM
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.
Title: Re: Add Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: winsoft on November 27, 2012, 05:38:50 AM
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.
Title: Re: Add Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: hcfwesker on November 27, 2012, 05:46:23 AM
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.
Title: Re: Add Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: the gimp on December 06, 2012, 06:54:58 PM
were having issues on the redirect we keep getting page not found with facebook, we dont seem to have issues with anything else
Title: Re: Add Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: 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.
Title: Re: Add Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: Bob Perry of Web Presence Consulting on December 23, 2012, 04:11:48 PM
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...
Title: Re: Add Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: hcfwesker on December 23, 2012, 09:03:59 PM
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.

Title: Re: Add Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: Bob Perry of Web Presence Consulting on December 25, 2012, 06:39:40 AM
Quote from: hcfwesker on December 23, 2012, 09:03:59 PM
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.



hmm, let me tweak the guest permissions a bit so you can see it... the tweak/customizing I did is from a module i found that prevents members from posting links in their signature setting, its here on SMF somewhere if i'm not mistaken
Title: Re: Add Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: hcfwesker on December 26, 2012, 01:40:47 AM
The MOD is fixed so guests can't view SM profile options at all.  Just attach both Load.php and Profile-Modify.php, both from Sources folder.
Title: Re: Add Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: hcfwesker on December 26, 2012, 01:52:32 AM
Just registered my own account, and the problem is not with this MOD, it's the signature link one you added.  It seems to be affecting added profile fields that require a link as well.  When I put any random link in my linkedIn field, I get this

https://rjventure.com/*Link%20Removed*

which comes from the custom code of removing links in signatures.  Something else added somewhere is also causing your url to be added at the front.  Attach those files and I'll try and take a look

Sidenote:   I'm a few miles south of ya in Huntsville, lol
Title: Re: Add Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: FragaCampos on January 29, 2013, 09:40:39 PM
Hi there.

I would like to know if it's possible to add the active profiles (those we choose in admin panel) to a column in the members list, like the profiles of official SMF do and how to remove the icons from the Who's online list.

Thanks for this wonderful mod, hcfwesker.
Title: Re: Add Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: hcfwesker on January 30, 2013, 02:11:45 AM
Quote from: FragaCampos on January 29, 2013, 09:40:39 PMI would like to know if it's possible to add the active profiles (those we choose in admin panel) to a column in the members list, like the profiles of official SMF do

You know what, I actually never tested those with fields filled out, when selecting which icons to deactivate in the admin panel.  Just noticed it removes them from the profile modify page for members, but if they filled it out already then it still shows.  I'll have to look into that.  Let me look into that and fix them first.

I never added to the memberlist because it could get cluttered up, but I'll probably just supply you with the custom edit, but make it like the display on Edit Buddies page list where they're all in one box.

Quote from: FragaCampos on January 29, 2013, 09:40:39 PMand how to remove the icons from the Who's online list.

Themes/default/Who.template.php

Find & REMOVE
', $member['facebook']['link'], ' ', $member['myspace']['link'], ' ', $member['twitter']['link'], ' ', $member['googleplus']['link'], ' ', $member['linkedin']['link'], ' ', $member['youtube']['link'], ' ', $member['deviantart']['link'], ' ', $member['pinterest']['link'], '

Title: Re: Add Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: FragaCampos on January 30, 2013, 09:58:37 AM
I don't believe it will be cluttered if we can select them in the admin panel, and because it's surely rare to have them all activated. I deactivated all that come with SMF and there's lot of space. :)

Many thanks for your help.
Title: Re: Add Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: hcfwesker on January 30, 2013, 02:14:10 PM
Quote from: FragaCampos on January 30, 2013, 09:58:37 AM
I don't believe it will be cluttered if we can select them in the admin panel, and because it's surely rare to have them all activated. I deactivated all that come with SMF and there's lot of space. :)

But others may want to add this edit as well.  This is what I'm referring to.

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi49.tinypic.com%2F5cf40n.jpg&hash=b93d44bf4a859006c1684c690a839c3e28a49cdd)

Now imagine | FaceBook | MySpace | Twitter | YouTube | LinkedIn | DeviantArt | Pinterest |   all being added as header blocks with a small icon logo under each block.  It just wouldn't look right.  ( i know you can deactivate some but it still looks clunky. )

Which is why i think the following would look much better in the mList.

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi46.tinypic.com%2Fmrsgb6.jpg&hash=f328339612443b123bb8df2b3aaa6dda81fcc79e)

Just 1 header block with all them in there. 


I don't mind though, I'll supply the edits for the way you prefer, I suppose.

Title: Re: Add Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: Matthew K. on January 30, 2013, 03:59:44 PM
Very nice look, hcf.
Title: Re: Add Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: hcfwesker on January 30, 2013, 07:35:13 PM
v1.0.8 Released! 9563

! Fixed bug where Icons not activated were displaying on Display & Who Online pages.
Added language support for:  turkish

SMF2 users, To upgrade from v1.0.7 simply upload the v1.0.8 Package and install, then delete v1.0.7 after successful upgrade
Title: Re: Add Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: hcfwesker on January 30, 2013, 07:50:46 PM
Quote from: FragaCampos on January 30, 2013, 09:58:37 AM
I don't believe it will be cluttered if we can select them in the admin panel, and because it's surely rare to have them all activated. I deactivated all that come with SMF and there's lot of space. :)

MemberList edits ( for the way you requested so each icon has it's own header) ...

Sources/Memberlist.php

Code (Find) Select
'msn' => array(
'label' => $txt['msn'],
'width' => '30'
),


Code (Add AFTER) Select
'facebook' => array(
'label' => $txt['smi_facebook_title'],
'width' => '70',
),
'myspace' => array(
'label' => $txt['smi_myspace_title'],
'width' => '70',
),
'twitter' => array(
'label' => $txt['smi_twitter_title'],
'width' => '70',
),
'youtube' => array(
'label' => $txt['smi_youtube_title'],
'width' => '70',
),
'deviantart' => array(
'label' => $txt['smi_deviantart_title'],
'width' => '70',
),
'googleplus' => array(
'label' => $txt['smi_googleplus_title'],
'width' => '70'
),
'linkedin' => array(
'label' => $txt['smi_linkedin_title'],
'width' => '70'
),
'pinterest' => array(
'label' => $txt['smi_pinterest_title'],
'width' => '70'
),


default/Memberlist.template.php

// MSN?
if (!isset($context['disabled_fields']['msn']))
echo '
<td class="windowbg2">', $member['msn']['link'], '</td>';


Code (Add After) Select

if (!isset($context['disabled_fields']['facebook']))
echo '
<td class="windowbg2">', $member['facebook']['link'], '</td>';

if (!isset($context['disabled_fields']['myspace']))
echo '
<td class="windowbg2">', $member['myspace']['link'], '</td>';

if (!isset($context['disabled_fields']['twitter']))
echo '
<td class="windowbg2">', $member['twitter']['link'], '</td>';

if (!isset($context['disabled_fields']['youtube']))
echo '
<td class="windowbg2">', $member['youtube']['link'], '</td>';

if (!isset($context['disabled_fields']['deviantart']))
echo '
<td class="windowbg2">', $member['deviantart']['link'], '</td>';

if (!isset($context['disabled_fields']['googleplus']))
echo '
<td class="windowbg2">', $member['googleplus']['link'], '</td>';

if (!isset($context['disabled_fields']['linkedin']))
echo '
<td class="windowbg2">', $member['linkedin']['link'], '</td>';

if (!isset($context['disabled_fields']['pinterest']))
echo '
<td class="windowbg2">', $member['pinterest']['link'], '</td>';
Title: Re: Add Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: FragaCampos on January 30, 2013, 11:41:28 PM
It worked great.
I believe this is better, because we can order the list in descending or ascending order in those columns.

Thank you once more, hcfwesker. It is always nice to see people like you who keep SMF alive.
Title: Re: Add Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: vbgamer45 on January 31, 2013, 10:56:46 PM
Great modification! hcfwesker has really helped on my sites.
Title: Re: Add Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: hcfwesker on January 31, 2013, 11:30:03 PM
Quote from: FragaCampos on January 30, 2013, 11:41:28 PM
It worked great.
I believe this is better, because we can order the list in descending or ascending order in those columns.

Thank you once more, hcfwesker. It is always nice to see people like you who keep SMF alive.

No problem, bud.  Just didn't want to make it a mandatory edit in the MOD until I work on adding options to select where to deactivate them to display for certain pages, I know members have been asking for that so gonna try and get a little more ambitious on the next update.

Quote from: vbgamer45 on January 31, 2013, 10:56:46 PM
Great modification! hcfwesker has really helped on my sites.

I really appreciate that, bro!  :)
Title: Re: Add Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: Bob Perry of Web Presence Consulting on January 31, 2013, 11:45:53 PM
Quote from: vbgamer45 on January 31, 2013, 10:56:46 PM
Great modification! hcfwesker has really helped on my sites.

Agreed, great mod... I'll be updating versions after I finish this post... I've done my own customizing to the memberlist displaying all icons including SMF's and yall are right, it will get to be a mess if you try to give them column headings, however in my version you won't be able to sort the list Ascending or Descending for the mod icons, but in my case I'm not bothered by that and have just come up a great idea for the Statistics page and will be spending the rest of the night getting that squared away... I'm going to add a table to the other custom hacks I've got in the stats page showing the site's most popular social icons amongst the members, this mod's plus SMF's...

Also, I've got a mod on my site that allows for "validating" links for various Profile fields, I'm going to start testing hacks to include some of or maybe all of the social icons because I notice it will allow bogus links to be inserted in some of them, and I've been experiencing a rash of russian spammer wannabes attempting to post their stupid crap in those fields even though guests on my system can not view links anyway, sigh
Title: Re: Add Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: hcfwesker on February 01, 2013, 12:40:06 AM
Unfortunately the trickiest one is the LinkedIn, because there's no standard URL for all profiles, they have different links depending on what your profile is there.  So just had to make that one with the ability to add an entire length of the URL.  I never use it, keep it deactivated on my site.  Were you able to look into the issue with your signature link issue and LinkedIn?

I'm actually working on a MAJOR update for this mod ( gonna take several days with my limited free time), I don't even want to say what it is just yet cause I just begun and want to make sure it's actually going to work before I get people's hopes up lol :D
Title: Re: Add Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: Bob Perry of Web Presence Consulting on February 01, 2013, 01:51:29 AM
Quote from: hcfwesker on February 01, 2013, 12:40:06 AM
Unfortunately the trickiest one is the LinkedIn, because there's no standard URL for all profiles, they have different links depending on what your profile is there.  So just had to make that one with the ability to add an entire length of the URL.  I never use it, keep it deactivated on my site.  Were you able to look into the issue with your signature link issue and LinkedIn?

I'm actually working on a MAJOR update for this mod ( gonna take several days with my limited free time), I don't even want to say what it is just yet cause I just begun and want to make sure it's actually going to work before I get people's hopes up lol :D

Your right, LinkedIn is the trickiest one and unfortunately the most popular among the spammer wannabes, I could use some help in debugging the hack I have for "somewhat" validating that puppy, the signature link mod allows me to remove all links posted to it but I have a subtle bug in the logic somewhere that screws up when the field is written back to the database (updated), it tags my own site url onto the begiining of the resulting field, thus if clicked results in a 404 error which is very SEO un-friendly... the validation will end when the member reaches a predetermined number of successful posts giving the admin or staff ample time to stress to successful posters that you will not tolerate bogus links being posted in those fields by ANYONE... and you know what baffles me more than actually having to resort to such stringent security for preventing folks from ruining themselves? It's the logic behind whatever reasoning goes through these characters' minds when they're attempting this stupid act, they obviously do not realize that they will attract a hell of a lot more attention to their website by actually using the social media icons in the manner they were designed to be used, and then use whatever "sharing" functions almost all sites have available these days...
Title: Re: Add Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: hcfwesker on February 01, 2013, 03:08:14 AM
Quote from: bperry921 on February 01, 2013, 01:51:29 AMYour right, LinkedIn is the trickiest one and unfortunately the most popular among the spammer wannabes, I could use some help in debugging the hack I have for "somewhat" validating that puppy

Give me a few days, like I said got quiet an addition Im adding along with more options and stuff,  along with one that might resolve the issue you're having. 
Title: Re: Add Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: Bob Perry of Web Presence Consulting on February 01, 2013, 03:23:27 AM
Quote from: hcfwesker on February 01, 2013, 03:08:14 AM
Quote from: bperry921 on February 01, 2013, 01:51:29 AMYour right, LinkedIn is the trickiest one and unfortunately the most popular among the spammer wannabes, I could use some help in debugging the hack I have for "somewhat" validating that puppy

Give me a few days, like I said got quiet an addition Im adding along with more options and stuff,  along with one that might resolve the issue you're having. 

I'm all for waiting a few days, no big rush by any means, I got a small hack that I'm working for another mod too, I pull all nighters to 48 hr sessions myself at times too, isn't it great ;)

I'd be more than anxious to beta test for you any time you have something new coming out, I have no qualms about installing betas  on a live production system if I trust the author, I like your style...

Which reminds me, would you have time in the near future to co-author a new game module with me?
Title: Re: Add Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: Arantor on February 01, 2013, 09:25:05 AM
Yeah, I've had trouble with LinkedIn as well, I don't even have a problem writing a decent regex for validation, but I can't find information on the various kinds of URLs that there can be.
Title: Re: Add Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: Bob Perry of Web Presence Consulting on February 02, 2013, 02:48:34 PM
Quote from: Arantor on February 01, 2013, 09:25:05 AM
Yeah, I've had trouble with LinkedIn as well, I don't even have a problem writing a decent regex for validation, but I can't find information on the various kinds of URLs that there can be.

Yea this other module for preventing signature links does a fair job of covering the most common methods/types of URLs used on typical SMF sites, but I'm sure there could be others...
Title: Re: Add Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: hcfwesker on February 03, 2013, 09:35:03 PM
Well, I could have it where the http://www.linkedin.com/ pre-link is auto installed, but it's up to members to add what comes after that.  then I can shorten the amount of characters allowed to stop links from being added.

Ex. http://www.linkedin.com/pub/ankkita-jain/13/311/a94  , that member would have to add  pub/ankkita-jain/13/311/a94  to the field box.  There's so many sub directories in LinkedIn I can't add them all lol.  Reason I made it so the entire link had to be added, since I thought this would make it more confusing for forum members for adding their LI profile links.
Title: Re: Add Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: Bob Perry of Web Presence Consulting on February 03, 2013, 09:44:50 PM
Quote from: hcfwesker on February 03, 2013, 09:35:03 PM
Well, I could have it where the http://www.linkedin.com/ pre-link is auto installed, but it's up to members to add what comes after that.  then I can shorten the amount of characters allowed to stop links from being added.

Ex. http://www.linkedin.com/pub/ankkita-jain/13/311/a94  , that member would have to add  pub/ankkita-jain/13/311/a94  to the field box.  There's so many sub directories in LinkedIn I can't add them all lol.  Reason I made it so the entire link had to be added, since I thought this would make it more confusing for forum members for adding their LI profile links.

I'm thinking a better way would be to parse the users entered link, checking that the "http://www.linkedin.com" is correctly matched to a static copy of that phrase of text...
Title: Re: Add Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: hcfwesker on February 03, 2013, 09:47:48 PM
Something like this?

'gamer_psn' => array(
'type' => 'text',
'label' => $txt['gamer_psn'],
'subtext' => $txt['your_gamer_psn'],
'size' => 16,
'input_attr' => array('maxlength="20"'),
'permission' => 'profile_extra',
'input_validate' => create_function('&$value', '
$value = preg_replace(\'/[^a-zA-Z0-9-_]+/\', \'\', $value);
return true;
'),
),


'input_validate' => create_function('&$value', '
$value = preg_replace(\'/[^a-zA-Z0-9-_]+/\', \'\', $value);
return true;


Not sure how to add that link so it validates.

Title: Re: Add Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: Arantor on February 03, 2013, 09:51:11 PM
Regular expressions are your friend.

As an off-hand... (and thus untested)
if (preg_match('~^https?://(www\.)?linkedin\.com/pub/[^/]+/?~i', $value))
// do something magical because it looks legit


(somewhere inside input_validate)
Title: Re: Add Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: MarkS on February 04, 2013, 06:10:00 PM
hi i cant find this Admin Settings (optional)* Admin > Configuration > Profile Fields i want to un tick some of then i only want fb and twitter sorry i can not find it
Title: Re: Add Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: vbgamer45 on February 04, 2013, 06:32:03 PM
Quote from: MarkS on February 04, 2013, 06:10:00 PM
hi i cant find this Admin Settings (optional)* Admin > Configuration > Profile Fields i want to un tick some of then i only want fb and twitter sorry i can not find it
If SMF 2.0 first enable them under Admin -> Core Features -> Advanced Profile Fields

There is then a setting under Features and Options -> Profile Fields
Title: Re: Add Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: MarkS on February 04, 2013, 06:45:59 PM
i new it would be easy just knowing what ive not done thanks
Title: Re: Add Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: hcfwesker on February 04, 2013, 07:18:29 PM
Sorry about that, I always activate Profile Fields, so didn't realize that wouldn't show if those setting wasn't activated first.  but the update I'm preparing will fix this issue. 

Thanx for the assistance, vbgamer45 :)
Title: Re: Add Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: demlak on February 11, 2013, 05:26:04 AM
Translation German informal:
Quote<file name="$languagedir/Modifications.german_informal.php">
      <operation>
         <search position="after"><![CDATA[?>]]></search>
            <add><![CDATA[$txt['smi_buddies_title'] = 'Soziale Netzwerke';
$txt['smi_facebook_title'] = 'Facebook';
$txt['smi_facebook_desc'] = 'Dein Facebook Benutzername.';
$txt['smi_myspace_title'] = 'MySpace';
$txt['smi_myspace_desc'] = 'Dein MySpace Benutzername.';
$txt['smi_twitter_title'] = 'Twitter';
$txt['smi_twitter_desc'] = 'Dein Twitter Benutzername.';
$txt['smi_youtube_title'] = 'Youtube';
$txt['smi_youtube_desc'] = 'Dein Youtube Benutzername.';
$txt['smi_deviantart_title'] = 'DeviantArt';
$txt['smi_deviantart_desc'] = 'Dein DeviantArt Benutzername.';
$txt['smi_pinterest_title'] = 'Pinterest';
$txt['smi_pinterest_desc'] = 'Dein Pinterest Benutzername.';
$txt['smi_googleplus_title'] = 'Google+';
$txt['smi_googleplus_desc'] = 'Deine Google+ BenutzerID.';
$txt['smi_linkedin_title'] = 'LinkedIn';
$txt['smi_linkedin_desc'] = 'Dein LinkedIn Profillink.';

]]></add>
        </operation>
   </file>
Title: Re: Add Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: pastorvictor on February 11, 2013, 10:25:07 PM
This is a great mod!

I just have one issue: for some reason the only field that shows in Spanish is the "MSN" field....everything else is in English. My board's designed for a Spanish-speaking audience, so it's important to me that everything gets translated. Can I fix this manually or what would you suggest?

I'm attaching a screen shot in case it helps.
Title: Re: Add Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: hcfwesker on February 11, 2013, 11:07:05 PM


languages/Modifications.spanish.php

Check that file and see if these got added. Plus if you wanna be extra sure, replace the ones in Modifications.english.php for the ones below as well.

$txt['smi_facebook_title'] = 'Facebook';
$txt['smi_facebook_desc'] = 'Su Usuario en Facebook.';         
$txt['smi_myspace_title'] = 'MySpace';
$txt['smi_myspace_desc'] = 'Su Usuario en MySpace.';
$txt['smi_twitter_title'] = 'Twitter';
$txt['smi_twitter_desc'] = 'Su Usuario en Twitter.';
$txt['smi_youtube_title'] = 'Youtube';
$txt['smi_youtube_desc'] = 'Su Usuario en YouTube.';
$txt['smi_deviantart_title'] = 'DeviantArt';
$txt['smi_deviantart_desc'] = 'Su Usuario en DevianArt.';
$txt['smi_pinterest_title'] = 'Pinterest';
$txt['smi_pinterest_desc'] = 'Su Usuario en Pinterest.';
$txt['smi_googleplus_title'] = 'Google+';
$txt['smi_googleplus_desc'] = 'Su Numero de ID en Google+.';
$txt['smi_buddies_title'] = 'Redes Sociales';
Title: Re: Add Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: pastorvictor on February 12, 2013, 06:50:36 PM
Thank you very much, hcfwesker! I guess none of the above got added to the Spanish file, so I just replaced the English file and now everything's in Spanish. Again, great mod!
Title: Re: Add Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: FragaCampos on February 16, 2013, 01:07:33 PM
Hi again,hcfwesker. .
I discovered today that these (http://www.simplemachines.org/community/index.php?topic=467074.msg3480443#msg3480443) tips you gave me have a small problem.

When I try to order the columns in memberslist, I get the following error:
The database value you're trying to insert does not exist: sort

Also, my error logs have these errors when I try to sort any of the columns from this mod:
The database value you're trying to insert does not exist: sort
Function: MLAll


And it does the 8: Undefined index for every social media, like "8: Undefined index: facebook"

Any chance to get this corrected?
Thanks.
Title: Re: Add Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: hcfwesker on February 16, 2013, 03:24:50 PM
Quote from: FragaCampos on February 16, 2013, 01:07:33 PMWhen I try to order the columns in memberslist, I get the following error:
The database value you're trying to insert does not exist: sort

I just gave codes to display them, didn't honestly think someone would goto the MemberList to organize members by their social media. Normally people would just get it from their post or profile lol.  But try this.

Sources/Memberlist.php

Find
'msn' => array(
'down' => 'LENGTH(mem.msn) > 0 ASC, IFNULL(mem.msn, 1=1) DESC, mem.msn DESC',
'up' => 'LENGTH(mem.msn) > 0 DESC, IFNULL(mem.msn, 1=1) ASC, mem.msn ASC'
),


Just copy that code set and paste directly under it, and replace 'msn' with 'facebook' , etc.  Do this for each social media icon you allow to be displayed. these are the exact phrase for each you'll replace 'msn' with for each set you add:  'facebook', 'myspace', 'twitter', 'googleplus', 'linkedin', 'youtube', 'deviantart', 'pinterest'

Ex.
'facebook' => array(
'down' => 'LENGTH(mem.facebook) > 0 ASC, IFNULL(mem.facebook, 1=1) DESC, mem.facebook DESC',
'up' => 'LENGTH(mem.facebook) > 0 DESC, IFNULL(mem.facebook, 1=1) ASC, mem.facebook ASC'
),


The Find
if (in_array('messenger', $_POST['fields']) && (!$user_info['is_guest'] || empty($modSettings['guest_hideContacts'])))
$fields += array(3 => 'msn', 'aim', 'icq', 'yim');


Replace with
if (in_array('messenger', $_POST['fields']) && (!$user_info['is_guest'] || empty($modSettings['guest_hideContacts'])))
$fields += array(3 => 'msn', 'aim', 'icq', 'yim', 'facebook', 'myspace', 'twitter', 'googleplus', 'linkedin', 'youtube', 'deviantart', 'pinterest');




Haven't tested this, but seems to follow the same edits I did this for for Google+ and Skype in my other MOD, so should basically be the same.

Title: Re: Add Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: FragaCampos on February 17, 2013, 01:43:05 PM
Perfect, as always. ;)

Thank you!
Title: Re: Add Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: hcfwesker on February 19, 2013, 01:56:41 AM
Quote from: Conay on August 21, 2012, 12:52:28 PMThanks for your response. You've hit the nail on the head :) My FF.net field looks all lonely and out of place on my forum profile edit page.

Although I didn't know that was possible. I'll try having a go later.

Just curious, were you able to get this to work?  I'm working on an option for admins to create their own social media add-ons to the MOD, which will display along side the default icons.  Right now I'm just running into issues with the custom social icons interferring with the custom profiles when both are displaying.

But for the time being I do have a work around if you wanted to get your fanfiction icon with the others.  Just not sure if you're still around, or if you got it to work yourself.
Title: Re: Add Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: Bob Perry of Web Presence Consulting on February 19, 2013, 06:03:13 AM
Quote from: hcfwesker on February 19, 2013, 01:56:41 AM
Quote from: Conay on August 21, 2012, 12:52:28 PMThanks for your response. You've hit the nail on the head :) My FF.net field looks all lonely and out of place on my forum profile edit page.

Although I didn't know that was possible. I'll try having a go later.

Just curious, were you able to get this to work?  I'm working on an option for admins to create their own social media add-ons to the MOD, which will display along side the default icons.  Right now I'm just running into issues with the custom social icons interferring with the custom profiles when both are displaying.

But for the time being I do have a work around if you wanted to get your fanfiction icon with the others.  Just not sure if you're still around, or if you got it to work yourself.

Dude, not sure about that guy's customizing, but I just completed a bullet proof hack to the Stats page that I mentioned to you previously, come take a peek you may be impressed, man I got a schooling on how to manipulate arrays in PHP but then again, I've always been easily confused by them even back in my hey-days of IBM business system programming in the Cobol & RPG languages... thought I was never going to get it functioning properly, stand by for other hacks to that page relating to other mods as well... can ya dig it?
Title: Re: Add Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: Arantor on February 19, 2013, 08:00:16 AM
Putting aside the fact that the forums page links to action=sts not action=stats and there's this randomly in the stats template:

//
// WPC Custom Hack begin... (the last "bullet proof" edit completed & posted on (Sun 02/17/2013), stand by for new additions to follow as my free time permits)
//


this is interesting.

I'm curious, what was the query used? I know it's the stats page but I'm still curious as to the query in case there's a faster way of doing it. (Unlikely, though)
Title: Re: Add Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: Bob Perry of Web Presence Consulting on February 20, 2013, 01:21:07 PM
Quote from: Arantor on February 19, 2013, 08:00:16 AM
Putting aside the fact that the forums page links to action=sts not action=stats and there's this randomly in the stats template:

//
// WPC Custom Hack begin... (the last "bullet proof" edit completed & posted on (Sun 02/17/2013), stand by for new additions to follow as my free time permits)
//


this is interesting.

I'm curious, what was the query used? I know it's the stats page but I'm still curious as to the query in case there's a faster way of doing it. (Unlikely, though)

OH man, thanks for pointing out that action=sts thing, I musta missed it when I was redoing what I had messed up a while back, I had switched over to using https:// in my primary site address and that was interfering with being able to navigate to my ISP provided statistical page which was located in a subdirectory of my root named /stats, so I was playing with the links and soon discovered that although kinda cool, caused too many problems with navigating to various parts of the system and changed the primary url back to http:// and I missed changing that link back...

Yea a youngster like you may be able to show me a more elegant or streamlined way to do it my SQL skills are rusty...


// Popular Social Icons - female

$icon_result1 = $smcFunc['db_query']('', '
SELECT gender, icq, aim, yim, msn, facebook, myspace, twitter, youtube, deviantart, googleplus, linkedin, pinterest
FROM {db_prefix}members
WHERE id_group >= {int:activity} && gender = 2',
array(
'activity' => 0,
)
);
$context['top_icons_female'] = array();

while ($row_members = $smcFunc['db_fetch_assoc']($icon_result1))
{
$total_members_f = $total_members_f + 1;
$possible_hits_f = $possible_hits_f + 12;

$context['top_icons_female'][] = array(
'icq_hits_f' => $row_members['icq'],
'aim_hits_f' => $row_members['aim'],
'yim_hits_f' => $row_members['yim'],
'msn_hits_f' => $row_members['msn'],
'facebook_hits_f' => $row_members['facebook'],
'myspace_hits_f' => $row_members['myspace'],
'twitter_hits_f' => $row_members['twitter'],
'youtube_hits_f' => $row_members['youtube'],
'deviantart_hits_f' => $row_members['deviantart'],
'googleplus_hits_f' => $row_members['googleplus'],
'linkedin_hits_f' => $row_members['linkedin'],
'pinterest_hits_f' => $row_members['pinterest'],
);

if (!empty($row_members['icq']))
{
$total_hits_f = $total_hits_f + 1;
$icq_hits1 = $icq_hits1 + 1;
}
else
{
}

if (!empty($row_members['aim']))
{
$total_hits_f = $total_hits_f + 1;
$aim_hits1 = $aim_hits1 + 1;
}
else
{
}
etc., etc.


Yea I actually put that WPC blurb in there by mistake at first, but decided to leave it there and expanded on it later, actually nothing related to coding these days is bullet proof as far as I know, that's why I put it in quotes because its a relative slang term...
Title: Re: Add Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: Arantor on February 20, 2013, 02:55:13 PM
QuoteYea a youngster like you

I'm 30 this year.

Here's how I'd do it. First up, smf_members has no indexes on any of those fields, not even gender. The only field it has an index on is id_group, but you're checking it is >= 0 - but it's an unsigned field, so it can't ever be anything else.

So, anyway. Going through to filter on gender means it still has to evaluate every row (something it would do even if there were an index due to the low selectivity of that index; it can only have 3 values, 0, 1 or 2 and no index is going to be that useful on it)

So what we might as well do is have a single query that is comparable to either of two queries, and post-process it in PHP.

I haven't tested this, but here's what I'd do.

$context['top_icons_female'] = $context['top_icons_male'] = array(
'icq' => 0,
'aim' => 0,
'yim' => 0,
'msn' => 0,
'facebook' => 0,
'myspace' => 0,
'twitter' => 0,
'youtube' => 0,
'deviantart' => 0,
'googleplsus' => 0,
'linkedin' => 0,
'pinterest' => 0,
);
$context['total_hits_female'] = $context['total_hits_male'] = 0;

$request = $smcFunc['db_query']('', '
SELECT gender, icq, aim, yim, msn, facebook, myspace, twitter, youtube, deviantart, googleplsus, linkedin, pinterest
FROM {db_prefix}members
WHERE gender > {int:no_gender}',
array(
'no_gender' => 0,
)
);

while ($row = $smcFunc['db_fetch_assoc']($request))
{
$gender = $row['gender'] == 1 ? 'male' : 'female';
unset ($row['gender']);
foreach ($row as $column => $value)
if (!empty($value))
{
$context['total_hits_' . $gender]++;
$context['top_icons_' . $gender][$column]++;
}
}
$smcFunc['db_free_result']($request);


The first part sets up default counts for each of the column types. The second gets everything, excluding all non-gender cases. If you want that, that's achievable but we'll deal with that separately.

Then we just get each row. We process the gender column, converting it from a number to the gender by name (1 = male, 2 = female) so we can refer to the right $context variables easily.

Then we dump that column and just step through all the rest of the columns, if they're empty() they contain nothing, otherwise we pick the right column of the right gender count and add one.

We don't need to actually store that data or anything, we just need to keep score of what ones we have, and if we have one, add one to the total hits as well as the per-field hits.

So, we have $context['total_hits_female'] and $context['total_hits_male'] for the total number of field values stored for male/female, and $context['top_icons_male']['icq'], $context['top_icons_male']['aim'] etc for the actual values.

I'm not sure where this 'possible' value is coming from for possible hits, though.
Title: Re: Add Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: Kindred on February 20, 2013, 04:11:21 PM
fodun a minor bug when tied in with the Ultimate profile mod...

the UP mod adds a function template_buddies() with this line
      foreach ($context['member']['buddies_data'] as $buddy_id => $data) {

This mod then adds the buddy social media stuff a little bit into the function.
HOWEVER, this mod calls them
            <td align="center">', $buddy['facebook']['link'], ' ', $buddy['myspace']['link'], ' ', $buddy['twitter']['link'], ' ', $buddy['googleplus']['link'], ' ', $buddy['linkedin']['link'], ' ', $buddy['youtube']['link'], ' ', $buddy['deviantart']['link'], ' ', $buddy['pinterest']['link'], '</td>



see the problem? The foreach is loading the buddy info into a variable array called $buddy_id, but this mod is calling for a variable array called $buddy

easy fix...   eithe rupdate buddy_id to read buddy or vice versa
Title: Re: Add Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: Bob Perry of Web Presence Consulting on February 20, 2013, 07:19:21 PM
Quote from: Arantor on February 20, 2013, 02:55:13 PM
QuoteYea a youngster like you

I'm 30 this year.

Some of these other module authors are much younger than you, but I have two sons that are older than them and only a couple years younger than you (chuckle)

Thanks for posting that code, it's going to help me immensely to streamline my own structure of manipulating those damn arrays, man I thought I'd never get it working without getting a new php coding reference book, my copy is for PHP 4... do you do freelance work? I have a project.
Title: Re: Add Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: Arantor on February 20, 2013, 07:22:29 PM
I do do freelance work but 1) only if SMF is not involved and 2) I'm pretty backed up at the moment :(

There is a vast amount to pick up on in PHP 5 if you really want to get into it - while the core language remains much the same, the rewritten OOP model plus all the other improvements mean it really is worth investing in the time to understand what you can do and how the language will help you. :)

(Mind you, remember that PHP 5 itself is now something like 8 years old, even PHP 5.3 is not the current release branch any more)
Title: Re: Add Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: Bob Perry of Web Presence Consulting on February 20, 2013, 07:34:49 PM
Quote from: Arantor on February 20, 2013, 07:22:29 PM
I do do freelance work but 1) only if SMF is not involved and 2) I'm pretty backed up at the moment :(

There is a vast amount to pick up on in PHP 5 if you really want to get into it - while the core language remains much the same, the rewritten OOP model plus all the other improvements mean it really is worth investing in the time to understand what you can do and how the language will help you. :)

(Mind you, remember that PHP 5 itself is now something like 8 years old, even PHP 5.3 is not the current release branch any more)

Dern shame, can you refer me to anyone who may have time for a new project that might be quite lucrative?
Title: Re: Add Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: hcfwesker on February 21, 2013, 07:43:58 PM
Quote from: Kindred on February 20, 2013, 04:11:21 PMsee the problem? The foreach is loading the buddy info into a variable array called $buddy_id, but this mod is calling for a variable array called $buddy

easy fix...   eithe rupdate buddy_id to read buddy or vice versa

Thanx alot for the find.  I've honestly just wanted to do away with the icons on the buddies list page, since they really seem useless there.  Plus the add-on Im working on for members to add and create their own, it'll get messy with overcrowding plus calling the array of the created icons there. 
Title: Re: Add Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: Bob Perry of Web Presence Consulting on February 21, 2013, 08:08:40 PM
Quote from: hcfwesker on February 21, 2013, 07:43:58 PM
Plus the add-on Im working on...   

How's the update coming? Have you taken a peek at my stats page lately? Only a couple more minor tweaks left to do on your section of it before I call it finished.
Title: Re: Add Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: ummizu on February 23, 2013, 04:05:00 PM
I run a craft forum. How easy would it be to change some of the profiles I don't need, like LinkedIn, to ones I want like Etsy and Ravelry?
Title: Re: Add Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: Kindred on February 23, 2013, 04:32:43 PM
that would involve changing the code in several places, including text, names and regex design of the urls
Title: Re: Add Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: hcfwesker on February 24, 2013, 05:05:55 PM
Quote from: ummizu on February 23, 2013, 04:05:00 PM
I run a craft forum. How easy would it be to change some of the profiles I don't need, like LinkedIn, to ones I want like Etsy and Ravelry?

You can try, if you know what you're doing.  Though sometime in the next couple of weeks I'll have it where you can create your own icons to go along side the social media ones.

If you wanna take a stab at it.  And, actually, LinkedIn is the only one that is the easiest to do, since it asks for the entire URL, and not just the username.  So, in the case, all you would have to do is ::

languages/Modifications.english.php

Reword LinkedIn to the site you want to use, for the title and description

$txt['smi_linkedin_title'] = 'LinkedIn';
$txt['smi_linkedin_desc'] = 'Copy & Paste your LinkedIn profile link.';

then goto your theme's images folder, and overwrite the smilinkedin.png image to the image you want to use, and make sure it keeps the same image name.


Quote from: bperry921 on February 21, 2013, 08:08:40 PMHow's the update coming? Have you taken a peek at my stats page lately? Only a couple more minor tweaks left to do on your section of it before I call it finished.

I just did, and that's pretty slick!
Title: Re: Add Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: ummizu on February 24, 2013, 05:19:58 PM
Quote from: hcfwesker on February 24, 2013, 05:05:55 PM
Quote from: ummizu on February 23, 2013, 04:05:00 PM
I run a craft forum. How easy would it be to change some of the profiles I don't need, like LinkedIn, to ones I want like Etsy and Ravelry?

You can try, if you know what you're doing.  Though sometime in the next couple of weeks I'll have it where you can create your own icons to go along side the social media ones.

If you wanna take a stab at it.  And, actually, LinkedIn is the only one that is the easiest to do, since it asks for the entire URL, and not just the username.  So, in the case, all you would have to do is ::

languages/Modifications.english.php

Reword LinkedIn to the site you want to use, for the title and description

$txt['smi_linkedin_title'] = 'LinkedIn';
$txt['smi_linkedin_desc'] = 'Copy & Paste your LinkedIn profile link.';

then goto your theme's images folder, and overwrite the smilinkedin.png image to the image you want to use, and make sure it keeps the same image name.



I actually figured it out, removing myspace and deviant art and replaced them with the sites I wanted. I used the sites' favicons as the profile image. Took me a while to get it right, but I'm very happy now.
Great mod, thanks!
Title: Re: Add Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: ummizu on February 25, 2013, 02:24:49 PM
How can I get the buttons to show if someone is browsing as a guest?
Title: Re: Add Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: Kindred on February 25, 2013, 02:31:44 PM
You really don't want to do that?

You would not want to expose all of your users' information to spambots and site scrapers!
Title: Re: Add Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: Mick. on March 03, 2013, 04:10:07 PM
Awesome mod. Just started using it.  :P
Title: Re: Add Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: lurkalot on March 04, 2013, 12:36:51 PM
Quote from: Mick. on March 03, 2013, 04:10:07 PM
Awesome mod. Just started using it.  :P

I agree.  I'm using it on both my sites atm.  Would be even better if it would let you add a couple of custom media sites, as an option.

I'd like to be able to add, reverbnation and soundcloud to the list, it would be great addition for music sites / forums.

Example: http://www.reverbnation.com/ukblackwolf And Example: http://soundcloud.com/euphymis

Any chance for the next release please.  ;)
Title: Re: Add Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: Arantor on March 04, 2013, 12:52:26 PM
Or, of course, you could just use the built in facility for custom profile fields instead of clogging up the members table...
Title: Re: Add Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: lurkalot on March 04, 2013, 01:56:40 PM
Quote from: Arantor on March 04, 2013, 12:52:26 PM
Or, of course, you could just use the built in facility for custom profile fields instead of clogging up the members table...

I could, but don't you have to be employed by NASA to use it?  ;D I did try using it once.  That's why I like this mod. 8)   
Title: Re: Add Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: Arantor on March 04, 2013, 02:08:01 PM
There was even a tutorial around here somewhere for it. (It's only the crazy folk like Sinan, Nathaniel and me who modified it to be more awesome in our own little ways)

OK, you can't reorder them, you don't get them on the member list and you don't get them premade out of the box. But the first and second are fixable with mods, the third just requires a little effort.
Title: Re: Add Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: ApplianceJunk on March 20, 2013, 12:21:01 PM
Quote from: ummizu on February 25, 2013, 02:24:49 PM
How can I get the buttons to show if someone is browsing as a guest?

Quote from: Kindred on February 25, 2013, 02:31:44 PM
You really don't want to do that?

You would not want to expose all of your users' information to spambots and site scrapers!

I was just looking for how to do this myself after seeing how the facebook and twitter member icons show up for guest on SMF.
Why does SMF allow it if it's something you really don't want to do?
Title: Re: Add Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: Kindred on March 20, 2013, 12:48:57 PM
because, the way SM.org(this site) does these, there is no permission to restrict them from showing to guests....

it is a bad practice and exposes your user's details to spammers and other collection routines.
Title: Re: Add Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: ApplianceJunk on March 20, 2013, 12:54:55 PM
Ok, I understand that SMF has no permission to restrict them, but don't understand why if it's such a bad practice.

I do agree with you though and was looking to do it just so my social media profile icons would be shown to guest.

Instead I have placed our social icons in a couple other places in our index.template.php so our guest could view them.

Thanks,
Title: Re: Add Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: 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.
Title: Re: Add Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: NekoJonez on April 09, 2013, 05:01:17 AM
I don't get this working when I have a Gamers ID mod installed.
Title: Re: Add Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: hcfwesker on April 09, 2013, 07:47:39 AM
Quote from: JonezJeA on April 09, 2013, 05:01:17 AM
I don't get this working when I have a Gamers ID mod installed.

If files fail on the installation of the MOD then you're going to have to manually edit those files
Title: Re: Add Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: hcfwesker on April 18, 2013, 02:48:44 PM
Just to update:  I'm just about prepared to release the update to this MOD that will allow users to add Custom social media icons alongside the default ones.  It's been a very long and grueling process, to say the least.  Here's some sample pics of what will be added and how this will work.

NOTE:  I'm using a GameSpot profile as an example of a custom created social media icon.

The Modification will add a couple of new options to the Custom Profile Fields admin menu. (must be activated for this to work)

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi45.tinypic.com%2F2rpzayh.jpg&hash=9f547a9c3bd2481658e6b5f48bec2c9afa33f6ad)

1.  A 4th selection for custom fields to be shown with Social Media icons.
2. A separate set of 'enclosed' instructions for custom Social Media Icons.
3. For this to be compatible with Ultimate Profile's icons, an image needs to be added. (otherwise the text wouldn't show as a link)
4. Supply the image name, after saving your image will be added here, as confirmation & previewing.

I've also rearranged how profile modify options are displayed for default Social Media Icons, placing them at the bottom to align with other custom profile fields option.  I just can't get rid of that horizontal line in between.

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi48.tinypic.com%2Fj0l4sl.jpg&hash=53b451770142c662ef9da5da604e6b7167c61b9f)

This works even better along with the Order Custom Profile Fields (http://custom.simplemachines.org/mods/index.php?mod=1328) MOD, allowing you to arrange all Custom Profile Fields to display in the order you choose, naturally placing all your custom Social Media profiles at the top.

I'm removing displaying Social Media on the Who's Online page, and Buddies page ... after a few attempts I just didn't want to get too wrapped up in them and maybe will add them back at a later date.  Personally I feel they don't serve that great deal of purpose since most times members will see these directly from the profile or post profile of the member.

I'm working on an Upgrade file (which is what's currently holding me back), with so many code changes I'm just not sure if it's going to be worth the trouble.

Also to note, profile fields you have created previously, that you want added along the social Media default icons, can be done so just by modifying the field just a bit to meet the requirements for this custom option. (adding an image; a little rewrite for the enclosed portion, and selecting the option to display with SM Icons)

Attached below are a few sample pics just to show how the custom made icons (GameSpot) align with the default icons.




Title: Re: Add Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: hcfwesker on April 18, 2013, 06:34:46 PM
v1.1.0 Released!

Added admin settings to add their own Custom Social Media icons to display with default icons (See above post!)
Removed Display from Buddies & Who's Online page


Sorry, there is no upgrade package available!  I honestly tried but there were too many edits to make a clean jump from 1.0.8 to 1.1.0; that when uninstalling after the upgraded package, would fail on many installs.  I tried, and I at least got it this far with Upgrade packages lol.

Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: TheListener on April 18, 2013, 06:40:49 PM
Is there a lot of difference between the new or just what you mentioned?

Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: hcfwesker on April 18, 2013, 06:44:34 PM
Pretty much a complete rewrite for Adding custom ones, which each spot the defaults were added previously, another code had to be added to display the option 4 Custom Fields setting added in as well.  But if you don't want to create and add your own to be displayed along side with the default ones, then no need to upgrade.

This was mainly for members requesting so many new ones to be added, this takes all that pressure off me :D
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: TheListener on April 18, 2013, 06:45:57 PM
Quote from: hcfwesker on April 18, 2013, 06:44:34 PM

This was mainly for members requesting so many new ones to be added, this takes all that pressure off me :D

Some people would probably request every single one there is.

:D
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: hcfwesker on April 18, 2013, 06:49:25 PM
No doubt, lol, I'm expecting it.  I get many request in PMs too. 

Now, I'm more than happy to explain how to do any custom ones ( like how to make the proper URL + {INPUT} in settings depending on sites they want to add ) that they need, but the coding aspect of it all has been dealt with, at least. 
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: TheListener on April 18, 2013, 06:50:33 PM
Quote from: hcfwesker on April 18, 2013, 06:49:25 PM
No doubt, lol, I'm expecting it.  I get many request in PMs too. 

Now, I'm more than happy to explain how to do any custom ones ( like how to make the proper URL + {INPUT} in settings ) they need, but the coding aspect of it all has been dealt with, at least. 

Wanna borrow a certain part of my sig?  ;D
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: FragaCampos on April 22, 2013, 04:18:26 PM
Great job, hcfwesker!

Thanks a lot for your constant efforts on this must have mod.
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: hcfwesker on April 26, 2013, 12:01:25 AM
Thanx, FragaCampos!  :)  I tested and tested for errors under just about any condition so just let me know how it's working for ya :)
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: PatternInChaos on April 27, 2013, 01:08:15 PM
Hi! First, thanks for all the work you put into this. =)

I have a problem, maybe you can help, I tried to add a custom field (basically facebook but with a note that it will only be visible to registeres users). When I added it with the shown settings I get a weird output on posts, the profile page looks fine:

Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: hcfwesker on April 27, 2013, 04:03:02 PM
I don't have that going on for me on my test site, but i'll look into it, can you attach your Display.template.php file for me

Just to note ... NONE of the social Media icons will show for guests by default.

Also, you can goto languages/Modifications.english.php, and reword the default text for members when they fill out each field for the default icons.

$txt['smi_facebook_desc'] = 'Input your Facebook username.';

From what I can tell just by a glance, Custom Icons are meant to display WITH at least 1 of the default Social Media Icons. which I see you only have your custom FB one showing. (otherwise a different Profile Field display option would do what you want.)  That 4th option was meant for custom ones to display along with at least 1 of the defaults.  Activate 1 of the defaults and see if it still gives you the same problem  (EDIT::  Just tested, and thats what's causing the problem.  I'll see if I have a work around, but as mentioned this addition to the MOD was intended for a specific purpose.)

Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: hcfwesker on April 27, 2013, 04:21:35 PM
This will fix the issue whether you chose to display a custom by ityself or with default SM icons.

Display.template.php

Find
// Any custom fields with Social Media?
if (!empty($message['member']['custom_fields']))
{
$shown = false;
foreach ($message['member']['custom_fields'] as $custom)
{
if ($custom['placement'] != 3 || empty($custom['value']))
continue;
if (empty($shown))
{
$shown = true;
}
echo '
<li><a href="', $custom['value'], '" title="', $custom['title'], ' - ', $custom['value'], '" /><img src="', $settings['images_url'], '/', $custom['customsmiicon'], '" /></a></li>';
}
if ($shown)
echo '
</ul>
</li>';
}


Remove this from the above portion (towards bottom)
</ul>

And, since Personal Message uses the same coding from display template, if you plan to do this you may want to make the same change in PersonalMessage.template.php as well.  Unless you've checked there and it was normal.
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: NekoJonez on April 29, 2013, 09:32:59 AM
Two questions.

1) Is it possible that in the feature, the icons will also be displayed in the topics? Nvm, fixed this because I had another mod installed that edited a file and so this mod wasn't able to edit the file.

2) How can I add another network like eg Tumblr? -> Did that myself.
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: nax on April 29, 2013, 10:33:01 AM
I am thinking this mod would be a good addition to my site but it fails on the PersonalMessage.template.php See attachment. Is the best way to get around this to install the mod then try to manually edit the PersonalMessage.template.php with what I can see in the parsed code for this .php file ?
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: Kindred on April 29, 2013, 11:56:11 AM
why doesn't anyone ever read the faq/wiki?

http://wiki.simplemachines.org/smf/Error_in_mod_installation
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: Arantor on April 29, 2013, 11:58:53 AM
Because that takes more effort than starting a new topic and feeling entitled to an answer.
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: hcfwesker on April 29, 2013, 01:34:12 PM
Thanx for the help, fellas.  always appreciated :)

Quote from: nax on April 29, 2013, 10:33:01 AMIs the best way to get around this to install the mod then try to manually edit the PersonalMessage.template.php with what I can see in the parsed code for this .php file ?

yes, you can make the edit either before or after you install the mod.

Quote from: JonezJeA on April 29, 2013, 09:32:59 AMHow can I add another network like eg Tumblr? -> Did that myself.

you mean you already figured it out or need help adding Tumblr?

Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: nax on May 01, 2013, 06:50:28 AM
Thank you for your civilised answer hcfwesker

@ Arantor and Kindred - to answer your criticisms; a -we are not all as experienced as you with this software, b- the mod page itself directs users to this thread if there are problems or questions and C - it's hard to know with a mod if the issue is generic or specific to that Mod - I will however look for the wiki you mention.
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: Arantor on May 01, 2013, 06:58:11 AM
Quotewe are not all as experienced as you with this software

And? Surely you try looking around for an answer before posting?

Quotethe mod page itself directs users to this thread if there are problems or questions

True enough, but the first point still stands.

QuoteI will however look for the wiki you mention.

Look up at the top of the page for where it says Online Manual.
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: NekoJonez on May 01, 2013, 07:08:54 AM
Quote from: JonezJeA on April 29, 2013, 09:32:59 AMHow can I add another network like eg Tumblr? -> Did that myself.

you mean you already figured it out or need help adding Tumblr?
[/quote]

Yup
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: Arantor on May 01, 2013, 07:12:19 AM
Wait, how does that make sense? "Did you figure it out or do you need help?" "Yes." So, which is it?
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: hcfwesker on May 01, 2013, 09:54:03 AM
seriously lol.  Using complete sentences makes our life easier ...  "yes I figured it out" OR "yes I need help adding it".   Im just as confused from when we first started this merry go round  :D
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: NekoJonez on May 02, 2013, 06:22:45 AM
Oh my lords, yeah sorry. That was truly a derp of mine.

I meant that I already fixed it myself. >.<

A suggestion would be to add Instagram & Tumblr in the next version.
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: Retro Lad on May 02, 2013, 12:44:10 PM
I have just installed this mod. It does not seem to be displaying my social media links in my Ultimate Profile for some reason. What am I missing? (Sorry, noob here, creating my first forum, loL)
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: Kindred on May 02, 2013, 12:50:46 PM
did you have ultimate profiles installed first? Did you confirm the UP files got changed by this one?
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: Retro Lad on May 02, 2013, 12:57:22 PM
Quote from: Kindred on May 02, 2013, 12:50:46 PM
did you have ultimate profiles installed first? Did you confirm the UP files got changed by this one?

No. I installed Add Social Icons first. I'll uninstall both and reinstall. That did it. Thank you!
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: hcfwesker on May 03, 2013, 12:24:37 PM
Quote from: JonezJeA on May 02, 2013, 06:22:45 AMA suggestion would be to add Instagram & Tumblr in the next version.

the was the whole idea of adding the 'create your own" option to the MOD.  Instead of me adding 50 social sites, members can add the ones they prefer to go along with the default ones added.

Quote from: Retro Lad on May 02, 2013, 12:57:22 PMNo. I installed Add Social Icons first. I'll uninstall both and reinstall. That did it. Thank you!

Good to know.  For future reference, if you install a MOD that's compatible with another but  don't have the compatible MOD installed first; most cases you can just goto the MOd's parser page and manually add the edits to the file for that MOD.  In this case the edits for UltimateProfile.template.php from the SMI MOD would have been all you needed to add.

Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: NekoJonez on May 04, 2013, 09:17:07 AM
Quote from: hcfwesker on May 03, 2013, 12:24:37 PM
Quote from: JonezJeA on May 02, 2013, 06:22:45 AMA suggestion would be to add Instagram & Tumblr in the next version.

the was the whole idea of adding the 'create your own" option to the MOD.  Instead of me adding 50 social sites, members can add the ones they prefer to go along with the default ones added.


Okay, now you may call me a true derp.




Okay, I added a button myself in the code and made one myself with the option.

But both don't display in the "Who's Online". Is this a bug with the mod?
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: hcfwesker on May 04, 2013, 06:54:49 PM
Quote from: JonezJeA on May 04, 2013, 09:17:07 AMOkay, I added a button myself in the code and made one myself with the option.

But both don't display in the "Who's Online". Is this a bug with the mod?

Quote from: hcfwesker on April 18, 2013, 06:34:46 PM
v1.1.0 Released!

Added admin settings to add their own Custom Social Media icons to display with default icons (See above post!)
Removed Display from Buddies & Who's Online page

Maybe one day I'll re-add them.  but after adding only 3 for testing, they over stretched the Who's Online part where those are displayed.

Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: NekoJonez on May 06, 2013, 10:12:17 AM
Strange, Facebook & others still show at my forum in the Who's Online.
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: hcfwesker on May 06, 2013, 11:00:13 AM
Then you're not using version 1.1.0 of the MOD, or you didn't uninstall the previous version, correctly.
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: NekoJonez on May 07, 2013, 09:56:18 AM
I'm using 1.1.0
Oh well, I don't plan to uninstall it atm.

But it's a minor thingy.
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: hcfwesker on May 07, 2013, 04:02:36 PM
Quote from: JonezJeA on May 07, 2013, 09:56:18 AMOh well, I don't plan to uninstall it atm.

what?  you HAVE to uninstall the previous version before installing the latest update.  Otherwise you're going to get errors or duplicate coding.  Your choice.
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: NekoJonez on May 09, 2013, 08:16:48 AM
I did, and then installed 1.1.0.

But I coded in a Tumblr button myself without knowing you were able to add it via the mod itself.

Edit: I did the debugging myself. 1.0.8 left over a tiny bit of code I manually removed.
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: wayoutwest on May 11, 2013, 02:20:26 PM
edit - nevermind, my mistake
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: hcfwesker on May 11, 2013, 03:34:15 PM
Quote from: wayoutwest on May 11, 2013, 02:20:26 PMSMF v2.0.4
Add Social Media Icons To Profiles v1.0.8

Creating custom SM icons only works for v1.1.0, which the error can't be coming from the MOD if you don't have v1.1.0 installed, and trying to create a "Custom Profile Field"
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: wayoutwest on May 11, 2013, 08:11:05 PM
Quote from: hcfwesker on May 11, 2013, 03:34:15 PM
Quote from: wayoutwest on May 11, 2013, 02:20:26 PMSMF v2.0.4
Add Social Media Icons To Profiles v1.0.8

Creating custom SM icons only works for v1.1.0, which the error can't be coming from the MOD if you don't have v1.1.0 installed, and trying to create a "Custom Profile Field"
sorry, my mistake. Was confusing the built in custom fields thing with yours, since I never noticed there were built in ones in 2.0 and one of the very first things I did after switching to 2.0 was to install your mod :)
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: hcfwesker on May 11, 2013, 09:28:13 PM
Quote from: wayoutwest on May 11, 2013, 08:11:05 PMsorry, my mistake. Was confusing the built in custom fields thing with yours, since I never noticed there were built in ones in 2.0 and one of the very first things I did after switching to 2.0 was to install your mod :)

No problem, it's all good. But, yeah, as you can see from this link (the additions to v1.1.0) was just adding a few extra options to the already installed default Custom Profile Fields feature.  Wish I could help on your current issue though, I'm sure someone will know in SMF2 support board.  Good Luck.
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: wayoutwest on May 12, 2013, 10:16:19 AM
Quote from: hcfwesker on May 11, 2013, 09:28:13 PM
Quote from: wayoutwest on May 11, 2013, 08:11:05 PMsorry, my mistake. Was confusing the built in custom fields thing with yours, since I never noticed there were built in ones in 2.0 and one of the very first things I did after switching to 2.0 was to install your mod :)

No problem, it's all good. But, yeah, as you can see from this link (the additions to v1.1.0) was just adding a few extra options to the already installed default Custom Profile Fields feature.  Wish I could help on your current issue though, I'm sure someone will know in SMF2 support board.  Good Luck.
Thanks. I found the answer http://www.simplemachines.org/community/index.php?topic=477397  The samples of filters shown in help use " as deliminators on the regex, which is bad form, imho, because quotes, when used to show what to enter into a field, are normally meant to be discarded.  And, if you do try using them it doesn't save the regex expression.  Fix is to use another character for deliminators in the regex, such as #. 
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: CheeseHead05 on May 16, 2013, 12:45:24 AM
Hello,

I am new to SMF and I am learning as I go..

I recently installed a custom theme using colorizeit and as soon as I installed it on my forum, my social media icons went from displaying their logos in the post to just saying the names of the network. Can anyone help me out?

Thanks in advance.
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: TheListener on May 16, 2013, 12:49:18 AM
Quote from: CheeseHead05 on May 16, 2013, 12:45:24 AM
Hello,

I am new to SMF and I am learning as I go..

I recently installed a custom theme using colorizeit and as soon as I installed it on my forum, my social media icons went from displaying their logos in the post to just saying the names of the network. Can anyone help me out?

Thanks in advance.

Do you have a link to the theme?

The images may nee to move placed into your themes images folder.
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: Kindred on May 16, 2013, 07:24:53 AM
Fossil has it exactly right....

if you install themes after you already have mods installed, then you need to go back and make usre any changes made by the mod are manually added to the new theme - this includes images added to the images directories.
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: CheeseHead05 on May 16, 2013, 10:18:11 AM
Old fossil and Kindred,

So, just go into my default theme, and copy and past over into my new theme, right?
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: CheeseHead05 on May 16, 2013, 10:35:09 AM
And also, how do u link the social networks to their respective member pages?  I linked my Facebook thru my forum and when I clicked the icon, it took me to the home page where you would normally log in.
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: hcfwesker on May 16, 2013, 10:33:01 PM
Thanx agaoin for the help, guys.  always appreciated :)

Quote from: CheeseHead05 on May 16, 2013, 10:18:11 AM
So, just go into my default theme, and copy and past over into my new theme, right?

Yes, or you could unzip the MOd you downloaded to your PC, and just upload the images from there to your custom theme's images folder

Quote from: CheeseHead05 on May 16, 2013, 10:35:09 AM
And also, how do u link the social networks to their respective member pages?  I linked my Facebook thru my forum and when I clicked the icon, it took me to the home page where you would normally log in.

Just add your Facebook username, not your entire FB profile link.

Ex. https://www.facebook.com/username  <--- just add your username  that would appear where the bold is
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: CheeseHead05 on May 16, 2013, 11:22:03 PM
To Old Fossil, Kindred, and hcfwesker,

I figured out both of my questions and solved the problems, I do applaud you guys for the much needed help, u 3 are great! Thanks again!!  8)
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: TheListener on May 16, 2013, 11:23:59 PM
Quote from: CheeseHead05 on May 16, 2013, 11:22:03 PM
To Old Fossil, Kindred, and hcfwesker,

I figured out both of my questions and solved the problems, I do applaud you guys for the much needed help, u 3 are great! Thanks again!!  8)

Thanks Cheesy  :)

/me looks for the crackers.
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: CheeseHead05 on May 16, 2013, 11:31:07 PM
lol @ Cheesy, no problem! Look out for more questions from me sir!
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: TheListener on May 16, 2013, 11:33:48 PM
Quote from: CheeseHead05 on May 16, 2013, 11:31:07 PM
lol @ Cheesy, no problem! Look out for more questions from me sir!

I'm no sir at my age.

:D
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: CheeseHead05 on May 17, 2013, 12:43:32 AM
Im only going by your pic and username..lol
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: TheListener on May 17, 2013, 12:45:27 AM
Quote from: CheeseHead05 on May 17, 2013, 12:43:32 AM
Im only going by your pic and username..lol

From my profile  :P

QuotePersonal Text:
    Fussy Old Sod
Gender:
    Male
Age:
    40
Location:
    England
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: OzzyMozzy on May 19, 2013, 03:09:30 AM
G'day,

I have installed this mod and made the necessary edits to the CORE theme etc, It seems to be working fine except one thing...

When i go into the ADMIN panel and click on anything under CONFIGURATION i get this coming up (see attached image) How do i fix this?
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: Kindred on May 19, 2013, 08:59:15 AM
because whatever edits were made to your language file were done poorly.

you added actual code on the line after the tapatalk comment instead of starting a newline
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: hcfwesker on May 19, 2013, 03:06:27 PM
Like Kindred said, you added the code in languages/Help.english.php wrong.

// TapaTalk ends

^^ press enter after that so the help text for SMI mod starts on it's own fresh line.
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: OzzyMozzy on May 19, 2013, 05:21:54 PM
Sorry should explained a little better, this issue came up after i did the install, so without my mods to it.... The mods i did were just the ones in the Display template and Private message template

Where do i find this languages/help.english.php file?
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: Kindred on May 19, 2013, 05:34:08 PM
themes/default/languages
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: OzzyMozzy on May 19, 2013, 05:43:45 PM
Quote from: OzzyMozzy on May 19, 2013, 05:21:54 PM
Sorry should explained a little better, this issue came up after i did the install, so without my mods to it.... The mods i did were just the ones in the Display template and Private message template

Where do i find this languages/help.english.php file?

Found that file but im at work now and cant do anything with it for now.
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: OzzyMozzy on May 20, 2013, 01:57:23 AM
Quote from: hcfwesker on May 19, 2013, 03:06:27 PM
Like Kindred said, you added the code in languages/Help.english.php wrong.

// TapaTalk ends

^^ press enter after that so the help text for SMI mod starts on it's own fresh line.

That fixed it, thank you very much for that
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: TheListener on May 25, 2013, 06:52:39 PM
Have decided to upgrade to the newer version.

Have added flickr to the list and also Instagram.

Including Instagram means my forum is one mod less than before.

:)
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: TheListener on May 28, 2013, 11:49:12 PM
Tested the mod and found a possible error using the Ultimate Profile.

When the fields are empty the links are still shown.

Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: hcfwesker on May 29, 2013, 09:38:39 AM
There should be no text there, just an image when the field is used by the member; or blank when not being used.

Are you sure you're using the 4th option " Show with Social Media Icons" on the create a custom profile page?  Because these should appear above the email, just below the default SMI icons.

Check the image here, http://www.simplemachines.org/community/index.php?topic=467074.msg3528592#msg3528592  the #1 orange star
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: TheListener on May 29, 2013, 10:23:40 PM
That error has now been obliterated.

I still get this one though when editing the profile.

L
http://www.xxxxxxxxxx/index.php?action=profile;area=forumprofile;updated
2: implode() [<a href='function.implode'>function.implode</a>]: Invalid arguments passed
Apply Filter: Only show the errors from this file
File: /home/xxxx/public_html/Sources/Profile-Modify.php
Line: 906


// Any input attributes?
==>906:
$cur_field['input_attr'] = !empty($cur_field['input_attr']) ? implode(',', $cur_field['input_attr']) : '';
907:
}
908:
909:
// Was there an error with this field on posting?
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: hcfwesker on May 29, 2013, 11:18:26 PM
Nonne of those lines were modified from this MOD.  It'd probably be easiest if you post a screencap of your custom field edit page (and what you're adding as your username for this added field), so I can see how you handled all the fields.  Are you adding any "Input Mask" restrictions when creating a field?
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: TheListener on May 29, 2013, 11:37:28 PM
Hope this is what ya after.

Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: hcfwesker on May 29, 2013, 11:53:37 PM
Yeah, looks good.  I'm at a lost, cause I can't duplicate the error you're getting.  The custom part of this MOD doesn't add edits to Profile-Modify.php, just the default smi icons.

Check Profile.php ; and see if this phrase got added at least 2 times there.  customsmiicon
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: CheeseHead05 on June 03, 2013, 09:59:04 AM

When creating custom profile fields, what does it mean by this when you click Social Media Icons (Do NOT Skip!):

Encloses the user input within the URL profile link. This will allow you to add more Social Media Icons and allow them to align with the default icons, etc.
Example: Facebook: (find the profile path)
http://facebook.com/johndoe (sample profile URL)
http://facebook.com/{INPUT} (this will be used as the setting)

Use the following variable:

    {INPUT} - The input specified by the user. This will insert the username in the Social Media profile URL supplied by the member when they modify this option.

Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: hcfwesker on June 03, 2013, 06:05:49 PM
self explantory once you try it once.  i can explain it better for you to understand the first time if you reply with what site youre trying to add. 
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: CheeseHead05 on June 04, 2013, 10:13:48 AM
Quote from: hcfwesker on June 03, 2013, 06:05:49 PM
self explantory once you try it once.  i can explain it better for you to understand the first time if you reply with what site youre trying to add. 


I wish to add Flickr, Tumblr, and Instagram..
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: hcfwesker on June 04, 2013, 05:47:04 PM
when i get home Ill reply and explain all 3 for you.  once you see it done this way you'll realize how simple it was :)
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: hcfwesker on June 04, 2013, 07:35:17 PM
Quote from: CheeseHead05 on June 04, 2013, 10:13:48 AMI wish to add Flickr, Tumblr, and Instagram..

Found a random profile on Flickr ...  http://www.flickr.com/photos/victoriano

the member's name on that site is victoriano  ... meaning that's what members on your site need to fill out as their member name on whichever site you add.  So, {INPUT} will "INPUT" the member's added information into the target link you provide in that.

http://www.flickr.com/photos/MEMBERNAME  <--- wherever the member's name appears on a social cite profile linkj, that's the part of a link you replace with {INPUT}

you would put in that box you were needing help on ... http://www.flickr.com/photos/{INPUT}

I'll let you try the other 2, to see if you understand now, if not I'll help again.  Just try on your own and see :)
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: CheeseHead05 on June 05, 2013, 11:17:57 AM
Thanks hcfwesker...I will let u know if i run across any problems..
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: CheeseHead05 on June 09, 2013, 03:36:38 PM
Quote from: hcfwesker on June 04, 2013, 07:35:17 PM
Quote from: CheeseHead05 on June 04, 2013, 10:13:48 AMI wish to add Flickr, Tumblr, and Instagram..

Found a random profile on Flickr ...  http://www.flickr.com/photos/victoriano

the member's name on that site is victoriano  ... meaning that's what members on your site need to fill out as their member name on whichever site you add.  So, {INPUT} will "INPUT" the member's added information into the target link you provide in that.

http://www.flickr.com/photos/MEMBERNAME  <--- wherever the member's name appears on a social cite profile linkj, that's the part of a link you replace with {INPUT}

you would put in that box you were needing help on ... http://www.flickr.com/photos/{INPUT}

I'll let you try the other 2, to see if you understand now, if not I'll help again.  Just try on your own and see :)


Hcfwesker,

Yea, Im pretty much lost...Im not understanding what goes into  "Show enclosed within text (optional) and Show social media icons..

Wish I can attempt one but I have no clue as to what to put in for those two that they are asking for...
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: CheeseHead05 on June 10, 2013, 10:04:20 AM
Can anyone help me??!!!!
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: hcfwesker on June 10, 2013, 10:43:16 PM
Quote from: CheeseHead05 on June 10, 2013, 10:04:20 AM
Can anyone help me??!!!!

First thing to get out of the way.  Allow AT LEAST 24 hours for someone to reply with some support.

Quote from: CheeseHead05 on June 09, 2013, 03:36:38 PMHcfwesker,

Yea, Im pretty much lost...Im not understanding what goes into  "Show enclosed within text (optional) and Show social media icons..

Wish I can attempt one but I have no clue as to what to put in for those two that they are asking for...

READ THIS POST AGAIN.  See where I figured to replace a membername in a social site's link to {INPUT}.  http://www.simplemachines.org/community/index.php?topic=467074.msg3556087#msg3556087

Quote from: hcfwesker on June 04, 2013, 07:35:17 PMyou would put in that box you were needing help on ... http://www.flickr.com/photos/{INPUT}

ONly pay attention to the part that deails with Social Media Icons, in green box ... and follow the green arrows to show where to add that custom link "with encloses text" ... in this case , the link I ALREADY provided for you.

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi44.tinypic.com%2F4h2hci.jpg&hash=2a6dd66aef479b976a02ed99c6a3a0335684c619)


Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: CheeseHead05 on June 11, 2013, 10:41:54 AM
So let me see if I get this, the link in the box is the same exact info that I will put in my box? So basically "copy and paste"? leave {INPUT} to read "input" and that is it? Everyting else is straight forward..
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: CheeseHead05 on June 14, 2013, 04:38:35 PM
hcfwesker,

Here u go...

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi41.tinypic.com%2F25zhyr9.png&hash=eb59089b92aec1e3aba2a2664112be8f809d3674)
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: hcfwesker on June 14, 2013, 07:24:22 PM
Duuuuuuuuuuuuuuuuude  lol

replace YOUR username {SoleMatesXoXo}   with {INPUT} ....{INPUT} HAS TO BE THERE.

Only add YOUR username on YOUR profile modify page in the Instagram option ... {INPUT}  gets replaced with your username automatically into the link .... that's how this works so each member can insert their Instagram (whatever social site) username.

Also, for pete's sake ... this is ONLY, ONLY, ONLY for the option Choose Placement:  "With Social Media Icons"  NOT "With Icons"

I'm sorry, I'm just gettin aggro cause you haven't followed the instructions I linked you to before.  Here it is again.  http://www.simplemachines.org/community/index.php?topic=467074.msg3528592#msg3528592    Pay Close Attention to the Orange Star labeled #1

Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: CheeseHead05 on June 15, 2013, 09:06:20 PM
I believe I have it correct now, but its not showing up on the forum profile..
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: hcfwesker on June 15, 2013, 11:37:13 PM
Did you activate it on the create/edit page?
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: CheeseHead05 on June 16, 2013, 03:59:10 PM
Quote from: hcfwesker on June 15, 2013, 11:37:13 PM
Did you activate it on the create/edit page?

hcfwesker,

I did all that.

Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: CheeseHead05 on June 18, 2013, 11:17:01 PM
Can someone tell me why isnt my custom icons appearing in my forum profile?
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: hcfwesker on June 19, 2013, 12:41:04 PM
please give more information, we've already ran around in circles because of info you werent providing and using the options incorrectly.  if you want thororugh support, provide as MANY details as possible and be clear on what th issue is

.... do you mean theyre not displaying on members profile page or they dont appear on the modify profile page. do they appear anywhere else. are you using a custom theme? have you checked the default curve theme?  have you checked the php files relating to profiles to confirm edits were added correctly?  these little details help speed up the support process.
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: CheeseHead05 on June 19, 2013, 02:28:23 PM
hcfwesker,

Sorry for the confusion. I am using a custom theme "greengrass" from the customize page. The instagram icon is not showing on the forum profile. And I would assume since it is showing up on the edit page, it should show up in the forum profile as well, right? and I have not checked the php files..
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: avguste on June 20, 2013, 12:27:38 PM
Hello

I just installed this mod. How can I get this mod to work with the Ultimate Profile?
I have been looking and looking and cant find a solution. Any help would be great

thank you
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: TheListener on June 20, 2013, 12:29:42 PM
The mod works with Ultimate Profile with no problems.

Did you have any errors on install?

Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: TheListener on June 20, 2013, 12:31:57 PM
Quote from: CheeseHead05 on June 19, 2013, 02:28:23 PM
hcfwesker,

Sorry for the confusion. I am using a custom theme "greengrass" from the customize page. The instagram icon is not showing on the forum profile. And I would assume since it is showing up on the edit page, it should show up in the forum profile as well, right? and I have not checked the php files..


I also use greengrass.

;)

Have you placed the instagram image into the themes image folder Cheesy?

Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: avguste on June 20, 2013, 12:35:13 PM
Quote from: Old Fossil on June 20, 2013, 12:29:42 PM
The mod works with Ultimate Profile with no problems.

Did you have any errors on install?



No errors at all.
I activate the Ultimate Profile, but the social buttons don't show up
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: TheListener on June 20, 2013, 12:38:43 PM
Quote from: avguste on June 20, 2013, 12:35:13 PM
Quote from: Old Fossil on June 20, 2013, 12:29:42 PM
The mod works with Ultimate Profile with no problems.

Did you have any errors on install?



No errors at all.
I activate the Ultimate Profile, but the social buttons don't show up

Do they show on your ordinary profile?
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: avguste on June 20, 2013, 12:51:46 PM
Never mind. Fixed it :D Some coding issues
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: hcfwesker on June 20, 2013, 12:53:14 PM
also, did you already have ultimate profiles installed BEFORE installing this mod?

@Cheesy, like Fossil asked, did you add your custom image to your themes images folder.  have you checked on the smf default curve theme .... which i already asked but you gave no answer.

thanx for the extra hand, Fossil :)
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: TheListener on June 20, 2013, 12:53:33 PM
Quote from: avguste on June 20, 2013, 12:51:46 PM
Never mind. Fixed it :D Some coding issues

Glad ya got it sorted.

:)
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: TheListener on June 20, 2013, 12:56:34 PM
Quote from: hcfwesker on June 20, 2013, 12:53:14 PM

thanx for the extra hand, Fossil :)

Anytime Wesky.

;)

Reminds me Is it true that msn have dropped their message thingy?

Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: CheeseHead05 on June 23, 2013, 08:47:08 PM
hcfwesker,

Ive tried all of that still no resolution...
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: hcfwesker on June 24, 2013, 08:24:21 PM
Quote from: CheeseHead05 on June 23, 2013, 08:47:08 PMI've tried all of that still no resolution...

Then you didn't install the MOd correctly or some edits failed on install and you installed the mod anyways.

Instead of replying with "none of that worked ...."  Let's make a checklist for each item.  Answer EACH question individually with your findings because obviously you haven't, yet.  Saying "I tried that and it didn't work"  tells me nothing.

1. Do the icons appear anywhere else besides not showing on the profile page.  ( Seriously, check all pages they're suppose to display on).  PM, posts, profile, ultimate profile.
2.  Do ANY of the default social media icons show, like facebook or youtube?
3.  Have you checked the SMF Default Curve theme? 
4.  Have you checked the php files relating to profiles to confirm edits were added correctly?
5.  Go through the parse page on the MOD download page and check ALL edits were added correctly, and for files on your custom theme.
6.  Did you upload your image to the default AND custom theme's images folder?

I'm sorry dude, I'm just getting more on edge asking questions for details but i get a short generic response in return.  This is going to be an issue with coding most likely.  Problem is I can't hop on your databse and site and do the searching myself, so we have to narrow down the problem to decide what files to check.  You're the only one having this issue so it obviously has to be an install/coding issue on your part.





Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: Mark S on June 27, 2013, 11:19:15 PM
Sorry to butt into this intense tutelage but, I have 2, minor problems with how the social media icons display in the mini-profile on forum posts and I could use some help.

I am using the default curve theme with custom profile fields and order custom profile fields mods.

First issue is a display alignment issue -  The social media icons have skewed the alignment of the first two additional custom profle fields which appear in the mini-profile next to the forum posts. 
See attachment one - This is the how the displayed custom profile fields appeared before the Soc Media Icon mod was installed.
See attachment two - This shows how the first two additional custom profile fields appear after the mod was installed.

It appears to me to be a display.template issue but, I'm not sure and if it is, I don't know to change the coding to move the first, custom profile field under the social media icons instead of next to them.

The second issue was a real curve ball.  I don't have the MSN messenger icons marked active at all but, that (hated) butterfly just flew into the picture all by itself and, when hovering over it, it shows an email account I haven't used in years  ???
See attachment 3.

Below is the code above and below the Social Media Icon Mod from the display.template file in case you need to look at it.

I hope this was sufficient info to determine the fix.  Nice mod and you're really putting a lot of efffort into supporting it.

EDIT - AFTER posting this (of course), I had a dumb idea... just move the mod code below the custom profile field mod code. 

It worked and the first was solved.   It must have been something with the ending tag of the mod code not working with displaying the custom profile fields mod code starting or something.  However, that butterfly issue still remains.

         // Show their personal text?
         if (!empty($settings['show_blurb']) && $message['member']['blurb'] != '')
            echo '
                        <li class="blurb">', $message['member']['blurb'], '</li>';

         // Any custom fields to show as icons?
         if (!empty($message['member']['custom_fields']))
         {
            $shown = false;
            foreach ($message['member']['custom_fields'] as $custom)
            {
               if ($custom['placement'] != 1 || empty($custom['value']))
                  continue;
               if (empty($shown))
               {
                  $shown = true;
                  echo '
                        <li class="im_icons">
                           <ul>';
               }
               echo '
                              <li>', $custom['value'], '</li>';
            }
            if ($shown)
               echo '
                           </ul>
                        </li>';
         }

         // This shows the popular messaging icons.
         if ($message['member']['has_messenger'] && $message['member']['can_view_profile'])
            echo '
                        <li class="im_icons">
                           <ul>
                              ', !empty($message['member']['icq']['link']) ? '<li>' . $message['member']['icq']['link'] . '</li>' : '', '
                              ', !empty($message['member']['msn']['link']) ? '<li>' . $message['member']['msn']['link'] . '</li>' : '', '
                              ', !empty($message['member']['aim']['link']) ? '<li>' . $message['member']['aim']['link'] . '</li>' : '', '
                              ', !empty($message['member']['yim']['link']) ? '<li>' . $message['member']['yim']['link'] . '</li>' : '', '
                           </ul>
                        </li>';

         // This shows the social media icons.
         if ($message['member']['has_messenger'] && $message['member']['can_view_profile'])
            echo '
                        <li class="im_icons">
                           <ul>
                              ', !isset($context['disabled_fields']['facebook']) && !empty($message['member']['facebook']['link']) ? '<li>' . $message['member']['facebook']['link'] . '</li>' : '', '
                              ', !isset($context['disabled_fields']['myspace']) && !empty($message['member']['myspace']['link']) ? '<li>' . $message['member']['myspace']['link'] . '</li>' : '', '
                              ', !isset($context['disabled_fields']['twitter']) && !empty($message['member']['twitter']['link']) ? '<li>' . $message['member']['twitter']['link'] . '</li>' : '', '
                              ', !isset($context['disabled_fields']['googleplus']) && !empty($message['member']['googleplus']['link']) ? '<li>' . $message['member']['googleplus']['link'] . '</li>' : '', '
                              ', !isset($context['disabled_fields']['linkedin']) && !empty($message['member']['linkedin']['link']) ? '<li>' . $message['member']['linkedin']['link'] . '</li>' : '', '
                              ', !isset($context['disabled_fields']['youtube']) && !empty($message['member']['youtube']['link']) ? '<li>' . $message['member']['youtube']['link'] . '</li>' : '', '
                              ', !isset($context['disabled_fields']['deviantart']) && !empty($message['member']['deviantart']['link']) ? '<li>' . $message['member']['deviantart']['link'] . '</li>' : '', '
                              ', !isset($context['disabled_fields']['pinterest']) && !empty($message['member']['pinterest']['link']) ? '<li>' . $message['member']['pinterest']['link'] . '</li>' : '', '';

         // Any custom fields with Social Media?
         if (!empty($message['member']['custom_fields']))
         {
            $shown = false;
            foreach ($message['member']['custom_fields'] as $custom)
            {
               if ($custom['placement'] != 3 || empty($custom['value']))
                  continue;
               if (empty($shown))
               {
                  $shown = true;
               }
               echo '
                              <li><a href="', $custom['value'], '" title="', $custom['title'], ' - ', $custom['value'], '" /><img src="', $settings['images_url'], '/', $custom['customsmiicon'], '" /></a></li>';
            }
            if ($shown)
               echo '
                           </ul>
                        </li>';
         }

         // Show the profile, website, email address, and personal message buttons.
         if ($settings['show_profile_buttons'])
         {
            echo '
                        <li class="profile">
                           <ul>';
            // Don't show the profile button if you're not allowed to view the profile.
            if ($message['member']['can_view_profile'])
               echo '
                              <li><a href="', $message['member']['href'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/icons/profile_sm.gif" alt="' . $txt['view_profile'] . '" title="' . $txt['view_profile'] . '" />' : $txt['view_profile']), '</a></li>';

            // Don't show an icon if they haven't specified a website.
            if ($message['member']['website']['url'] != '' && !isset($context['disabled_fields']['website']))
               echo '
                              <li><a href="', $message['member']['website']['url'], '" title="' . $message['member']['website']['title'] . '" target="_blank" class="new_win">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/www_sm.gif" alt="' . $message['member']['website']['title'] . '" />' : $txt['www']), '</a></li>';

            // Don't show the email address if they want it hidden.
            if (in_array($message['member']['show_email'], array('yes', 'yes_permission_override', 'no_through_forum')))
               echo '
                              <li><a href="', $scripturl, '?action=emailuser;sa=email;msg=', $message['id'], '" rel="nofollow">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/email_sm.gif" alt="' . $txt['email'] . '" title="' . $txt['email'] . '" />' : $txt['email']), '</a></li>';

            // Since we know this person isn't a guest, you *can* message them.
            if ($context['can_send_pm'])
               echo '
                              <li><a href="', $scripturl, '?action=pm;sa=send;u=', $message['member']['id'], '" title="', $message['member']['online']['is_online'] ? $txt['pm_online'] : $txt['pm_offline'], '">', $settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/im_' . ($message['member']['online']['is_online'] ? 'on' : 'off') . '.gif" alt="' . ($message['member']['online']['is_online'] ? $txt['pm_online'] : $txt['pm_offline']) . '" />' : ($message['member']['online']['is_online'] ? $txt['pm_online'] : $txt['pm_offline']), '</a></li>';

            echo '
                           </ul>
                        </li>';
         }

         // Any custom fields for standard placement?
         if (!empty($message['member']['custom_fields']))
         {
            foreach ($message['member']['custom_fields'] as $custom)
               if (empty($custom['placement']) || empty($custom['value']))
                  echo '
                        <li class="custom">', $custom['title'], ': ', $custom['value'], '</li>';
         }

         // Are we showing the warning status?
         if ($message['member']['can_see_warning'])
            echo '
                        <li class="warning">', $context['can_issue_warning'] ? '<a href="' . $scripturl . '?action=profile;area=issuewarning;u=' . $message['member']['id'] . '">' : '', '<img src="', $settings['images_url'], '/warning_', $message['member']['warning_status'], '.gif" alt="', $txt['user_warn_' . $message['member']['warning_status']], '" />', $context['can_issue_warning'] ? '</a>' : '', '<span class="warn_', $message['member']['warning_status'], '">', $txt['warn_' . $message['member']['warning_status']], '</span></li>';
      }
      // Otherwise, show the guest's email.
      elseif (!empty($message['member']['email']) && in_array($message['member']['show_email'], array('yes', 'yes_permission_override', 'no_through_forum')))
         echo '
                        <li class="email"><a href="', $scripturl, '?action=emailuser;sa=email;msg=', $message['id'], '" rel="nofollow">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/email_sm.gif" alt="' . $txt['email'] . '" title="' . $txt['email'] . '" />' : $txt['email']), '</a></li>';




Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: Fat_Man on June 28, 2013, 08:06:19 AM
Got an error trying to install the 1.1.0 zip.

21. Execute Modification ./Themes/default/languages/Modifications.english-utf8.php Test failed

Underneath it says....

1. Add Before ./Themes/default/languages/Modifications.english-utf8.php Test failed

Any idea whats causing this?

Thanks
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: Kindred on June 28, 2013, 09:20:27 AM
probably another mod which incorrectly changed something like the ?> at the end of the file...

your modifications file should end with ?> on a line by itself, with nothing after it.
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: TheListener on June 28, 2013, 11:52:14 PM
@liv42dayOK can we see a link to your forum please.
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: Fat_Man on June 29, 2013, 01:01:44 AM
Quote from: Kindred on June 28, 2013, 09:20:27 AM
probably another mod which incorrectly changed something like the ?> at the end of the file...

your modifications file should end with ?> on a line by itself, with nothing after it.

Thanks Kindred. That was the problem.
Was missing <?php at the beginning and ?> at the end of the files.
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: i_fiorentino on June 29, 2013, 10:06:55 AM
Hi guys,
i've tried to install this mod but i've an error like the image below:

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi.imgur.com%2FcFfnJ1k.png&hash=54f4032da85b5ad7ae91c6723eeb8d9f4ed7f92d)

I'm using 2.0.4 smf version.

Thanks in advance for any help,

Alessandro
Title: Re: Add Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: Quackles on June 30, 2013, 08:48:28 AM
Quote from: hcfwesker on April 18, 2013, 02:48:44 PM
Just to update:  I'm just about prepared to release the update to this MOD that will allow users to add Custom social media icons alongside the default ones.  It's been a very long and grueling process, to say the least.  Here's some sample pics of what will be added and how this will work.

NOTE:  I'm using a GameSpot profile as an example of a custom created social media icon.

The Modification will add a couple of new options to the Custom Profile Fields admin menu. (must be activated for this to work)

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi45.tinypic.com%2F2rpzayh.jpg&hash=9f547a9c3bd2481658e6b5f48bec2c9afa33f6ad)

1.  A 4th selection for custom fields to be shown with Social Media icons.
2. A separate set of 'enclosed' instructions for custom Social Media Icons.
3. For this to be compatible with Ultimate Profile's icons, an image needs to be added. (otherwise the text wouldn't show as a link)
4. Supply the image name, after saving your image will be added here, as confirmation & previewing.

I've also rearranged how profile modify options are displayed for default Social Media Icons, placing them at the bottom to align with other custom profile fields option.  I just can't get rid of that horizontal line in between.

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi48.tinypic.com%2Fj0l4sl.jpg&hash=53b451770142c662ef9da5da604e6b7167c61b9f)

This works even better along with the Order Custom Profile Fields (http://custom.simplemachines.org/mods/index.php?mod=1328) MOD, allowing you to arrange all Custom Profile Fields to display in the order you choose, naturally placing all your custom Social Media profiles at the top.

I'm removing displaying Social Media on the Who's Online page, and Buddies page ... after a few attempts I just didn't want to get too wrapped up in them and maybe will add them back at a later date.  Personally I feel they don't serve that great deal of purpose since most times members will see these directly from the profile or post profile of the member.

I'm working on an Upgrade file (which is what's currently holding me back), with so many code changes I'm just not sure if it's going to be worth the trouble.

Also to note, profile fields you have created previously, that you want added along the social Media default icons, can be done so just by modifying the field just a bit to meet the requirements for this custom option. (adding an image; a little rewrite for the enclosed portion, and selecting the option to display with SM Icons)

Attached below are a few sample pics just to show how the custom made icons (GameSpot) align with the default icons.

I've installed your mod and it works perfectly, however I still want to add other icons like TwitchTV and Steam. So I followed the instructions in the quoted post. But unlike the Facebook, Twitter etc icons it doesn't open the link in a new tab. How would I go about doing this?

Thank you.
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: Mark S on June 30, 2013, 01:51:41 PM
Quote from: Old Fossil on June 28, 2013, 11:52:14 PM
@liv42dayOK can we see a link to your forum please.

www.classicwinnebagos.com

Checking my error log, I'm getting tens of thousands of errors per day since I added the mod.  They occur everywhere on the forum.

Here's an example:

http://www.classicwinnebagos.com/forum/index.php?topic=5137.0;prev_next=prev

8: Undefined index: customsmiicon

File: /home/classig8/public_html/forum/Sources/Load.php
Line: 1329

Attached is a screen shot of line 1329 area from the error log

* come to think of it, the view profile, email, website, and PM icons aren't showing up on the mini-profile either...
Title: Re: Add Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: hcfwesker on June 30, 2013, 04:18:43 PM
Quote from: Quackles on June 30, 2013, 08:48:28 AMBut unlike the Facebook, Twitter etc icons it doesn't open the link in a new tab. How would I go about doing this?

kinda embarassed seeing how I too am picky when I want off-site links to open in new tabs lol .... can't believe I forgot to add that.  the fix is simple though, which I'll add in a future update.

In the files for :::

Display.template.php &  PersonalMessage.template.php

Find
<a href="', $custom['value'], '" title="', $custom['title'], ' - ', $custom['value'], '" />
Replace with
<a href="', $custom['value'], '" title="', $custom['title'], ' - ', $custom['value'], '" target="blank" />


Profile.template.php
Find
<a href="', $field['output_html'], '" title="', $field['name'], ' - ', $field['value'], '" />
Replace with
<a href="', $field['output_html'], '" title="', $field['name'], ' - ', $field['value'], '" target="blank" />

UltimateProfile.template.php (<-- if installed)
Find
<a href="', $field['output_html'], '" title="', $field['name'], ' - ', $field['value'], '" />
Replace with
<a href="', $field['output_html'], '" title="', $field['name'], ' - ', $field['value'], '" target="blank" />
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: hcfwesker on June 30, 2013, 04:32:30 PM
@Liv42dayOK , it may take some time, because if I can't see your site files then I have to goto my test site and duplicate the error myself that is happening before I can suggest any fixes.  I'm sure you have already, but in case not, can you go through files and make sure everything got added correctly.

And also check your database under smf_custom_fields , and make sure the column with the header labeled "customsmiicon" was added.
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: Mark S on June 30, 2013, 06:48:19 PM
The dbase field "customsmiicon" is there, but all the fields are the ones I made and added using the custom profile field mod.  Nothing from this mod.

I'll send you a PM with Temp logon and Password so you can view the files.  That should be easier for you.
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: TheListener on June 30, 2013, 06:54:18 PM
Liv the details you sent me should be sent to Wesky as he is the mods author and knows more than I do about the ins and outs.

:)
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: hcfwesker on June 30, 2013, 07:59:03 PM
In addition, I never asked for them, but if you trust me (which I'm sure most here can defend for me I can be trusted) I'll definitely look into it for ya.  Just may not be tonight.  Tomorrow may be more free for me.

Quote from: Liv42dayOK on June 30, 2013, 06:48:19 PM
The dbase field "customsmiicon" is there, but all the fields are the ones I made and added using the custom profile field mod.  Nothing from this mod.

That field is only used for your custom added social media icons image path being used; it shouldn't have anything from the default profile fields feature in the column.
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: Mark S on June 30, 2013, 08:14:59 PM
That's what I thought about that db field.

I'll send you a PM w/logon info.  No need to convince me on the trust issue.  The way you've supported this mod is proof enough of your committment and willingness to help.

Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: CheeseHead05 on June 30, 2013, 09:04:42 PM
hcfwesker,

Quote from: hcfwesker on June 24, 2013, 08:24:21 PM
Quote from: CheeseHead05 on June 23, 2013, 08:47:08 PMI've tried all of that still no resolution...

Then you didn't install the MOd correctly or some edits failed on install and you installed the mod anyways.

Instead of replying with "none of that worked ...."  Let's make a checklist for each item.  Answer EACH question individually with your findings because obviously you haven't, yet.  Saying "I tried that and it didn't work"  tells me nothing.

1. Do the icons appear anywhere else besides not showing on the profile page.  ( Seriously, check all pages they're suppose to display on).  PM, posts, profile, ultimate profile.
2.  Do ANY of the default social media icons show, like facebook or youtube?
3.  Have you checked the SMF Default Curve theme? 
4.  Have you checked the php files relating to profiles to confirm edits were added correctly?
5.  Go through the parse page on the MOD download page and check ALL edits were added correctly, and for files on your custom theme.
6.  Did you upload your image to the default AND custom theme's images folder?

I'm sorry dude, I'm just getting more on edge asking questions for details but i get a short generic response in return.  This is going to be an issue with coding most likely.  Problem is I can't hop on your databse and site and do the searching myself, so we have to narrow down the problem to decide what files to check.  You're the only one having this issue so it obviously has to be an install/coding issue on your part.

I viewed the Mod download page, clicked on my custom theme and I also attempted to make edits in the core folder, like the "test failed" section asks but my notepad++ cant find what the "failed section" asks me to find and replace, or add after/before. I attached a screenshot. I added the image file to both custom and default theme. Ive check the default curve and it still didnt show up, no the icons do not show anywhere else other than the edit profile field section and yes facebook, deviant, and youtube shows up in multiple areas such as forum profile and when you send pm's ect..I just dont know what is wrong....
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: hcfwesker on June 30, 2013, 09:39:58 PM
Quote from: CheeseHead05 on June 30, 2013, 09:04:42 PMI viewed the Mod download page, clicked on my custom theme and I also attempted to make edits in the core folder, like the "test failed" section asks but my notepad++ cant find what the "failed section" asks me to find and replace, or add after/before. I attached a screenshot. I added the image file to both custom and default theme. Ive check the default curve and it still didnt show up, no the icons do not show anywhere else other than the edit profile field section and yes facebook, deviant, and youtube shows up in multiple areas such as forum profile and when you send pm's ect..I just dont know what is wrong....

IFFFF you don't use the 'core' theme, I recommend deleting it from your theme settings in admin menu.  so many MODs fail on install and members ask for help when they dont even use the theme.  It's just an SMF1 style theme on SMF2.  Now, the SMF Default Curve theme ... NEVER delete that one lol.

Honestly, i'm trying to help, but it HAS to be an issue with codes being installed incorrectly or not at all.  don't wwoory ablout the "find & replace" code instructions, just goto the files and search for "smi" which will lead you to find anything in the file with "smiicon" if you dont find anything like that then the code was not added correctly.

Also, in the Create/Edit page for your custom icon, did you select the option up top to "Show On Topic View"?

I don't know what files you're attaching to your post.  what am i suppose to be looking for?

Do this for me, download and attach your Display.template.php file from your default theme, and we'll go from there.


Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: hcfwesker on July 01, 2013, 12:06:08 AM
Quote from: Liv42dayOK on June 30, 2013, 08:14:59 PMI'll send you a PM w/logon info.  No need to convince me on the trust issue.  The way you've supported this mod is proof enough of your committment and willingness to help.

I really appreciate that.  I've looked into it a bit but all I can see are Theme files from the admin menu.  I guess what I could use is if you could attach both Load.php & ManageSettings.php from your Sources folder and Display.template.php in your next post.  I'm wondering if it has to do with you shifting the code around to make your default custom profile fields align; I never tested that so it doesn't surprise me it glitched a tad on ya so I want to look into that and fixing it.  May explain some of the issues.
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: Quackles on July 03, 2013, 01:55:18 AM
Thanks for the open in new tab fix.

However, I still have another problem.

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi.imgur.com%2FtBX5Nh7.jpg&hash=3c1ed26e95a42acb154ec3dcb87c503f026d089b)

When the person only has the Twitch and Steam icon in their profile it becomes all weird. If they add just one more from the original like YouTube or Twitter it becomes normal. How do I fix this?

Thanks.
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: hcfwesker on July 05, 2013, 03:38:15 PM
thats a bug Ive already noted.  just havent had any free time to correct it and supply the edits.  not sure about the issues with it not displaying on your profile pages.  unless a conflicting MOD is installed?
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: hcfwesker on July 06, 2013, 04:42:30 PM
Quote from: Quackles on July 03, 2013, 01:55:18 AMWhen the person only has the Twitch and Steam icon in their profile it becomes all weird. If they add just one more from the original like YouTube or Twitter it becomes normal. How do I fix this?

Thanks.

Try making these changes to BOTH Display.template.php & PersonalMessage.templete.php ... strangely I had it right on the Profiletemplate ???

Find
if ($shown)
echo '
</ul>
</li>';
}

// Show the profile, website, email address, and personal message buttons.


Replace with
if ($shown)
echo '';
}

// Show the profile, website, email address, and personal message buttons.


I tested this in every way possible, but it's members like yourself that help test in every way imaginable :)  So let me know what you find.  I tested with only default SMI icons, only custom SMI icons, Both, and then each with some custom profile options as well. 

Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: Quackles on July 06, 2013, 06:01:27 PM
Thanks for the reply. That did fix the problem with the bullet points showing and other icons.

Only problem is the icons go on top of one another instead of side by side.

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi.imgur.com%2F6kSKLZq.jpg&hash=75e8689a258b4297c2f77e86582ff44a16b2face)

Yet again, this problem only occurs when the user has the extra fields in their profile. But is perfectly fine alongside the default Twitter, Facebook etc.

Thank you.
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: hcfwesker on July 06, 2013, 06:05:25 PM
Man, I suck lol.  I'll retest with more than one custom icon later when I get a chance.

EDIT:::

For right now, try this temp fix til I make a better IF statement for an update ...

Find
// This shows the social media icons.
if ($message['member']['has_messenger'] && $message['member']['can_view_profile'])
echo '
<li class="im_icons">
<ul>


Replace With
// This shows the social media icons.
                                 echo '
<li class="im_icons">
<ul>';
if ($message['member']['has_messenger'] && $message['member']['can_view_profile'])
echo '





Then, that same line from above posts, replace that with this
if ($shown)
echo '</ul>';
}

// Show the profile, website, email address, and personal message buttons.


Reverse the above edit if other problems persist.  but from my short testing all options with different icons active this seems to rid of all the previous issues.


Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: Quackles on July 06, 2013, 08:43:03 PM
It works! Thank you very much for your quick help.

Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: hcfwesker on July 06, 2013, 08:56:09 PM
you're welcome.  Ill have a patch version ready soon for everyone else.  So, everything displays fine on all pages now? even profiles?
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: Bob Perry of Web Presence Consulting on July 06, 2013, 09:01:29 PM
I notice that thyis mod hit the "Top 5" list of most popular mods, well done...
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: Quackles on July 06, 2013, 09:12:17 PM
Quote from: hcfwesker on July 06, 2013, 08:56:09 PM
you're welcome.  Ill have a patch version ready soon for everyone else.  So, everything displays fine on all pages now? even profiles?

Yeah looks good everywhere. As far as I can tell.
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: Mark S on July 08, 2013, 09:02:02 PM
Any chance to look into my error question?  I got over 20,000 errors in 2 days.
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: hcfwesker on July 08, 2013, 09:46:28 PM
Quote from: Liv42dayOK on July 08, 2013, 09:02:02 PM
Any chance to look into my error question?  I got over 20,000 errors in 2 days.

http://www.simplemachines.org/community/index.php?topic=467074.msg3569471#msg3569471

Admin panel only lets me see so much, I can't even view Sources files, which is what I mainly need to get a look at.
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: Mark S on July 09, 2013, 08:08:25 PM
Sending you a PM.  Thanks again.
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: CheeseHead05 on July 10, 2013, 09:53:21 PM
Hi hcfwesker,

Sorry I took so long but here is the display.template file..
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: Bob Perry of Web Presence Consulting on July 12, 2013, 12:15:13 AM
Great mod, any interest in the customizing I did to the Statistics page?

Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: TheListener on July 12, 2013, 07:35:45 PM
Quote from: Bob Perry on July 12, 2013, 12:15:13 AM
Great mod, any interest in the customizing I did to the Statistics page?

Looks good but I would do away with the male/ female  profile stats and have just one general section for them.

:)
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: CheeseHead05 on July 25, 2013, 06:33:17 PM
Can ANYONE help me with this mod, I am having the hardest time getting my icons to show up and I have tried again and again to sort thru possible problems but cant find out what is wrong. I really would love to have this mod but it is not working in my best interest.  :(
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: hcfwesker on July 26, 2013, 12:33:25 AM
Dude, I have tried and tried.  But when I ask for details you give me the most vague responses and I either have to repeat my questions or ask for details that you should be providing in the first place. 

So here's what you're going to do, and do it exactly as I say.

On your site, Goto Admin > Packages
Find this MOd on the list, and click [Uninstall]

Once on the Uninstall page, look at ALL the files listed on the page... and list ANY that show errors in RED.
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: CheeseHead05 on July 26, 2013, 01:20:56 AM
./Themes/default/languages/Modifications.english.php   Test failed

Also when I went to look at the manual install instructions, I compared them to my ftp files and some of them needed modifications.
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: geogeo.gr on July 26, 2013, 03:04:14 PM
Greek language

$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'] = 'Εισάγετε το ID χρήστη που έχετε στο Google+.';
$txt['smi_linkedin_title'] = 'LinkedIn';
$txt['smi_linkedin_desc'] = 'Αντιγραφή & Επικόλληση του συνδέσμου του προφίλ σας στο LinkedIn.';
$txt['custom_edit_placement_withsmiicons'] = 'Με Social Media Icons';
$txt['custom_profile_placement_withsmiicons'] = 'Με Social Media Icons';
$txt['custom_smi_enclose'] = '<strong>Social Media Icons (Μην το παραλείψετε!):</strong>';
$txt['custom_smi_enclose_desc'] = 'Για <u>προσαρμοσμένα Social Media Icons</u>, αυτό πρέπει να συμπληρωθεί. Κάντε κλικ στο εικονίδιο της <strong>Βοήθειας</strong> για λεπτομερείς οδηγίες';
$txt['custom_smiicon_image'] = 'Προσθήκη προσαρμοσμένης εικόνας Social Media Icon';
$txt['custom_smiicon_image_desc'] = 'ΜΟΝΟ για προσαρμοσμένα Social Media Icons. Οι εικόνες πρέπει να έχουν μέγεθος 16 X 16.<br />Μεταφόρτωση εικόνων στο φάκελο <strong>Themes/{όνομα θέματος}/images</strong>';
$txt['customsmi_images_url'] = '{theme URL}/images/';
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: hcfwesker on July 26, 2013, 09:13:23 PM
Quote from: CheeseHead05 on July 26, 2013, 01:20:56 AM
./Themes/default/languages/Modifications.english.php   Test failed

Also when I went to look at the manual install instructions, I compared them to my ftp files and some of them needed modifications.

As I suggested before, I would uninstall the MOD, then reinstall it.   Shouldn't be too much of a hassle if only the language file is failing on uninstall.  Install it through the package manager, make sure no files have error on installs, then get back with me in this topic.  Also goto your databse tables and check under smf_members to make sure the header columns for this mod got added, like facebook, twitter, youtube, etc.

Quote from: geogeo.gr on July 26, 2013, 03:04:14 PM
Greek language

Awesome!  Thank You so much!
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: Banaca on July 27, 2013, 07:44:47 AM
I have the same mistake

And when i proof this, it's solved:

Quote from: hcfwesker on July 06, 2013, 04:42:30 PM
Quote from: Quackles on July 03, 2013, 01:55:18 AMWhen the person only has the Twitch and Steam icon in their profile it becomes all weird. If they add just one more from the original like YouTube or Twitter it becomes normal. How do I fix this?

Thanks.

Try making these changes to BOTH Display.template.php & PersonalMessage.templete.php ... strangely I had it right on the Profiletemplate ???

Find
if ($shown)
echo '
</ul>
</li>';
}

// Show the profile, website, email address, and personal message buttons.


Replace with
if ($shown)
echo '';
}

// Show the profile, website, email address, and personal message buttons.


I tested this in every way possible, but it's members like yourself that help test in every way imaginable :)  So let me know what you find.  I tested with only default SMI icons, only custom SMI icons, Both, and then each with some custom profile options as well.

But, I have a problem with my language mod when i do this

I don't have very good english, sorry for that
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: OzzyMozzy on July 27, 2013, 10:15:10 AM
Hi, Im' looking for some help please. Im getting a lot of errors logged with this mod.

This is what im getting

8: Undefined index: customsmiicon

File: /home4/******/public_html/Sources/Load.php
Line: 1365

And this is the line from 1360 - 1371

$memberContext[$user]['custom_fields'][] = array(
'title' => $custom['title'],
'colname' => $custom['colname'],
'value' => $value,
'placement' => !empty($custom['placement']) ? $custom['placement'] : 0,
'customsmiicon' => $custom['customsmiicon'],
);
}
}

return true;
}

Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: hcfwesker on July 28, 2013, 03:33:32 PM
Quote from: Banaca on July 27, 2013, 07:44:47 AMBut, I have a problem with my language mod when i do this

I don't have very good english, sorry for that

If you don't provide any details on what the problem is then I can't try and begin to come up with a solution.  Can you provide screenshots?

Quote from: OzzyMozzy on July 27, 2013, 10:15:10 AM8: Undefined index: customsmiicon

File: /home4/******/public_html/Sources/Load.php
Line: 1365

I haven't had time to delve into fixing this in the code itself, but if you want to stop the error in your error log, just create a Custom Profile Field and use the Social Media Icons 'placement' option, and add an image to it where it asks for it, then just leave the custom profile field as NOT active if you don't plan on using it. 

Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: ares0027 on July 30, 2013, 07:20:27 AM
am i the only one who cannot find the section to add custom tabs? (core theme, no other themes installed at all, english-uf8 forum with turkish-utf8 available to users)
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: CheeseHead05 on August 03, 2013, 01:35:15 PM
Problem: After installing this mod, my profile fields are showing up twice under my name in the forum.
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: TheListener on August 03, 2013, 01:37:31 PM
QuoteAt a guess I would say some of the code has been double probably by an uninstall and reinstall.
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: TheListener on August 03, 2013, 01:38:01 PM
What is the link to your forum Cheesy?

Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: TheListener on August 03, 2013, 01:51:01 PM
Good to see you use the same theme as my forum  :D

But all I see is the log in page.  ???
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: Kindred on August 03, 2013, 02:25:32 PM
and... from the post up above - I bet he uninstalled (per hcfwesker's instructions) but ignored the warnings during the uninstall and not all the code was properly uninstalled.

At this point, the only thing you can do, CheeseHead05, is to MANUALLY check each and every code edit and confirm that the edit was only done ONCE
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: NekoJonez on August 03, 2013, 03:08:06 PM
Maybe this is reported already but all profile fields I create with this mod, aren't hidden for guests.
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: CheeseHead05 on August 03, 2013, 03:48:04 PM
Oh no Kindred,  :'( please don't say that.... :(
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: hcfwesker on August 03, 2013, 08:16:37 PM
Quote from: CheeseHead05 on August 03, 2013, 03:48:04 PM
Oh no Kindred,  :'( please don't say that.... :(

It's EASIER than you think.  Goto the MOD download page, parse the mod for 2.0.4 , then just go through each file listed and check the edits and make sure there are no duplicates.  Since, of course, you gave no details I can't tell you which files to start with.  so check them all.

Quote from: NekoJonez on August 03, 2013, 03:08:06 PM
Maybe this is reported already but all profile fields I create with this mod, aren't hidden for guests.

That's strange, since the output code is added in the "no guests" part of mini-profiles.   I'll take a look at it once I get the chance.
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: NekoJonez on August 04, 2013, 04:43:26 AM
Another minor issue/remark is that every social network displays in my admin section on the profile fields with a lower case first letter.

If possible, can you look into this?
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: elf_fu on August 05, 2013, 03:25:08 AM
Hello! I love this mod a lot, but I have 1 problem and 1 question.


Problem: I am having the spacing issue on one of the two main themes on my forum. This may be because I am not php savvy. Please forgive me ahead of time!


My forum: gr.2phatgeeks.com
Version: 2.0.4
Mods installed: KeyCAPTCHA for SMF    2.5 
SimplePortal    2.3.5 
Ban List    2.0 
Dice Roller BBcode    1.3 
PM to New Members    1.2 
Treasury    2.12 
Separate the sticky topics
Add Social Media Icons To Profiles


Themes:
Core Theme
SMF Default Theme - Curve
Argentum2 Enhanced: http://custom.simplemachines.org/themes/index.php?lemma=2234 (http://custom.simplemachines.org/themes/index.php?lemma=2234) - Displaying correctly now
Back-in-Black: http://custom.simplemachines.org/themes/index.php?lemma=126 (http://custom.simplemachines.org/themes/index.php?lemma=126) - Spacing odd




When I installed from package, for my lighter theme, Argentum2 Enhanced, the package manager told me I had no errors. However, for my dark theme, Back-in-Black, the package manager let me know I had an install error on Disaply.template.php.

I attempted to edit Display.template.php & PersonalMessage.template in Notepad ++ and the theme Back n Black first before touching edits in Argentum2 Enhanced.  Unfortunately, I think I am doing it wrong. Here is the screenshots for the edited Back n Black theme:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi65.photobucket.com%2Falbums%2Fh208%2Felf_fu%2FScreenshots%2Fbacknblackedited_zps295ef188.jpg&hash=92cdde2886ab18b6f669d92210192b3d9c1f5733)




How may I fix the display for Back n Black?


Second my question is: I would like to add 2 custom profile fields that link to profiles on a phpBB forum. Where in the URL's for profiles on phpBB forums looks like: http://www.awesomephpBBforumprofile.com/forums/profile.php?mode=viewprofile&u=1 (http://www.awesomephpbbforumprofile.com/forums/profile.php?mode=viewprofile&u=1)  How could I make this happen with your mod if it is?

Thank you SO much for any patience and help!
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: CheeseHead05 on August 09, 2013, 04:55:24 PM
Is it possible to link the actual member's social network page to the icons instead just displaying a name?
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: Kindred on August 09, 2013, 06:02:06 PM
most of them do...
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: Bob Perry of Web Presence Consulting on August 09, 2013, 06:05:52 PM
Quote from: CheeseHead05 on August 09, 2013, 04:55:24 PM
Is it possible to link the actual member's social network page to the icons instead just displaying a name?

What happens when you click on the icon?

Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: CheeseHead05 on August 09, 2013, 09:46:04 PM
Quote from: Bob Perry on August 09, 2013, 06:05:52 PM
Quote from: CheeseHead05 on August 09, 2013, 04:55:24 PM
Is it possible to link the actual member's social network page to the icons instead just displaying a name?

What happens when you click on the icon?



When I click the icon, I only get facebook's sign in page.


Oh boy, Im pretty sure this file (Load.php) is the reason why my icons show up twice. Can anyone make it through this maze of confusion? Starting with line 1134-1273.
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: Kindred on August 09, 2013, 10:28:39 PM
your icons show up twice because you installed the mod twice.
There are likely MULTIPLE areas of duplicated code... most likely display.template.php instead of load.php

If you get the facebook login page, then something is wrong with your setup... because the icons work just fine for me
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: CheeseHead05 on August 10, 2013, 12:27:59 AM
kindred,

I removed a duplicate code from the display.template and it work, but that is all I did. Im pretty sure more "cleaning" needs to be done in other folders. If I leave the "trash" will it hurt me in the end?
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: Kindred on August 10, 2013, 08:02:30 AM
probably. duplicated code is just one more vector for errors to start - especially as you add other mods.
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: CheeseHead05 on August 10, 2013, 05:13:44 PM
Kindred,

Luckily, I only had one duplicate code that I fixed  :) I went thru all of the file edits and boy did that take some time...
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: hcfwesker on August 11, 2013, 10:40:29 PM
Quote from: elf_fu on August 05, 2013, 03:25:08 AMHowever, for my dark theme, Back-in-Black, the package manager let me know I had an install error on Display.template.php.
I appreciate the amount of info you provided.  Also, whenever you are in doubt of a file you've edited or believe may be an issue, feel free to always attach it to your support post.  Can you go ahead and attach that file ( Display.template.php ) from your Back-in-Black theme.

QuoteSecond my question is: I would like to add 2 custom profile fields that link to profiles on a phpBB forum. Where in the URL's for profiles on phpBB forums looks like: http://www.awesomephpBBforumprofile.com/forums/profile.php?mode=viewprofile&u=1 (http://www.awesomephpbbforumprofile.com/forums/profile.php?mode=viewprofile&u=1)  How could I make this happen with your mod if it is?

Just curious, is this going to be available for all members on your site?  And do they all have profiles, themselves, on this phpBB forum?  Just making sure using this MOD for that request would be ideal.

To do so, just add this in Show Enclosed Within Text (Optional):

http://www.awesomephpBBforumprofile.com/forums/profile.php?mode=viewprofile&u={INPUT}

Then, in the description field that members will see, instruct them to add their member ID number from that phpBB forum.  In your case the memberID would be 1

Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: elf_fu on August 12, 2013, 12:29:30 AM
hcfwesker,


Thank you so much for your reply. And I hope I didn't overwhelm you with too much info. I wasn't sure what would help, but figured the more the merrier! I've attached my current Back n' Black display.template.php.

QuoteJust curious, is this going to be available for all members on your site?  And do they all have profiles, themselves, on this phpBB forum?  Just making sure using this MOD for that request would be ideal.

On my website currently: yes. Almost all of my members are from either one or the other.
My website is a role playing website set in a fictional universe called RhyDin. The two other phpBB forums that I would like to link to, are also set in the same fictional universe. (The fictional universe is open to all to use and to RP in).  One of the websites is a dueling venue that has custom profiles that shows off members awards won through those duels, the other is a website that has been around much longer, and members there have accumulated many custom inventory items, gifts and prizes and so on-I would like to link to their profiles so that I can foster a feeling of community through out all three and so that members can show off their community participation in all of them.

I hope that makes sense!

I will try this out immediately. I believe I was putting the{INPUT} in the wrong area. Thank you again for getting back to me!
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: hcfwesker on August 12, 2013, 12:59:43 AM
You're welcome.  My free time is very limited so I appreciate you being patient until I could get back to this topic.  If you need any help with your phpBB profile links anymore just let me know.

Quote from: elf_fu on August 12, 2013, 12:29:30 AMI've attached my current Back n' Black display.template.php.

Try this in the file. (seeing as your custom theme uses different css, should work by using the same as the IM icons)

find
// This shows the social media icons.
if ($message['member']['has_messenger'] && $message['member']['can_view_profile'])
echo '
<li class="im_icons">


Replace with
// This shows the social media icons.
if ($message['member']['has_messenger'] && $message['member']['can_view_profile'])
echo '
<li class="margintop">
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: hcfwesker on August 12, 2013, 01:06:32 AM
Quote from: NekoJonez on August 03, 2013, 03:08:06 PM
Maybe this is reported already but all profile fields I create with this mod, aren't hidden for guests.

Seems that even though SMF2 defauult Custom Profile Fields are located within the "guests cannot view" parts of the mini-profile, they're still viewable to guests.  I haven't tested, but perhaps try this in the Display.template.php ...

Find
// Any custom fields with Social Media?
if (!empty($message['member']['custom_fields']))


Replace with
// Any custom fields with Social Media?
if ((!empty($message['member']['custom_fields'])) && !$context['user']['is_guest'])
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: elf_fu on August 12, 2013, 01:18:21 AM
Thank you!

And as far as waiting is concerned, you made a mod that's free to use with your own free time. People have lives and obligations. No matter how eager I am to get something fixed, you're doing this for free. I can wait as long as it takes! xD

So far the custom link to phpBB forum profiles works perfectly, thanks for setting me straight!

Unfortunately, I tried the edits to my Display.template.php as you suggested, then cleared cache, refreshed website, logged out and logged back in but it seems that icons are still out of alignment.


(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi65.photobucket.com%2Falbums%2Fh208%2Felf_fu%2FScreenshots%2Fsocialmediabacknblack_zpsa9aa529f.png&hash=5c68bcdf7ee958131d0f04fb6f2e778ce2bd8692)
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: hcfwesker on August 12, 2013, 01:31:34 AM
Quote from: elf_fu on August 12, 2013, 01:18:21 AMI tried the edits to my Display.template.php as you suggested, then cleared cache, refreshed website, logged out and logged back in but it seems that icons are still out of alignment.

without testing myself, gotta take babysteps lol.

Where you just made these edits ...

// This shows the social media icons.
if ($message['member']['has_messenger'] && $message['member']['can_view_profile'])
echo '
<li class="margintop">


JUST below that last line <li class="margintop"> in the file is <ul>
Find
<ul>
Replace with
<ul class="reset nolist">
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: hcfwesker on August 12, 2013, 01:35:57 AM
Quote from: CheeseHead05 on August 09, 2013, 09:46:04 PMWhen I click the icon, I only get facebook's sign in page.
Most likely because you're adding your entire facebook profile URL in the field, when all you have to do is just add your facebook username. The one that shows at the END of your facebook URL (thats all you're suppose to add to the field)
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: elf_fu on August 12, 2013, 04:39:21 AM
Quote from: hcfwesker on August 12, 2013, 01:31:34 AM
Quote from: elf_fu on August 12, 2013, 01:18:21 AMI tried the edits to my Display.template.php as you suggested, then cleared cache, refreshed website, logged out and logged back in but it seems that icons are still out of alignment.

without testing myself, gotta take babysteps lol.

Where you just made these edits ...

      // This shows the social media icons.
         if ($message['member']['has_messenger'] && $message['member']['can_view_profile'])
            echo '
                        <li class="margintop">


JUST below that last line <li class="margintop"> in the file is <ul>
Find
<ul>
Replace with
<ul class="reset nolist">

YAAAAAAAAAAAAAAAAAAAAAAAAAAAAY that fixed it! Thank you so much for your time and patience! It looks so much better now!  :laugh:
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: TopCatToo on August 12, 2013, 11:22:24 AM
Hi,

If it helps anyone.............

I was getting the "8 Undefined index: customsmiicon"  on Load.php Line: 1315, error every time a post was viewed, even after a clean install of this mod at v1.1.0.

Following the advice here all the changed files and database all seemed OK, so........

I un-installed v1.1.0 and installed v1.0.7 (which provides all that I need) and all now seems well with no errors.

Steve

Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: hcfwesker on August 14, 2013, 12:06:53 AM
Quote from: elf_fu on August 12, 2013, 04:39:21 AMthat fixed it! Thank you so much for your time and patience!

You're welcome :)  If that theme has it's own files like personal messaging and profile you may want to look at them as well and make sure they are aligned too.

Quote from: TopCatToo on August 12, 2013, 11:22:24 AMI was getting the "8 Undefined index: customsmiicon"  on Load.php Line: 1315, error every time a post was viewed, even after a clean install of this mod at v1.1.0.

I un-installed v1.1.0 and installed v1.0.7 (which provides all that I need) and all now seems well with no errors.

yeah, if you dont plan on making your own custom icons for other sites and just want to use the default ones with the MOd, then v1.0.8 or below is the more ideal one to use.  Though, the temp fix is to create a custom SMI icon and add an image with it, then just leave it 'inactive' in the settings.

I'm keeping track of all current issues and plan on updating with the fixes, just finding the time to do it is any ones guess :D

Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: TheListener on August 14, 2013, 12:08:55 AM
Quotejust finding the time to do it is any ones guess

/me stands behing Wesky with a whip in hand

:D
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: CheeseHead05 on August 18, 2013, 12:08:04 AM
Ive installed this mod in another forum, made all edits to the folders that allowed me to (some edits my notepad++ couldn't find) but the icons aren't showing up on the forum profiles.
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: TheListener on August 18, 2013, 12:10:31 AM
Do the images show in the default theme?
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: CheeseHead05 on August 18, 2013, 01:06:03 AM
Grump,

I transferred the files to my current custom theme from default. When I go to to add my name in the field and click save, it doesn't save.
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: hcfwesker on August 19, 2013, 02:02:18 PM
Quote from: CheeseHead05 on August 18, 2013, 12:08:04 AM
Ive installed this mod in another forum, made all edits to the folders that allowed me to (some edits my notepad++ couldn't find) but the icons aren't showing up on the forum profiles.

^^ This statement is about as confusing as it gets.  :o

Quotemade all edits to the folders that allowed me to

so you're saying you didn't do ALL the edits that are required?

Quotesome edits my notepad++ couldn't find

So, if I'm reading this correctly, you just left off edits your Notepad++ couldn't find for you??  You do know you don't have to search the exact phrase listed. If it doesn't find the exact set of lines then it means edits were made for those lines. 

This MOD adds the social networks icons BELOW the instant messaging icons.  So just try searching the files for things like yim or msn  .... 9 times out of 10 that search will take you straight to the set of lines in the file you're searching foe.

Quote from: CheeseHead05 on August 18, 2013, 01:06:03 AMI transferred the files to my current custom theme from default.

Wait!  What!  So you're saying your siye doesn't have it's own theme file labeled 'default'??  That's gonan be your BIGGEST problem with installing MODs.

Quote from: CheeseHead05 on August 18, 2013, 01:06:03 AMWhen I go to to add my name in the field and click save, it doesn't save.

Have you checked in your database for smf_members and made sure facebook, youtube, etc got added towards the end of the columns.  If you in fact manually installed this MOD, then the mistakes and reasons it's not working is because you messed alot of edits or installation parts up.  No other users are having these issues like this with adding the MOD.

Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: Kindred on August 19, 2013, 02:29:09 PM
hcfwesker,

at this point, I think that it is very clear that cheesehead has absolutely no clue what he's doing and actually should not be allowed near a code editor... He ignores required edits (because he couldn't find the exact code -- which - if it was present, the auto-installer would have found in the first place) and he makes changes (and copies files) without actually understanding what he's doing.

Cheesehead...   why would you copy files into your custom theme directory? ???
The mod parser will tell you what edits need to be made to your custom theme... every other change should be made to the template files in the DEFAULT theme directory.
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: hcfwesker on August 19, 2013, 03:00:29 PM
Quote from: Kindred on August 19, 2013, 02:29:09 PM
hcfwesker, at this point, I think that it is very clear that cheesehead has absolutely no clue what he's doing

I know.  But some reason I'm just compelled to try and help.  Even though for the past few weeks of trying to help CheeseHead it just feels like I'm on a figure 8 racetrack going in infinite circles lol. 

Problem is, this is getting nowhere and it just boils down to the fact it's not the MOD's fault these things are happening, and I can't go any further with support for you, CheeseHead, without getting into your site, see it's files, and database myself and just see what the heck is going on with what you've done. 
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: NekoJonez on August 23, 2013, 01:17:56 PM
Quote from: hcfwesker on August 12, 2013, 01:06:32 AM
Quote from: NekoJonez on August 03, 2013, 03:08:06 PM
Maybe this is reported already but all profile fields I create with this mod, aren't hidden for guests.

Seems that even though SMF2 defauult Custom Profile Fields are located within the "guests cannot view" parts of the mini-profile, they're still viewable to guests.  I haven't tested, but perhaps try this in the Display.template.php ...

Find
// Any custom fields with Social Media?
if (!empty($message['member']['custom_fields']))


Replace with
// Any custom fields with Social Media?
if ((!empty($message['member']['custom_fields'])) && !$context['user']['is_guest'])


Yes, this one fixes it. :D Nice! Thanks a lot.
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: hcfwesker on August 26, 2013, 12:13:31 AM
Quote from: NekoJonez on August 23, 2013, 01:17:56 PMYes, this one fixes it. :D Nice! Thanks a lot.

Nice, I'll bookmark that post and add it to my update queue
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: elf_fu on August 28, 2013, 12:50:06 AM
I hate to be back here, but I've noticed a few things:


If anyone accidentally places the entire URL of the link for their profile instead of just the last few images, the list/disarray of information on their mini profile returns and, it stays even after they fix it.


What a profile with the feild filled out correctly (or left empty looks like)
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi65.photobucket.com%2Falbums%2Fh208%2Felf_fu%2FScreenshots%2Fminiprofile_zpsf88f800d.png&hash=a3ab237780d4d2f5e71c9308e432331bae01dbd4)


What it looks like when user places entire URL instead:(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi65.photobucket.com%2Falbums%2Fh208%2Felf_fu%2FScreenshots%2Fbrokenminiprofile_zpsbc8ebd52.png&hash=887e2c94f5667a6428e149da98fdd552ca3ec902)
Do you have any idea what is causing it and what I might need to fix? Same theme, browser and info basically from before on my part.
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: hcfwesker on August 29, 2013, 08:25:21 PM
Quote from: elf_fu on August 28, 2013, 12:50:06 AM
I hate to be back here, but I've noticed a few things:
If anyone accidentally places the entire URL of the link for their profile instead of just the last few images, the list/disarray of information on their mini profile returns and, it stays even after they fix it.

First off, IF they mistakenly add the wrong bit of info to the specific SMI field, all it's going to do is redirect the image to an "URL not found" page ... it won't cause what you're seeing.  The problem is you are possibly using default SMF2 Custom Profile Fields along with this MOD, which causes the profile to lay out in a disarray.  There's a fix for that that I supplied earlier in the topic for another member with a custom theme, hopefully it'll work for you.  I'm not sure what all changes you've made, so if you can attach your Display.template.php file in a reply I'll take a look at it and see if the changes would work before supplying them.

If you want to try it your self,
Display.template.php

Find
// This shows the social media icons.
if ($message['member']['has_messenger'] && $message['member']['can_view_profile'])
echo '
<li class="margintop">
<ul class="reset nolist">


Replace With
// This shows the social media icons.
                                 echo '
<li class="margintop">
<ul class="reset nolist">';
if ($message['member']['has_messenger'] && $message['member']['can_view_profile'])
echo '


If that doesn't fix it by itself, then try this ALSO with the above changes.

Find
if ($shown)
echo '
</ul>
</li>';
}

// Show the profile, website, email address, and personal message buttons.


Replace With
if ($shown)
echo '</ul>';
}

// Show the profile, website, email address, and personal message buttons.





Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: elf_fu on August 31, 2013, 06:06:52 PM
Thank you AGAIN so much!


This right here:
// This shows the social media icons.
                                 echo '
<li class="margintop">
<ul class="reset nolist">';
if ($message['member']['has_messenger'] && $message['member']['can_view_profile'])
echo '


Fixed it immediately for my Argentum theme. And I was able to edit myself--without making everything explode! All thanks to you :3 Sorry for being such a clueless noob and appreciate all the help!
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: estes on September 09, 2013, 10:17:02 PM
i just installed this mod on SMF 2.0.5.  when i navigate to the Admin > Configuration page i dont see any links for Profile Fields.

the install said it installed correctly.  did i skip something?
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: hcfwesker on September 10, 2013, 01:07:14 AM
Quote from: estes on September 09, 2013, 10:17:02 PM
i just installed this mod on SMF 2.0.5.  when i navigate to the Admin > Configuration page i dont see any links for Profile Fields.

the install said it installed correctly.  did i skip something?

Admin > Configuration > Core Features > "Click on Custom Profile Fields to Activate"

Goto the Core Features link in the admin panel and you must first enable the default "Custom Profile Fields" setting for this MOD to work.
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: estes on September 10, 2013, 11:07:32 AM
Quote from: hcfwesker on September 10, 2013, 01:07:14 AM
Quote from: estes on September 09, 2013, 10:17:02 PM
i just installed this mod on SMF 2.0.5.  when i navigate to the Admin > Configuration page i dont see any links for Profile Fields.

the install said it installed correctly.  did i skip something?

Admin > Configuration > Core Features > "Click on Custom Profile Fields to Activate"

Goto the Core Features link in the admin panel and you must first enable the default "Custom Profile Fields" setting for this MOD to work.

yes that's correct. i do have that feature enabled.  the mod settings link should then appear on the configuration page correct?

i should add that i see the fields in the profiles settings, however, i don't see a link to the settings for the mod.  right now the links are displayed in text instead of icons.
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: hcfwesker on September 10, 2013, 12:39:26 PM
read the Mod page description. It tells you where the features are.  theres no new menu page, there's a link to a post on the MOD page to explain how custom social profiles are created.
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: estes on September 10, 2013, 12:58:33 PM
i read the mod page and i was under the impression there was a config under the admin > configuration > profiles page

the mod seems to be working somewhat...i see the social media profiles but they are displayed as links (not the icons).

doing a search on the directory it shows the icons exist in: /Themes/default/images/

there's no settings to display these as icons instead of links?
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: hcfwesker on September 10, 2013, 07:27:54 PM
Quote from: estes on September 10, 2013, 12:58:33 PM
i read the mod page and i was under the impression there was a config under the admin > configuration > profiles page

the mod seems to be working somewhat...i see the social media profiles but they are displayed as links (not the icons).

doing a search on the directory it shows the icons exist in: /Themes/default/images/

there's no settings to display these as icons instead of links?

My bad, figured it wouldn't be too tough to find them from the way i worded it.  Admin > Configuration > Features & Options > Profile Fields

They are displayed as icons on post pages, personal messaging pages, and member (ultimate profile) pages.  On member (default) profiles they're displayed as links.  A screenshot would help on where you're getting the icon issue.

Quote from: estes on September 10, 2013, 12:58:33 PMdoing a search on the directory it shows the icons exist in: /Themes/default/images/

If you have a custom theme with it's own 'images' folder than the images need to added there as well.


Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: estes on September 12, 2013, 12:47:17 PM
uploading the images to that folder worked..thanks for all the help and cool mod!
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: Hildegarde on September 12, 2013, 01:14:49 PM
What do i have to do if i get this error?

I've been trying to install from Packages and when i want to install it, 2 errors in these lines:

mem.birthdate, mem.member_ip, mem.member_ip2, mem.icq, mem.aim, mem.yim, mem.msn, mem.posts, mem.last_login,

mem.birthdate, mem.icq, mem.aim, mem.yim, mem.msn, mem.posts, mem.last_login, mem.karma_good,

I'm using a custom theme and my language is Spanish_es-utf8
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: Kindred on September 12, 2013, 02:25:19 PM
http://wiki.simplemachines.org/smf/Error_in_mod_installation

the error has to do with other mods that you have not your theme and not your language.

in other words - use your human intuition and add the variable definitions on to the end of those lines
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: Hildegarde on September 12, 2013, 05:00:04 PM
Done.

Is this correct?

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi.imgur.com%2FQMyJ9zL.png&hash=8edaee4f387c51def681e7c003a74d33a396c1e3)

But every time i write in the fields, it doesn't let me save changes, i mean, what i wrote disappear.

I don't know where is the admin section for the mod.
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: hcfwesker on September 12, 2013, 07:39:55 PM
The Gamers MOD makes installs to the same line, which is what is throwing the errors, along with other MODs im not sure of.  And, yes, what you have is correct, just make sure to make the same changes to the other line that is throwing the error too in Load.php

Then, after you manually add those changes, install the package and just ignore the error message, AS LONG as there are no other errors.

For admin stuff ...
Custom Profile Fields must be activated under 'Core Features' for this Mod to work.

Admin > Configuration > Features & Options > Profile Fields
Admin settings to Activate/Deactivate which to allow members to modify ( All on by default)
Admin settings to select which to show on new member Registration (All off by default)

It's all on the Mod page description

Quote from: estes on September 12, 2013, 12:47:17 PM
uploading the images to that folder worked..thanks for all the help and cool mod!

Good deal, glad it's working.  During the install it should have asked you if you wanted to install on other themes, you must have missed that part at the bottom, which would have added the images for you in your other themes.

Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: estes on September 12, 2013, 08:01:15 PM
yeah i guess i did.  still getting used to SMF :)
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: Hildegarde on September 12, 2013, 08:10:06 PM
When you say i have to make the same changes to the other line, what line do you mean? The mod says me i have to change 2 lines, but i'm confusing, because is exactly the same lane so that's why i've added all the info on the end.

mem.birthdate, mem.member_ip, mem.member_ip2, mem.icq, mem.aim, mem.yim, mem.msn, mem.posts, mem.last_login,

mem.birthdate, mem.icq, mem.aim, mem.yim, mem.msn, mem.posts, mem.last_login, mem.karma_good,


The difference between each other is mem.member_ip and mem.member_ip2. Ok, as you can see in my last pic, i though that was the good way to add the info.

I've uninstalled the mod and reinstall it again, upload the "new" Load.php and what i get is the same problem. Everything is ok, but when i write and i click on Save Changes, it disappear.
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: hcfwesker on September 12, 2013, 08:22:08 PM
In your original post, you said you were getting 2 errors in 2 lines.  So you have to manually make the edits to both those lines.  you only showed in your pic one manual edit you made.  So thats why I was asking if you made the changes to the other line.

Line 1 ( which you posted and did correctly)
mem.birthdate, mem.member_ip, mem.member_ip2, mem.icq, mem.aim, mem.yim, mem.msn, mem.posts, mem.last_login,

Line 2  ( which is a few lines down in the file, and ALSO needs the manual edits made)
mem.birthdate, mem.icq, mem.aim, mem.yim, mem.msn, mem.posts, mem.last_login, mem.karma_good,

You have to do it for both of those.  Yes they do look the same which may be confusing; but both have to be done.


Quote from: Hildegarde on September 12, 2013, 08:10:06 PMI've uninstalled the mod and reinstall it again, upload the "new" Load.php and what i get is the same problem. Everything is ok, but when i write and i click on Save Changes, it disappear.

No, upload the edited Load.php FIRST  .... then install the package through package manager.  Uploading Load.php after installing the package will overwrite the successful edits in Load.php the package manager makes for you.

Simply put ... Do the changes to Load.php and upload the file FIRST, then install the package SECOND
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: Hildegarde on September 12, 2013, 09:16:52 PM
OMG YES.  ;D

I didn't realize the few lines down in the file.

Thank you dude, really thank you for all. =)
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: hcfwesker on September 12, 2013, 11:16:49 PM
Quote from: Hildegarde on September 12, 2013, 09:16:52 PMThank you dude, really thank you for all. =)

You're welcome.  Glad you caught on quickly and got it solved :)
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: Starz0r on September 19, 2013, 09:12:25 PM
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fpuu.sh%2F4vtQA.png&hash=94d1191bc9ac52bd8efa9cacfaff011a3a06a2cd)
The only errors I get trying to install this mod.
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: impreza on September 20, 2013, 05:58:42 AM
A very useful modification, thanks for the add.
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: hcfwesker on September 20, 2013, 03:54:03 PM
Quote from: Starz0r on September 19, 2013, 09:12:25 PM
The only errors I get trying to install this mod.

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi42.tinypic.com%2F2myq51h.jpg&hash=f9ea0326542cac2cb086156035d4c1490873e55e)

SMF 1? SMF 2?  And, does your forum actually use the 'core' them?  If not then simply delete the 'core' theme or just ignore the errors.  The only thing that will happen if you proceed "as is"; is these icons won't show in member's miniprofiles next to their private messages on the 'core' theme.
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: Arantor on September 20, 2013, 03:57:57 PM
Well, it's SMF 2. Forum is using the Core theme as per screenshot.

(It's SMF 2 because SMF 1 didn't offer to show the different edits with the little notepad icon)
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: hcfwesker on September 20, 2013, 04:06:28 PM
Ah, I gotcha.  Because it looked like an SMF 1 theme, but as you said, it must be on the 'core' theme from which the screenshot was took.  In that case, Starz0r, try the following ....

Themes/core/PersonalMessage.template.php

find
// Show the profile, website, email address, and personal message buttons.

Add BEFORE
// This shows the social media icons.
if ($message['member']['has_messenger'] && $message['member']['can_view_profile'])
echo '
<li class="reset nolist">
<ul>
', !isset($context['disabled_fields']['facebook']) && !empty($message['member']['facebook']['link']) ? '<li>' . $message['member']['facebook']['link'] . '</li>' : '', '
', !isset($context['disabled_fields']['myspace']) && !empty($message['member']['myspace']['link']) ? '<li>' . $message['member']['myspace']['link'] . '</li>' : '', '
', !isset($context['disabled_fields']['twitter']) && !empty($message['member']['twitter']['link']) ? '<li>' . $message['member']['twitter']['link'] . '</li>' : '', '
', !isset($context['disabled_fields']['googleplus']) && !empty($message['member']['googleplus']['link']) ? '<li>' . $message['member']['googleplus']['link'] . '</li>' : '', '
', !isset($context['disabled_fields']['linkedin']) && !empty($message['member']['linkedin']['link']) ? '<li>' . $message['member']['linkedin']['link'] . '</li>' : '', '
', !isset($context['disabled_fields']['youtube']) && !empty($message['member']['youtube']['link']) ? '<li>' . $message['member']['youtube']['link'] . '</li>' : '', '
', !isset($context['disabled_fields']['deviantart']) && !empty($message['member']['deviantart']['link']) ? '<li>' . $message['member']['deviantart']['link'] . '</li>' : '', '
', !isset($context['disabled_fields']['pinterest']) && !empty($message['member']['pinterest']['link']) ? '<li>' . $message['member']['pinterest']['link'] . '</li>' : '', '';


// Any custom fields with Social Media?
if (!empty($message['member']['custom_fields']))
{
$shown = false;
foreach ($message['member']['custom_fields'] as $custom)
{
if ($custom['placement'] != 3 || empty($custom['value']))
continue;
if (empty($shown))
{
$shown = true;
}
echo '
<li><a href="', $custom['value'], '" title="', $custom['title'], ' - ', $custom['value'], '" /><img src="', $settings['images_url'], '/', $custom['customsmiicon'], '" /></a></li>';
}
if ($shown)
echo '
</ul>
</li>';
}



AFTER you make that manual change in the file, then go Install the MOD, and just ignore the error on that file as long as that's the only one.

Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: Starz0r on September 20, 2013, 04:20:14 PM
Quote from: hcfwesker on September 20, 2013, 04:06:28 PM
Ah, I gotcha.  Because it looked like an SMF 1 theme, but as you said, it must be on the 'core' theme from which the screenshot was took.  In that case, Starz0r, try the following ....

Themes/core/PersonalMessage.template.php

find
// Show the profile, website, email address, and personal message buttons.

Add BEFORE
// This shows the social media icons.
if ($message['member']['has_messenger'] && $message['member']['can_view_profile'])
echo '
<li class="reset nolist">
<ul>
', !isset($context['disabled_fields']['facebook']) && !empty($message['member']['facebook']['link']) ? '<li>' . $message['member']['facebook']['link'] . '</li>' : '', '
', !isset($context['disabled_fields']['myspace']) && !empty($message['member']['myspace']['link']) ? '<li>' . $message['member']['myspace']['link'] . '</li>' : '', '
', !isset($context['disabled_fields']['twitter']) && !empty($message['member']['twitter']['link']) ? '<li>' . $message['member']['twitter']['link'] . '</li>' : '', '
', !isset($context['disabled_fields']['googleplus']) && !empty($message['member']['googleplus']['link']) ? '<li>' . $message['member']['googleplus']['link'] . '</li>' : '', '
', !isset($context['disabled_fields']['linkedin']) && !empty($message['member']['linkedin']['link']) ? '<li>' . $message['member']['linkedin']['link'] . '</li>' : '', '
', !isset($context['disabled_fields']['youtube']) && !empty($message['member']['youtube']['link']) ? '<li>' . $message['member']['youtube']['link'] . '</li>' : '', '
', !isset($context['disabled_fields']['deviantart']) && !empty($message['member']['deviantart']['link']) ? '<li>' . $message['member']['deviantart']['link'] . '</li>' : '', '
', !isset($context['disabled_fields']['pinterest']) && !empty($message['member']['pinterest']['link']) ? '<li>' . $message['member']['pinterest']['link'] . '</li>' : '', '';


// Any custom fields with Social Media?
if (!empty($message['member']['custom_fields']))
{
$shown = false;
foreach ($message['member']['custom_fields'] as $custom)
{
if ($custom['placement'] != 3 || empty($custom['value']))
continue;
if (empty($shown))
{
$shown = true;
}
echo '
<li><a href="', $custom['value'], '" title="', $custom['title'], ' - ', $custom['value'], '" /><img src="', $settings['images_url'], '/', $custom['customsmiicon'], '" /></a></li>';
}
if ($shown)
echo '
</ul>
</li>';
}



AFTER you make that manual change in the file, then go Install the MOD, and just ignore the error on that file as long as that's the only one.
Thank you, hopefully this works.
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: hcfwesker on September 20, 2013, 04:35:32 PM
Let us know.  I personally don't like the 'core' theme and choose not to support it with my MODs.  So there may be more required if that doesn't work.
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: Starz0r on September 22, 2013, 04:26:38 PM
Quote from: hcfwesker on September 20, 2013, 04:35:32 PM
Let us know.  I personally don't like the 'core' theme and choose not to support it with my MODs.  So there may be more required if that doesn't work.
Alright, when I did this the icons for the mod seem to be unaligned to the normal Social Media Icons.

ModList:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fpuu.sh%2F4xKbl.png&hash=58694d1f8c7b32aaf41e8861373e014d71473731)
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: hcfwesker on September 22, 2013, 05:14:22 PM
It would be easier for me to help you, if you could post a screenshot, and attach your Display.template.php file
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: NIAB on October 11, 2013, 12:26:51 AM
Hey guys,

This is more dirrected @   hcfwesker

Would you be ablle to make a little extra addon for this so it is possible to users to add authentication codes, and the linking, to their profiles? Reason is I am trying to have feeds/statuses from each of the networks added on their profile page.

Example: http://i.imgur.com/rq5uPPM.png

With Twitter, Instagram, and most others, you need auithentication with their new API. It can all be retreived via RSS, but that can get quite messy.

Let me know if it's possible via reply or PM. Thanks
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: hcfwesker on October 11, 2013, 03:35:57 PM
Kind of confused on what you're asking, because all this does it link to that member's social media profile page (offsite).  It doesn't collect any info from that social media site nor display any info from the social sites in their profile.  They're just favicon's in members profiles that loink to their social site profile. 

<--- like how my profile has the profile and online/offline message image at the bottom of my mini profile, thats all this MOD does is add stuff like that.
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: NIAB on October 11, 2013, 04:44:10 PM
Yeah I know, was just wondering if ya could help me take it a little bit further and enable users to setup feeds on profile pages. All I need is to know how to setup an extra field for it
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: NIAB on October 11, 2013, 07:24:35 PM
Nevermind, checked out your code for installing the mod. It's not too complicated when adding more too it. Hardest part was the SQL, but I got it. I'll post the completed product to show you what I achieved with your awesome mod :) Love it
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: [OG]Anirudh on October 30, 2013, 07:44:22 AM
Help !
see this (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimagefall.neq3.com%2Fimages%2F33062808418921320536.png&hash=5ddfaf6af8e047677e8ed46c4f01464d94d28841)
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: Kindred on October 30, 2013, 07:56:43 AM
looks like you double installed...

you will have to manually uninstall the duplicated code (probably from several files)
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: [OG]Anirudh on October 30, 2013, 07:57:48 AM
Quote from: Kindred on October 30, 2013, 07:56:43 AM
looks like you double installed...

you will have to manually uninstall the duplicated code (probably from several files)
how can i?
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: Kindred on October 30, 2013, 08:04:13 AM
Quote from: Kindred on October 30, 2013, 07:56:43 AM
you will have to manually uninstall the duplicated code (probably from several files)


you will have to manually edit the files....
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: [OG]Anirudh on October 30, 2013, 08:05:19 AM
Quote from: Kindred on October 30, 2013, 08:04:13 AM
Quote from: Kindred on October 30, 2013, 07:56:43 AM
you will have to manually uninstall the duplicated code (probably from several files)


you will have to manually edit the files....
:( no other way..??
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: Kindred on October 30, 2013, 08:07:01 AM
nope
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: hcfwesker on October 31, 2013, 02:48:30 AM
yup, you made a double install, indeed.  if that screen shot is the only page affected, start with Display.template.php and remove the dupliicate code for this mod in that file and go from there. but be sure you know what youre doing before attempting.
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: [OG]Anirudh on October 31, 2013, 09:47:11 AM
ok
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: Anarchology on November 23, 2013, 01:00:27 AM
I've been playing around with this MOD in order to remove a couple unwanted fields as well as add some custom ones. Once of which is add the feature of having a custom one setup that would direct to a member's in-side blog. However, I want to it setup so that by default for every member, the value is not only default (seen already typed in when changing their profile), but also is shown as default under their user info in every post until they otherwise change it to their liking.

I figure that the block of code in the mod that would need to be modified is in Theme/defaul/Profile.Template.php. The original snippet of it for Facebook is below:

<tr>
<td><b>', $txt['smi_facebook_title'], ':</b><div class="smalltext">', $txt['smi_facebook_desc'], '</div></td>
<td><input type="text" name="default_options[facebook]" maxlength="25" size="24" value="', @$context['member']['options']['facebook'], '" /></td>
</tr>


I tried just adding text to value="', but that only created text that then would just disappear. I'm trying to figure out a way to make that default value live for everyone until they manage to go in and change it to their liking. I feel like I'm just some simple snippet of code away from accomplishing it, but I'm scratching my head to say the least.

Thanks in advance!
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: hcfwesker on November 23, 2013, 01:54:13 PM
im on my cellphone atm so can't give any technical help.  but if i understand what you're asking, it means you would have to change the field in the database to have a default value rather than 'null'(no value by default) as it is in the database.

doing this for custom ones you create is actually much simpler, but cant explain off the top of my head until i get home.

please provide me with as much info as possible on what youre trying to do. if it is a custom social icon, post what all info you're using when creating it.  please DO NOT edit any codes in any files related to this mod. it wont do what you're wanting, and break functions for the rest of the Mod icons.

Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: Anarchology on November 24, 2013, 02:29:52 AM
EDIT: Sorry, I just realized I didn't mention I'm using 1.1.19 in my previous post. I now see that 1.1.x and 2.0.x are vastly different in install and setup.

Install details
- Currently on 1.1.19
- Manually installed MOD to the four files
- I never touched the database when installing (i.e. used an executable file to implant tables)
- No Admin panel options as the code is generally easy to work with

Overall, the only files modified have been...
Themes/default/Display.template.php
Themes/default/Profile.template.php
Themes/default/PersonalMessage.template.php
Themes/default/languages/Modifications.english.php

I haven't changed any of the coding, but have removed the codes for Social Networks that wouldn't really apply to the forum like Pinterest and LinkedIn.

Example of what I'm trying to figure out using Facebook for example, and want a default FB profile:

- For example, facebook.com/JohnQPublicccc
- Want JohnQPublicccc to be pre-typed in the field in everyone's profile
- Have the icon show up under their details on every post by default
- The member can change it to whatever they want, but unless they manually change it the default JohnQPublicccc will always show.


Ultimately, I was planning on just modifying the code for the ones I'm not using like Pinterest to add a custom field that would be member blogs that would point to something like blog.mysite.com/[the user's input or otherwise a default page as explained above]. In this case, I assumed I could just then change all parts of the code from let's say 'pinterest' over to 'myblogsite', change the destination address setup, and also the icon.

I hope this helps out. I do understand that the 2.0.2 version of the mod likely comes with more features, and that the Install.php file deals with the database changes. There didn't seem to be an install file needed for 1.1.19.
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: hcfwesker on November 24, 2013, 12:34:47 PM
unfortunately, as stated on the Mod Download page, the create your own icons option, is only available for Smf 2.
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: Bob Perry of Web Presence Consulting on January 25, 2014, 09:07:54 PM
If anyone is interested, I have a method of customizing/tweaking this mod so that spammers cannot exploit it with their stupidity... it only requires one other mod and some minor tweaks to Profile_Modify.php, & what happens is that members will not be able to post anything in selected Profile fields until they make a preset number of successful posts...
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: TheListener on January 25, 2014, 09:09:39 PM
QuoteIf anyone is interested

The mods author is the person to speak to.
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: Bob Perry of Web Presence Consulting on January 25, 2014, 09:15:50 PM
Quote from: Old Fossil on January 25, 2014, 09:09:39 PM
QuoteIf anyone is interested

The mods author is the person to speak to.

Him too, yep
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: NekoJonez on January 31, 2014, 05:29:04 AM
Each time I try to add a new custom icon thingy, it says that I can't add "col_name" in 2.0.7

Is this a bug with my forum or the mod?
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: NekoJonez on February 02, 2014, 08:53:28 AM
So, this mod doesn't work correctly with SMF 2.0.7
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: hcfwesker on February 04, 2014, 10:45:28 PM
Honestly don't know what to tell you, unless you uninstall and reinstall the mod.  Members info will remain intact.  How painsaking as it sounds, check the files and make sure all edits are there.  You may have done some file editing or replacing and something out of the blue could have happened.  I'd recommend starting with ManageSettings.php and Themes/default/Admin.template.php

SELECT col_name, field_name, field_type, bbc, enclose, placement, customsmiicon

And check your database in the {prefix}custom_fields table and make sure customsmiicon is there and on the last column

Just installed on a fresh 2.0.7 forum, clean install, added a test icon, modified it from my profile, with no errors appearing in the Error Log.
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: Bob Perry of Web Presence Consulting on February 04, 2014, 10:48:53 PM
Quote from: NekoJonez on February 02, 2014, 08:53:28 AM
So, this mod doesn't work correctly with SMF 2.0.7

Works fine on my 2.0.7 site...
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: hcfwesker on February 04, 2014, 11:01:55 PM
Quote from: Bob Perry on January 25, 2014, 09:07:54 PM
If anyone is interested, I have a method of customizing/tweaking this mod so that spammers cannot exploit it with their stupidity... it only requires one other mod and some minor tweaks to Profile_Modify.php, & what happens is that members will not be able to post anything in selected Profile fields until they make a preset number of successful posts...

yeah, dumb spambots fill theirs out on my site too with dumb invalid links.  Though, having it with another MOD and cutom coding isn't something I can just add to the MOD, but you're more than welcome to share it.  In time, I could possibly add permissions for these to be modified under member & post group permissions
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: NekoJonez on February 05, 2014, 07:18:45 AM
And, it's fixed. Stupid code duplicating.

Thanks for the support.
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: Jogai on February 06, 2014, 03:47:55 AM
Modifications.dutch.php

$txt['smi_buddies_title'] = 'Sociale Netwerken';
$txt['smi_facebook_title'] = 'Facebook';
$txt['smi_facebook_desc'] = 'Dit is je Facebook gebruikersnaam.';
$txt['smi_myspace_title'] = 'MySpace';
$txt['smi_myspace_desc'] = 'Dit is je MySpace gebruikersnaam.';
$txt['smi_twitter_title'] = 'Twitter';
$txt['smi_twitter_desc'] = 'Dit is je Twitter gebruikersnaam.';
$txt['smi_youtube_title'] = 'Youtube';
$txt['smi_youtube_desc'] = 'Dit is je Youtube gebruikersnaam.';
$txt['smi_deviantart_title'] = 'DeviantArt';
$txt['smi_deviantart_desc'] = 'Dit is je DeviantArt gebruikersnaam.';
$txt['smi_pinterest_title'] = 'Pinterest';
$txt['smi_pinterest_desc'] = 'Dit is je Pinterest gebruikersnaam.';
$txt['smi_googleplus_title'] = 'Google+';
$txt['smi_googleplus_desc'] = 'Dit is je Google+ ID (kan een nummer of een naam zijn).';
$txt['smi_linkedin_title'] = 'LinkedIn';
$txt['smi_linkedin_desc'] = 'Kopieer en plak je LinkedIn profiel link.';
$txt['custom_edit_placement_withsmiicons'] = 'Met Sociale Media Iconen';
$txt['custom_profile_placement_withsmiicons'] = 'Met Sociale Media Iconen';
$txt['custom_smi_enclose'] = '<strong>Sociale Media Iconen (NIET Overslaan!):</strong>';
$txt['custom_smi_enclose_desc'] = 'Dit moet volledig worden ingevuld voor <u>aangepaste Sociale Media Iconen</u>. Klik het <strong>Help</strong> icoon voor gedetailleerde instructies.';
$txt['custom_smiicon_image'] = 'Voeg een aangepast icoon toe';
$txt['custom_smiicon_image_desc'] = 'ALLEEN voor aangepaste iconen. Plaatjes moeten 16x16 pixels groot zijn. <br />Upload plaatjes naar de <strong>Themes/{theme name}/images</strong> map';
$txt['customsmi_images_url'] = '{theme URL}/images/';
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: megalukes on February 08, 2014, 10:19:07 PM
Hey, hcfwesker. I installed the mod manually today but somehow something happened to all my forum posts. In every post, the profile area is blank, only the user's name is shown. Look:

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi584.photobucket.com%2Falbums%2Fss283%2Fmegalukes%2Fmapateste_zps77bc6bee.png&hash=1f85bfcaaa71162da1d43873ba63244f0b4abdcc)

The weird part is that this error only happens with normal members. Members who are part of a member group like Moderators and Admins are normal.

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi584.photobucket.com%2Falbums%2Fss283%2Fmegalukes%2Fmapateste_zps419cd363.png&hash=f78b9083af4868a4c335b6fad4bae8fd84828c27)

I already uninstalled the modification and deleted the database tables related to it manually but the error still persists. Did this ever happened to someone else?
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: TheListener on February 08, 2014, 10:36:54 PM
Have you checked your error log?

Do the members without a group have avatars?

Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: megalukes on February 08, 2014, 10:57:35 PM
There's nothing in the error log. And yes, all normal members have avatars. It's weird because I can look at their profiles and everything is there (image).

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi584.photobucket.com%2Falbums%2Fss283%2Fmegalukes%2Fmapateste_zps9196ab49.png&hash=fd7cde2c1a7d2c31305a950b5eafb1c1c4530ae8)

Everything is ok as you see, it's just that they don't show up on posts for some reason since I installed this mod.
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: Kindred on February 09, 2014, 01:05:25 AM
you, very obviously, made a mistake in adding code to the display.template.php file
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: megalukes on February 09, 2014, 09:01:36 AM
Quote from: Kindred on February 09, 2014, 01:05:25 AM
you, very obviously, made a mistake in adding code to the display.template.php file

Ah. I uploaded the default display.template.php file from smf and now it worked. That's weird because I had reverted all the changes the mode did before. Anyway, thanks for the help guys  ;D
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: Bob Perry of Web Presence Consulting on February 18, 2014, 05:07:26 PM
Congrats on making the top five most popular modules in the modifications section ;)

Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: lmt on February 25, 2014, 10:42:04 AM
This is great! Is there any chance of getting Goodreads added?
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: hcfwesker on February 25, 2014, 12:26:57 PM
Quote from: lmt on February 25, 2014, 10:42:04 AM
This is great! Is there any chance of getting Goodreads added?

ummmm. the purpose of the mod is so you can add your own ;)  check the mod download page for a link to instructions on how to do this.
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: Dzonny on March 15, 2014, 06:59:02 PM
Just wondering, hows this different than default feature in 2.0.x versions, we can add custom fields with icons that would show under the profile info in posts, or I'm missing something? Just wanted to ask...
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: Bob Perry of Web Presence Consulting on March 15, 2014, 07:04:42 PM
Quote from: Dzonny on March 15, 2014, 06:59:02 PM
Just wondering, hows this different than default feature in 2.0.x versions, we can add custom fields with icons that would show under the profile info in posts, or I'm missing something? Just wanted to ask...

not too far off, except that these are not just images they are also links...

Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: Dzonny on March 15, 2014, 07:13:27 PM
Quote from: Bob Perry on March 15, 2014, 07:04:42 PM
Quote from: Dzonny on March 15, 2014, 06:59:02 PM
Just wondering, hows this different than default feature in 2.0.x versions, we can add custom fields with icons that would show under the profile info in posts, or I'm missing something? Just wanted to ask...

not too far off, except that these are not just images they are also links...


Same can be done with custom profile fields...With links ofc. I'm using it on my forum for a while now without any modifications...
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: Kindred on March 15, 2014, 07:54:45 PM
Because this has several defaulted things.... ;)
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: NekoJonez on March 17, 2014, 02:45:36 AM
Question to the mod author.

A time ago, I asked about how to hide the social icon stuff for guests. Maybe this is a nice idea as a feature request for an update...

A setting where you as admin can choose to either hide it or show it for guests? Or add that patch to the new version?
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: Dzonny on March 17, 2014, 01:48:11 PM
@NekoJonez:
Display.template.php
Find:
// This shows the social media icons.
if ($message['member']['has_messenger'] && $message['member']['can_view_profile'])

Replace with:
// This shows the social media icons.
if ($message['member']['has_messenger'] && $message['member']['can_view_profile'] && !$context['user']['is_guest'])


That should work for hiding social stuff from guests in topic display. You'd have to edit other template files in order to hide it in other parts of forum, for example in profile etc. Let us know if this works though, I didn't tested it.
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: hcfwesker on March 17, 2014, 04:34:30 PM
Thanx, Dzonny!  Though, Neko already got this fix a while back.  http://www.simplemachines.org/community/index.php?topic=467074.msg3598238#msg3598238

Not too many others have posted on this so didn't see it as an emergency to update it at the time. :D  One day when I get motivated to open up Notepad I'll try and update the mod with the fix.  Though I usually just update when there's a major addition of sorts to the mod.  A simple search with just the keyword "guests" will pull up that fix, in the meantime.

Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: NekoJonez on March 18, 2014, 07:32:58 AM
If you feel too lazy to do it, I don't mind doing it for you and sending it over to you.
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: PopUpSteve on April 16, 2014, 01:08:02 PM
Great mod, thanks.

If I could make one suggestion, it would be nice if you could check for and strip-out the social media's own URL when saving the info. Members tend to just copy and paste their pages URL and then the social media's URL gets doubled.

The member enters: https://twitter.com/username

which becomes: https://twitter.com/https://twitter.com/username

but should be: username

I know you have noted that in the instructions but when was the last time someone followed the instructions. :D
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: Ground Zero on May 15, 2014, 02:53:03 AM
I love this mod although I have one small request though... How about adding Instagram? ;D
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: NekoJonez on May 15, 2014, 05:07:58 AM
You can add that yourself my friend.
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: AngelVoices on May 24, 2014, 04:22:11 PM
Hi. I cannot get the mod to work. I installed and under Features and Options there is no config for this mod showing up. So I uninstalled and reinstalled and still can't get it to work. I have cleared cache and cookies and refreshed.  I am using default Curve theme 2.0.7.  What am I missing? URL is www.voiceoftheangels.com/spiritualforum Thank you.
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: hcfwesker on May 24, 2014, 07:42:47 PM
Quote from: AngelVoices on May 24, 2014, 04:22:11 PM
Hi. I cannot get the mod to work. I installed and under Features and Options there is no config for this mod showing up. So I uninstalled and reinstalled and still can't get it to work. I have cleared cache and cookies and refreshed.  I am using default Curve theme 2.0.7.  What am I missing?

Did you install version 1.1.0 (most recent)

Did you activate "advanced profile fields"

QuoteAdvanced Profile Fields must be activated under 'Core Features' for this Mod to work

Once you have installed the MOD, activated 'Advanced Profile Fields' follow the instructions in this link, which is also in the MOD description page. Which explains how to add your own icons along with the default installed social icons.   http://www.simplemachines.org/community/index.php?topic=467074.msg3528592#msg3528592

Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: AngelVoices on May 24, 2014, 08:09:53 PM
Yes, I have installed the most recent version. I don't seem to have a Custom Profile Fields option. Where is that located?
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: Arantor on May 24, 2014, 08:12:10 PM
Did you, as directed, go and turn Custom Profile Fields on first in Admin > Configuration > Core Features ?
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: AngelVoices on May 24, 2014, 08:17:13 PM
Ok, now the Custom Profile Field is activated. I don't see any extra profile fields, but I do see check boxes for Twitter, Google, FB, etc. All I have to do is check the boxes? Thank you.
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: Arantor on May 24, 2014, 08:21:12 PM
Yes, you have to tick the boxes under the 'Active' column to make them active...
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: AngelVoices on May 24, 2014, 08:25:15 PM
Yes, I get that part. The boxes are checked off and active. But what I'm saying is I do not see the icons showing up anywhere.
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: AngelVoices on May 24, 2014, 08:44:30 PM
Ok, I got it. You have to add it as a custom field. Done. Not sure if they are showing up yet, but it's all configed. Thank you.
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: hcfwesker on May 24, 2014, 09:36:13 PM
Quote from: AngelVoices on May 24, 2014, 08:44:30 PM
Ok, I got it. You have to add it as a custom field. Done. Not sure if they are showing up yet, but it's all configed. Thank you.

Actually, no, you don't have to add them as a custom field, if you just want to use the defaults that come installed (facebook, twitter, youtube, etc).  You just install the MOD, activate Custom Profile Fields ... then just fill out your information for each under your "Forum Profile" edit page.  The icons will display on forum pages as the MOD page explains.  The icons for each won't appear if members have not filled out info for them ... OR you're using a custom theme, then you'll have to add the images to those themes as well.

IF you want to ADD your own, then yes, activate Custom Profile Fields , then you'll have to add them under the Custom Profile Fields page, where the link I posted up above will explain how that is done.
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: AngelVoices on May 24, 2014, 09:41:52 PM
Ok, thank you. That's a good explanation. I do see they are showing up now. Perfect. Thanks!
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: vbgamer45 on May 25, 2014, 11:45:15 AM
SEO tip if using this mod and a user has google plus

Find in sources/display.php after aound line 401

// Censor the title...
censorText($topicinfo['subject']);
$context['page_title'] = $topicinfo['subject'];

Add after


if (!empty($topicinfo['id_member_started']))
{
    global $memberContext, $user_profile;

if (empty($user_profile[$topicinfo['id_member_started']]))
loadMemberData($topicinfo['id_member_started']);

loadMemberContext($topicinfo['id_member_started']);
   
   if (!empty($memberContext[$topicinfo['id_member_started']]['googleplus']['href']))
        $context['html_headers'] .= '
<link rel="author" href="' .$memberContext[$topicinfo['id_member_started']]['googleplus']['href'].'" />';
}




Final revised version works thanks to Arantor.
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: Arantor on May 25, 2014, 11:50:56 AM
Two extra queries per page without even checking to see if the data is already loaded?

if (!empty($topicinfo['id_member_started']))
{
global $memberContext;
if (empty($memberContext[$topicinfo['id_member_started']]))
{
loadMemberData($topicinfo['id_member_started']);
loadMemberContext($topicinfo['id_member_started']);
}
$context['html_headers'] .= '
<link rel="author" href="' . $memberContext[$topicinfo['id_member_started']]['googleplus']['href'] . '" />';
}
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: vbgamer45 on May 25, 2014, 11:59:42 AM
How so? What would make it better?
It checks if it is empty if it is empty then loads the member data?

Edit ok think I see a couple improvements: Running some tests now.
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: Arantor on May 25, 2014, 12:07:56 PM
Actually... that's not right code I just posted. loadMemberData may have been loaded already for that user, but memberContext may not.

if (!empty($topicinfo['id_member_started']))
{
global $memberContext, $user_profile;
if (empty($user_profile[$topicinfo['id_member_started']]))
loadMemberData($topicinfo['id_member_started']);

loadMemberContext($topicinfo['id_member_started']);
$context['html_headers'] .= '
<link rel="author" href="' . $memberContext[$topicinfo['id_member_started']]['googleplus']['href'] . '" />';
}


Yay for interesting code flow.
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: vbgamer45 on May 25, 2014, 12:09:55 PM
Ok. Just changed it to


if (!empty($topicinfo['id_member_started']))
{
    global $memberContext;
   
    if (!isset($memberContext[$topicinfo['id_member_started']]['googleplus']['href']))
    {
        loadMemberData($topicinfo['id_member_started']);
        loadMemberContext($topicinfo['id_member_started']);
    }
   
   if (!empty($memberContext[$topicinfo['id_member_started']]['googleplus']['href']))
        $context['html_headers'] .= '
<link rel="author" href="' .$memberContext[$topicinfo['id_member_started']]['googleplus']['href'].'" />';
}


But will make another change to get closer to yours
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: vbgamer45 on May 25, 2014, 12:12:15 PM
Final version works thanks to Arantor for performance improvements.


SEO tip if using this mod and a user has google plus

Find in sources/display.php after aound line 401

// Censor the title...
censorText($topicinfo['subject']);
$context['page_title'] = $topicinfo['subject'];

Add after


if (!empty($topicinfo['id_member_started']))
{
    global $memberContext, $user_profile;

if (empty($user_profile[$topicinfo['id_member_started']]))
loadMemberData($topicinfo['id_member_started']);

loadMemberContext($topicinfo['id_member_started']);
   
   if (!empty($memberContext[$topicinfo['id_member_started']]['googleplus']['href']))
        $context['html_headers'] .= '
<link rel="author" href="' .$memberContext[$topicinfo['id_member_started']]['googleplus']['href'].'" />';
}




Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: NekoJonez on May 26, 2014, 05:07:39 AM
At the mod dev. The additional added custom icons... Hidden for guests, is that fixed in the package you can download?

(I know how to fix it, I'm just curious if it's included in the latest version of the mod)
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: Arantor on May 26, 2014, 11:11:48 AM
SMF actually hides most of the normal icons from guests too (just not profile fields) since it's not particularly nice to share things with guests when you're giving out contact details...
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: NekoJonez on June 15, 2014, 11:28:17 AM
Here is a possible idea for a future update:

If there are many social networks to display, let the user choose which ones to display in the posts.
Title: Error with custom profile field
Post by: grimmoire on July 03, 2014, 09:40:03 PM
Hello!

First, thanks for great mod.

I have one small problem when i add custom profile field.

SMF 2.0.8, Add Social Media Icons To Profiles    1.1.0, Orange Crush theme by Mick G. No errors during installation.

For example, i added "vkontakte" field and this is only one field, that i filled in profile. And i get this (in Opera, Firefox and others):

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.pixic.ru%2Fi%2Fi0e0V4z59585K0z1.png&hash=ec872ab720f21e2509fb7152296f29307e8c6466)

<ul class="reset smalltext" id="msg_4_extra_info">
<li class="membergroup">Дипломат | Администратор</li>
<li class="postgroup">Разговорчивый</li>
<li class="stars"><img src="http://board.crownoforion.com/Themes/OrangeCrush/images/diplomat.png" alt="*" /></li>
<li class="avatar">
<a href="http://board.crownoforion.com/index.php?action=profile;u=1">
<img class="avatar" src="http://board.crownoforion.com/index.php?action=dlattach;attach=2;type=avatar" alt="" />
</a>
</li>
<li class="postcount">Сообщений: 53</li>
<li><a href="http://vk.com/grimmoire" title="ВКонтакте - http://vk.com/grimmoire" /><img src="http://board.crownoforion.com/Themes/OrangeCrush/images/smivk.png" /></a></li>
</ul>
</li>
<li class="profile">
<ul>
<li><a href="http://board.crownoforion.com/index.php?action=profile;u=1"><img src="http://board.crownoforion.com/Themes/OrangeCrush/images/icons/profile_sm.gif" alt="Просмотр профиля" title="Просмотр профиля" /></a></li>
<li><a href="http://board.crownoforion.com/index.php?action=pm;sa=send;u=1" title="Личное сообщение (Онлайн)"><img src="http://board.crownoforion.com/Themes/OrangeCrush/images/im_on.gif" alt="Личное сообщение (Онлайн)" /></a></li>
</ul>
</li>
</ul>


But if i filled one of predefined fields (facebook, for example) all displayed fine:

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.pixic.ru%2Fi%2Fp040Q4O5u5m5w093.png&hash=c04bd84d7c05942d15f12c699d88df3c585349e4)

<ul class="reset smalltext" id="msg_4_extra_info">
<li class="membergroup">Дипломат | Администратор</li>
<li class="postgroup">Разговорчивый</li>
<li class="stars"><img src="http://board.crownoforion.com/Themes/OrangeCrush/images/diplomat.png" alt="*" /></li>
<li class="avatar">
<a href="http://board.crownoforion.com/index.php?action=profile;u=1">
<img class="avatar" src="http://board.crownoforion.com/index.php?action=dlattach;attach=2;type=avatar" alt="" />
</a>
</li>
<li class="postcount">Сообщений: 53</li>
<li class="im_icons">
<ul>




</ul>
</li>
<li class="im_icons">
<ul>
<li><a href="http://www.facebook.com/grimuars" target="_blank" title="Facebook - grimuars"><img src="http://board.crownoforion.com/Themes/OrangeCrush/images/smifacebook.png" alt="Facebook" border="0" /></a></li>







<li><a href="http://vk.com/grimmoire" title="ВКонтакте - http://vk.com/grimmoire" /><img src="http://board.crownoforion.com/Themes/OrangeCrush/images/smivk.png" /></a></li>
</ul>
</li>
<li class="profile">
<ul>
<li><a href="http://board.crownoforion.com/index.php?action=profile;u=1"><img src="http://board.crownoforion.com/Themes/OrangeCrush/images/icons/profile_sm.gif" alt="Просмотр профиля" title="Просмотр профиля" /></a></li>
<li><a href="http://board.crownoforion.com/index.php?action=pm;sa=send;u=1" title="Личное сообщение (Онлайн)"><img src="http://board.crownoforion.com/Themes/OrangeCrush/images/im_on.gif" alt="Личное сообщение (Онлайн)" /></a></li>
</ul>
</li>
</ul>


How i can fix this? Thank you!
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: hcfwesker on July 04, 2014, 05:43:20 PM
The edits are based off the SMF Default theme, if you're using a custom theme that may use another css for the "instant messenger icons", you'll need to change the one for the smi icons to match.

<li class="im_icons">

If it already uses those, then try this edit after the mod is installed ...

Display.template.php

Find
// This shows the social media icons.
if ($message['member']['has_messenger'] && $message['member']['can_view_profile'])
echo '
<li class="im_icons">
<ul>


Replace with
// This shows the social media icons.
if ($message['member']['has_messenger'] && $message['member']['can_view_profile'])
echo '
<li class="im_icons">
<ul class="reset nolist">


Basically just the bottom line needs to be changed.



Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: grimmoire on July 07, 2014, 08:00:40 AM
// This shows the social media icons.
if ($message['member']['has_messenger'] && $message['member']['can_view_profile'])
echo '
<li class="im_icons">
<ul class="reset nolist">
', !isset($context['disabled_fields']['facebook']) && !empty($message['member']['facebook']['link']) ? '<li>' . $message['member']['facebook']['link'] . '</li>' : '', '
', !isset($context['disabled_fields']['myspace']) && !empty($message['member']['myspace']['link']) ? '<li>' . $message['member']['myspace']['link'] . '</li>' : '', '
', !isset($context['disabled_fields']['twitter']) && !empty($message['member']['twitter']['link']) ? '<li>' . $message['member']['twitter']['link'] . '</li>' : '', '
', !isset($context['disabled_fields']['googleplus']) && !empty($message['member']['googleplus']['link']) ? '<li>' . $message['member']['googleplus']['link'] . '</li>' : '', '
', !isset($context['disabled_fields']['linkedin']) && !empty($message['member']['linkedin']['link']) ? '<li>' . $message['member']['linkedin']['link'] . '</li>' : '', '
', !isset($context['disabled_fields']['youtube']) && !empty($message['member']['youtube']['link']) ? '<li>' . $message['member']['youtube']['link'] . '</li>' : '', '
', !isset($context['disabled_fields']['deviantart']) && !empty($message['member']['deviantart']['link']) ? '<li>' . $message['member']['deviantart']['link'] . '</li>' : '', '
', !isset($context['disabled_fields']['pinterest']) && !empty($message['member']['pinterest']['link']) ? '<li>' . $message['member']['pinterest']['link'] . '</li>' : '', '';

// Any custom fields with Social Media?
if (!empty($message['member']['custom_fields']))
{
$shown = false;
foreach ($message['member']['custom_fields'] as $custom)
{
if ($custom['placement'] != 3 || empty($custom['value']))
continue;
if (empty($shown))
{
$shown = true;
}
echo '
<li><a href="', $custom['value'], '" title="', $custom['title'], ' - ', $custom['value'], '" /><img src="', $settings['images_url'], '/', $custom['customsmiicon'], '" /></a></li>';
}
if ($shown)
echo '
</ul>
</li>';
}


I replace  <ul> with <ul class="reset nolist">, but nothing changed, i have the same problem...
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: hcfwesker on July 07, 2014, 07:05:11 PM
Sorry, custom themes always give issues with MODs, so gonna do the best I can since I can't test myself.  Since you're not using the default installed ones, try making this change ( the reset nolist is being skipped since you're not using the default ones) ...

// This shows the social media icons.
if ($message['member']['has_messenger'] && $message['member']['can_view_profile'])
echo '
<li class="im_icons">
<ul>


// This shows the social media icons.
echo '<li class="im_icons">
     <ul class="reset nolist">';
if ($message['member']['has_messenger'] && $message['member']['can_view_profile'])
echo '
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: grimmoire on July 07, 2014, 07:42:14 PM
Thank you!

All work's fine now!
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: Steelio on July 11, 2014, 05:10:00 PM
hello, i'm trying to install your mod, but im getting an error instead: "You cannot download or install new packages because the Packages directory or one of the files in it are not writable" the full detail of this can be found here: http://www.simplemachines.org/community/index.php?topic=525033.0

i was wondering if theres a way to install this without need to FTP anything to the server? is there something i should tweak before uploading the mod? please help i've been wanting to install this for a while now.  :-\
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: Arantor on July 11, 2014, 05:13:01 PM
No, because that's a fundamental problem in how SMF actually works - you need to make the files writable and FTP is only one method to doing that.
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: Kindred on July 11, 2014, 05:13:43 PM
That is not a problem with this mod... That is an issue on your server... And will be an issue for ANY mod that you try to install.

You need to make the directories and files writeable.
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: discjocke on September 04, 2014, 11:31:21 AM
I downloaded the Mod for all social networks and nothing shows under members. I do have a separate Twitter on the bottom of post. Do I have to remove that for the all social network options to show?
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: Kindred on September 04, 2014, 12:35:55 PM
did you set the options to use/display the social icons?
Did you install it into your custom theme?
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: discjocke on September 04, 2014, 12:45:11 PM
I haven't done this before, but I did checked the "Show view profile button under post" in "Current themes".

I went to "Packages" and chose download and downloaded the saved file from SMF. Not sure if there's anywhere else to go to change settings or download from another section.

Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: Kindred on September 04, 2014, 01:01:14 PM
yup - go to the advanced profile fields settings and set the fields to on/off
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: discjocke on September 04, 2014, 01:15:19 PM
I can't seem to find that option. Under what category on the left is it? Or do I have to set it in "permissions"?
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: hcfwesker on September 04, 2014, 01:17:52 PM
Quote from: discjocke on September 04, 2014, 12:45:11 PM
I haven't done this before, but I did checked the "Show view profile button under post" in "Current themes".

That has nothing to do with this MOD.   Had you read the MOD description on the download page there are some instructions ...

QuoteCustom Profile Fields must be activated under 'Core Features' for this Mod to work.

Admin > Configuration > Core Features > Click the icon next to Profile Fields to activate them

Also, the images must be added to each theme that you want them displayed on.



Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: discjocke on September 04, 2014, 01:28:42 PM
I have SMF 1.1.19 and don't have the "Congifguration" option showing.

Not many instructions on the Mod download page which is:  http://custom.simplemachines.org/mods/index.php?mod=1910 (http://custom.simplemachines.org/mods/index.php?mod=1910)  for my version.
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: discjocke on September 04, 2014, 01:38:44 PM
I apologize, but the only thing I have under confuration is:
Features and Options
Server Settings
Current Theme
Themes and Layout
Gallery

In "Current Theme", due to there's no "Core Features" I can't find "Profile Fields".
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: hcfwesker on September 04, 2014, 01:48:15 PM
Quote from: discjocke on September 04, 2014, 01:28:42 PM
I have SMF 1.1.19

Information that would have been important when you first posted in this topic.  If noone lists their SMF version, I just assume SMF 2 ;)

And, that's not the page for THIS MOD, here you go .. http://custom.simplemachines.org/mods/index.php?mod=3304

You must have gotten these MODs confused with one another.  That MOD you linked to hasn't been updated since 2009. 
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: discjocke on September 04, 2014, 02:06:00 PM
Interesting that I selected Theme Settings Overview then this: SMF Default Theme - Core (1.1.5)   I'm not that keen on this but shouldn't it show 1.1.9? Here's partial list of options:

There are others checked, but the bottom one's in red are the only relative options I chose to show you. I had Facebook for the part of a post option. Uninstalled it but won't let me delete it from programs installed. I still have Twitter at bottom of a post option.

Select default smiley set for this theme  (Classic)
Show last modification date on modified posts
Show members list bar on board index?
Show current position in forum as link instead of text?
Show view profile button under post?  (checked)
Enable and show 'Mark as Read' buttons?
Enable inline links
Enabling this will cause your current location to be drawn in a single line, as opposed to in a tree-like manner.
Enable SP1 style statistics on board index
Allow users to turn off word censoring?
Show BBC Buttons on Posting and PM Send Pages?
Enable collapsible additional post options
Enable News?
Show news fader on board index
Fading delay between items for the news fader
Show user avatars in message view
Show personal text in message view
Show latest member on board index
Show buttons as images instead of text
Show gender images in message view
Hide post group titles for grouped members?
Enabling this will not display a member's post group title on the message view if they are assigned to a non-post based group.
Display Facebook Like icon?
Enabling this will Display the Facebook Like Icon within posts.
Display Facebook Like icon in all posts?
Enabling this will Display the Facebook Like Icon within all posts. Note Display Facebook Like Icon has to be enabled
Display Twitter Tweet Button? (checked)
Enabling this will Display the Twitter Tweet Button within posts.
Display Twitter Tweet Button in all posts? (checked)
Enabling this will Display the Twitter Tweet Button within all posts, Note that the display Twitter Tweet Button has to be enabled
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: hcfwesker on September 04, 2014, 02:08:14 PM
Yeah, appears you're using a different MOD not related to this one

http://custom.simplemachines.org/mods/index.php?mod=1910 <--- this is an old out of date MOD not supported in this topic
http://www.simplemachines.org/community/index.php?topic=325603.0  <--- support topic for that MOD




Like I said in my previous post, you're asking for support in the wrong Mod Support Topic.

http://custom.simplemachines.org/mods/index.php?mod=3304  <--- this is the MOD supported in this topic
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: discjocke on September 04, 2014, 02:17:29 PM
Thanks. I'll give it a shot. Is there any way I can upgrade my forum a 2.0 forum? I haven't attempted because my forum is mainly news (regarding mainly Ukraine & world news) and can't afford to take chance to have it go down. Please let me know what you recommend. Thank you for your time.
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: discjocke on September 04, 2014, 02:35:50 PM
I found the mistake I was making. I wasn't going into my actual profile from main top (profile) menu. Was trying it all from my Admin menu. Was able to have it show for my Twitter button in profile.  Duh! I'm brain dead.
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: Kindred on September 04, 2014, 03:54:28 PM
but you should upgrade to 2.0.x anyway, since 1.1.x is currently sunset and will be declared End of Life soon (with the release of 2.1).
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: discjocke on September 04, 2014, 03:59:47 PM
Any specific link to the proper setup option?

What I've been trying to do is from my forum is when I post a news article, like I do with Twitter is, to have the article automatically show up on my Facebook account, as it does on my Twitter account. Not doing it.

I'll see what other options I have later. But I'd like to upgrade to 2.0. I just hope I do it right and doesn't disable my my forum for any period of time. Course I'll do a backup. Thanks.
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: Bob Perry of Web Presence Consulting on September 05, 2014, 12:50:04 AM
Quote from: discjocke on September 04, 2014, 03:59:47 PM
Any specific link to the proper setup option?

What I've been trying to do is from my forum is when I post a news article, like I do with Twitter is, to have the article automatically show up on my Facebook account, as it does on my Twitter account. Not doing it.

I'll see what other options I have later. But I'd like to upgrade to 2.0. I just hope I do it right and doesn't disable my my forum for any period of time. Course I'll do a backup. Thanks.

Judging by the other posts in this thread, you may want someone else to do the upgrade for you, it is very easy to screw up converting from your version to 2.0.8, a link to your website would be appropriate for us to evaluate just how much traffic you're getting, a day or two of down time may be in order here...
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: NekoJonez on September 05, 2014, 06:47:32 AM
I have a weird bug. When a member doesn't have a MSN, but does have a social network... It bugs out. The social networks are placed underneath each other and they get those thingies, of the lists.

How can I fix this?
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: Bob Perry of Web Presence Consulting on September 05, 2014, 06:55:17 AM
Quote from: NekoJonez on September 05, 2014, 06:47:32 AM
I have a weird bug. When a member doesn't have a MSN, but does have a social network... It bugs out. The social networks are placed underneath each other and they get those thingies, of the lists.

How can I fix this?

You need to explain a lot clearer what the problem is, "... those thingies" is not adequate, do you have this module installed? error log? SMF version?
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: NekoJonez on September 05, 2014, 06:59:41 AM
I think that this picture explains it:

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi.imgur.com%2FKX13wrY.png&hash=402e466996653a2484f3d183c6e602ac0e5379fe)

And sorry, nothing related to this in the error log. (I only have ban entries. )
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: Kindred on September 05, 2014, 08:14:54 AM
looks like - when you installed the mod (manually?) into your custom theme, the placement of the code in display.template.php was incorrect and was placed INSIDE the other ul/li list.

Check the default theme... does it work there (bet it does)

Anyway, whether it works or not, the FIX is to correct the ordering of code within display.template.php
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: hcfwesker on September 05, 2014, 11:09:09 PM
Quote from: NekoJonez on September 05, 2014, 06:47:32 AM
I have a weird bug. When a member doesn't have a MSN, but does have a social network... It bugs out. The social networks are placed underneath each other and they get those thingies, of the lists.
How can I fix this?

From the previous page ...  http://www.simplemachines.org/community/index.php?topic=467074.msg3716612#msg3716612

There is a layout issue recently reported when the "default installed" icons aren't being used.  I foolishly thought at least 1 would be used :P  That's the temp fix, there in the link.  I have made notes of all these 'bugs' that have popped up, and am actually planning to update with this fixes by next weekend.  But it won't be an upgrade package install like I try to do, those just take so much time to do.  :( 

Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: NekoJonez on September 07, 2014, 08:29:08 AM
It works :) YAY.
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: hcfwesker on September 13, 2014, 08:17:19 PM
v1.2.0 Released!

- Removed Guests viewing of Social Icons in posts & profiles
- Custom Social Links now open in new tabs/windows when clicked
- Fixed alignment issues when default icons were not used


Sorry, there is no upgrade package available! 
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: Bob Perry of Web Presence Consulting on September 13, 2014, 10:56:13 PM
Quote from: hcfwesker on September 13, 2014, 08:17:19 PM
v1.2.0 Released!

- Removed Guests viewing of Social Icons in posts & profiles
- Custom Social Links now open in new tabs/windows when clicked
- Fixed alignment issues when default icons were not used


Sorry, there is no upgrade package available! 

btw, you have a punctuation error in the url link of the image banner in your profile signature
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: hcfwesker on September 13, 2014, 11:38:57 PM
Hooked on Phonics didn't work for me :(  Thanx, bud.
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: minico on September 18, 2014, 10:56:38 PM
Hi,

I have installed this mod and it seems to be working okay, but I do have a couple questions: 

First, I located the icon images in my default theme images folder.  Do I just copy them and upload them into my custom theme images folder to get them to work? 

Second, I have tested all of my social network links in my profile and they are all working except for facebook.  I am copying and pasting the URL without the http://www .facebook.com
When I paste the remainder of the URL, it won't accept the last 4-5 characters of the URL.  Is there away that I can increase the amount of characters that I can paste into the box so that
I can get my address to work? 

Thanks
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: hcfwesker on September 18, 2014, 11:41:39 PM
Quote from: minico on September 18, 2014, 10:56:38 PMFirst, I located the icon images in my default theme images folder.  Do I just copy them and upload them into my custom theme images folder to get them to work? 

Second, I have tested all of my social network links in my profile and they are all working except for facebook.  I am copying and pasting the URL without the http://www .facebook.com
When I paste the remainder of the URL,

Yes, just add them to your custom images folder, as instructed on the MOD page.

And, you don't add your facebook URL, JUST your facebook username at the end of your facebook profile link URL.  https://www.facebook.com/(username)

Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: minico on September 18, 2014, 11:51:17 PM
Okay, thanks about the images!  I have tried just putting my user name in the block and it goes to facebook but says page can't be found.  Any ideas?
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: hcfwesker on September 19, 2014, 12:58:13 AM
whatever the name is you use to login with, use that.  I'm not big on facebook but that's how this MOD has always worked, unless facebook has changed since yesterday.  Goto your home profile page, and your name should be at the end of the URL on that page.  Not your display name, but your actual name you registered with.
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: Kindred on September 19, 2014, 07:38:14 AM
Well, actually, my Facebook url is not actually my username.... 

When you go to your own Facebook page, what is the url?
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: iain sherriff on September 21, 2014, 09:03:03 AM
hcfwesker.
Great mod :)

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.
Looked in index.css ?

Damned if I can find where to change it !
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: 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 (http://www.simplemachines.org/community/index.php?topic=467074.msg3528592#msg3528592)" as the MOD Updates were intended for.

Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: iain sherriff on September 21, 2014, 05:36:29 PM
hmm

It's some time since I installed the Mod.......either I have forgotten how to use it or I have lost the admin area !
Couldn't think why I used the Deviantart as something else .....

Where should the admin area be ?
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: hcfwesker on September 21, 2014, 06:11:42 PM
MOD Description page is your friend: http://custom.simplemachines.org/mods/index.php?mod=3304

I linked it in the previous post the custom icon instructions.  http://www.simplemachines.org/community/index.php?topic=467074.msg3528592#msg3528592

but this only works with the MOD version 1.1.0 or higher. for SMF 2
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: iain sherriff on September 21, 2014, 06:39:28 PM
Thanks.
I uninstalled 1.1.0
and installed 1.2.0.

I can create new fields now and that all works
But I am getting an error with PM's

Parse error: syntax error, unexpected T_ECHO in /home2/turbopb1/public_html/talkingbb.com/Themes/default/PersonalMessage.template.php on line 297


I have tried a manual install on that file to no avail.

Could I ask you to have a look please  :)
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: hcfwesker on September 22, 2014, 12:46:19 AM
I don't remember making changes to that section.  I'll have to look at the parse instructions.

Change
if ((!empty($message['member']['custom_fields']))

To this
if (!empty($message['member']['custom_fields']))

Looks like an extra parenthesis at the start.  Maybe when I went to remove guest viewing in the last update, I went to PM edits then realized in PMs guest wont see them there.   Thanx for the report.  Let me know if that fixes the error.
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: iain sherriff on September 22, 2014, 03:53:10 AM
 :)

Thanks again. That was it.
So my initial problem was  just that I had forgotten how to use the mod  :o
Don't know why I altered Devianart when I first installed though.................
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: iain sherriff on September 22, 2014, 06:34:08 AM
Is there a setting that would stop certain members showing the icons in the mini profile ?

I have couple where they are showing in Profile summary but not in post mini profile ..............

(having played a bit........if I fill in another box in these members profile, then save, ALL the icons then show up in mini profile. If I delete the info from the other box ALL disappear from the mini profile)
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: hcfwesker on September 22, 2014, 07:15:44 PM
Can't duplicate this on my test site.  Every thing is working as it should.  Whether 1 custom icon is used, several, 1 custom and no social icons, and vice versa. 
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: iain sherriff on September 22, 2014, 09:00:10 PM
I now  realise it is the same with every member.
None of the existing icons show in post profile until data is added to a new field.

It is not a big issue as most are updating info anyway and for the rest I am filling one field with "n/a" .

I don't have the icons in the who's online page either.......................
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: hcfwesker on September 22, 2014, 09:17:17 PM
PM me a test member account, and link to the site, so I can see for myself and possibly see what can be done.

Quote from: iain sherriff on September 22, 2014, 09:00:10 PMI don't have the icons in the who's online page either.......................

that was removed once i added settings to create icons in 1.1.0 (http://www.simplemachines.org/community/index.php?topic=467074.msg3528738;topicseen#msg3528738), seeing as some sites may add 15 or 20 custom site links, it would get massively crowded on that page.
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: iain sherriff on September 23, 2014, 03:53:32 AM
I'll PM you, thanks
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: hcfwesker on September 23, 2014, 02:41:48 PM
Quote from: iain sherriff on September 23, 2014, 03:53:32 AM
I'll PM you, thanks

OK, now I see what you mean.  I didn't know you only meant the default icons.  I goofed again, copy/pasting without paying attention.

In Display.template.php

// This shows the social media icons.
echo '<li class="im_icons">
     <ul class="reset nolist">';
if ((!empty($message['member']['custom_fields'])) && !$context['user']['is_guest'])


Replace last line with
if (!$context['user']['is_guest'])
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: iain sherriff on September 23, 2014, 04:32:04 PM
 :)

Thanks for your time.
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: iain sherriff on September 23, 2014, 07:15:08 PM
It's all working faultlessly now  :)

brilliant mod
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: aarontharker on November 19, 2014, 10:52:03 AM
First let me say thanks for the mod.  ;D

Now on to my question, where does the data for the custom fields get stored in the database?  I've found all the standard stuff in the members database and can find the details for the custom fields in custom_fields but can't find where the actual data for the individual users is store for these custom fields?
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: Arantor on November 19, 2014, 10:58:32 AM
Assuming it uses the custom profile fields storage like normal custom fields do, it'll be in the smf_themes table. Long story as to why, but there you go.
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: aarontharker on November 19, 2014, 11:06:52 AM
Quote from: Arantor on November 19, 2014, 10:58:32 AM
Assuming it uses the custom profile fields storage like normal custom fields do, it'll be in the smf_themes table. Long story as to why, but there you go.

Thanks for the reply but I can't find the data in {bd_prefix}themes either.  I'm currently digging through the install.xml to try and find where it is going to but I'm fairly new to SMF so it's slow going :D
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: Arantor on November 19, 2014, 11:08:18 AM
Oh, wait, no, this doesn't use the custom profile fields code. It's stored in the main members table instead.
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: Kindred on November 19, 2014, 11:38:28 AM
yup...   this mod adds columns to the members table
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: Arantor on November 19, 2014, 11:42:59 AM
Yeah I had to go look, thought it would be more logical to bootstrap custom fields as 2.0 has them, personally...
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: aarontharker on November 19, 2014, 06:18:31 PM
Quote from: Kindred on November 19, 2014, 11:38:28 AM
yup...   this mod adds columns to the members table
It adds fields to members for all the hard-coded values i.e. Facebook, MySpace, Deviantart, etc. but not for the custom ones.
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: Arantor on November 19, 2014, 06:22:05 PM
Custom ones are stored in smf_themes like I said. Look for rows where the variable column is cust_* where the * represents the name of the custom field (as referenced in the custom_fields table)
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: aarontharker on November 19, 2014, 06:29:18 PM
Quote from: Arantor on November 19, 2014, 06:22:05 PM
Custom ones are stored in smf_themes like I said. Look for rows where the variable column is cust_* where the * represents the name of the custom field (as referenced in the custom_fields table)

Ah found it sorry.  On my dev board where I'm testing the value had slipped past the 50 results I normally display when browsing the database.
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: Brugrabud on November 25, 2014, 03:01:51 PM
How hard would it be to update this to work with 2.1?  I am eager to test it.
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: Kindred on November 25, 2014, 03:56:30 PM
it will have to be almost completely redesigned


2.1 is just in BETA 1 - expecting mods to be made to work with a beta1 version is just plain silly.
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: hcfwesker on November 27, 2014, 05:33:59 PM
Quote from: Kindred on November 25, 2014, 03:56:30 PMexpecting mods to be made to work with a beta1 version is just plain silly.

Took the words right out of my keyboard :D  Also, thanx for the extra help in here with other members questions.  Always appreciated :)
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: WhiteEagle on December 09, 2014, 08:09:53 PM
Could you perhaps change YouTube to channel from user? JMH preference to link to channels, as users can have multiple channels under one account. ;)
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: Kindred on December 09, 2014, 08:44:24 PM
Well, YOU could change it... Hit I think it would be a mistake for the mod author to change it for the whole mod, since what you are asking for is actually specific to your own desires, not most net standards.
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: hcfwesker on December 09, 2014, 09:10:28 PM
Yeah, definitely not something I would force everyone to use, be default.   You do have 2 options to this for your own forum.

1.  Sources/Load.php

3 places on top one another you'll find

http://www.youtube.com/

And replace that with the url that would lead to member channels.

or 2.   Use the feature in the latest release (http://www.simplemachines.org/community/index.php?topic=467074.msg3528592#msg3528592) to create your own youtube icon, that links to specific member's channels.
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: demlak on February 09, 2015, 03:36:44 PM
on 2.0.9 i get parse error...
see attachment


(https://www.simplemachines.org/community/index.php?action=dlattach;topic=467074.0;attach=240358;image)

any idea how to fix/debug this?
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: hcfwesker on February 10, 2015, 07:52:34 PM
You have to be uploading it wrong, or trying to manually upload files/folders and making a mistake when doing so.  You shouldn't see the "languages.xml" folder on install, but rather each individual languages.php files.  download the latest version of the MOD, and directly upload it to your forum through package manager.  You may have to emulate to smf version 2.0.8, though I have tested and it works on 2.0.9
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: Miker1029 on March 22, 2015, 10:56:54 AM
Hey,

I'm having an Issue with Google+ Showing up in the Profile FIeld, I have It checked (Unchecked and Saved then Re-Checked and Saved),  And The Input box just wont show up, in 1.1 or 1.2.... I've Associated my Account With Google+ (SA Google+ Mod),  But still no show any Ideas?

Mike
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: suhaneankit on March 22, 2015, 12:36:53 PM
Thanks for the mod.

I am having problem with google+ i have given the correct user id in the Google + field but not able to see. Any idea ?
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: suhaneankit on March 28, 2015, 04:57:28 AM
Can somebody help me here! Please have a look at my above reply. :(
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: Miker1029 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
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: Dave J 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
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: hcfwesker on October 21, 2015, 01:33:40 AM
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?
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: Dave J 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
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: 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 (http://www.simplemachines.org/community/index.php?topic=467074.msg3528738#msg3528738) ), 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)
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: Dave J on October 21, 2015, 02:25:10 PM
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 (http://www.simplemachines.org/community/index.php?topic=467074.msg3528738#msg3528738) ), 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.
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: vkot 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
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: Wellwisher on April 11, 2016, 09:24:03 PM
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 (http://www.simplemachines.org/community/index.php?topic=467074.msg3528592#msg3528592)" 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
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: hcfwesker on April 17, 2016, 06:31:45 PM
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.

(https://i.gyazo.com/2c669bdf5e5f6d2a3b744d5123bda21e.png)

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.
Title: Re: Add Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: hcfwesker on April 17, 2016, 06:35:26 PM
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!
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: Wellwisher on April 18, 2016, 04:45:21 AM
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)
Title: Re: Add & Create Social Media Icons To Profiles
Post by: Kindred 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.....
Title: Re: Add & Create Social Media Icons To Profiles
Post by: Wellwisher on April 18, 2016, 08:06:27 AM
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
Title: Re: Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )
Post by: hcfwesker on April 22, 2016, 09:48:16 PM
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
Title: Re: Add & Create Social Media Icons To Profiles
Post by: hcfwesker 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.
Title: Re: Add & Create Social Media Icons To Profiles
Post by: Bob Perry of Web Presence Consulting 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
Title: Re: Add & Create Social Media Icons To Profiles
Post by: Bob Perry of Web Presence Consulting on October 08, 2016, 02:30:30 AM
Just so you know, I got it working on 2.1 beta 3, yay!!
Title: Re: Add & Create Social Media Icons To Profiles
Post by: rickmastfan67 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:
<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. :)
Title: Re: Add & Create Social Media Icons To Profiles
Post by: RobbyJ on August 07, 2018, 10:28:09 AM
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' => ''),



Title: Re: Add & Create Social Media Icons To Profiles
Post by: Kindred on August 07, 2018, 10:57:29 AM
https://wiki.simplemachines.org/smf/Error_in_mod_installation
Title: Re: Add & Create Social Media Icons To Profiles
Post by: Jeremy M. on January 31, 2019, 07:43:12 PM
Quote from: rickmastfan67 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:
<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. :)

I can't find the SMF Install file.  If it's the original one that was deleted after i installed SMF, then I no longer have it.
Title: Re: Add & Create Social Media Icons To Profiles
Post by: Bob Perry of Web Presence Consulting on January 31, 2019, 08:16:06 PM
Quote from: Alexa Lynne on January 31, 2019, 07:43:12 PM
Quote from: rickmastfan67 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:
<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. :)

I can't find the SMF Install file.  If it's the original one that was deleted after i installed SMF, then I no longer have it.

The poster I believe was referring to the install.php file inside the .zip package file, what you'd do is unzip the file onto your hard drive in a temporary folder, edit the file, rezip it, upload to server and after uninstalling old version install edited version and reinstall

It's faster to find the code in the package manager pre-install, go ahead and install original package, do the edit to the installed version, the package manager would be able to show you the correct file
Title: Re: Add & Create Social Media Icons To Profiles
Post by: shadav on August 17, 2019, 09:20:52 PM
Quote from: Bob Perry of Web Presence Consulting 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
do you by chance happen to remember how you fixed this?
I installed it onto 2.0.15 and everything installed fine
but every time I edit my profile and press save they just disappear....
Title: Re: Add & Create Social Media Icons To Profiles
Post by: shadav on August 23, 2019, 05:15:40 PM
i'm trying to get this working on 2.0.15
in  Admin -> Core Features -> Advanced Profile Fields, I have checked them for active but not show on register (I don't want it on the register, they can update their profiles after they register)
advanced profile fields is turned on....
if you modify your forum profile the options are there to fill out your info.... but it is not showing anywhere on the profile or post page....
Title: Re: Add & Create Social Media Icons To Profiles
Post by: GravuTrad on November 14, 2019, 07:01:11 AM
Modifications.french.php:

$txt['smi_buddies_title'] = 'R&eacute;seaux sociaux';
$txt['smi_facebook_title'] = 'Facebook';
$txt['smi_facebook_desc'] = 'Entrez votre nom d\'utilisateur Facebook.';
$txt['smi_myspace_title'] = 'MySpace';
$txt['smi_myspace_desc'] = 'Entrez votre nom d\'utilisateur MySpace.';
$txt['smi_twitter_title'] = 'Twitter';
$txt['smi_twitter_desc'] = 'Entrez votre nom d\'utilisateur Twitter.';
$txt['smi_youtube_title'] = 'Youtube';
$txt['smi_youtube_desc'] = 'Entrez votre nom d\'utilisateur Youtube.';
$txt['smi_deviantart_title'] = 'DeviantArt';
$txt['smi_deviantart_desc'] = 'Entrez votre nom d\'utilisateur DeviantArt.';
$txt['smi_pinterest_title'] = 'Pinterest';
$txt['smi_pinterest_desc'] = 'Entrez votre nom d\'utilisateur Pinterest.';
$txt['smi_googleplus_title'] = 'Google+';
$txt['smi_googleplus_desc'] = 'Entrez votre ID utilisateur Google+.';
$txt['smi_linkedin_title'] = 'LinkedIn';
$txt['smi_linkedin_desc'] = 'Copier coller le lien vers votre profil LinkedIn.';
$txt['custom_edit_placement_withsmiicons'] = 'Avec Ic&ocirc;nes M&eacute;dias Sociaux';
$txt['custom_profile_placement_withsmiicons'] = 'Avec Ic&ocirc;nes M&eacute;dias Sociaux';
$txt['custom_smi_enclose'] = '<strong>Ic&ocirc;nes M&eacute;dias Sociaux (Ne PAS Ignorer!):</strong>';
$txt['custom_smi_enclose_desc'] = 'Pour des <u>Ic&ocirc;nes M&eacute;dias Sociaux personnalis&eacute;s</u>, ceci doit &ecirc;tre rempli. Cliquez sur l\ic&ocirc;ne <strong>Aide</strong> pour les instructions d&eacute;taill&eacute;es.';
$txt['custom_smiicon_image'] = 'Ajouter une image Ic&ocirc;ne M&eacute;dia Social personnalis&eacute;e.';
$txt['custom_smiicon_image_desc'] = 'Uniquement pour les Ic&ocirc;nes M&eacute;dias Sociaux personnalis&eacute;s. Les images doivent &ecirc;tre de taille 16 X 16.<br />T&eacute;l&eacute;charger les images sur le r&eacute;pertoire <strong>Themes/{theme name}/images</strong>';
$txt['customsmi_images_url'] = '{theme URL}/images/';


Helptext should have a file too...
Title: Re: Add & Create Social Media Icons To Profiles
Post by: boutdoor on April 13, 2020, 05:54:56 PM
Everything that I try to install with Social relationship fails the install test. Added a picture below
Title: Re: Add & Create Social Media Icons To Profiles
Post by: Kindred on April 13, 2020, 08:32:23 PM
https://wiki.simplemachines.org/smf/Error_in_mod_installation
Title: Re: Add & Create Social Media Icons To Profiles
Post by: viyatjain on April 19, 2020, 01:49:32 PM
How to Integrate my forum's social media links on home page.

Please check attachment for proper idea.

Thanks
Title: Re: Add & Create Social Media Icons To Profiles
Post by: viyatjain on April 19, 2020, 03:40:59 PM
I'm getting this error

2.   Execute Modification   ./Sources/Load.php   Test failed
   1.   Add After   ./Sources/Load.php   Test failed

what to do now?
Title: Re: Add & Create Social Media Icons To Profiles
Post by: Kindred on April 19, 2020, 05:55:36 PM
Quote from: Kindred on April 13, 2020, 08:32:23 PM
https://wiki.simplemachines.org/smf/Error_in_mod_installation
Title: Re: Add & Create Social Media Icons To Profiles
Post by: viyatjain on April 20, 2020, 04:10:49 AM
Quote from: Kindred on April 19, 2020, 05:55:36 PM
Quote from: Kindred on April 13, 2020, 08:32:23 PM
https://wiki.simplemachines.org/smf/Error_in_mod_installation

Thanks a lot, resolved my problem!
Title: Re: Add & Create Social Media Icons To Profiles
Post by: hcfwesker on January 12, 2021, 11:02:23 AM
I kinda hate how I just left and abandoned this cause I enjoyed my time on SMF.   But roughly 5 years or so ago we migrated to Discord and dropped forums altogether.  Decided to randomly log on back here today for old times sake and check on this mod among other things.
If any other developer wishes to take over this mod for support and updates you have my permission , or if it's already been integrated into an updated version of SMF  then feel free to remove it.  Again I apologize for not being around.  Thanx Kindred for steering others in the right direction along the way with support in my absent. 
Thank You, all.  I went through many forum version until finding SMF and its what we stuck with for many years and enjoyed my time on my old forum as well as hanging out on SMF support forum.  Take care, all :)
Title: Re: Add & Create Social Media Icons To Profiles
Post by: GigaWatt on January 12, 2021, 04:17:25 PM
Quote from: hcfwesker on January 12, 2021, 11:02:23 AM
If any other developer wishes to take over this mod for support and updates you have my permission...

I believe you need to add a license to the mod first. Everything's gotta be licensed now. Doesn't matter which license, WTFPL will do, BUT... you need to add it :-\.
Title: Re: Add & Create Social Media Icons To Profiles
Post by: shadav on February 03, 2021, 11:04:07 AM
this needs a bit of an update for 2.0.18

in Sources/ManageSettings.php

'placement' => array(
'header' => array(
'value' => $txt['custom_profile_placement'],
),
'data' => array(
'function' => create_function('$rowData', '
global $txt;
$placements = array(
0 => \'standard\',
1 => \'withicons\',
2 => \'abovesignature\',
3 => \'withsmiicons\',
);
$placement = empty($rowData[\'placement\']) ? 0 : $rowData[\'placement\'];
return $txt[\'custom_profile_placement_\' . $placements[$placement]];
'),


changed to
'placement' => array(
'header' => array(
'value' => $txt['custom_profile_placement'],
),
'data' => array(
'function' => function($rowData)
{
global $txt, $context;
$placements = array(
0 => 'standard',
1 => 'withicons',
2 => 'abovesignature',
3 => 'withsmiicons',
);
$placement = empty($rowData['placement']) ? 0 : $rowData['placement'];
return $txt['custom_profile_placement_' . $placements[$placement]];
},


and I think it'll work (seems to have worked for me that is)
*thanks to antechinus for helping with it
Title: Re: Add & Create Social Media Icons To Profiles
Post by: pikeman on March 06, 2022, 09:07:59 AM
Hello, is a modification for 2.1 planned?
Title: Re: Add & Create Social Media Icons To Profiles
Post by: Kindred on March 06, 2022, 09:09:49 AM
Not actually needed for 2.0 or 2.1, since custom profile fields is built in
Title: Re: Add & Create Social Media Icons To Profiles
Post by: pikeman on March 06, 2022, 11:38:22 AM
Exactly.(https://vukovisadunava.com/Smileys/mojismajliji/thumbup.gif)