/*
Plugin Name: Link Shortcut
Plugin URI: http://www.husani.com/ventures/wordpress-plugins/linkshortcut
Description: Create and manage TinyURL-like URLs that redirect to pages both inside and outside your blog. Must have non-default permalink structure set (i.e., other than yoursite.com?p=87) or this plugin will not work. Get help at support forums and sign up for the mailing list to receive updates and news. By Husani Oakley.
Version: 1.4
*/
/* Copyright 2009 Husani Oakley (email : wordpressplugins@husani.com)
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
/** SETTINGS AND REQUIRED FILES */
define("LINKSHORTCUT_NAME", "/link-shortcut");
define("LINKSHORTCUT_UI_LOC", ABSPATH . PLUGINDIR . LINKSHORTCUT_NAME . "/admin");
require_once(ABSPATH . PLUGINDIR . LINKSHORTCUT_NAME . "/lib/Linkshortcut.php");
require_once(ABSPATH . PLUGINDIR . LINKSHORTCUT_NAME . "/lib/LinkshortcutInstaller.php");
require_once(ABSPATH . PLUGINDIR . LINKSHORTCUT_NAME . "/lib/LinkshortcutAdmin.php");
require_once(ABSPATH . PLUGINDIR . LINKSHORTCUT_NAME . "/lib/LinkshortcutDataManager.php");
//grab control of the flow during template_redirect.
add_action('template_redirect', 'linkshortcut');
/**
* MAIN WORK FUNCTION. At this point, we know if WP has found the content. if we're a
* 404, we'll check to see if it's a linkshortcut. if it is, redirect; otherwise, do nothing
* and let WP continue with the error process.
*/
function linkshortcut(){
global $wp_query;
//are we a 404?
if(is_404()){
//yes. send to linkshortcut, which will determine if we redirect or not.
$LinkshortcutManager = new LinkshortcutManager;
$LinkshortcutManager->go();
}
}
/********* HOOKS AND ACTIONS REGISTRATION FOR INSTALL/UNINSTALL AND ADMIN PANELS ***********/
/** create options page and menu structure/pages */
add_action('admin_menu', 'linkshortcutAdminMenuCreation');
function linkshortcutAdminMenuCreation() {
$LinkshortcutAdmin = new LinkshortcutAdmin();
add_menu_page("Link Shortcuts", "Link Shortcuts", 8, 'linkshortcut_list', array($LinkshortcutAdmin, 'displayMain'));
add_submenu_page('linkshortcut_list', "addnew", "Add New", 8, 'linkshortcut_addnew', array($LinkshortcutAdmin, 'displayAddNewForm'));
if(is_admin()){
//include javascript
add_action('wp_print_scripts', array($LinkshortcutAdmin,'displayJS'));
}
add_options_page('Link Shortcut Options', 'Link Shortcut Options', 8, 'linkshortcut_options', array($LinkshortcutAdmin, 'displayOptionsPanel'));
}
/** set up ajax for admin custom ident check */
$LinkshortcutAdmin = new LinkshortcutAdmin();
add_action('wp_ajax_linkshortcut_check_ident', array($LinkshortcutAdmin, 'checkIdentWithAjax'));
/** register activation/deactivation hooks. since i can't seem to get a class's method used as a callback, doing it ghetto style. */
$LinkshortcutInstaller = new LinkshortcutInstaller;
register_activation_hook(__FILE__,array($LinkshortcutInstaller,'doInstall'));
register_deactivation_hook(__FILE__,array($LinkshortcutInstaller,'doUninstall'));
?>
How to Encourage Engagement with Facebook - JONMOSS Online
Social media platforms like Facebook, Twitter, Instagram, and LinkedIn can drive significant traffic to your website. By sharing relevant content, engaging with your audience, and using targeted advertising, you can increase your brand’s visibility and attract more visitors. Here are just a few ways to encourage engagement with your Facebook posts and increase the chances of it going viral:
Use eye-catching visuals: The first thing that catches people’s attention on Facebook is an eye-catching visual. Use high-quality images or videos that are relevant to your post and make sure they are properly formatted and sized for the platform.
Create engaging content: Your content should be informative, entertaining, or thought-provoking to encourage engagement. Use captions, questions, or statements that prompt people to respond and start a conversation.
Post at the right time: Posting at the right time is crucial for getting maximum engagement. Monitor your Facebook Insights to see when your audience is most active and post during those times.
Use hashtags: Hashtags can increase the reach of your post beyond your followers. Use relevant and popular hashtags to increase the chances of your post being discovered by new people.
Encourage sharing: Encourage people to share your post by creating shareable content. Create posts that provide value or elicit an emotional response, and include a call-to-action asking people to share.
Run a contest or giveaway: Contests or giveaways can increase engagement and virality. Ask people to like, comment, or share your post to participate and offer an incentive, such as a prize or discount, for their participation.
Respond to comments: Responding to comments shows that you value your audience and encourages more engagement. Engage in conversations with your followers, answer their questions, and thank them for their support.
Can you think of any more?
Please feel free to leave a comment below to share your thoughts and help others encourage engagement with Facebook posts.