Codigo Vision logo
  • English
  • Español
  • Home
  • Gallery
  • Blog
  • Contact Us

Blog

Drupal 6.x - PHP Memory Limit
01/05/2012

When using image processing like image field and image cache you may need to increase your PHP memory limit in these two places:

1) .htaccess (in your root directory - where drupal is installed)

add to this section:

# PHP 5, Apache 1 and 2.
<IfModule mod_php5.c>

Just above </IfModule>

The following code:

  php_value post_max_size...

Read More
Drupal 6.x - Use path alias as views argument to display blocks on specified pages
10/27/2011

The idea here was to create multiple slide shows and display each one on a different page based on the path of the page and not the node id (because some pages are views)

First, the slide show is created with Views Nivo Slider module, and a content type setup with a multi value image field and a "path" text field where you type the path where you want to slide show to appear on. example: about-us

then you create the view using the views nivo slider setting, and make sure when...

Read More
Jquery Search Text - Remove & Replace
01/06/2011

$('.search-text').focus(function(){ 
    if($(this).attr("value") == "Search") $(this).attr("value", ""); 
}); 
$('.search-text').blur(function(){ 
if($(this).attr("value") == "") $(this).attr("value", "Search"); 
});

Read More
Drupal 6.x Custom Clear all Cache Link / Page
08/13/2010

Create a page, set the body input filter to PHP and paste the following code in the body. Add a menu link to your navigation or admin menu for easy access to clear the cache.

<?php
// only allow site administrators to visit this page:
if (!user_access...

Read More
Drupal 6.x - Display argument in views header
08/05/2010

<?php
$view
= views_get_current_view();
print (
str_replace("-"," ",...

Read More
Ubuntu 10.04 on HP dv6-2155dx
07/27/2010

Sound: Speakers do not turn off when you plug in headphones.
Solution...
in terminal:
gksudo gedit /etc/modprobe.d/alsa-base.conf

add this line to the very bottom:
options snd-hda-intel model=hp-dv5

save and restart :)

Everything else is working great, wireless works out of the box.

Still looking into the remote control. If anyone has any tips on getting the remote buttons to map correctly please comment.

UPDATE 10-19-10
re-...

Read More
Drupal 6.x Flash Gallery using SimpleViewer v2
06/10/2010

**UPDATE** You can now use the simple viewer module http://drupal.org/project/simpleviewer

If you are using the the Flash Gallery module in drupal and want to upgrade to simpleViewer v2 I have added some configurations to the Flash Gallery module...

Read More
Drupal 6.X - Hide a block from admin user and edit pages
04/07/2010

This is very useful to display a block on everypage that visitors will see, but hide it from the admin and back end pages where it is unnecessary. Like when you need to remove a side bar block to make more room for admin forms and configuration settings.

place the following in the block display settings:

admin/*
user/*
node/edit/*
node/add/*

Read More
Drupal 6.x - display block depending on node type
04/07/2010

Use this code in your block when you want to display it on every page of a certain node type

First select php in your input format selection of your block.
Then copy and paste the following code, replacing "your-node-type" with the name of the node type you want to use.

<?php
if (arg...

Read More
Drupal 6.x - Change Search Button Submit Text
04/07/2010

**UPDATED**
There is a module to do this which works much better and add some other features
http://drupal.org/project/custom_search

**Old Post**
This is not a recommended Drupal solution as we have to make a change in the core module, but I have found no other way of accomplishing this, so here we go. It is actually very simple, you only have to change one line of...

Read More
Drupal 6.x - Upload an image in a page and display in a block.
04/01/2010

These instructions will give you the ability to upload an image for each node and display it in a block. Works great to display a main image for each page that may need to be above the content and wider etc...

Note: If you want to upload images directly into a page or block content area, try the image picker module with the wysiwyg module...the...

Read More
Drupal 6.x Login Toboggan link username to my account
03/03/2010

Just want to document this as it was fairly difficult to find for some reason. Thanks to http://drupal.org/user/168664 for the solution:

simply add the following php without the php tags to your template.php and change the your-theme to your theme name.

Visit the theme page to reset the cache and you're done.

...

Read More
iTunes in Linux
11/02/2009

Amongst the thousands claiming that it is impossible, I have a working version of iTunes playing right now running Ubuntu Linux.

Better yet, It's simple anyone can do it thanks to a few programs. Here's how it's done:

The key: Play On Linux. this is a great linux program that loads and configures wine on your linux machine, then gives you a nice interface similar to synaptic package manager that allows...

Read More
Drupal 6.x Mass update PathAuto Paths Aliases
10/22/2009

Change the path in the pathauto settings

goto /admin/content/node in the admin menu under content management -> content.

Filter the nodes as necessary to select the content you want to update.

check the select box at the very top left to check all of the boxes...or individually select the pages

Use the drop down menu to select "update URL Alias" and click update

Do that for each page of nodes, and you're done!

Read More
Drupal 6.x Create link to node using the path
10/20/2009

Use this php code to print a link showing the URL Alias instead of node/7

<?php
print l(t('link text'), "...

Read More

 

Codigo Vision uses and reccomends Siteground hosting. 100% Drupal Friendly
Web hosting

Recent Clients

Web Design / Development:
www.itravelcostarica.com
www.wingdreamer.com
www.audiolifestyles.com

PHP / CMS Development:
www.shurtclip.com
www.peachtreepestcontrol.com
www.nfabk.org
www.genesisbiosciences.com
www.mectizan.org
www.cwhipz.com
www.peachtreehotelgroup.com
www.wisdomproperties.net

Contact Us

Cellphone: (506) 8344 59 40

Telephone : (506) 2788 76 98

Send Message

My status

Syndicate content
© Copyright 2011 Código Visión (!) All Rights Reserved | Web Design | Web Development | SEO | Costa Rica