Amazon products on Content Management Systems and PHP-MySQL

Tuesday, January 22, 2008

Installing tinymce WYSIWYG editor in drupal

Originally posted in: Installing tinymce WYSIWYG editor in drupal Jan 22 '08 12:37 AM

Drupal TinyMCE vers. tinymce-4.7.x-1.x-dev.tar.gz

The following are taken from the default drupal tinymce module INSTALL.txt that *I think* needs detailing for newbies and first-timers (I have omitted instructions on the optional javascript tinymce compressor and AJAX spellchecker):
---------------------------------------------------------------
NOTE: During this installation process you'll be asked to also
install the official TinyMCE package from
tinymce.moxiecode.com.

1. Place the entire tinymce directory into your Drupal modules/
directory.

2. Download TinyMCE 2.0 from
http://tinymce.moxiecode.com/
Remember to uncompress the file and make sure the folder is named
'tinymce'.

3. Place the entire 'tinymce' engine folder inside your modules/tinymce
directory. So the TinyMCE engine will live in modules/tinymce/tinymce

4. Enable this module by navigating to:
administer > modules
*note - all database tables will be automatically created during this step

5. Setup role based tinymce profiles via
administer > settings > tinymce

Personal notes:

I think it is necessary to clear a few things here in the instructions particularly for those who are freshly starting with drupal and drupal modules... I have encountered problems in installation and reinstallation of the tinymce module, not because of the engine itself, but because of the instructions found therein. Of course, don't blame the install.txt if newbies and dummies (such as I) fail to read a few more notes and resources, or fail to experiment with a few things and tricks...

Here's a few things to those having a hard time installing the tinymce module. This is not a troubleshooting issue, since there is nothing wrong with this important and essential drupal module:

1. First things off, you need to know there are two tinymce's you have to download:

- tinymce module from the engine developer http://tinymce.moxiecode.com/... links below may have updated versions as of this writing:

Tar GZip compressed file: tinymce_2_1_3.tgz
Zip compressed file: tinymce_2_1_3.zip

- tinymce (development) module from drupal itself, http://drupal.org/project/tinymce:

5.x-1.x-dev2007-Dec-1736.08 KB
4.7.x-1.x-dev2007-Mar-3134.9 KB

Note it is critical to use the corresponding modules with each version of drupal!

There! It's clear now you need the two downloads of tinymce, from drupal and moxicode...

2. Install the tinymce (drupal module)...
The files contained in the module should be extracted into site/modules/tinymce/tinymce... yes there should be two (folders of tinymce at this point, one a subfolder of the other)

3. Install the tinymce (moxicode engine)...
Extract the files of this module inside site/modules/tinymce/tinymce/tinymce...
and yes! there should be three folders of tinymce at this point... 2 tinymce sublfoders of 1 tinymce folder... if this is confusing let me try to clear it in heirarchially:

site/
site/modules/
site/modules/tinymce/ (drupal's)
site/modules/tinymce/tinymce/ (drupal's) (contains drupal tinymce files)
site/modules/tinymce/tinymce/tinymce/ (moxicode's) (with moxicode tinymce files)

4. Follow the rest of the instructions found in INSTALL.txt found therein...

Hope this article helps!

The search (and the wait) for a contact directory or business directory module... (in Drupal 4.7.x)

Posted from my other blog http://drupalexperiences.multiply.com "The search (and the wait) for a contact directory or business directory module..." - Jan 15, '08 3:43 AM

Again, following have been based in Drupal 4.7.x

Sad to say people... to those looking for a contact directory module for drupal, there are but developments of a directory listing module for this cms. As of this writing, there are two directory modules listed for the purpose of managing, viewing and listing of one's contacts and contact directory. These are as follows:

1. contact directory module for drupal 4.7.x

Download drupal contact directory module

This module allows users to manage their own contact list in drupal. Some constraints can be applied like max number of contacts per user, private or public directories and administration permissions.

Requirements
- Drupal 4.5.x
- PHP 4.3.0 or greater

However... after downloading , installing, and enabling the said directory, then applying the permissions, going to Contact directory admin page results to the error below:

Fatal error: Call to undefined function: tablesort_pager() in /home/portal/html/main/modules/contact_dir/contact_dir.module on line 568

Populating the database with the contact directory tables ('contact_category' and 'contact_directory') needed still produces the same error. Otherwise, without the sql below error can be seen in the admin pages:
  • user warning: Table 'pooch.contact_category' doesn't exist query: SELECT cid, name FROM contact_category ORDER BY name in /home/portal/html/main/includes/database.mysql.inc on line 121.
  • warning: Invalid argument supplied for foreach() in /home/portal/html/main/modules/contact_dir/contact_dir.module on line 401
Clearly, we need to wait up for more developments for a more stable module...
else...follow this thread on contact directory module forum and support threads in drupal.... and work on it, guys hehe...

2. business directory module for drupal 4.7.x and 5.x (threads to business directory in http://www.drupal.org)

This module is clearly under-development as of this writing... Looking forward for it, though! :D

If there are any modules suited for a contact management or business directory or listings for drupal please drop your comments... thanks!




"Unpublished Items or nodes" in Drupal 4.x not viewable? How to access them...

It just dawned on me that everytime we submit articles unpublished in our drupal 4.7.x are only accessible in the logs (watchdog, the module)... To access unpublished articles, logged in users and moderators may check the logs, identify unpublished items (these are mixed in here with the rest of the published stuff), do the necessary filtering like per author (user), content messages, etc. From thereon, edit and do necessary changes, then publish if that's what intended...

In drupal 4.7.x : log entries can be found here ---> http://drupalsite/admin/logs

searches found patches that need to be applied to drupal 4.7.x... not sure though with current versions. A notification of unpublished items to admin and moderators, pending for publication, would be nice, too!

just a trivial thing for dupal users :D

Drupal Products