can any 1 tell me or point to some links for

best way to hide/remove the formatting guidelines and the link "More information about formatting options" below the comment form in DRUPAL 6?

Comments

artscoop’s picture

Avoid modules for tasks that simple.
Override theme_filter_tips_more_info() in your template.php file
and return an empty string in this function.

As usual, the word "theme" in theme_filter_tips_more_info() has to be replaced with your theme name, for example, for a theme named rikantonay :

rikantonay_filter_tips_more_info() {
  return '';
}
sampeckham’s picture

Hi, i have the same problem, and was about to add this code to my template.php to discover it's already there (using BlogBuzz theme), is there anything else that could override this override!?

I have the following in my theme template.php file

/*
* Override filter.module's theme_filter_tips() function to disable tips display.
*/
function blogbuzz_filter_tips($tips, $long = FALSE, $extra = '') {
  return '';
}

function blogbuzz_filter_tips_more_info () {
  return '';
}
sampeckham’s picture

Don't worry sorted this now, was getting confused with which modules I had on which sites (developing on 3 separate sites currently).

FYI: The override of this theme hook is caused by the module mentioned above, which even more confusingly doesn't hide the tips for user 1 anyway!

- more coffee needed obviously!

krisna123’s picture

Add the following to template.php in themes/YourThemeName

/*
* Override filter.module's theme_filter_tips() function to disable tips display.
*/
function YourThemeName_filter_tips($tips, $long = FALSE, $extra = '') {
  return '';
}
function YourThemeName_filter_tips_more_info () {
  return '';
}

Note :
add this code below <?php
Don't forget to change YourThemeName to your thee name
Don't forget to clear the template cache in your site Administer->Site Configuration->Performance->Clear Cached Data.
worked for drupal 6.19.

krishanchandra’s picture

Thanks,

This work for me Fine.