Search
-
-
Recent Posts
Tags
adwords amazon analytics api apple aws blog browser chrome chromium cloud Design dropbox ec2 email error facebook firefox gmail google google-apps greasemonkey ipad javascript jQuery linux lion mac microsoft mysql os x osx php plugin quicksilver scam social spam ssl twitter unix video windows woo wordpress
Tag Archives: wordpress
GravityForms: tw-sack.min – Uncaught SyntaxError: Unexpected identifier tw-sack.min.js:1
Here is what the error looks like in the Chrome Debugger Console: Uncaught SyntaxError: Unexpected identifier tw-sack.min.js:1 If you’r getting a problem with editing forms in GravityForms, or perhaps trying to add fields, you can take a look at the source code and you’ll see what happens – an AJAX request is made, but twsack does not like the response which looks something like: EndAddField({“id”: 1, “label”: “Hidden Field”, “adminLabel”: “”, “type”: “hidden “, “isRequired”: false, “size”: “medium”, “errorMessage”: “”, “inputs”: null}, ” <li id=’field_1′ class=’selectable gfield gform_hidden’ ><div class=’gfield_ admin_icons’><div class=’gfield_admin_header_title’>Hidden : Field ID 1</div><a class=’field_delete_icon’ id=’gfield_delete_1′ title=’click to delete this field ‘ rel=’nofollow’ href=’#’ onclick=’StartDeleteField(this); return false;’>Delete</a><a class=’f ield_duplicate_icon’ id=’gfield_duplicate_1′ title=’click to duplicate this fiel d’ rel=’nofollow’ href=’#’ onclick=’StartDuplicateField(this); return false;’>Duplicate</a><a c lass=’field_edit_icon edit_icon_collapsed’ title=’click to edit this field’>Edit </a></div><label class=’gfield_label’ for=’input_1′>Hidden Field</label><input p laceholder=”Hidden Field” name=’input_1′ id=’input_1′ type=’text’ value=” dis abled=’disabled’/></li>”);m So the problem is actually that the response comes back with a Content-type of json, javascript, or html when it should be returned as text/plain – something like: Content-Type: text/html; charset=UTF-8 To test, I edited the file form_detail.php and changed line 2178 (or rather inserted this line) – for gravity forms 1.7.5 (omit the line numbers): 2178 header(‘Content-type: text/html; charset=utf-8′); 2179 die(“EndAddField($field_json, \”$field_html\”);”); Next I am going to look into changing the .htaccess file for this system to see about editing the default content type which I think is causing the root of the error. Update Looks like the content type was a fix but it … Continue reading
How to insert a photo from Media Gallery into WordPress
Problem: I am trying to make a post. I have a loaded in our Media Gallery but when I go to the post and try to put in the post I can’t get to it. Solution: try clicking on the left hand column that says gallery / all images Visual Example: Steps: Click Add Media Choose Insert Media Choose Media Library Click on the photo, image, picture you want to insert Click “Insert Into Post”
WordPress 3.6 changes the admin icons
The new version of WordPress – 3.6 – which is still in Alpha as of Feb 2013, has changed the admin icon set for the main menu in the administrative interface. Here is a preview of what the new icons look like: What do you think about the new icon set?
HackRepair.com Blacklist
Recently I was checking out the Better WP Security plugin for WordPress and noticed that the plugin comes with a cool blacklist of useragents from HackRepair.com (btw that website seems to have a lot of great info on fixing hacked wordpress sites). Anyhow I found that after installing the plugin my .htaccess file was updated and included a new section to block malicious IPs and user agents. The list looks like this:
Posted in Security, Server Admin, Tech Tips, Web Development
Tagged blacklist, wordpress
Leave a comment
How To Build a Roots Child Theme
Step 1 – Download the Roots Theme Download the Roots (based on Bootstrap) theme for WordPress at http://www.rootstheme.com/ Step 2 – Unzip / Install the Roots Theme Unzip the theme and install it in your /wp-content/themes/ directory – the resulting path should be /wp-content/themes/roots/ Step 3 – Create a Child Theme Create another directory for your child theme in the /wp-content/themes/ directory – perhaps something like /wp-content/themes/my-awesome-theme/ In that directory you will need to create a style.css file that should contain the following information: /* Theme Name: My Awesome Child Theme Theme URI: http://www.my-awesome-child-theme.com/ Description: A child theme based on the Roots / Bootstrap wordpress theme Template: roots */ Now you should be able to select this as the child theme in the theme chooser. By default everything will be the same as the parent theme. To override files, copy them to the child theme directory and then modify them. The functions.php file will actually get loaded before the parent functions.php so you may need to do something like: add_action( ‘after_setup_theme’, ‘my_child_theme_setup’ ); function my_child_theme_setup(){ // your code here } In order to have some things modify what the parent theme has set.
Martha Sawyers Comments
“Martha Sawyers” has been posting posting spam comments on my blog. The comments are the usual spam kind, talking about how great a post is or that it renders weird in a particular browser, or that she would love to see more written on the topic. Here are a few examples: I don’t even know the way I ended up right here, but I believed this submit was once great. I don’t recognize who you might be however definitely you’re going to a famous blogger when you are not already. Cheers! And another: Woah this weblog is magnificent i like studying your posts. Stay up the great paintings! You realize, many persons are looking around for this information, you could help them greatly. and finally: obviously like your web-site however you need to test the spelling on quite a few of your posts. Many of them are rife with spelling problems and I in finding it very troublesome to tell the truth then again I will definitely come back again. Did you get some similar spam comments from Martha Sawyers? Leave a note below!
Download Verve Meta Boxes
Verve Meta Boxes used to be available from avenueverve.com at their website – http://www.avenueverve.com/verve-meta-boxes/ The plugin has disappeared from that site as well as from the WordPress plugin repository. The latest version of the plugin, I believe, was Version: 1.2.9 You can download this version from my blog at verve-meta-boxes.zip. Happy WordPressing! Verve Meta Boxes Screenshots
WordPress.org is down – July 2012
WordPress.org is down on July 25, 2012 with a “502 Bad Gateway” error message. This site is so reliably up that it is strange to see WordPress.org be offline. I noticed it when I was using a wget command to download the latest version. wget http://wordpress.org/latest.tar.gz –2012-07-25 11:31:20– http://wordpress.org/latest.tar.gz Resolving wordpress.org (wordpress.org)… 72.233.56.138, 72.233.56.139 Connecting to wordpress.org (wordpress.org)|72.233.56.138|:80… connected. HTTP request sent, awaiting response… 502 Bad Gateway 2012-07-25 11:31:20 ERROR 502: Bad Gateway.
WordPress: Convert All Tables To Utf8
Are your WordPress MySQL Tables of mixed charsets? The ideal or standard character set is utf-8 as it supports multiple languages and special characters – so people from all over the world can post comments, register, and interact with your blog without having characters from their name, languages, etc converted into weird or strange symbols. I read the WordPress article on Converrting your Tables but wasn’t so sure which direction to go. The article states: In most cases if a collation is not defined MySQL will assume the default collation for the CHARSET which is specified. For UTF8 the default is utf8generalci, which is usually the right choice. After a little research I got it working. The following code is from the supplemental code page from that article and I found that the code below (second code block on that page) worked well for WordPress 3.4.1 I would not recommend using the bash script at the bottom of that page because while it converts the tables it doesn’t convert the fields. When connecting from the command line you may need to specify –protocol=TCP if you get an error like ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/var/lib/mysql/mysql.sock’ (2) But again, I would not really recommend that script, because while it will run, it will basically only run the following commands: ALTER TABLE wp_commentmeta CHARACTER SET utf8; ALTER TABLE wp_comments CHARACTER SET utf8; ALTER TABLE wp_links CHARACTER SET utf8; ALTER TABLE wp_options CHARACTER SET utf8; ALTER TABLE … Continue reading