[Tip] Social Media Icons in Profile Field Tutorial

Started by ~DS~, April 03, 2010, 02:30:40 AM

Previous topic - Next topic

~DS~

Quote from: Afro on May 05, 2010, 02:59:23 PM
Looks pretty cool.
What if you want to add tweetmeme icon ?
You can add any social medias to your profile, just put the icons in the image folder and path to it in the profile.
"There is no god, and that's the simple truth. If every trace of any single religion were wiped out and nothing were passed on, it would never be created exactly that way again. There might be some other nonsense in its place, but not that exact nonsense. If all of science were wiped out, it would still be true and someone would find a way to figure it all out again."
~Penn Jillette – God, NO! – 2011

~DS~

Quote from: Arantor on April 22, 2010, 05:34:51 PM
I'd check what the options are for FB usernames and have it check it's valid with a regular expression just to be sure.
I am curious about regular expression to valid for social medias with username how?
"There is no god, and that's the simple truth. If every trace of any single religion were wiped out and nothing were passed on, it would never be created exactly that way again. There might be some other nonsense in its place, but not that exact nonsense. If all of science were wiped out, it would still be true and someone would find a way to figure it all out again."
~Penn Jillette – God, NO! – 2011

Arantor

Right now, users can put anything. Literally.

Means that in theory they can add in Javascript into the page and do whatever the hell they want. That's the price of allowing just arbitrary input.

Regular expressions allow you to state what is allowed to be used, what characters are permitted and so on, so I'd be interested to know what characters are allowed in usernames for the sites so that bad input can be filtered out.

nfn13187

#23
ok so I did this prior to reading the thread well sorta.....my new icons for facebook & myspace show up on the actual profile but not on the viewtopic page and everything seems how it should be I think maybe one of the following mods has changed something and is why it's not showing up the mods that are near where the icons should be are "skype integration", "advanced reputation" & "referral mod" ? any clue what file I would need to start looking in and what I'd even begin to be looking for?

*edited part*

I've tried un-installing some of the other mods to see if they are what's interfering with not much luck still.   I did this on another forum I have for a different site with hardly any mods to it except the simpleportal and it worked as intended there so has to be something I've installed that changed code somewhere to make it not work so kinda clueless where to even start looking  to what would affect that area.  I"m using the default 2.0 rc3 theme

~DS~

QuoteShow on Topic View: (This is important if you want the icon to appear)
"There is no god, and that's the simple truth. If every trace of any single religion were wiped out and nothing were passed on, it would never be created exactly that way again. There might be some other nonsense in its place, but not that exact nonsense. If all of science were wiped out, it would still be true and someone would find a way to figure it all out again."
~Penn Jillette – God, NO! – 2011

nfn13187

Quote from: Dismal Shadow on May 11, 2010, 10:11:28 PM
QuoteShow on Topic View: (This is important if you want the icon to appear)

it's checked still not working I'm tyring to move stuff over and redo most of it without mods and use same db atm to try and get it working in case something in the code got written over

~DS~

"There is no god, and that's the simple truth. If every trace of any single religion were wiped out and nothing were passed on, it would never be created exactly that way again. There might be some other nonsense in its place, but not that exact nonsense. If all of science were wiped out, it would still be true and someone would find a way to figure it all out again."
~Penn Jillette – God, NO! – 2011

nfn13187


~DS~

#28
So that's why it's not showing on your topic profile, other members can see yours, you cannot see your own so it's a SP bug.
http://www.simplemachines.org/community/index.php?topic=378770.msg2607095#msg2607095
"There is no god, and that's the simple truth. If every trace of any single religion were wiped out and nothing were passed on, it would never be created exactly that way again. There might be some other nonsense in its place, but not that exact nonsense. If all of science were wiped out, it would still be true and someone would find a way to figure it all out again."
~Penn Jillette – God, NO! – 2011

nfn13187

using simple portal on my other site that this works on also just not on my main site which leads me to believe something I've installed altered the code for the viewtopic page

nfn13187

weird yeah I just noticed I can see it when I log out so yeah you're right but its weird it let me see it while logged in on my other board earlier

~DS~

Try the code fixed provided by [SiNaN] please. :)
"There is no god, and that's the simple truth. If every trace of any single religion were wiped out and nothing were passed on, it would never be created exactly that way again. There might be some other nonsense in its place, but not that exact nonsense. If all of science were wiped out, it would still be true and someone would find a way to figure it all out again."
~Penn Jillette – God, NO! – 2011

nfn13187

yep works after I changed that one line of code :) thanks now to try to figure out my next code probelm for my banner ad thing that breaks the top part of the last post it puts its ad in

Viresh21

Thank you for the great info try the code fixed provided by SiNaN please... :)

businesslounge


Arantor

You can try installing the Custom Profile Fields mod for 1.1.x.

divecall

I have a little Problem with another custom Profil-field.

Looks like there ist a <br> missing.

How i can put the "Twitter" and "Facebook" icon in another Line ?
(Only one member use this in my Forum, so i dont know, if this happend bei all members profils.)

Any Idea ?


steeveo

I'm new to SMF, I have a forum but I'm no programmer of IT tech.  In the first post of this thread you mention "Upload any images to the default theme".  How do I do this, or is it something more technical than adding them through the forum's admin centre?

~DS~

Quote from: steeveo on May 29, 2010, 04:22:52 AM
I'm new to SMF, I have a forum but I'm no programmer of IT tech.  In the first post of this thread you mention "Upload any images to the default theme".  How do I do this, or is it something more technical than adding them through the forum's admin centre?
You need to upload images via FTP to www.yourforum.com/Themes/default/images
Quote from: divecall on May 25, 2010, 07:44:12 PM
I have a little Problem with another custom Profil-field.

Looks like there ist a <br> missing.

How i can put the "Twitter" and "Facebook" icon in another Line ?
(Only one member use this in my Forum, so i dont know, if this happend bei all members profils.)

Any Idea ?
I am not sure why it looks that way, should not have happen since I test many icons and they are in the same line.
Please do tell, what SMF version, how are you adding those code?
"There is no god, and that's the simple truth. If every trace of any single religion were wiped out and nothing were passed on, it would never be created exactly that way again. There might be some other nonsense in its place, but not that exact nonsense. If all of science were wiped out, it would still be true and someone would find a way to figure it all out again."
~Penn Jillette – God, NO! – 2011

divecall


Advertisement: