Advertisement:

Author Topic: [Tip] Social Media Icons in Profile Field Tutorial  (Read 105286 times)

Offline ~DS~

  • SMF Hero
  • ******
  • Posts: 2,599
  • Gender: Male
Re: [Tip] Social Media Icons in Profile Field Tutorial
« Reply #20 on: May 05, 2010, 03:02:40 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

Offline ~DS~

  • SMF Hero
  • ******
  • Posts: 2,599
  • Gender: Male
Re: [Tip] Twitter and Facebook Icons in Profile Field Tutorial
« Reply #21 on: May 09, 2010, 04:55:59 AM »
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

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 71,862
    • StoryBB/StoryBB on GitHub
Re: [Tip] Social Media Icons in Profile Field Tutorial
« Reply #22 on: May 09, 2010, 05:23:53 AM »
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.
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.

Offline nfn13187

  • Semi-Newbie
  • *
  • Posts: 11
Re: [Tip] Social Media Icons in Profile Field Tutorial
« Reply #23 on: May 11, 2010, 08:50:23 PM »
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
« Last Edit: May 11, 2010, 09:09:04 PM by nfn13187 »

Offline ~DS~

  • SMF Hero
  • ******
  • Posts: 2,599
  • Gender: Male
Re: [Tip] Social Media Icons in Profile Field Tutorial
« Reply #24 on: May 11, 2010, 10:11:28 PM »
Quote
Show 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

Offline nfn13187

  • Semi-Newbie
  • *
  • Posts: 11
Re: [Tip] Social Media Icons in Profile Field Tutorial
« Reply #25 on: May 11, 2010, 10:39:42 PM »
Quote
Show 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

Offline ~DS~

  • SMF Hero
  • ******
  • Posts: 2,599
  • Gender: Male
Re: [Tip] Social Media Icons in Profile Field Tutorial
« Reply #26 on: May 11, 2010, 11:03:40 PM »
Are you using SimplePortal by any chances?
“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

Offline nfn13187

  • Semi-Newbie
  • *
  • Posts: 11
Re: [Tip] Social Media Icons in Profile Field Tutorial
« Reply #27 on: May 11, 2010, 11:10:45 PM »
yeah using simpleportal

Offline ~DS~

  • SMF Hero
  • ******
  • Posts: 2,599
  • Gender: Male
Re: [Tip] Social Media Icons in Profile Field Tutorial
« Reply #28 on: May 11, 2010, 11:13:22 PM »
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
« Last Edit: May 11, 2010, 11:17:46 PM by Dismal Shadow »
“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

Offline nfn13187

  • Semi-Newbie
  • *
  • Posts: 11
Re: [Tip] Social Media Icons in Profile Field Tutorial
« Reply #29 on: May 11, 2010, 11:15:03 PM »
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

Offline nfn13187

  • Semi-Newbie
  • *
  • Posts: 11
Re: [Tip] Social Media Icons in Profile Field Tutorial
« Reply #30 on: May 11, 2010, 11:17:05 PM »
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

Offline ~DS~

  • SMF Hero
  • ******
  • Posts: 2,599
  • Gender: Male
Re: [Tip] Social Media Icons in Profile Field Tutorial
« Reply #31 on: May 11, 2010, 11:18:46 PM »
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

Offline nfn13187

  • Semi-Newbie
  • *
  • Posts: 11
Re: [Tip] Social Media Icons in Profile Field Tutorial
« Reply #32 on: May 11, 2010, 11:26:09 PM »
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

Offline Viresh21

  • Newbie
  • *
  • Posts: 1
Re: [Tip] Social Media Icons in Profile Field Tutorial
« Reply #33 on: May 15, 2010, 02:13:13 AM »
Thank you for the great info try the code fixed provided by SiNaN please... :)

Offline businesslounge

  • Semi-Newbie
  • *
  • Posts: 31
Re: [Tip] Social Media Icons in Profile Field Tutorial
« Reply #34 on: May 19, 2010, 09:59:37 AM »
Any way I can add this to SMF 1.1?

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 71,862
    • StoryBB/StoryBB on GitHub
Re: [Tip] Social Media Icons in Profile Field Tutorial
« Reply #35 on: May 19, 2010, 10:09:37 AM »
You can try installing the Custom Profile Fields mod for 1.1.x.
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.

Offline divecall

  • Jr. Member
  • **
  • Posts: 142
Re: [Tip] Social Media Icons in Profile Field Tutorial
« Reply #36 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 ?


Offline steeveo

  • Newbie
  • *
  • Posts: 1
Re: [Tip] Social Media Icons in Profile Field Tutorial
« Reply #37 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?

Offline ~DS~

  • SMF Hero
  • ******
  • Posts: 2,599
  • Gender: Male
Re: [Tip] Social Media Icons in Profile Field Tutorial
« Reply #38 on: May 29, 2010, 08:16:38 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
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

Offline divecall

  • Jr. Member
  • **
  • Posts: 142
Re: [Tip] Social Media Icons in Profile Field Tutorial
« Reply #39 on: May 29, 2010, 06:04:10 PM »
I´m using SMF 2 RC 2 - you have an idea ?