Posts Tagged by Drupal

How to Install WYSIWYG Editor in Drupal 6, Using WYSIWYG API and jwysiwyg

In my previous post, I’ve written about Drupal Hack: How to Install Wysiwyg API Module With jWYSIWYG. Since jwysiwyg 0.5 is already available, this post is meant to update my previous post. By default, there is no built in WYSIWYG editor in Drupal 6. In this post, you will find out on how to install a WYSIWYG editor in Drupal 6 using WYSIWYG API module and a lightweight WYSIWYG editor, jwysiwyg. The Drupal’s WYSIWYG API module will simplifies the installation of editors and allows you to define which editor to use depending on the input format.
1. I assume you already have a working Druapl 6 installation. Download the latest WYSIWYG API and jwysiwyg. In this post, I will use WYSIWYG API version 2.0 and jwysiwyg version 0.5.
2. Extract WYSIWYG API module files and upload folder ‘wysiwyg’ to your Drupal’s ‘sites\all\modules‘ folder.
3. Extract the content of jwysiwyg. We will edit ‘jquery.wysiwyg.js’ file to enable jwysiwyg toolbar control. Open ‘jquery.wysiwyg.js’ file with your favourite text editor.

more

Drupal Hack: How to Install Wysiwyg API Module With jWYSIWYG

Drupal 6.x don’t have a ‘What You See is What You Get’ (WYSIWYG) feature by default. There are a few WYSIWYG module available for Drupal 6.x, for example FCKEditor, TinyMCE, widgEditor, WYMeditor and Wysiwyg API.. I’ve tried most of these modules but somehow none of them work on my blog. Maybe the problem is caused by other installed modules or the browser that I use (Opera), but I’m not very sure.

I try again with Wysiwyg API. Wysiwyg API supports many editors such as TinyMCE, jWYSIWYG, nicEdit, FCKeditor and Whizzywig, but again, none of these editor work with my blog. Either I get error from Drupal or the editor didn’t show in my browser. jWYSIWYG however cannot be installed since the Wysiwyg API module shows that it doesn’t support jWYSIWYG 0.4. Then I tested with jWYSIWYG 0.3 and 0.2, but Wysiwyg API module still gives the ‘not supported’ error. Since jWYSIWYG is a very lightweight editor (101KB only including images), I’ve decided to hack the Wysiwyg API module. It is pretty easy actually.

Note: In this post, I will use Wysiwyg API 6.x 0.5 and jWYSIWYG 0.4. I will not responsible if this method renders your site unfunctional, but so far it works for me =)

1. You need to download the Wysiwyg API 6.x 0.5 and jWYSIWYG 0.4.

2. Extract the content of Wysiwyg API. You should have a wysiwyg folder created. Open the wysiwyg folder.

more

Drupal 6: Integrating Adsense for Search

I’ve been using Drupal for almost a year and I find it very easy to customize and configure. In fact, Drupal is my second blogging platform after Blogger. The Drupal development and community is very active. In this post I will show you how to easily integrate Google’s ‘Adsense for Search’ into Drupal 6 so that the search result can be shown and contained on your Drupal site.

 

1. Download and install ‘Google Custom Search Engine’ module for Drupal 6 to your Drupal installation. If you don’t know how to install a Drupal module, extract and upload the content of google_cse-6.x-x.x.tar.gz to the sites/all/modules directory of your Drupal installation. Make sure the folder google_cse exists after you upload the files (1).

more

Drupal 6: Slow Administration Page or Administration Page Returned Blank Page

Photobucket

If your Drupal 6 administration page returned blank page or the page is very slow, your site’s server might have a problem to access drupal.org to check for available update for your Drupal 6 installation. Usually, the Drupal’s Update Status module will check for theme and modules updates once in a day, depending on how you configure cronjob for Drupal. If updates cannot be performed, Drupal will check for updates every time you access Drupal’s administration page.

This post will show you on how to disable Drupal 6 Update Status module using phpMyAdmin (I assume you use MySQL for your Drupal installation) even if you cannot access the module administration section of Drupal. This will enables you to access the administration page until the problem of your site’s server cannot access drupal.org is solved.
more


WARNING! Make sure you’ve backed up your Drupal database before proceeding. This method involves modifying Drupal database directly, so there might be a chance that your Drupal database get corrupted.

First, open phpMyAdmin on your hosting control panel. Your hosting provider should provide you with phpMyAdmin via CPanel or DirectAdmin. Login with the MySQL username and password that you use for your Drupal installation. If you forgot the password, browse to /sites/default and edit the file settings.php. Find the line with $db_url.

The format should be like this:
$db_url = ‘mysql://‘MySQL username’:‘MySQL password’@‘MySQL server address’/‘MySQL database name’‘;

Next, select the database name for your Drupal installation from the left site of the panel (1).

Photobucket

Select the ‘system‘ table (2).

Photobucket

Click browse (3) on the right side panel of phpMyAdmin.

Photobucket

Under the ‘filename‘ column, find ‘modules/update/update.module(4). Usually it is on the second page (5). Then, click the edit icon (6) on ‘modules/update/update.module‘ row.

Photobucket

On the next page, set the value for ‘status‘ and ‘bootstrap‘ to 0 (7). If you have the entry for ‘throttle‘, also set it to 0. Make sure ‘Save‘ is selected (8) and click ‘Go(9) to save.

Photobucket

You’ve successfully disable the Update Status module. Hope you can successfully access the administration page back.

[Drupal]