You are browsing the archive for Tutorials.

Removing WPMu (WordPress MU) Post HTML/JavaScript filter

January 4, 2009 in Blogging, Tutorials by Deepanshu Goel

Today, I spend almost 3 hours to find out a way to remove boring WPMU(Wordpress Multi Users)’s post html tags filtering. I love the javascripts coz of their functionality and that’s why I used them many times in my previous WordPress install but since shifting to WordPress multiuser, I have been missing javascripts.

I searched a lot on net, only few info was helpful. The official “how to use Javascript” suggest to install “text-control plugin” and then turn off rich editor, its totally useless in WPMU. I found a lot of people asking help on how to:

  • enable JavaScript for WordPress MU post;
  • remove WordPress MU HTML filter; or
  • enable advanced HTML tags and attributes, like embedded object, flash, video, etc?

Finally I got a simple solution from somewhere by hack some code:

  1. Go to: wp-include
  2. open kses.php in an editor like notepad.
  3. go to around line 742 and simply do the following commenting out:

function kses_init_filters() {
// Normal filtering.
add_filter(’pre_comment_content’, ‘wp_filter_kses’);
add_filter(’title_save_pre’, ‘wp_filter_kses’);

 

// Post filtering
// add_filter(’content_save_pre’, ‘wp_filter_post_kses’);
// add_filter(’excerpt_save_pre’, ‘wp_filter_post_kses’);
// add_filter(’content_filtered_save_pre’, ‘wp_filter_post_kses’);
}

This solution will allow you to only stop filtering of the POST, but the comments will still get filtered out.

Add Recycle Bin to Folder Options

October 26, 2008 in Tutorials by Deepanshu Goel

Now to make it easier to remove or show recycle bin on  desktop of windows XP, let add a graphical user interface to this. The following process will add a option to chose in Folder Options.recyclebin

1. Using a text editor like Notepad create a text file, now copy the below registry code, and save the file as OptionRecycleBin.reg.

REGEDIT4

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\Folder\RecycleBinOnDesktop]
"RegPath"="Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\HideDesktopIcons\\NewStartPanel"
"Text"="Show Recycle Bin icon on the desktop"
"Type"="checkbox"
"ValueName"="{645FF040-5081-101B-9F08-00AA002F954E}"
"CheckedValue"=dword:00000000
"UncheckedValue"=dword:00000001
"DefaultValue"=dword:00000001
"HKeyRoot"=dword:80000001

2. Now double-click the file to import this code into the registry.

To hide or show the Recycle Bin icon using Folder Options, follow these steps:

  1. In Windows Explorer, Click on the Tools menu, then click on the Folder Options.
  2. Go to the View tab, under Advanced Settings, do one of the following:
  3. Check the Show Recycle Bin icon on the desktop check box to show the icon on your desktop.
  4. Uncheck the Show Recycle Bin icon on the desktop check box to remove the icon from your desktop.

Remove Recycle Bin from Desktop in Windows XP

October 26, 2008 in Tutorials by Deepanshu Goel

Does that recycle Bin icon on your desktop makes you go crazy? Then this is step-by-step, how you can remove remove the Recycle Bin Icon from your desktop. recyclebin

You can use TweakUI or make the changes manually into the registry.

Removing the Recycle Bin

1. Using a text editor like Notepad create a text file, now copy the below registry code, and save the file as ‘RemoveRecycleBin.reg’.

REGEDIT4

 

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons]

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\ClassicStartMenu] “{645FF040-5081-101B-9F08-00AA002F954E}”=dword:00000001

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel] “{645FF040-5081-101B-9F08-00AA002F954E}”=dword:00000001

2. Now double-click the file to import this code into the registry.

Showing Recycle Bin

1. Using a text editor like Notepad create a text file, now copy the below registry code, and save the file as ‘ShowRecycleBin.reg’.

REGEDIT4

 

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons]

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\ClassicStartMenu] “{645FF040-5081-101B-9F08-00AA002F954E}”=dword:00000000

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel] “{645FF040-5081-101B-9F08-00AA002F954E}”=dword:00000000

2. Now double-click the file to import this code into the registry.

Change Default SearchBox in Firefox

July 13, 2008 in Tutorials by Deepanshu Goel

To change the default search engine box on the top-right corner of FireFox:

This is how you can change it:

in the address bar of FireFox, type: “about:config

In the box marked filter, type: “browser.search.defaultenginename

Double click the value field or right click and choose Modify that value, by in the name of the search engine you wish to have as the default search engine. It must be one that you already have installed and also make sure you type in the name correctly.

Now if you type in “Yahoo”, restart Firefox and when your browser comes back you will see “red Yahoo Logo” and Yahoo as your default search engine box.

Then save that by pressing “Ok”.

Change Default Search Engine in Firefox

July 12, 2008 in Tutorials by Deepanshu Goel

Every browser like FireFox or IE does searches on a default search engine set some where in its configuration. Changing this default search engine is a little bit tricky, but not anymore. Deepak, my friend, installed a chat software from RediffBol which also changed the default search engine as Rediff Search but he now wants to change it back to Google [my fav].

This is how you can get it done:

in the address bar of FireFox, type: “about:config

In the box marked filter, type: “keyword.url

Double click the value field and modify that value, by pasting:

http://www.google.com/search?ie=UTF-8&oe=UTF-8&sourceid=navclient&gfns=1&q=

Then save that by pressing “Ok”.

Now, you can use your address bar just as google search bar. Go nuts, since now you can search by entering the search terms in the address bar and pressing enter. This way you never need to visit www.google.com again!!!