hi:

I have several cck fields with "filtered html" activated. If I use the super admin user they appear collapsed and shown as "input format" only but when any other user which is not admin tries to submit content they appear expanded and with the filter tips expanded and repeated for every field (the same html tips) which makes it annoying.

I went to the admin configuration for 'Filtered HTML' input format and deactivated "Display HTML help" but this doesnt seem to work.

how do I disable this help so that it is not shown for every field?

thanks for any help.

Comments

ezichko’s picture

does somebody know how to do this?

thanks

rkj’s picture

Just curious if you managed to fix this already, 'cause I'm having the same problem here.

ezichko’s picture

add this to template.php

<?php
function phptemplate_filter_tips($tips, $long = false, $extra = '') {
return '';
}
function phptemplate_markup($element) {
if ($element['#value'] == l(t('More information about formatting options'), 'filter/tips')) return '';
return theme_markup($element);
}
?>

:)

gswaim’s picture

I too want to disable filter tips using the admin settings. It looks like this is the fix. I am so close to getting my site up (hopefully within hours) I don't want to break it. I also am not the brightest bulb on the tree with modifying code. So....

Question 1:
Where is the "template.php" file. I looked in my theme folder but didn't see a file named this. I use the blue marine theme.

Question 2:
Assuming I find the right file....Does it matter where I place this code. Will anywhere do?

Thanks in advance for any help on this!

I assume this will be fixed in future releases...

ezichko’s picture

if it doesnt exist on your theme folder just create and paste the code into it. be careful not to leave blank spaces at the end or it will break your site.

wallan’s picture

Thanks for the tip, ezichko. I've had a go at using it... the snippet removes the filter tip and replaces it with a link. The problem is that the link leads to a blank page. I've tried activating filter tips on the admin page, but that has no effect. Anybody got any ideas as to what's going on?

This problem has been reported as a bug [1], by the way (though nothing much seems to be being done about it).

[1] http://drupal.org/node/99823