Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: Mick. on April 25, 2010, 01:09:23 PM

Title: Flickr Profile Field
Post by: Mick. on April 25, 2010, 01:09:23 PM
Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=2503)

Flickr profile field.   Users can add their Flickr account name in their SMF profile. An icon will be created in the post profile, profile, members list, who's online.  When clicking the icon, they will be redirected to their Flickr personal page.

*1.0 Initial Release
Title: Re: Flickr Profile Field
Post by: Arantor on April 25, 2010, 01:09:41 PM
Slick, about time too :)
Title: Re: Flickr Profile Field
Post by: ~DS~ on July 25, 2010, 12:34:19 AM
This can be done with this: Social Media Icons in Profile Field Tutorial (http://www.simplemachines.org/community/index.php?topic=374284.msg2567139#msg2567139), no?
Title: Re: Flickr Profile Field
Post by: lakelady on May 05, 2011, 12:37:13 AM
I just tried to install this on SMF2.0RC5 and got the message "The package you are trying to download or install is either corrupt or not compatible with this version of SMF."

does it work with rc5? (other rc4 mods have installed just fine).
Title: Re: Flickr Profile Field
Post by: CheeseHead05 on August 10, 2013, 12:51:07 AM
I attempted to add this mod but when I go to make file edits, I cant find the code in the sources/sub-members.php, my notepad++ isn't picking it up..
Title: Re: Flickr Profile Field
Post by: CheeseHead05 on August 13, 2013, 03:28:14 PM
Im having issues with this mod, im attempting to make edits, but my notepad++ cant find those edits..
Title: Re: Flickr Profile Field
Post by: kat on August 13, 2013, 03:35:17 PM
Some examples might be useful, Cheesy...

Installing, in the normal way, is giving errors? What are they, exactly?
Title: Re: Flickr Profile Field
Post by: CheeseHead05 on August 13, 2013, 03:56:53 PM
Yea but the prob is that my notepad++ isnt finding the codes from these failed tests..
Title: Re: Flickr Profile Field
Post by: Mick. on August 13, 2013, 04:00:06 PM
That's prolly you're using a custom theme that has its own profile.template.php? It should install correctly on a default theme without any edits whatsoever.
Title: Re: Flickr Profile Field
Post by: CheeseHead05 on August 13, 2013, 04:10:46 PM
So with my custom theme, can I ignore the failed test or will it cause a parse error?
Title: Re: Flickr Profile Field
Post by: CheeseHead05 on August 14, 2013, 10:51:18 AM
Anyone's answer will be greatly appreciated.
Title: Re: Flickr Profile Field
Post by: CheeseHead05 on August 14, 2013, 10:38:03 PM
[email protected],

Basically like Mick said, since im using a custom theme, its using its own profile.template.php...So my errors are in the Failed Tests on the install page..

.Sources/Load.php:

mem.openid_uri, mem.birthdate, mem.icq, mem.aim, mem.yim, mem.msn, mem.posts, mem.last_login, mem.karma_good,

Replace:
mem.openid_uri, mem.birthdate, mem.icq, mem.aim, mem.yim, mem.msn, mem.flickrprofile, mem.posts, mem.last_login, mem.karma_good,

.Sources/Sub-members.php

Find:
mem.openid_uri, mem.birthdate, mem.icq, mem.aim, mem.yim, mem.msn, mem.posts, mem.last_login, mem.karma_good,

Replace:
$request = $smcFunc['db_query']('', '
SELECT
mem.id_member, mem.member_name, mem.real_name, mem.email_address, mem.icq, mem.aim, mem.yim, mem.msn, mem.flickrprofile,  mem.member_ip, mem.member_ip2, mem.last_login,


./Themes/core/Memberlist.template.php

Find:
// MSN?
if (!isset($context['disabled_fields']['msn']))
echo '
<td class="windowbg2">', $member['msn']['link'], '</td>';


Add before:
// flickrprofile?
if (!isset($context['disabled_fields']['flickrprofile']))
echo '
<td class="windowbg2">', $member['flickrprofile']['link'], '</td>';


I attempting to look for half the code but the rest of the line and surrounding lines are totally different/
Title: Re: Flickr Profile Field
Post by: LightWeightChamp on August 15, 2013, 07:21:45 PM
Hi,

I am new and still learning about these social network modifications. I downloaded this mod but cant find it in my forum. Any help?
Title: Re: Flickr Profile Field
Post by: CheeseHead05 on August 15, 2013, 09:41:39 PM
Nevermind, I figured it out but now I would like to know how can I move it next to my other social network mods. It sits under the "view profile and "email" buttons whereas my facebook icon sits on top of those..I want my flickr to be next to my facebook or atleast under them and have the default icons at the bottom.
Title: Re: Flickr Profile Field
Post by: CheeseHead05 on August 16, 2013, 10:47:14 AM
How can I get the Flick icon to sit under my other social network icons?