Plugin Directory

Changeset 546247


Ignore:
Timestamp:
05/19/2012 05:36:10 PM (14 years ago)
Author:
nsimon
Message:

Fixed social URLs ending in 'content' to not be displayed, added social chicklet: disqus

Location:
rainmakermoxie/trunk
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • rainmakermoxie/trunk/rainmakermoxie.php

    r546235 r546247  
    55Plugin URI: http://wordpress.org/extend/plugins/rainmakermoxie/
    66Description: Enter an email address and the RainmakerMoxie Plugin retrieves contact information from <a href="http://fullcontact.com">FullContact</a> and displays it in the sidebar. <strong>After activation:</strong> <a href="options-general.php?page=rainmakermoxie/rainmakermoxie.php">click here to configure the Plugin</a>.
    7 Version: 1.1.8
     7Version: 1.1.9
    88Author: Neil Simon
    99Author URI: http://solidcode.com/
     
    3232    {
    3333    // Internal plugin constants
    34     define ('RAINMAKER_MOXIE_PLUGIN_VERSION',                '1.1.8');
     34    define ('RAINMAKER_MOXIE_PLUGIN_VERSION',                '1.1.9');
    3535    define ('RAINMAKER_MOXIE_PLUGIN_VERSION_FOR_HIDDEN_DIV', 'RainmakerMoxie-' . RAINMAKER_MOXIE_PLUGIN_VERSION);
    3636    define ('RAINMAKER_MOXIE_SETTINGS_OPTIONS',              'rainmakerMoxieOptions');
     
    532532                if (($socialProfile->url != "") && ($socialProfile->username != ""))
    533533                    {
     534                    if (substr ($socialProfile->url, -7) == "content")
     535                        {
     536                        // skip: this url (as received from FullContact) will not resolve
     537                        }
     538                    else
     539                        {
     540                        $socialLinks [$socialProfile->type] = array ("type" => $socialProfile->type,
     541                                                                     "url"  => $socialProfile->url);
     542                        }
     543                    }
     544                }
     545
     546            else
     547                {
     548                if (substr ($socialProfile->url, -7) == "content")
     549                    {
     550                    // skip: this url (as received from FullContact) will not resolve
     551                    }
     552                else
     553                    {
     554                    // Add social link
    534555                    $socialLinks [$socialProfile->type] = array ("type" => $socialProfile->type,
    535556                                                                 "url"  => $socialProfile->url);
    536557                    }
    537558                }
    538 
    539             else
    540                 {
    541                 // Add social link
    542                 $socialLinks [$socialProfile->type] = array ("type" => $socialProfile->type,
    543                                                              "url"  => $socialProfile->url);
    544                 }
    545559            }
    546560
     
    569583    // Lookup table for rendering photo avatars
    570584    $chicklets = array ("about.me"        => array ("png" => $imageFolder . "/aboutme.png",         "textToDisplay" => "About Me"),
     585                        "aboutme"         => array ("png" => $imageFolder . "/aboutme.png",         "textToDisplay" => "About Me"),
    571586                        "aim"             => array ("png" => $imageFolder . "/aim.png",             "textToDisplay" => "Aim"),
    572587                        "amazon"          => array ("png" => $imageFolder . "/amazon.png",          "textToDisplay" => "Amazon"),
     
    575590                        "delicious"       => array ("png" => $imageFolder . "/delicious.png",       "textToDisplay" => "Delicious"),
    576591                        "digg"            => array ("png" => $imageFolder . "/digg.png",            "textToDisplay" => "Digg"),
     592                        "disqus"          => array ("png" => $imageFolder . "/disqus.png",          "textToDisplay" => "Disqus"),
    577593                        "dopplr"          => array ("png" => $imageFolder . "/dopplr.png",          "textToDisplay" => "Dopplr"),
    578594                        "dribbble"        => array ("png" => $imageFolder . "/dribbble.png",        "textToDisplay" => "Dribbble"),
     
    595611                        "google reader"   => array ("png" => $imageFolder . "/googlereader.png",    "textToDisplay" => "Google Reader"),
    596612                        "google profile"  => array ("png" => $imageFolder . "/google-profile.png",  "textToDisplay" => "Google Profile"),
     613                        "googleprofile"   => array ("png" => $imageFolder . "/google-profile.png",  "textToDisplay" => "Google Profile"),
    597614                        "googleplus"      => array ("png" => $imageFolder . "/googleplus.png",      "textToDisplay" => "Google+"),
    598615                        "gowalla"         => array ("png" => $imageFolder . "/gowalla.png",         "textToDisplay" => "Gowalla"),
     
    607624                        "lanyrd"          => array ("png" => $imageFolder . "/lanyrd.png",          "textToDisplay" => "Lanyrd"),
    608625                        "last.fm"         => array ("png" => $imageFolder . "/lastfm.png",          "textToDisplay" => "Last.fm"),
     626                        "lastfm"          => array ("png" => $imageFolder . "/lastfm.png",          "textToDisplay" => "Last.fm"),
    609627                        "linkedin"        => array ("png" => $imageFolder . "/linkedin.png",        "textToDisplay" => "LinkedIn"),
    610628                        "livejournal"     => array ("png" => $imageFolder . "/livejournal.png",     "textToDisplay" => "LiveJournal"),
  • rainmakermoxie/trunk/readme.txt

    r546235 r546247  
    7474== Changelog ==
    7575
     76= 1.1.9 : 2012-05-19 =
     77* Fixed social URLs ending in "/content" to not be displayed.
     78* Added social chicklet: disqus.
     79
    7680= 1.1.8 : 2012-05-19 =
    7781* Updated API endpoint to support new verion of the FullContact API.
     
    7983
    8084= 1.1.7 : 2011-08-29 =
    81 * Update registration link to go to new landing page. 
     85* Update registration link to go to new landing page.
    8286* Added social chicklets: fullcontact, peerindex.
    8387
Note: See TracChangeset for help on using the changeset viewer.