My Recent Pastes (54 and counting)

All Pasties (over 54 and counting)

Pages: 1 3

Below are summaries of the 15 most recent pasties by Joon Park.

August 12, 2007
6:13PM EDT
by Joon Park

1
       );

May 29, 2007
5:51PM EDT
by Joon Park

1
2
3
4
5
<?php
function YOURTHEME_comment($comment, $links = 0) { 
  return _phptemplate_callback('comment', array( 
    'author'      => theme('username', $comment), 
    'comment'     => $comment, 

May 24, 2007
11:53PM EDT
by Joon Park

1
2
3
4
5
<?php

/**
 * Holds node data so it can be passed around to various functions. Supplying
 * a numeric node id and data ($bits) will store it. Calling the function with

May 20, 2007
8:01PM EDT
by Joon Park

1
2
3
4
5
<?php

/**
 * Removed comment id anchor Moved to _phptemplate_variables(). Modified for
 * easy navigation of new comments. $comment->skip_links formatted for

May 17, 2007
1:27AM EDT
by Joon Park

1
2
3
4
5
      foreach($vars['node']->taxonomy as $key => $keycontent) {
        if ($keycontent->vid == 3) {
          unset($vars['taxonomy']['taxonomy_term_'. $key]);
        }
      }

May 17, 2007
1:08AM EDT
by Joon Park

1
2
3
4
5
<?php

function _phptemplate_variables($hook, $vars = array()) {
  switch ($hook) {

May 15, 2007
9:05PM EDT
by Joon Park

1
2
3
4
5
--- untitled
+++ (clipboard)
@@ -1,4 +1,4 @@
-// BEFORE UPDATE.
+// AFTER UPDATE.

May 14, 2007
5:12PM EDT
by Joon Park

1
2
3
4
5
<?php
// $Id: color.inc,v 1.2 2006/12/06 16:32:54 dries Exp $

$info = array(

May 12, 2007
2:27PM EDT
by Joon Park

1
2
3
4
5
// remove the $scripts variable. The code below takes it's place.

<?php drupal_add_js($directory .'/jquery.corner.js', 'theme'); ?>

<script type="text/javascript">

April 30, 2007
10:12PM EDT
by Joon Park

1
2
3
4
5
/**
 * Dynamic style sheet loader.
 */
function alt_media_styles($conditions = array()) {
  global $theme, $theme_key, $base_path;

April 23, 2007
10:44PM EDT
by Joon Park

1
2
3
4
5
/**
 * Format the forum body.
 *
 * @ingroup themeable
 */

April 22, 2007
9:17PM EDT
by Joon Park

1
2
3
4
5
dvessel:~ joon$ ssh -v -i ~/.ssh/id_dsa XXXXXX.net
OpenSSH_4.5p1, OpenSSL 0.9.7l 28 Sep 2006
debug1: Reading configuration data /Users/joon/.ssh/config
debug1: Reading configuration data /etc/ssh_config
debug1: Connecting to XXXXXX.net [XX.XX.XXX.234] port 22.

April 12, 2007
10:59PM EDT
by Joon Park

1
2
3
4
5
function lumen_node_bits($key = NULL, $bits = array()) {
  static $node_bits = array();
  $output = array();
    
  if (is_numeric($key)) {

April 09, 2007
7:26PM EDT
by Joon Park

1
2
3
4
5
function _phptemplate_variables($hook, $variables) {
  switch ($hook) {
    case 'page':
      if (file_exists($my_script = path_to_theme() .'/MYNEWSCRIPT.js')) {
        drupal_add_js($my_script, 'theme')

April 09, 2007
4:57PM EDT
by Joon Park

1
2
3
4
5
function _phptemplate_variables($hook, $variables) {
  switch ($hook) {
    case 'page':
      if (isset($variables['node'])) {
        $variables['template_file'] = 'page_'. $variables['node']->type;

Next page

Previous page