Skip to main content

Blog

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...

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...

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"); 
});

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...

08/05/2010

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

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-...

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...

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/*

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...

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...

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...

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.

...

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...

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!

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'), "...