News:

SMF 2.1.3 has been released! Take it for a spin! Read more.

Main Menu

Instagram

Started by Mr. Pedram, March 17, 2013, 06:35:19 AM

Previous topic - Next topic

Mr. Pedram

Link to Mod

Instagram v2.0
Add Instagram field and icon to your profile!



Compatibility
SMF 2.0

Changelog
(update v2.0: 16 May 2014)
* Comma bug fixed in load.php

(update v2.0: 16 May 2013)
* Bug fixed in profile-modify.php
* Support Ultimate Profile mod

Mod by: Mr. Pedram


This mod is licensed under a CC BY-NC-ND 3.0
My Modifications:
» Loading For SMF
» Buddies Block
» Redirect Links
» Birthdate On Registration
» PM Warning
» Instagram
» Add Table,Td,Tr Button
» Search Topic & Board Button
Browse All...

johnpaul2k2

been waiting to add Instagram to my profile

i will test and give my feedback

thanks

Colin

Much needed mod. Great work and thanks.
"If everybody is thinking alike, then somebody is not thinking." - Gen. George S. Patton Jr.

Colin

Mr. Pedram

Thanks ,
good to hear it's useful :)
My Modifications:
» Loading For SMF
» Buddies Block
» Redirect Links
» Birthdate On Registration
» PM Warning
» Instagram
» Add Table,Td,Tr Button
» Search Topic & Board Button
Browse All...

Dzonny


Mr. Pedram

My Modifications:
» Loading For SMF
» Buddies Block
» Redirect Links
» Birthdate On Registration
» PM Warning
» Instagram
» Add Table,Td,Tr Button
» Search Topic & Board Button
Browse All...

TheListener

Have you considered including an edit for the Ultimate Profile mod?

Mr. Pedram

Quote from: Old Fossil on May 13, 2013, 08:13:16 PM
Have you considered including an edit for the Ultimate Profile mod?

Actually no, i've never work with Ultimate Profile mod, but think work with that perfectly. don't know.
If someone need to install Instagram on Ultimate Profile, please let me know. I'll take a look.

Do you need this @Old Fossil already or it was just a suggestion?
My Modifications:
» Loading For SMF
» Buddies Block
» Redirect Links
» Birthdate On Registration
» PM Warning
» Instagram
» Add Table,Td,Tr Button
» Search Topic & Board Button
Browse All...

TheListener

Quote from: Mr. Pedram on May 14, 2013, 02:33:38 AM
Quote from: Old Fossil on May 13, 2013, 08:13:16 PM
Have you considered including an edit for the Ultimate Profile mod?

Actually no, i've never work with Ultimate Profile mod, but think work with that perfectly. don't know.
If someone need to install Instagram on Ultimate Profile, please let me know. I'll take a look.

Do you need this @Old Fossil already or it was just a suggestion?

Both

;)

Mr. Pedram

Quote from: Old Fossil on May 15, 2013, 11:43:53 AM
Both

;)

Here you go:

Code (Find this on ultimateProfile.template.php) Select
// ... Or if the one looking at the profile is an admin they can see it anyway.
elseif ($context['member']['show_email'] == 'yes_permission_override')
echo '
<em><a href="', $scripturl, '?action=emailuser;sa=email;uid=', $context['member']['id'], '">', $context['member']['email'], '</a></em>';
else
echo '
<em>', $txt['hidden'], '</em>';


Code (Add after) Select
// Instagram!

if (!isset($context['disabled_fields']['instagram']) && !empty($context['member']['instagram']['link']))
echo '
<dt><img src="', $settings['images_url'] ,'/instagram.png" alt="', $txt['instagram'], '" /></dt>
<dd>';

echo '
<a href="', $context['member']['instagram']['href'] ,'">', $context['member']['instagram']['name'] ,'</a>';


or re-install the mod. i updated the mod with support ultimate profile.
My Modifications:
» Loading For SMF
» Buddies Block
» Redirect Links
» Birthdate On Registration
» PM Warning
» Instagram
» Add Table,Td,Tr Button
» Search Topic & Board Button
Browse All...

TheListener

I added it the lazy way.

::)

Anyways if ya look at the attached imaged the link should be above the email and not below.

I tried to move it but had no luck.


Mr. Pedram

Well, you are using a Social Media Icons mod , so forget the prev way and use this:

Find:

if (!isset($context['disabled_fields']['msn']) && !empty($context['member']['msn']['link']))
echo '
<dt><img src="', $settings['images_url'] ,'/msntalk.gif" alt="', $txt['msn'], '" /></dt>
<dd>', $context['member']['msn']['link_text'], '</dd>';


Add after:

// Instagram!

if (!isset($context['disabled_fields']['instagram']) && !empty($context['member']['instagram']['link']))
echo '
<dt><img src="', $settings['images_url'] ,'/instagram.png" alt="', $txt['instagram'], '" /></dt>
<dd>';

echo '
<a href="', $context['member']['instagram']['href'] ,'">', $context['member']['instagram']['name'] ,'</a>';
My Modifications:
» Loading For SMF
» Buddies Block
» Redirect Links
» Birthdate On Registration
» PM Warning
» Instagram
» Add Table,Td,Tr Button
» Search Topic & Board Button
Browse All...

TheListener

Thanks Mr P that looks better.

May be an idea for the next version if ya keep the other mods in mind.

;)

Mr. Pedram

Quote from: Old Fossil on May 16, 2013, 05:05:44 PM
Thanks Mr P that looks better.

May be an idea for the next version if ya keep the other mods in mind.

;)

you're welcome.
Of course :)
My Modifications:
» Loading For SMF
» Buddies Block
» Redirect Links
» Birthdate On Registration
» PM Warning
» Instagram
» Add Table,Td,Tr Button
» Search Topic & Board Button
Browse All...

CheeseHead05

Will this mod only show in the admin profile or will it show for all members in the forum profile, kind of like the ADD AND CREATE SOCIAL MEDIA ICONS TO PROFILE mod?

TheListener

Cheesy the mod shows in the profile section and a users posts for all members not just admin.

CheeseHead05

Thanks Old Fossil!

I promise your the best with the helpful answers!

TheListener

Quote from: CheeseHead05 on May 22, 2013, 02:09:10 PM
Thanks Old Fossil!

I promise your the best with the helpful answers!

Careful I blush easy lol.

This is just one of 68 mods on my forum so I knew the answer already lol.

CheeseHead05

Mr. Pedram,

I attempted to install this mod but when I go to add in the code, i get a "cant find........" on my Notepad++, can you please help because I really want this mod installed for my forum.

Thanks in advance

Old Fossil,

You blush easily ehh? lol

TheListener

Which part are ya having trouble with Cheesy?

If I can't help someone else can.

:)

Advertisement: