User : crypticsoft

Title User Language Tags Description Date
REST API products and categories from pinnacleCart crypticsoft PHP

This is a useful class which utilizes Phil Sturgeon's helpful restclient (http://getsparks.org/packages/restclient/versions/HEAD/show). Reference the URL attached for PinnacleCart API docs.

Example request URLs to get products and categories:

Get product by product_id (XX##) or keyword(s)

~/products/getProducts/search/10/oj70/oj77/oj75

Recently added products by CategoryID (/cID/batchSize)

~/products/getProductsByCategory/92/10

Recently added product images by CategoryID (/cID/batchSize)

-- This was to remove the 'Description' key/value for slide shows ~/products/getProductImagesByCategory/92/10

Recently added products by limit

~/products/getRecentlyAdded/20

Get all categories

~/products/getCategories

August 18
Limit WordPress the_content by words crypticsoft PHP

I need this function all too often and figured I'd share it. Limit the_content() by word limit by using built in WordPress functions.

June 22
WordPress Portfolio Custom Post Type Filtering crypticsoft PHP

Here is a quick example on how to generate your own portfolio with filtering based on a taxonomy (in this case 'Solutions').

June 19, 2012
RSS Feed Caching crypticsoft PHP

Note: This also uses a flat file to cache the results, be sure to also upload the 'rss_cache.txt' file.

Usage: <?php>

June 8, 2012
twitter bootstrap button toggle crypticsoft JavaScript

Include twitter bootstrap, as of this writing is at v2.0.4 and the following JS / html to your page and also uses Glyphicons.

June 3, 2012
Meteor Slides : WordPress Plugin : Adding Description field crypticsoft PHP

For when you really just need a short description field along with a title for your slideshows. Just drop this into the functions.php and meteor-slideshow.php in the theme folder.

May 30, 2012
Parse PHP files into ASP extensions crypticsoft PHP

For those cases where you want to code in PHP but need to deploy to ASP. It doesn't account for php logic but only converts the php include() statements into SSI includes. Could be useful for converting basic websites from php to asp, rare but it happens :)

May 26, 2012
WordPress Links Manager - Display a random link from a category crypticsoft PHP

Sometimes you just want a random link to display and outside of the default format, this works perfectly and removes all default html (list items / headings).

April 11, 2012
WordPress Query Taxonomy by ID crypticsoft PHP

When you create a custom post type and need to query by ID then you can pass in the 'field' and the 'terms' with the ID for that post type.

March 1, 2012
Styled Select Menus crypticsoft CSS

For those times when you just need a quickly styled select menu with css.

January 20, 2012
Cache AJAX Response crypticsoft jQuery

Basically, if the value has already been requested once before it's returned immediately from the cache. Otherwise, an AJAX request fetches the data and adds it to the cache. The $.when/.then doesn't care about any of this; all you need to be concerned about is using the response, which is passed to the .then() handler in both cases.

Deferreds are perfect for when the task may or may not operate asynchronously, and you want to abstract that condition out of the code.

March 28, 2011
Deferred with $.when help and template example crypticsoft jQuery March 28, 2011
Smarty Template : Multiple Column Loop crypticsoft Smarty

Take array and create multiple columns, define divisible by value ($divis) from total results then use modulus within the loop. This example shows multiple columns for unordered list items.

March 10, 2011
get twitter feed using json / jquery crypticsoft JavaScript

Note: replace "USERNAME" with your own twitter username. This is using cycle plugin with easing which is applied after the tweets are populated.

March 6, 2011
parse wordpress RSS feed using ajax / jquery crypticsoft JavaScript
  • Set your local path to the wordpress install, in my case was: "/blog/feed"
  • Edit the var contain = make it set to the selector, in my case I'm populated a list tag
      .
    • Edit the var limit = 5; Set the amount of blog posts you want to display.
    March 6, 2011