By hpk on
How to remove "More information about formatting options" link from the node submission form? I don't need this link and it points to an empty "http://examplesite.com/filter/tips". Please guide me.
Regards
Vikram
How to remove "More information about formatting options" link from the node submission form? I don't need this link and it points to an empty "http://examplesite.com/filter/tips". Please guide me.
Regards
Vikram
Comments
You can use CSS
I am fairly new to drupal but not CSS. You can use the adjacent CSS selector technique. This is probably not the best solution since it only hides the link rather than remove it. This link usually comes after the "Allowed HTML tags:" unordered list and since this list has the class "tips" we can simply hide it by using css:
Thanks shalosophy for the
Thanks shalosophy for the reply... I'll try it out...
hpk
[De-centralizing the central issues]
http://hpk.co.in
Thanks shalosophy for the
Thanks shalosophy for the reply... I'll try it out...
hpk
[De-centralizing the central issues]
http://hpk.co.in
anything more "Logical" ?
Hiding content in CSS is fine, but I'd actually like to remove it permanently.
Removing the link - quick and dirty
I don't know if this is the best way to do this, but it worked for me.
1. Create a new module, such as example.module
2. Place the following function in the module
3. Activate the module
Logical Solution...
You just have to remove a line in filter.module (altering core! oh no!) to make it work.
in the function filter_form() [which is on line 796 of filter.module]
where "
$extra = l(t('More information about formatting options'), 'filter/tips');I changed that the first part to read...
This correctly removes the link and line from all the areas (mostly custom themed areas) it affects. You could also change $extra to something of your liking.
There's more info on this same solution here - http://drupal.org/node/68137
theme hooks work well
You can also use a theme hook for this. I added the following to my template.php, and it works like a charm!
Mike Smullin
http://www.mikesmullin.com/
Sure does work like a charm.
Sure does work like a charm. Thanks for the tip.
Dose it matter where I add
Dose it matter where I add this?
Yes and no
Yes, paste it into the template.php of your theme.
No, it doesn't matter where. I recommend at the end.
why, its not working for
why, its not working for me?!is it also applicable for D6?
I couldn't get it to work in D6
So I went into the filter.module and on line 581 I found
**
* Format a link to the more extensive filter tips.
*
* @ingroup themeable
*/
function theme_filter_tips_more_info() {
return '
'. l(t('More information about formatting options'), 'filter/tips') .'
';
}
and I changed it to
**
* Format a link to the more extensive filter tips.
*
* @ingroup themeable
*/
function theme_filter_tips_more_info() {
return '
'. l(t(''), 'filter/tips') .'
';
}
basicly I just removed the name for the link - worked for me! :)
great!thanks!
great!thanks!
it does work in D6 but you
it does work in D6 but you have to rebuild the theme registry after you add it.
Thanks -- Ummhha !!!
Wow .. It worked so nicely .. and avoided hack to core module and also use of display: none which i generally avaoid for SEO reasons.
Thanks .
Imran Khan
Project Manager
New Earth Marketing
admin wants to see the tips...
function phptemplate_filter_tips_more_info() { return ''; } works nicely...
Now, how would one apply that to every user except userid 1 ?
thanks
It's work
new module!
http://drupal.org/project/better_formats
Medicine,Surgery ...and Drupal.
Better Format is BETTER
Just install Better Format Module and go to this address:
admin/settings/filters/settings
you can replace anything with "More information about formatting options".
thanks "nirvanajyothi" for your Help!
quick and dirty css
This CSS hack works for me (D6)
In D6 you can use;
In D6 you can use;
replacing theme with the name of your theme and inserting that line into template.php - it's a bit cleaner than the CSS trick.
(old thread I know, but it's what I needed and nobody stated this for D6)
Nice solution! Much better
Nice solution! Much better than css.
Or you can: function
Or you can:
to hide all filter tips .
I am using drupal 6.22 I used
I am using drupal 6.22
I used function theme_filter_tips_more_info() { return ''; }
and also I changed the word of theme to my theme name .
but it doesn't work :(
Flush Theme Registry Cache
Don't forget to flush your theme registry.
suggestion
I would hide the "p" tag that surrounds this "a" tag so there's no floating
in your document.
CSS rules
Thanks davidwhthomas and webthingee, I used your css and .p. tag suggestion.
Worked a charm on D6 Garland.
Quick and Dirty CSS works a treat.
Gotta love CSS!
Many thanks for the tip - very easy.
Clean removal
The template.php function worked well for me, I am using amity_island theme.
function amity_island_filter_tips_more_info() { return ''; }
I think this is a cleaner way to do so
How about core theme?
I am using garland as administration theme for content editing. I don't want to update template.php in the core garland them. I ended up putting this into a custom module.
Any comments on if this is a bad practice or not? If the core garland theme ever decides to override this function I would have an error on the site with a function pre-declared. I tried other names similar to "custom_module_filter_tips_more_info" but no luck.
Any thoughts would be appreciated.
Copy the garland theme from
Copy the garland theme from themes/garland to sites/all/themes/garland, and then modify its template.php.
----
Sudo Kill Cylons
theme function override and Better Formats module
Just in case anyone spends time scratching their head like I did.
If you attempt to use the theme function override solution:
function phptemplate_filter_tips_more_info() { return ''; }while you have Better Formats enabled, the module will put the "More information about..." text back and your override will appear not to work.
When I disabled the Better Formats module, the text disappeared.
I don't have a use yet for the Better Formats module so have not looked into getting both the module and the override working together.
I have better_formats
I have better_formats installed and you're right, it adds its own "More information..." line.
Going to admin/settings/filters/settings and setting the "MORE FORMAT TIPS LINK TEXT:" option to a space (" ") was an easy way to remove it.
--D
The space trick worked
@DaveNotik, thanks, I have Better Formats installed and you tip worked like a treat.
However afterwards I discovered that this can be easier controlled by using the permissions offered by the Better Formats module: admin/user/permissions
yeah thats how id do it and
@mrvinch yeah thats how id do it and yes it works
fixed
fixed!
http://johntarrjr.com/How_Remove_Formatting_Options_text_Drupal_6