Adding users social media account in profile

Started by iqbalresources, September 14, 2022, 06:07:13 AM

Previous topic - Next topic

iqbalresources

I've been looking a way to let user put their social media account in profile. There's a few mods available, but unfortunately outdated. so i'm looking again, to see if there any simple code that i can use, and the closest one as per below

https://www.simplemachines.org/community/index.php?topic=499592.0

so i make a tiny adjustment on the code as shared in above thread, and luckily, able to do that. so here i share the code that i put in 'Show Enclosed Within Text (Optional)' box, in Features and Option>Profile Fields.


Facebook
<a class="facebook" href="http://facebook.com/{INPUT}" target="_blank" title="Facebook - {INPUT}"><img src="{IMAGES_URL}/facebook.png" alt="Facebook - {INPUT}"></a>
Instagram
<a class="instagram" href="http://instagram.com/{INPUT}" target="_blank" title="Instagram - {INPUT}"><img src="{IMAGES_URL}/instagram.png" alt="Instagram - {INPUT}"></a>
Twitter
<a class="twitter" href="http://twitter.com/{INPUT}" target="_blank" title="Twitter - {INPUT}"><img src="{IMAGES_URL}/twitter.png" alt="Twitter - {INPUT}"></a>

and for the image, im put it in theme/images folder (same directory with skype.png)

thank you  :)



Speed King

I think social profile links should be https, not http

iqbalresources


Steve

Shall I edit your first post to indicate that?
Please do not PM me for support.

Advertisement: