Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=3673)
Instagram v2.0
Add Instagram field and icon to your profile!
(http://getpopularfast.com/images/instagram_02.png)
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 (http://www.simplemachines.org/community/index.php?action=profile;u=323252)
(http://i.creativecommons.org/l/by-nc-nd/3.0/88x31.png)
This mod is licensed under a CC BY-NC-ND 3.0 (http://creativecommons.org/licenses/by-nc-nd/3.0/)
been waiting to add Instagram to my profile
i will test and give my feedback
thanks
Much needed mod. Great work and thanks.
Thanks ,
good to hear it's useful :)
Sweet :) Thanks! :)
Have you considered including an edit for the Ultimate Profile mod?
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?
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
;)
Quote from: Old Fossil on May 15, 2013, 11:43:53 AM
Both
;)
Here you go:
// ... 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>';
// 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.
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.
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>';
Thanks Mr P that looks better.
May be an idea for the next version if ya keep the other mods in mind.
;)
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 :)
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?
Cheesy the mod shows in the profile section and a users posts for all members not just admin.
Thanks Old Fossil!
I promise your the best with the helpful answers!
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.
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
Which part are ya having trouble with Cheesy?
If I can't help someone else can.
:)
In the "Installation actions" under Core Theme, Execute Modification fails. So I attempt to find the code it says to find so that I can "add after" with the 2nd code but when I go to find the 1st code, my Notepad++ says that it cant find it.
Is your forum using the core theme?
no, im using a custom theme.
Quote from: CheeseHead05 on May 26, 2013, 02:12:45 AM
no, im using a custom theme.
If the test failed shows in the core theme and you are not using it then you can ignore it.
Ive tried to ignore but it caused a parse error which caused me to have restore my entire forum. I wasnt a happy flower...
Please tell exactly, which theme are you using?
and which code you trying to add to which file?
I not following you yet...
Quote from: CheeseHead05 on May 26, 2013, 02:24:00 AM
Ive tried to ignore but it caused a parse error which caused me to have restore my entire forum. I wasnt a happy flower...
If you want to provide a link to your forum where it is throwing the parse error it will expedite the process.
Quote from: Mr. Pedram on May 26, 2013, 03:54:57 AM
Please tell exactly, which theme are you using?
and which code you trying to add to which file?
I not following you yet...
I am using a custom theme from colorizit and here is the problem:
Execute Modification ./Themes/core/Display.template.php Test failed
1. Add After ./Themes/core/Display.template.php Test failed
Extract File ./Themes/core/images/instagram.png
These are the codes when I hit "Add After"
Find:
', !empty($message['member']['yim']['link']) ? '<li>' . $message['member']['yim']['link'] . '</li>' : '', '
After at:
', !empty($message['member']['instagram']['link']) ? '<li>' . $message['member']['instagram']['link'] . '</li>' : '', '
But my Notepad++ says that it cant find the first code.
ok, please attach your display.template.php here.
@Cheesy
Can you please either use the code (#) tags or more preferably as Mr Pedram requested attach the file as an attachment.
Sorry you guys..
@ Mr. Pedram, please dont scream at me, im still figuring my way thru smf
At Old Fossil,
For the life of me, I followed the instructions to create a new topic but still cant! I clicked on the mod I want and hit "support and Comment" but when it takes me to an old thread that says "create a new topic". but where is the freakin button to do so?
Thanks in advance!
Quote from: CheeseHead05 on May 26, 2013, 02:22:12 PM
Quote from: Mr. Pedram on May 26, 2013, 12:25:22 PM
ok, please attach your display.template.php here.
No, no. please do not copy and paste source code in MS Word file, just attach your custom theme's
display.template.php file here.
I apologize if I may seem a bit slow, but how do I attach the file from the ftp?
Thanks a lot! This mod is working greatly! Thank you for sharing.
Quote from: CheeseHead05 on May 26, 2013, 11:50:11 PM
I apologize if I may seem a bit slow, but how do I attach the file from the ftp?
No Problem, you should copy and paste that file via ftp in your pc, then attach it here.
Quote from: solewind on May 27, 2013, 12:58:58 AM
Thanks a lot! This mod is working greatly! Thank you for sharing.
Welcome, :)
Mr Pedram,
Im still not understanding, can you give me the steps as I am not an expert with the ftp..please be gentle with comments... :)
Well, google is your friend!
Please read this (http://help.yahoo.com/l/us/yahoo/smallbusiness/webhosting/gftp/gftp-05.html). then just copy that file and paste it on your pc then attach it here.
I read your link and attempted. I transferred the file over to my pc using FileZilla but now I cant paste the display.template.php in here..
If you've downloaded the file, you can use the attach function (under the main posting box) to attach the file here...
Arantor,
Ive tried that, but Im trynna figure out how to get the file to appear that box thingy that has the scrolls.
I wondering how you attached that MS word file in this post (http://www.simplemachines.org/community/index.php?topic=499899.msg3551223#msg3551223) !
do this again with this!
I hope this is correct..
Yeah, it's correct, but once i checked your file i found that line you couldn't find,
Quote from: CheeseHead05 on May 26, 2013, 11:12:47 AM
I am using a custom theme from colorizit and here is the problem:
Execute Modification ./Themes/core/Display.template.php Test failed
1. Add After ./Themes/core/Display.template.php Test failed
Extract File ./Themes/core/images/instagram.png
These are the codes when I hit "Add After"
Find:
', !empty($message['member']['yim']['link']) ? '<li>' . $message['member']['yim']['link'] . '</li>' : '', '
After at:
', !empty($message['member']['instagram']['link']) ? '<li>' . $message['member']['instagram']['link'] . '</li>' : '', '
But my Notepad++ says that it cant find the first code.
funny, isn't it?
anyway, now upload this file in your ftp.
Quote from: Mr. Pedram on May 29, 2013, 09:34:51 AM
Yeah, it's correct, but once i checked your file i found that line you couldn't find,
Quote from: CheeseHead05 on May 26, 2013, 11:12:47 AM
I am using a custom theme from colorizit and here is the problem:
Execute Modification ./Themes/core/Display.template.php Test failed
1. Add After ./Themes/core/Display.template.php Test failed
Extract File ./Themes/core/images/instagram.png
These are the codes when I hit "Add After"
Find:
', !empty($message['member']['yim']['link']) ? '<li>' . $message['member']['yim']['link'] . '</li>' : '', '
After at:
', !empty($message['member']['instagram']['link']) ? '<li>' . $message['member']['instagram']['link'] . '</li>' : '', '
But my Notepad++ says that it cant find the first code.
funny, isn't it?
anyway, now upload this file in your ftp.
But did you use Notepad++ ??
Unfortunately I did find the code and added the 2nd code right after, once again it caused a parse error.
I never use Notepad++ for php, and you don't need add code to somewhere. just upload that file i've uploaded.
Quote from: Mr. Pedram on May 30, 2013, 03:50:41 AM
I never use Notepad++ for php, and you don't need add code to somewhere. just upload that file i've uploaded.
Can you please be more specific, upload where?..then this is the last u will hear from pertaining to instagram becauses I know I am beginning to be a headache..Its just that Instagram is a big thing in my area so I have to have this mod.
Upload it to where you copied your display.template.php!
./Themes/yourtheme/
Mr. Pedram
For some reason, this mod is back to causing a parse error, Ive changed the theme tho so maybe thats y...do you mind taking a look at my display.template?
Quote from: CheeseHead05 on August 02, 2013, 10:30:37 AM
Mr. Pedram
For some reason, this mod is back to causing a parse error, Ive changed the theme tho so maybe thats y...do you mind taking a look at my display.template?
What's error?
ok, no proble, attach your display.template.php here, I'll take a look.
Hiya :-)
Sorry, but I can't see where an option for instagram has come up in profile settings. Also with buddies block, it works, but can't view buddies images in profile box. I know no code at all, real beginner, but would know to search in cpanel if needed. After that I'd have to ask how to edit/add safely. EDIT: the instagram option appeared and now I can't find it again, but the icon is showing. Should it show up in Standard Profile Fields, to add to active and registration? Thanks.
Many thanks, Cat
Quote from: Cat McFarlane on August 08, 2013, 01:34:49 PM
Hiya :-)
Sorry, but I can't see where an option for instagram has come up in profile settings. Also with buddies block, it works, but can't view buddies images in profile box. I know no code at all, real beginner, but would know to search in cpanel if needed. After that I'd have to ask how to edit/add safely.
Many thanks, Cat
This post makes no sense.
Any errors on install? Have you tried to see if the mod works on the default theme?
Quote from: Grumpy Old Sod on August 08, 2013, 01:43:31 PM
Quote from: Cat McFarlane on August 08, 2013, 01:34:49 PM
Hiya :-)
Sorry, but I can't see where an option for instagram has come up in profile settings. Also with buddies block, it works, but can't view buddies images in profile box. I know no code at all, real beginner, but would know to search in cpanel if needed. After that I'd have to ask how to edit/add safely.
Many thanks, Cat
Sorry, lol, but I can't see that instagram shows in profile options (to make active and for registration), and the buddies icon appears on profile box display on posts (can add/remove) but can't see avatars of buddies in the profile box display on posts. I didn't know if I'd need to add some code somewhere to be able to see the buddies avatars. The instagram symbol is now showing in the profile box view. Very new to all this, and daren't mess with code/cpanel. Just 3rd day with SMF forum ... love it, and the support forum, but am a real newbie.
Thanks, Cat
This post makes no sense.
Any errors on install? Have you tried to see if the mod works on the default theme?
QuoteAny errors on install? Have you tried to see if the mod works on the default theme?
Sorry, instagram option is showing in own profile, to enter name, but not in the section where I could add this to registration details. Realise have gone a bit off thread with asking about how view avatars of buddies on profile box, but that's the only issue really now, except that I'd like to add instagram onto registration options.
Apologies for confusion. Learning so much and so new to it all.
Thanks, Cat
PS no installation errors; installed perfectly. :)
THIS >
Quote from: Grumpy Old Sod on August 08, 2013, 01:43:31 PM
Have you tried to see if the mod works on the default theme?
@Cat McFarlane. please answer the above question.
Quote from: Mr. Pedram on August 08, 2013, 05:12:41 PM
THIS >
Quote from: Grumpy Old Sod on August 08, 2013, 01:43:31 PM
Have you tried to see if the mod works on the default theme?
@Cat McFarlane. please answer the above question.
Hi Mr Pedram :-) ... apologies about that; so busy with setting up the forum/launch. I've tried it with Curve and it isn't showing. Thanks, Cat
Another question you failed to answer.
QuoteAny errors on install?
In future please make sure you respond to
all questions so we can help as much as possible.
Quote from: Grumpy Old Sod on August 08, 2013, 05:47:55 PM
Another question you failed to answer.
QuoteAny errors on install?
In future please make sure you respond to all questions so we can help as much as possible.
Sorry about being so busy, but I did answer that question. Had a very bad time with support on other forums, and look forward to learning and contributing here a lot.
So you had no test failed messages before installing?
Quote from: Grumpy Old Sod on August 08, 2013, 05:53:51 PM
So you had no test failed messages before installing?
No, it was perfect, applied to every theme fine. :)
Quote from: Cat McFarlane on August 08, 2013, 01:55:59 PM
but not in the section where I could add this to registration details.
but that's the only issue really now, except that I'd like to add instagram onto registration options.
W..Wait a second!
your issue is that you want add instagram to registration?!
Quote from: Mr. Pedram on August 09, 2013, 12:28:10 PM
Quote from: Cat McFarlane on August 08, 2013, 01:55:59 PM
but not in the section where I could add this to registration details.
but that's the only issue really now, except that I'd like to add instagram onto registration options.
W..Wait a second!
your issue is that you want add instagram to registration?!
That would be a really cool thing, yes! ... the forum is an art forum, linked with an art app/game, and the big group I have on fb, who are coming over to the new forum en masse very soon, absolutely love Instagram, plus the app has the option to upload to Instagram and that feature is used a lot. Was so pleased to find your mod; thanks for it, as I know they will all be very excited about using that. The only other issue I'm having is that the buddie avatars of my buddies don't appear in my profile box. Thanks, Cat
Quote from: Mr. Pedram on August 05, 2013, 12:06:49 PM
Quote from: CheeseHead05 on August 02, 2013, 10:30:37 AM
Mr. Pedram
For some reason, this mod is back to causing a parse error, Ive changed the theme tho so maybe thats y...do you mind taking a look at my display.template?
What's error?
ok, no proble, attach your display.template.php here, I'll take a look.
I got mixed up with the parse error, that was from another mod, but when I tried to add ur mod, on my install page where it says "add after", my notepad++ cant find the first code it wants me to search for.
Quote from: Cat McFarlane on August 09, 2013, 01:51:53 PM
Quote from: Mr. Pedram on August 09, 2013, 12:28:10 PM
Quote from: Cat McFarlane on August 08, 2013, 01:55:59 PM
but not in the section where I could add this to registration details.
but that's the only issue really now, except that I'd like to add instagram onto registration options.
W..Wait a second!
your issue is that you want add instagram to registration?!
That would be a really cool thing, yes! ... the forum is an art forum, linked with an art app/game, and the big group I have on fb, who are coming over to the new forum en masse very soon, absolutely love Instagram, plus the app has the option to upload to Instagram and that feature is used a lot. Was so pleased to find your mod; thanks for it, as I know they will all be very excited about using that. The only other issue I'm having is that the buddie avatars of my buddies don't appear in my profile box. Thanks, Cat
So.. this is not an issue! you want a feature and new option for this mod, you have to wait until next update.
about buddies block, please post your question on Buddies Block Support topic, not here.
Quote from: CheeseHead05 on August 09, 2013, 10:14:50 PM
Quote from: Mr. Pedram on August 05, 2013, 12:06:49 PM
Quote from: CheeseHead05 on August 02, 2013, 10:30:37 AM
Mr. Pedram
For some reason, this mod is back to causing a parse error, Ive changed the theme tho so maybe thats y...do you mind taking a look at my display.template?
What's error?
ok, no proble, attach your display.template.php here, I'll take a look.
I got mixed up with the parse error, that was from another mod, but when I tried to add ur mod, on my install page where it says "add after", my notepad++ cant find the first code it wants me to search for.
As i said:
Quoteok, no proble, attach your display.template.php here, I'll take a look.
Quote from: Mr. Pedram on August 10, 2013, 04:16:31 AM
Quote from: Cat McFarlane on August 09, 2013, 01:51:53 PM
Quote from: Mr. Pedram on August 09, 2013, 12:28:10 PM
Quote from: Cat McFarlane on August 08, 2013, 01:55:59 PM
but not in the section where I could add this to registration details.
but that's the only issue really now, except that I'd like to add instagram onto registration options.
W..Wait a second!
your issue is that you want add instagram to registration?!
That would be a really cool thing, yes! ... the forum is an art forum, linked with an art app/game, and the big group I have on fb, who are coming over to the new forum en masse very soon, absolutely love Instagram, plus the app has the option to upload to Instagram and that feature is used a lot. Was so pleased to find your mod; thanks for it, as I know they will all be very excited about using that. The only other issue I'm having is that the buddie avatars of my buddies don't appear in my profile box. Thanks, Cat
So.. this is not an issue! you want a feature and new option for this mod, you have to wait until next update.
about buddies block, please post your question on Buddies Block Support topic, not here.
Quote from: CheeseHead05 on August 09, 2013, 10:14:50 PM
Quote from: Mr. Pedram on August 05, 2013, 12:06:49 PM
Quote from: CheeseHead05 on August 02, 2013, 10:30:37 AM
Mr. Pedram
For some reason, this mod is back to causing a parse error, Ive changed the theme tho so maybe thats y...do you mind taking a look at my display.template?
What's error?
ok, no proble, attach your display.template.php here, I'll take a look.
I got mixed up with the parse error, that was from another mod, but when I tried to add ur mod, on my install page where it says "add after", my notepad++ cant find the first code it wants me to search for.
As i said:
Quoteok, no proble, attach your display.template.php here, I'll take a look.
Apologies, and will do :-)
Here u go.
Ok, replace this file instead yours.
Parse error: syntax error, unexpected ',', expecting ')' in /home/content/97/10932397/html/nikeadidas/Sources/Load.php on line 1289
I got this error.
Quote from: CheeseHead05 on August 18, 2013, 08:39:20 PM
Parse error: syntax error, unexpected ',', expecting ')' in /home/content/97/10932397/html/nikeadidas/Sources/Load.php on line 1289
I got this error.
Attach your file here and let me check.
just installed this mod - website now renders nothing but blank pages. What info do you need from me to troubleshoot? thank you.
Quote from: Goad on April 23, 2014, 01:44:37 PM
just installed this mod - website now renders nothing but blank pages. What info do you need from me to troubleshoot? thank you.
I rolled back one file at a time (renaming the files and restoring to the backup files with the ~ in them) and the site restored fucntionality when I restored the sources/load.php file.
i installed your mod, and my forum blocked, all white page, no way to uninstall, i have to go to parse to uninstal manually, but i think there are a error in load.php file, a more comma, it find, my english sucks i know
Quote from: fapencio on May 07, 2014, 07:25:36 PM
i installed your mod, and my forum blocked, all white page, no way to uninstall, i have to go to parse to uninstal manually, but i think there are a error in load.php file, a more comma, it find, my english sucks i know
it's not related to this mod, for making sure, i installed mod on a forum and it works and then uninstalled successfully.
look like you this mod conflict with other mod you have. did you installed mod successfully?
Quote from: Mr. Pedram on May 08, 2014, 04:37:15 AM
Quote from: fapencio on May 07, 2014, 07:25:36 PM
i installed your mod, and my forum blocked, all white page, no way to uninstall, i have to go to parse to uninstal manually, but i think there are a error in load.php file, a more comma, it find, my english sucks i know
it's not related to this mod, for making sure, i installed mod on a forum and it works and then uninstalled successfully.
look like you this mod conflict with other mod you have. did you installed mod successfully?
yep, successfully, but when i uninstalled the mod, i see a little bug with a comma, in load.php, thats all
The guy's correct... Just installed the mod today but fixed it in no time... ;)
foreach (array('icq', 'msn', 'aim', 'yim', 'instagram',, 'facebook', 'myspace', 'twitter', 'googleplus', 'linkedin', 'youtube', 'deviantart', 'pinterest') as $messenger)
If you'll notice from the above code, the comma after instagram was doubled which is causing the error... Just remove the extra comma and everything will be back to normal... :)
Thanks guys, mod updated.
Love this mod. I use it on my Instagram shoutouts website. Thanks for the developer :)
You solved part of my SMF problem.
Thanks.