Random
-
Various WP snippets
Show Links Menu w/Active Class
<nav>
<?php $args=array(
'sort_order' => 'ASC',
'sort_column' => 'post_date',
'hierarchical' => 1,
'exclude' => '',
'include' => '',
'meta_key' => '',
'meta_value' => '',
'authors' => '',
'child_of' => 0,
'parent' => -1,
'exclude_t...
Code
Template Coding
Wordpress 2013
-
LDAP Connect and Bind Test
<?php
$host = "127.0.0.1:10389";
$ldap = ldap_connect($host);
ldap_set_option($ldap, LDAP_OPT_PROTOCOL_VERSION, 3);
$username = "uid=admin,ou=system";
$password = "secret";
if( $bind = ldap_bind($ldap, $username, $password) )
echo( "logged into ".$host." as ".$username );
else
echo( "Fa...
Code
Template Coding
PHP 2013
-
BossaNova Robotics
Robot Toy Product Promotion
Site Request Handler, Framework for loading XML content from Flash nav click. Flash, GoogleMaps and YouTube Embedding....
Stylesheet Coding
Template Coding
JavaScript
Work 2011
-
Trauma Informed Care
Information & Blog
Stylesheet Coding
Template Coding
Work
Wordpress 2013
-
see what is accessing disk / force unmount disk
lsof | grep /Volumes/IMAJIN
diskutil unmountDisk force /Volumes/IMAJIN...
Code Macintosh 2023
-
Lotto-rithm
Algorithm knowledge promotion
Work
Graphic Design 2016
-
Create custom content type
contenttypetest.info
name = Contenttype test
description = Test - how can I create a new content type with hook form?
core = 7.x
files[] = contenttypetest.module;
files[] = contenttypetest.install;
contenttypetest.module
<?php
// hook_form implementation
function contenttypetest_form($node, &$f...
Code
Template Coding
Drupal 2013
-
Damiak
Music Portfolio, Photos, Videos & Journal
...
Work
Information Structuring
Stylesheet Coding
Graphic Design 2003
-
OSX Virtual Web Host Config
add line to /etc/hosts
127.0.0.1 amniot.localhost
add lines to /etc/apache2/httpd.conf
NameVirtualHost 127.0.0.1:80
<VirtualHost amniot.localhost:80>
<Directory "/Library/Webserver/Documents_AMNIOT">
Options FollowSymLinks Indexes
AllowOverride All
Order deny,allow
allow from All
...
Code Macintosh 2014
-
Kimochis Portal
Forum for Users of Educational Toys
Work
Stylesheet Coding
Information Structuring
Template Coding
Drupal 2011
-
La Picolla Scolla Italia
Italian Preschool Information
Layout & Typography, Semantic XHTML content structuring, Site Template & Request Handler, Flash & GoogleMaps Embedding...
Stylesheet Coding
Information Structuring
Template Coding
JavaScript
Work 2013
-
Insert email as username at registration
<?php
function HOOK_user_insert( &$edit, &$account, $category = NULL ){
// Don't create a new username if one is already set
if( strpos($account->name, 'temporary_') !== 0)
return;
// Otherwise, replace username with email address field
db_update("users")
->fields(array(...
Code
Template Coding
Drupal 2013
-
Jellyfish Frequency
Record Label Website
Work
Template Coding
Information Structuring
Stylesheet Coding
Drupal 2012
-
NeuroGenesix
Dance Music Event Information
...
Work
Information Structuring
Stylesheet Coding
Graphic Design
Template Coding 2015
-
Medical Industries America, Inc.
Respiratory Homecare Product Promotion
Photoshop, XHTML, CSS, JavaScript. 2001....
Work
Graphic Design 2001
-
Rate Your Customer / Rate My Contractor
Work
Wordpress
Stylesheet Coding
PHP 2015
-
RosaPharma
Pharmaceutical Development Services Information
Layout, Typography & Navigation, Semantic XHTML, Site Template & Request Handler [custom built with PHP], drop-down navigation...
Stylesheet Coding
Information Structuring
Template Coding
JavaScript
Work 2010
-
Cytel
built and styled the contact form (with connectivity to SalesForce) embedded customized Google maps...
Work
Stylesheet Coding Google 2009
-
Font-embed Rundown
TTF - Works in most browsers except IE and iPhone
EOT - IE only
WOFF - Compressed, emerging standard
SVG - iPhone/iPad...
Code
Stylesheet Coding 2014
-
Device-Responsive Layout
HTML
<meta name="viewport" content="width=device-width, initial-scale=1.0;"/>
CSS
@media (max-width: 480px){
}
@media (max-width: 767px){
#container{
padding: 0 25px;
}
nav ul li a{
font-size: 100%;
padding: 15px 0;
border-radius: 30px;
}
nav ul li ...
Stylesheet Coding
Code 2013
-
Migrates multigroups in D6 to field collections in D7
<?php
/////////////////// PAGE DEFINITIONS ///////////////////
function migrate_groups_menu(){
$menu["migrate_groups"] = array(
"title" => "Migrate grps",
"description" => "....",
"page callback" => "migrate_multigroup_to_collections",
"access callback" => TRUE...
Code
Drupal 2014
-
IAS
Data Management Services Promotion
Salesforce Form Submission Connectivity, AJaX Content Filtering, Flash Video Embedding...
Stylesheet Coding
Information Structuring
Template Coding
JavaScript
Work
Drupal 2011
-
Reading/setting Drupal config variables
<?php
function organic_context_config_page(){
$form = array();
$form['onthisdate_maxdisp'] = array(
'#type' => 'textfield',
'#title' => t('Maximum number of links'),
'#default_value' => variable_get('onthisdate_maxdisp', 3),
'#size' => 2,
'#maxlength' =&...
Code
Drupal 2014
-
Amniot
Personal Journal / Progression Log / Public life document site / Homepage
Work
Information Structuring
Template Coding
Stylesheet Coding
Organic Connectivity Module
Graphic Design 2010
-
Ferber Law
Lawyer Firm Promotional
Work
Wordpress
Stylesheet Coding 2016