=== Floating Social Media Links === Contributors: celloexpressions Tags: social media, facebook, youtube, twitter, floating frame, links, icons, dynamic width Requires at least: 3.3.0 Tested up to: 3.4.2 Stable tag: 1.4.1 License: GPL2 Add a clean and simple floating frame, with social media and custom links, to your website/blog. Fully customizable with a robust array of easy-to-use options! == Description == Floating Social Media Links is designed to allow anyone to add a simple floating frame to their wordpress website/blog, which contains icons and links to their social media and/or partners' websites. And before you read too far you should know that I'm among those who strongly dislike "floating" animations, so this plugin does a clean simple "stay-in-place" float with no animation for an incredibly clean look. The purpose of this plugin is to give highly customizable options and move away from "like" "share" and "subscribe" buttons in favor of simple, stylish linked icons (although these "action buttons" can still be included). Instead of simply asking visitors to acknowledge their appreciation of your work (by liking or following), this encourages them to also check out your social media content, increasing real social interaction (more so than simply using page "likes" to indicate interaction). As native support for "share" features is rapidly becoming the norm (ie Windows 8, Google Chrome 24 (Canary), Mobile Devices, Safari), it is becoming redundant to clutter your site with buttons that share content, although you can still do so with this plugin; rather, the intent is real interaction with your social media content. My favorite feature amongst the robust array of options is the ability to add up to seven (7) custom links with custom uploadable thumbnails. This allows you to link to your other projects/partners, your blog, or anything else you want right next to your social links. And never a single advertisement, link to my site, or donate button on the admin screens! This plugin features a delicious interface for the admin and is incredibly easy to configure and customize. It follows a set of principles which allows you to only read through as many options as you want, hiding less frequently used options by default and never showing options which are unavailable or irrelevant based on other settings. Easy to use for ANYONE! For web designers and developers, you may customize which pages the frame appears on with your theme templates, and you can use custom, dynamic php-generated links (see the FAQ for details). When updating to version 1.4.0 and higher from 1.3.5 and below, please go to the settings page and click "save options", even if you don't change anything. This will automattically set the defaults for all new options and migrate other important hidden settings that have changed. Please feel free to offer any feature suggestions you might have (through the support forums or by contacting me) and I WILL consider them for future releases. == Installation == 1. Take the easy route and install through the wordpress plugin adder :) OR 1. Download the .zip file and upload the unzipped folder to the `/wp-content/plugins/` directory 1. Activate the plugin through the 'Plugins' menu in WordPress 1. Ensure that the `` and `` action hooks are in your theme's header.php and footer.php files templates 1. Enter your links, choose appearance settings, and set the first general option to "On Every Page" to activate the frame on your site (or place the custom code in your templates) == Frequently Asked Questions == = The frame doesn't show up on my site! = First, make sure that the first general option is set to show the frame on every page, or that you have placed the necessary code in the correct template files if you are showing it on customized pages. Next, check your theme's `header.php` and `footer.php` files for the necessary action hooks (more instructions on the general options settings page). Check your vertical position setting AND UNITS in the appearance settings tab (15px is much different from 15in) - it's possible that your frame is too far down the page to see. If the problems persist, try using a bigger number for the custom layering/z-index (in appearance). If all else fails, try the support forums and someone with html knowledge should be able to find the problem. = How do I use the display on custom pages option? = To use the option to display the frame on customized pages, instead of on every page on your site, you need to be comfortable with editing you're theme's template files (html/php). If you are, siply copy this code: `` and paste it into each template file that is used for the pages that you want (for example, index.php for the main blog page, page.php for the default page template, search.php for the search results page, archives.php for archive pages, etc.). See wordpress' documentation on theme files. Once you find the template files that correspond to the pages you want the frame to appear on, paste the code into the file immediately before the line that says ``. To include dynamic php-generated links, call the floating_social_media_links() function with up to three parameters. Each parameter will override the custom link 1-3 url options, although you still need to set the icon image, link title, and click the show link checkbox in the settings page. If you only want one dynamic link but want it after two other custom links, you can call ``. The parameters will only replace the links if they are (identified by php as) strings. To debug, use the php function `is_string()`. = Where's the settings page? = It's under settings: Settings -> Floating Social Media Links. And on a side note, the tabs on the settings page are showing different parts of the same page, not refreshing the browser, so you can switch between tabs without needing to save. = What about other social media sites? = I realize that there are countless other social media sites which aren't included in this plugin. In order to avoid an extensively bloated plugin and settings page, I have only included the three most popular sites (Facebook, Twitter, and Youtube - in the US). But... one of the reasons I've included space for up to 7 custom links is so that you may include links to any additional social media sites that you wish to. Simply find a version of the site's icon that you like and upload it as the icon, then enter the entire url (including, for example, facebook.com/), and it functions just like any of the built-in links. You can also include action buttons for other sites, as long as they have url-based options (enter the share url as a custom link, then create a share icon and use them in tandem). In version 1.5.0 there will be a completely new architecture which natively supports a very long list of sites and actions natively! Please contact me if you'd like to request native support for a site that isn't listed here. = Why default to customized pages showing the links? = This allows users to enter their links before the frame is actually show on your site. This option replaces an old option to activate the frame output; which would be redundant as this option does essentially the same thing. I try to minimize the number of unuseful options so that I can maximize the useful ones without bloating the plugin and making it take more than a couple minutes to set up. = Why is the twitter icon the bird instead of the t? = When I was preparing the new icon set for version 1.4.0, in order to add support for square corners, I realized that Twitter actually wants people to use the bird, NOT the t (twitter hasn't been using the t for some time now, and no one seems to have noticed). Additionally, this icon is better suited for the cleaner, more streamlined look that this plugin seeks to show (as are all of the new icons). Finally, the t can easily be confused with the t for Tumblr... = My settings for a custom link disapeared when I said to hide it. Can I get them back or do I need to start over? = Any custom links that are hidden from your site will also be hidden from your settings page, by default. All of your settings, however, are saved. Simply click "Add Another Custom Link" and your previous settings will be pre-populated in the form. Note: If you have custom url 2 set, but not custom url 1 (for example), the options for custom url 2 will be hidden and url 1 shown on the options page (not on your site). Please use the custom urls sequentially to avoid this scenario. Eventually, I will introduce the ability to reorder the links, but this is at least 6-10 months out. = How can I include a facebook like / twitter follow / youtube subscribe button in the frame? = Simply go to the "action buttons" tab on the settings page and check the boxes for the buttons that you would like to show. Facebook like buttons do have the potential to increase your page load time though. This is an issue with the facebook SDK, not this plugin, and is present regardless of whether you include the facebook like button with this plugin or elsewhere. = Where are the custom color scheme settings? = Once you click on the "custom" color scheme option, all of the associated settings will appear. In general, options that are dependent on other options are hidden when they aren't available so that you don't need to read and scroll past them (creating a very convinient, user-friendly interface!). = When I switched to a dynamic width mode I lost my border settings and can't find them... = Because CSS borders can't be a percentage width, they will add a certain number of pixels to the width of the frame even if the frame has a percentage width. To avoid this senario, borders are disabled in dynamic width mode, but frame shadows are still allowed to separate the frame from the page background. = Link to facebook homepage? = I could envision a scenario where you might want to do this. Blank links are automatically hidden (as you will rarely want to do something like this), but you can put an 'index.php' or '/' in the facebook url field if you want the homepage. == Screenshots == 1. A collage of uses of the plugin on various sites with various settings (contact me if you want yours to be considered in the next featured set). 2. Parts of Admin Screens 3. Parts of Admin Screens 4. Parts of Admin Screens == Changelog == = 1.4.1 = * Fixed a bug in setting the defualts, which caused cookies to not be enabled by default or set top a numeric length * Caught a couple of minor bugs and spelling errors in the settings * Cleaned up the readme info * Fixed a major bug that affected completely clean installs only, since version 1.3.0. It said that the plugin generated 300 or so characters of unexpected output - wordpress was doing something weird but I worked around it. If anyone notices something like this in the future, please let me know so I can fix it!!! I haven't done completely clean installs for a while, only reseting the defaults, as that part of the code hasn't changed since version 1.0.0; the bug was somewhere else entirely and thus very difficult for me to detect and locate. = 1.4.0 = * Major Update, lots of bugfixes, new features, and enhancements, including a new built-in icon set! * NEW FEATURES: * When a visitor hides the frame on one page, it will remain hidden on every other page they visit on the site or if they refresh the page (if it is reopened, it will remain reopened, etc.). The preference for keeping the frame hidden is kept for one week as a cookie. For sites that start with the frame hidden, note that the frame will never be saved as being in the open position. * The length of the cookie for remembering a hidden frame can be customized. * Ability to prevent facebook like button from overflowing the frame contents (unfortunately, facebook is stubborn with their api and the only way to accomplish this is to make their width the minimmum possible for the frame, but the frame will still resize larger when using this option) * Advanced/detailed options and options that are unavailable are now always hidden as necessary, making the overall user experience less cluttered and faster to use. Want more options? Click the appropriate links and the will be shown. Not using a custom color scheme? Those options won't be shown (a preliminary framework for this system has been in place for a while, but it is now fully implemented accross every options tab). The plugin will also remember your preferrences next time you visit the settings page, even if it's on a different computer. * ENHANCEMENTS: * Upgraded icon set allows full support for square corners on icons and the frame, a much more modern look which will fit better with most websites and is the new default. * New, larger & dynamic width "X" icon for hiding the frame (much easier to hit on touch devices!) * Added opacity/hover effect to the x and + icons to make them more blendable and less distracting (not available on non-html5/css3 browsers, as with rounded corners and shadows) * Restructured html&css output for more streamlined spacing and padding around frame (again) * New update mechanism that makes saving options faster (you still need to "save changes" after most updates though) * Updated screenshots, which now include several examples of the plugin in use. If you want me to add yours with the next version, tell me! * Confirmed compatibility with Wordpress 3.4.2 * BUGFIXES: * Fixed bug with hiding advanced appearance options * The frame is no longer hidden behind the wordpress "logged in toolbar", it's moved down the page accordingly instead; so you don't need to log out or use a different browser to set up vertical positioning! Please note that the animations for closing the frame will display differently without the admin toolbar. * Fixed inconsistencies where certain themes could mess up the appearance of the frame. * The most thuroughly tested and stable version yet! = 1.3.5 = * Fixed a MAJOR bug affecting versions 1.3.1 and higher, which prevented the 1st custom link from working properly. The bug was only present on clean/new installs, not updates, which is why it took so long to discover. * Fixed a secondary bug that was preventing the dynamic php link functionality from working for more than one link, but that was also preventing the major bug fixed in this update from being catastrophic :) = 1.3.4 = * Custom links can be opened in the same or a new tab (set on a per-link basis). Please click "save changes" on the settings page after updating to set all of the custom links to the default (new tab) setting BEFORE making your own settings for this option. * Reordered the options in the appearance tab for more efficient workflow * New option to set a custom z-index (frame layer), in case you need to customize positioning around other elements, such as full-page overlays or other floating frames. * Laying some groundwork for a system which will eventually hide more advanced appearance options by default. For now all of the more highly customizing options in the appearance page are grouped into a section that can be shown/hidden * The plugin now remembers the most recent settings tab visited, and you automatically return to that tab once you save changes, refresh the page, or come back to the settings page later. You can (and should) still move freely between the different tabs without needing to save changes! = 1.3.3 = * Fixed major bug with the "include facebook root" script option that caused it to be included on every site regardless of the option. This should greatly increase performance for users who are including the facebook SDK root elsewhere. = 1.3.2 = * Fixed minor bug with new IE feature (missing space in conditional comment) = 1.3.1 = * Custom link default/placeholder icons replaced with one universal default icon to reduce plugin filesize and remove unnecessary unique placeholders. * Support for compatibility with Internet Explorer 7 and below can be enabled with a checkbox in the general options admin tab. * Improved process of updating from older versions (1.2.0 and below) * Up to three (3) custom links can be dynamically generated with php. Simply set the display option to custom pages, and call the floating_social_media_links() function, which accepts up to three parameters. Each parameter will override the custom link 1-3 url options, although you still need to set the icon image, link title, and click the enable checkbox in the settings page. If you only want one dynamic link but want it after two other custom links, you can call floating_social_media_links(null,null,$dynamically-generated-variable);. = 1.3.0 = * MAJOR Update, with new features, bugfixes, enhancements, greater customization, and a streamlined options page (that didn't get much longer!) * NEW FEATURES: * Frame can start hidden (in show/hide options) * Choice of show/hide animations * Changed plugin output activation to allow option for automatic sitewide display (with the wp_footer hook) or template-specific display with the new floating_social_media_links() hook * To use the custom hook, paste this code into the bottom of each page template you want the links to show up on, right before ``: ``. * A title can be set for the show frame icon (when in the hidden position) * BUG FIXES: * Border displaying in dynamic width when set during fixed width mode * Max-width set on dynamic widths, so dynamic width frames are never too big (more than 100px wide) on large screens * When website is printed, frame is not displayed at all now (previously printed covering up the middle of the website) * Enqueued admin script instead of embeding (should fix isssues where the page tabs, color pickers, and dynamically showing/hiding options didn't work) * ENHANCEMENTS: * Auto-dection/inclusion of leading /, http://, https://, mailto:, or sms: on custom links * Twitter follow button dynamically resizes (never overflows), and uses NO javascript for instant loading * Removed option to hide from the homepage, because of new, more customizable template tag for customizing pages to display frame on = 1.2.1 = * Minor update addressing a couple of minor bugfixes * Ability to hide the floating from from the homepage/blog page (whichever is set as the front page) = 1.2.0 = * Several feature upgrades and additions including: * Ability to disable frame shadow independently of a custom colorscheme * Wide, medium, slight, no, or custom rounded corners on the frame (css border radius) * More extensive options for vertical positioning including support for different units and auto-detection if a custom value has been set * Custom Link icons are no longer restricted to squares, only the width is resized and the height is adjusted accordingly * Support for dynamic width websites has been added, with separate size options for fixed width and dynamic width sites (reduces frequency of frame covering site content) * Completely restructured CSS for greater efficiency, and way fewer external files * /user/ and /!#/ have been removed from youtube and twitter URLs by default, as they are now optional for youtube and twitter (you may add them in with your url extension if desired) * Other minor adjustments, bugfixes, better protection from bad options inputs, and clearer, more intuitive instructions and settings labels = 1.1.0 = * Major upgrades to the user interface, some new options, clearer instructions, a new YouTube subscribe button, and minor bugfixes. * VERY IMPORTANT: ONCE THE UPDATE IS COMPLETE, YOU MUST GO TO THE "LINKS/ICONS" TAB AND CHECK THE "ENABLE LINK" CHECKBOX NEXT TO EACH LINK YOU WANT TO ENABLE. THIS IS A NEW OPTION REPLACING THE DISABLE THIS LINK OPTION (MORE INTUITIVE THIS WAY), AND YOUR DISABLE SETTINGS CANNOT BE TRANSFERED. ALL OTHER SETTINGS ARE PRESERVED. = 1.0.1 = * Fixed margin/spacing errors between links and especially social sharing buttons * Confirmed compatibility with Wordpress 3.4.1 = 1.0.0 = * First publically available version of the plugin. * Compatible with Wordpress 3.3.0 through 3.4.0 = 0.8 = * This and all previous versions are initial development versions == Upgrade Notice == = 1.4.1 = Very minor update with bugfixes for new users. BUT, version 1.4.0 if you haven't gotten it yet, is a major update with many new features, bugfixes, and enhancements. You must click "save changes" on the options page to complete the update process!