Amazon products on Content Management Systems and PHP-MySQL

Showing posts with label modules. Show all posts
Showing posts with label modules. Show all posts

Thursday, April 9, 2009

Chat module for Drupal

Tried chat rooms and chat box modules, but somehow they don't provide the instant messenger look and feel desired. Functions a bit more like forums.

Further search and the ajax-based phpfreechat module for drupal takes the trophy.

Resource:

phpfreechat module
http://drupal.org/project/phpfreechat

Calendar, Events, Date and Schedule Modules for Drupal

Calendar module requires Date Module. Cool feature will be Calendar block which shows events entered as content.

Resources:

Date module
http://drupal.org/project/date

Views module
http://drupal.org/project/calendar

Tuesday, April 29, 2008

New or recent content not updated (and not searcheable) after publishing (drupal reindexing)

Perhaps the most basic questions asked by newbies might be on why after editing content, and after publishing, edited and recent contents are not updated. Or, why pages or stories are not searcheable after having been created or edited.

Recent versions of Drupal may not encounter these anymore, however just in case, this is simply a matter of reindexing your site. The ff. may be checked:

- within drupal's administer page: administer > search > reindex your site, or check desired / appropriate settings

- check out and download poormanscron module, a croning (reindexing) module for drupal with userfriendly settings page (administer > modules > poorman's cron)

- lastly, the fastest and most basic drupal re-indexing in the frontend (layman's: using the web browser directly): append to your site's url this... /cron.php (this will start the script in cron.php reloading the database content on the frontend)... e.g www.sitename/cron.php

Wednesday, April 9, 2008

What is TCPDF - PDF class for PHP?

Below is a followup article to pdf module employed in drupal.

What is TCPDF - PDF class for PHP?

TCPDF is a PHP 5 class for generating PDF files on-the-fly without requiring external extensions. TCPDF is an extension and improvement of the FPDF class (www.fpdf.org). Supports UTF-8, Unicode, HTML and XHTML.

With regards to drupal it is a third party apps for php used in pdfview module which enables a pdf view or download as pdf option for nodes or pages. Simply extract the folder where the readme files instructs you to. Warning though, read a few forum on installation issues... reading the readme and install files thoroughly is a must! :D

Download TCPDF here:

for php 4:
http://sourceforge.net/project/showfiles.php?group_id=128076&package_id=140231&release_id=577068

for php5:
http://sourceforge.net/project/showfiles.php?group_id=128076&package_id=140403&release_id=577072

Wednesday, February 20, 2008

View Drupal page (or node) as pdf or download page as pdf module in drupal

Pdfview in Drupal is a module that generates simple PDF version of pages from Drupal nodes/pages. The nodes can contain images. It appears as a breadcrumb beside other items like email this page, printer-friendly version, etc., below each page, story, or node.

The 4.7 version supports UTF8 and relies on TCPDF. Older versions require FPDF from http://www.fpdf.org.

Steps:
1. Download pdfview module from drupal modules (http://drupal.org/project/pdfview), check corresponding version appropriate.

2. Extract (install) in site/modules directory... enable in administer > modules... apply necessary roles and permissions

3. Download another required third party extension, TCPDF (choose corresponding version for php of your webhost, either 4 or 5, currently)... extract this to site/modules/pdfview/ directory... rename to 'tcpdf'.

4. Double check with documentations for errors... useful thread here http://drupal.org/node/130779#comment-738033 ... using this thread post add the ff. to tcpdf/config/tcpdf_config.php:

5. That's it.. test it in your browser, enjoy!

Note: works fine for IE, however current Firefox version doesn't seem to support adobe features/add-ons... Please test with other browsers like Safari, Opera, etc. accordingly, thanks!

------------------------------------------
Drupal Group: http://groups.drupal.org/pdf

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.

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

Drupal Products