okay, so this is a long-running issue and many threads...you know how below every text input box (body) on every drupal site, there are these *ugly* lines that make no sense to most normal people who do not care (particularly those using wysiwig editors)?
what am i talking about? hit 'reply' to this thread and you'll see:
Web page addresses and e-mail addresses turn into links automatically.
Allowed HTML tags: <h1> <h2> <h3> <h4> <h5> <h6> <em> <strong> <code> <del> <blockquote> <q> <sub> <p> <br> <ul> <ol> <li> <dl> <dt> <dd> <a> <b> <u> <i> <sup>
Lines and paragraphs break automatically.
You may post code using <code>... (generic) or ... (highlighted PHP) tags.
there's no way to simply turn this off in *core* drupal, but there's an easy hack for the theme itself, and before i go and do this myself and then have to keep doing it with every theme upgrade, i was wondering if you could add it to the theme and then make it something that is commented out (or in) and simply add this to the documentation?
that would be awesome, i believe that for this theme, for d6, the correct code (correct me if i'm wrong) from another thread goes:
(in template.php in acquia marina folder)
/*
* Override filter.module's theme_filter_tips() function to disable tips display.
*/
function Acquia_Marina_filter_tips($tips, $long = FALSE, $extra = '') {
return '';
}
function Acquia_Marina_filter_tips_more_info () {
return '';
}
...is in an underscore? not sure...i believe this could also be done with string overrides module or locale - but why? what a simple thing to add to template.php right in the theme!! it would make the form look sooooo much prettier ;)
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | cleancomments.jpg | 35.18 KB | zilla |
Comments
Comment #1
zilla commentedupdate: doing this another way right now too - i've set up only ONE filter so that there is no selection of input filters for users (i use BUEditor and so the 'one filter' allows h1, h2, img and so on... then got "most of this" to work (hiding all input instructions/tips) by putting this in the local css (note: admin still sees 'em all - so admin can still use php, etc, this only impacts users)
attached pic shows a new "clean comment form" with only the box, no tips...appears to work extremely well for just comments
...but, during "content creation", there's still a link to "more information about formatting options" - how can this particular line be hidden? please advise!
Comment #2
jwolf commentedA nice one to add to your new local.css file ;)
MAKE FRIENDS WITH FIREBUG!!!Comment #3
zilla commentedyes - now that i'm thinking about it, not so sure that this should be in theme unless it's an option - many people use multiple input filters and my approach only works if there is *one* and it's set to hide via the css - and works very well - the comment form looks very nice ;)
as for firebug - i know, i know...just can't figure out css and not sure how that gets removed via css because i do not want to touch core files - also going to try using "string overrides" module to tinker with it and perhaps just shorten or see if it can be hidden with a space (it's kinda long!)
Comment #4
jeremycaldwell commentedNot to drag this thread on longer than it needs to be, here is the fix (thanks FireBug!).
Comment #5
zilla commentedyou're awesome, thanks!
we'll have to start another thread with "local.css" tweaks for marina users!! or maybe it makes sense for local.css of any kind? several themes use them..
Comment #6
zilla commented@eternalistic - nope, just tried again and the 'more info about formatting' line is still showing!
Comment #7
doublejosh commentedThis piece did not seem to work. It's being fired, but still showing the link.
Comment #8
stephthegeek commentedThis module does more and does it better than we ever could in the theme: http://drupal.org/project/better_formats
:)