Oct
11
2011
0

Alter the node add form in Drupal 7

If you want to change the Save button text to Submit in Drupal 7 add the following to your template.php file.

Simply replace YOURTHEME with the name of your theme and CONTENTTYPE to the machine name of your content type.

 

 

 

 

function YOURTHEME_form_alter(&$form, &$form_state, $form_id) {
if ($form_id == ‘CONTENTTYPE_node_form’) {
$form['actions']['submit']['#value'] = t(‘Submit’);
}
}

 

Written by Pete in: Drupal | Tags: , ,
Sep
01
2011
0

Change Remote Desktop Font Size and DPI

To be able to change the font size, DPI or text size in remote desktop/terminal services in server 2008 use the tool found at:

http://www.datafilehost.com/download-14271a00.html

By default, Windows Server 2008, used in a terminal server \ Citrix environment, does not allow standard users to change their font sizes. There is an option available to change font sizes, but it is locked down to administrators only. This is a Windows Server 2008 feature. If you try and use the standard Windows option to change font sizes, you will be prompted to provide an administrator login name and password. Unfortunately, with Windows Server 2008 the font size-changing feature is a system-wide administrative feature, rather than an individual user feature as it was in Windows Server 2003 – impacting terminal server \ Citrix environments.

To compensate for this loss of functionality for users, a tool has been produced that users can use to change font sizes! – called ‘RDFontSize’.

 

 

Written by Pete in: windows server 2008 |
Aug
18
2011
11

Error 201 (net::ERR_CERT_DATE_INVALID): Unknown error.

When using Google Chrome you get the following error:

Error 201 (net::ERR_CERT_DATE_INVALID): Unknown error.

Check that the date of the computer is set correctly.

Written by Pete in: Google,windows 7 |
Aug
08
2011
0

Windows 7 All Tasks Folder – God Mode

Create a new folder on your desktop and call it :-

God Mode.{ED7BA470-8E54-465E-825C-99712043E01C}

The “All Tasks” folder lists over 250 settings from various Control Panel applets and system settings dialogs in a tree-structured list, organized by the application associated with each setting.

Written by Pete in: windows 7 |
Aug
04
2011
0

Load WordPress Admin to Blank Page

When you load yoursite.com/wp-admin you just get a blank page.

Open functions.php and remove the white space at the top and bottom.

Written by Pete in: wordpress |
Aug
01
2011
0

Printing CCK Fields in Drupal 7

In node.tpl.php

<?php print render($content['field_EXAMPLE']); ?>
<?php print render($content['body']); ?>

In page.tpl.php

<?php print $node->field_EXAMPLE['und'][0]['value']; ?>

Written by Pete in: Drupal |
Jul
23
2011
0

Your photo library is either in use by another application or has become unreadable

When opening iPhoto you get the following error:

“Your photo library is either in use by another application or has become unreadable”

1. Download iPhoto Library Manager from www.fatcatsoftware.com/iplm/

2. For your photo library Click file > rebuild

3. Wait for it to rebuild your library.

Not everything will be restored – for instance slideshows, books and calendars.

Written by Pete in: Apple |
Jul
23
2011
0

Reverse Scroll Direction in OS X Lion

In OS X Lion Scrolling is set to ‘natural’ by default – meaning swiping your fingers up pushes the page down as is on the iPhone or iPad.

To disable this and set scrolling to normal:

1. Open System Preferences

2. Click Trackpad

3. Click Scroll & Zoom tab

4. Untick ‘Scroll direction: natural’

Written by Pete in: Apple |
Jul
23
2011
0

How to add indicator lights back onto the dock in OS X Lion

On new Macs shipping with Lion the dock indicator lights to show when a program is open are not enabled by default.

To turn these on:

1. Open system preferences

2. Click on Dock

3. Tick the box ‘Show indicator lights for open applications’

Written by Pete in: Apple |
Jul
21
2011
0

How to get out of full screen mode OS X Lion

In most apps the esc key should work.

If not try CMD+SHIFT+F

Written by Pete in: Apple |

Powered by WordPress | Aeros Theme | TheBuckmaker.com WordPress Themes