settings["style"] = $_POST["style"]; $this->settings["format"] = $_POST["format"]; $this->settings["redirect"] = $_POST["redirect"]; $this->settings["posts_enabled"] = ($_POST["posts_enabled"] == "checked") ? true : false; $this->settings["pages_enabled"] = ($_POST["pages_enabled"] == "checked") ? true : false; $this->settings["attachments_enabled"] = ($_POST["attachments_enabled"] == "checked") ? true : false; $this->settings["twitter_tools_fix"] = ($_POST["twitter_tools_fix"] == "checked") ? true : false; $this->settings["askapache_google_404"] = ($_POST["askapache_google_404"] == "checked") ? true : false; $this->settings["tweet_this_fix"] = ($_POST["tweet_this_fix"] == "checked") ? true : false; $this->settings["sociable_fix"] = ($_POST["sociable_fix"] == "checked") ? true : false; $this->settings["ga_tracking"] = $_POST["ga_tracking"]; $this->settings["html_shortlink_rel"] = ($_POST["html_shortlink_rel"] == "checked") ? true : false; $this->settings["http_shortlink_rel"] = ($_POST["http_shortlink_rel"] == "checked") ? true : false; $this->settings["rel_canonical"] = ($_POST["rel_canonical"] == "checked") ? true : false; update_option("twitter_friendly_links", $this->settings); } $style = $this->settings["style"]; $format = $this->settings["format"]; $redirect = $this->settings["redirect"]; $posts_enabled = ($this->settings["posts_enabled"]) ? "checked" : ""; $pages_enabled = ($this->settings["pages_enabled"]) ? "checked" : ""; $attachments_enabled = ($this->settings["attachments_enabled"]) ? "checked" : ""; $twitter_tools_fix = ($this->settings["twitter_tools_fix"]) ? "checked" : ""; $askapache_google_404 = ($this->settings["askapache_google_404"]) ? "checked" : ""; $tweet_this_fix = ($this->settings["tweet_this_fix"]) ? "checked" : ""; $sociable_fix = ($this->settings["sociable_fix"]) ? "checked" : ""; $ga_tracking = $this->settings["ga_tracking"]; $html_shortlink_rel = ($this->settings["html_shortlink_rel"]) ? "checked" : ""; $http_shortlink_rel = ($this->settings["http_shortlink_rel"]) ? "checked" : ""; $rel_canonical = ($this->settings["rel_canonical"]) ? "checked" : ""; $selected[$redirect] = " selected=\"selected\""; $selected[$format] = " selected=\"selected\""; if ($format == "generic") $link_preview = "123"; elseif ($format = "base32") $link_preview = "7e1"; ?>
Make sure you get this right from the first time because changing this afterward will affect all your previous twitter friendly links and you're most likely to get 404 error messages on your old links. For more information please visit Twitter Friendly Links. Oh and make sure you save changes before copying any links from the table below.
| Title | Friendly Link | |
|---|---|---|
| Title | Friendly Link | |
| Posts are disabled | ||
| . | the_title();?> |