Tuesday, February 12, 2008

Printer friendly pages in drupal: customizing formatting options

To edit the fonts (fontsize, font style, etc) and other text properties (or html attributes and properties) of printable friendly page of drupal sites 4.7,

Go to:
- site/modules/print/
- open print.tpl.php
- edit accordingly

I thought editing site/misc/print.css is enough... can't seem to have it done the way i want it to be though... obviously, text font and other formatting should be done in print.tpl.php not (only in) print.css...

simply put... treat this php page with htm tags, attributes, etc. for the desired formatting of your printerfriendly drupal page.

------------------------------

Friday, February 8, 2008

"Make sure you have a working image toolkit installed and enabled" in Drupal

Having installed image module for Drupal, I began having this error in admin pages:

"Make sure you have a working image toolkit installed and enabled"

it says "for more information see settings page"

Solution would be to enable the ImageMagick toolkit in the settings page (don't be surprised if this is not available in the drupal forum before):

Go to settings > image handling > enable imagemagick or gd2

afterwhich the image handling option will not be made available anymore (not viewable from the settings page)

See other suggestions here from the drupal forum
- http://drupal.org/node/60927

Tuesday, February 5, 2008

Forgot your password in Joomla, Drupal, or any other php run cms with mysql database (with management in phpmyadmin)?

Forgot your password in Joomla, Drupal, or any other php run cms with mysql database (with management in phpmyadmin)?

In the event you forget your administrator password or passwords in in Joomla, Drupal, mediawiki, coppermine, etc. (or any opensource php-driven cms with mysql database manageable in phpmyadmin for that matter), a workaround is fortunately available. For newbies, forgetting one's administrator user account's password the only solution will have to be re-installing the entire cms from scratch thus re-creating an administrator account in the process. A solution is as follows:

- Go to site/phpmyadmin (login, of course assuming you have the necessary rights to the database/s)
- Browse for the database, then the table (in the case of Joomla, Drupal, etc. this is commonly the table 'users') intended to be edited
- click edit user, then under the 'Function' column (dropdown list) choose MD5, edit the 'Value' or your password (you will initially see the encrypted version of your original password), then type in the desired, new password of your choice
- Lastly, don't ever forget your password again, silly! :D

Thanks to pete avila and michael for the tip!

----------------------------------

This blog has been archived and is not maintained any longer. For similar useful posts, please visit www.jeromeesperanza.com

Search

Google