Recent Posts

message i get when running openssl s_client -connect 150.203.86.21:443

  1. Server certificate
  2. -----BEGIN CERTIFICATE-----
  3. MIIFZjCCBE6gAwIBAgIRAMnrbFE1wndjtId1sB5Q45cwDQYJKoZIhvcNAQEFBQAw
  4. WjELMAkGA1UEBhMCQVUxEDAOBgNVBAoTB0F1c0NFUlQxHTAbBgNVBAsTFENlcnRp
  5. ZmljYXRlIFNlcnZpY2V

Fix for Code

  1. <?php
  2. /**
  3.  * displays the account page layout,
  4.  * this shows the status of the application or
  5.  * shows the form with the steps left to do
  6.  */
  7.   global $user;
  8.     $business_details = ps_formdat

Code

  1. <?php
  2. /**
  3.  * displays the account page layout,
  4.  * this shows the status of the application or
  5.  * shows the form with the steps left to do
  6.  */
  7.   global $user;
  8.     $business_details = ps_formdat

add_to_cart_by_sku_contents()

  1.       $block['subject'] = t('add_to_cart_by_sku');
  2.       $block['content'] = add_to_cart_by_sku_contents();
  3.       break;
  4.   }
  5.   return $block;
  6. }
  7.  
  8. /**
  9.  * custom html block
  10.  * @return string
  11.  *

Fix for page.tpl.php

  1.   1 <?php
  2.   2 if(!isset($_COOKIE['origem'])) {
  3.   3         if(isset($_SERVER['HTTP_REFERER'])) {
  4.   4                 setcookie('origem', $_SERVER['HTTP_REFERER']);
  5.   5         }
  6.   6 }
  7.   7 ?><!DO

Page.tpl

  1. page.tpl.php

foreach is beeing disregarded dispite variable is array. Please help. Outside Drupal it works as standalone.php file

  1. <?php
  2. /**
  3.  * @file csv_import.module
  4.  * TODO: Enter file description here.
  5.  */
  6.  
  7. function csv_import_permission() {
  8.   $perms = array(
  9.     'parse csv content' => array(
  10.       'title' => t('Pars

Fix for filefield implementation in an admin page. "An HTTP error 0 occurred. /drupal/?q=filefield/ahah///"

  1. $form['table'][] = array(
  2.     'col1' => array(
  3.       '#value' => t('Upload Font'),
  4.     ),
  5.     'col2' => array(
  6.       'font_upload' => array(
  7.         '#theme' => 'content_multiple_values',
  8.      

PHP Code custom.module

  1. <?php
  2.  
  3. function custom_views_pre_build($view){
  4.   /*$view->attachment_before = '<div>Init</div>';
  5.   $view->attachment_after = '<div>end</div>';*/
  6.   // Error found during work: http://drupal.org/no

Code

  1.    // Get the list of options to populate the first dropdown.
  2.   $options_first = nature_of_business_options();
  3.   // If we have a value for the first dropdown from $form_state['values'] we use
  4.   //

Fix for foreach is disregarded dispite variable is array inside drupal. Please help

  1. <?php
  2.  
  3. /*
  4.  *  Here is a sample csv file.

Filter out images with same md5

  1. <?php
  2.  
  3. function umpqua_feeds_feeds_after_parse(FeedsSource $source, FeedsParserResult $result) {
  4.   foreach ($result->items as &$item) {
  5.     $md5 = array();
  6.     foreach ($item['images'] as $k => $

Views 3 node data query with {} removed and line breaks inserted for clarity

  1. SELECT node.nid AS nid, node.title AS node_title,
  2. history.timestamp AS history_timestamp,
  3. node.created AS node_created,
  4. node.changed AS node_changed,
  5. field_data_field_accessorynumbers.field_ac

Code

  1. { "commerce_checkout_new_account" : {
  2.     "LABEL" : "Create a new account for an anonymous order",
  3.     "PLUGIN" : "reaction rule",
  4.     "WEIGHT" : "2",
  5.     "REQUIRES" : [ "rules", "commerce_checkou

Fix for Fix for Code

  1.     <?php
  2.     $form['foo'] = array(
  3.       '#type' => 'textfield',
  4.       '#title' => t('bar'),
  5.       '#default_value' => t('foo'),
  6.       '#size' => 60,
  7.       '#maxlength' => 64,
  8.       '#descript

Fix for Code

  1.     <?php
  2.     $form['foo'] = array(
  3.       '#type' => 'textfield',
  4.       '#title' => t('bar'),
  5.       '#default_value' => t('foo'),
  6.       '#size' => 60,
  7.       '#maxlength' => 64,
  8.       '#descript

Code

  1.     <?php
  2.     $form['foo'] = array(
  3.       '#type' => 'textfield',
  4.       '#title' => t('bar'),
  5.       '#default_value' => t('foo'),
  6.       '#size' => 60,
  7.       '#maxlength' => 64,
  8.       '#descript

Writes selected node ids to custom sticky table

  1. /**
  2.  * Custom sticky function
  3.  *
  4.  * Writes selected node ids to custom sticky table
  5.  *
  6.  * @param array $nids
  7.  *   node ids
  8.  *
  9.  * @return array
  10.  *   An associative array containing:
  11.  *     la
Syndicate content