Add & Create Social Media Icons To Profiles

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

Previous topic - Next topic

OzzyMozzy

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

TheListener

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.

:)

TheListener

Tested the mod and found a possible error using the Ultimate Profile.

When the fields are empty the links are still shown.


hcfwesker

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

TheListener

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?

hcfwesker

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?

TheListener


hcfwesker

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

CheeseHead05


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.


hcfwesker

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. 

CheeseHead05

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

hcfwesker

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

hcfwesker

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

CheeseHead05

Thanks hcfwesker...I will let u know if i run across any problems..

CheeseHead05

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

CheeseHead05


hcfwesker

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.





CheeseHead05

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

CheeseHead05


hcfwesker

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


Advertisement: