mrkeck Sharing the Love

27Jan/140

Iframe in WordPress not working

I used a plugin called "Pageview" after struggling for hours trying to get Iframes working.

Very easy and worked great! Took about 1 min

http://urbangiraffe.com/plugins/pageview/

Filed under: wordpress No Comments
27Jan/140

Printers are Brats

Filed under: Funny No Comments
23Jan/140

WordPress Custom Login

This is site explains how to easily customize the login screen without using any plugins.

http://wp.smashingmagazine.com/2012/05/17/customize-wordpress-admin-easily/

If you are using a child theme, you will need a slight code change from the link above.
Use "get_stylesheet_directory_uri()" instead of "get_template_directory_uri()"

Filed under: wordpress No Comments
19Jan/140

Make the ellipsis clickable in WordPress

At the end of the excerpt summary it has a [...] but it doesn't link to anything. The code below makes it a link and changes [...] to [Read More].

Add this code to the functions.php

function replace_ellip($content) {
  return str_replace('[…]',
    '<a href="'. get_permalink() .'" class="more-link">[Read More]</a>',
      $content
  );
}
add_filter('the_excerpt', 'replace_ellip');
Filed under: PHP, wordpress No Comments
13Jan/140

Uploaded Pictures on Blogger Darker than Originals

Turns out this happens to a lot of people and there is an easy but not obvious solution:

  1. Go to your Google+
  2. Click on the Home in the top corner
  3. Click Settings
  4. Turn off Auto Enhance

auto-enhance

Filed under: Blogger No Comments
12Jan/140

My picture in Google Search Results

You know that when you search Google some of the results have a picture next to them. I tend to click those more for some reason. (I'm guessing some psychology thing)

google

2 Steps

1. You need to add a link to your Google+ Profile on your blog. I put mine in the footer.
To get your Google+ Profile Url go to https://plus.google.com/me and Url in the address bar is your Url.

2. Go to your Google+ Profile and edit the Links section and add you blog/site to the Contributor To.
You can also just use this link. Contributor To section.

Link ex.

<a href='http://plus.google.com/xxxxxxx' rel='author' target='_blank'>Your name</a>

You can test is at http://www.google.com/webmasters/tools/richsnippets

There are actually two ways you can get your picture added, but the one above I think is the easiest.

If you would like info on the other way https://support.google.com/webmasters/answer/1408986?hl=en

Filed under: Blogging, Google No Comments
12Jan/140

SecuriSync – File Sync for Business

Basically a Dropbox, but more focused on businesses.

Conclusion (keep reading for details):
This is the File Sync Program I would use for business. Not very expensive and has all the features that I would want. Overkill for personal file syncing though.

securiSync Login

I like it a lot so far. Has some cool options like:

  • Versioning (you can access older versions of the same file which is great if what you needed got overwritten in the newest version)
  • Collaborate (you can invite other to your file or folder so they can help make changes too)
  • Locking (you can let the others you are collaborating with know that you are working on this file and their changes won't override yours)
  • View Deleted Files (you can see files that were deleted and restore if needed or permanently delete them)

File Options
Versioning

colaborate

Locking

As an Admin:

  • Audit Logs (you can review the Audit Log to see all the files that have been worked on and by whom. Which could be handy in certain circumstances.)
  • Retention (you can have files that are active or previously deleted auto-delete after a set amount of time)
  • Manage Users (you can create as many users as you like and set storage limits by user)
  • Devices (you can see what devices are being used by which user and what version they are using and the last time it was used)

Audit Log

retention

Things that bothered me:

  • Requires phone number for signup - I don't like that (what are they going to do with it. I don't want to be solicited)
  • Requires CC to even to do the trial. I wonder if there is going to be a hassle to cancel the trial
    • Seems that is required to activate account. Once you are in you choose what plan you want to pay for
    • Doesn't seem to really have a trial period. I think they just charged me already
  • Not a big deal but you can't drag files to SecuriSync Web like you can with Google Drive
  • I used the sync for Mac and seemed pretty slow, but to be fair my internet has been a little spotty. May just have been the internet and not the program

Things that were nice to know:

  • Doesn't auto create a user, which I like so I can set it up any way I like instead of being stuck with what I activated the account with
  • You can import many users at once using a CSV
  • Has clients for Windows, Mac, iOS, Android, and Blackberry
    • I used the one for Mac and Android and had no real issues
  • Can attach files to email by integrating SecuriSync and Outlook

Sharing files with people outside your business is easy. You click share and add the email you want to send it to. You can also add a passcode for the file. They will get an email with a link to enter the passcode(if it had one) and download the file. They do not have access to any other files but the one you sent them.

I have been using Google Drive for quite a while. The main feature that I would miss switching to securiSync would be using the Google Docs in realtime with someone else. However, that happens so rarely, that I would give it up to have the Audit Controls, Versioning, Un-Delete, and Retention Policies.

8Jan/140

TableTools in CodeIgniter

The key is using

"sSwfPath": "<?php echo base_url(JS.'media/swf/copy_csv_xls_pdf.swf');?>"

and store the "media/swf/copy_csv_xls_pdf.swf" in the resources JS folder.

"oTableTools": {
  "sSwfPath": "<?php echo base_url(JS.'media/swf/copy_csv_xls_pdf.swf');?>",
     "aButtons": [
	"copy",
	"print",
	{
	  "sExtends":    "collection",
	  "sButtonText": 'Save <span class="caret" />',
	    "aButtons":    [ "csv", "xls", "pdf" ]
	}
     ]
}
6Jan/140

Select2 Width not listening to CSS

When the select2 doesn't change with the css, use $('select').select2({width:'resolve'});
resolve tells it use the css and if there isn't any then guess using javascript.
http://ivaynberg.github.io/select2/#documentation


Ex.

<style>
select{
width: 500px;
}
</style>
<select>
<option>Some Option</option>
</select>
<script>
$('document').ready(function(){
	$('select').select2({width:'resolve'});
});
</script>
Filed under: jquery, select2 No Comments
6Jan/140

Substring Search in Excel

SEARCH(needle, haystack) returns 1 if found and if not #VALUE


Example use:
A1 has "There is some text in here"
=IF(ISNUMBER(SEARCH("text",A1)),"Found", "Not Found")

It's a yes or no, not a location.

Filed under: Excel No Comments