drupal

How to hide / encrypt CCK Email field with JS against spammer

I got headche while searching for a filter to encrypt/hide email cck field to protect email addresses from spambots. I have installed , deinstalled, activated-deactivated rearranged input filters with both invisimail and spamspan but no luck! Finally I decide to change code in email.module. It works! Go and open "sites/all/modules/email/email.module" and find the line 115 like this:

/**
 * Theme function for 'default' email field formatter.
 */
function theme_email_formatter_default($element) {

Simple Hello World Module for Drupal 6

This is a small and simple "Hello World!" module for quickstarters who uses Drupal 6x series. We need just one directory and two files:

  • modules/simple_hello_world/
  • modules/simple_hello_world/simple_hello_world.info
  • modules/simple_hello_world/simple_hello_world.module

modules/simple_hello_world/simple_hello_world.info

; $Id$
name = Simple Hello World
description = Description of Simple Hello World module
core = 6.x

modules/simple_hello_world/simple_hello_world.module

<?php

Drupal 6 vs. Joomla 1.5 (2009)

Drupal versus Joomla!This is a comparison of most popular content-management-systems Drupal 6x and Joomla 1.5 series.

Drupal pros: free, professional coded, multilang, multisite, performance, great community, flexibility, power, role-based user access, flexible content types, excellent taxonomy system, seo friendly urls, multi-db-support

Fix Google Adsense Search and Drupal Conflict

Google Adsense internal search code does not work with Drupal sites normally. The reason is $_GET[q] conflict between both services. $_GET[q] means "current page" for Drupal and "search query" for Google. We can fix it with two easy steps.

Step 1:
Create a custom page like "websearch" etc under Drupal and add Adsense Code for results page.

Step 2:
Add this code at the top of your Drupal's index.php:

// Fix Drupal-Adsense conflict
$_GET[q] = ($_GET['cx']) ? "websearch" : $_GET[q] ; 

warning: Parameter 1 to comment_nodeapi() expected to be a reference

Drupal 6.16 gives following warning:

warning: Parameter 1 to comment_nodeapi() expected to be a reference, value given in /home/newsportal/public_html/includes/module.inc on line 462.

Why?

CCK Text Field in Node-Teaser?

I have a strange problem. I have installed most popular Drupal modules incl. CCK and CCK Text etc. I have created a new multi line text field for node story named story_note. Now story_note comes automagicly on frontpage and eveywhere where node teaser appears. I want that note appears just on node fullpage but not on teasers. I could not find any control under CCK, Field settings, Post settings etc. How can I do that?

Force disable Drupals CSS Cache while Theme developing

I am trying to develop a website with Drupal 6.16 and Zen Theme. When I change something in Zen's layout-fixed.css, I must go to admin >> site_building >> performance and clear cache each time that changes take effect. CSS-Cache is already disabled but it is requried to clear cache each time. Is there a trick to disable cache fully?

warning: Parameter 1 to admin_menu_admin_menu() expected to be a reference

warning: Parameter 1 to admin_menu_admin_menu() expected to be a reference, value given in /home/myweb/public_html/includes/module.inc on line 483.

Why do I get that error above and how to fix it ?

Function ereg() is deprecated in C:\wamp\www\drupal\includes\file.inc on line 902

I am trying to install Drupal 6.15 on WAMP with PHP version 5.30 and Apache 2.2.11 but I get following error:

Deprecated: Function ereg() is deprecated in C:\wamp\www\drupal\includes\file.inc on line 902

It is a 64bit Win7 and error_reporting is set to : E_ALL & ~E_NOTICE

I have already tried with : E_ALL & ~E_NOTICE | E_STRICT

It is just working with : E_ALL & ~E_DEPRECATED but I am not sure this is the right value.

Thanks for any help!

Syndicate content

CafeWebmaster.com(CW) is a free online community for webdevelopers and beginners. Anybody can share their code, articles, tips, tutorials, code-examples or other webdesign related material on the site. Newbies can submit their questions and reply to existing questions. CW does not guarantee or warrant reliability of code, data and information published on the site. Use the site on your own risk. The site takes no responsibility of direct or indirect loss or any kind of harm to its users. The site also doesn't take responsibility of infected files or source code with any kind of infection or viruses, worms, spywares, malwares, trojan horses. CW reserves the right to edit, move, or delete any of content for any reason.