Comment form – disclaimer
-
Hello!
I need your help!
Where do I find the file that I can put a
-
disclaimer info
under the textarea but before the submit button in the Leave a Reply comment form ?
Many thanks!
-
<bumping>
Hello — can somebody show me which file that I can insert the disclaimer text in the form.. doesn’t need anything for input … just the text.
Thanks!
depends on your theme
on mine, comments.php has a comment form, I could insert extra text anywhere
My theme is RocketTheme… tribune terrane.
which directory has comments.php ?Can I insert a text under the textarea ?
Thanks, Rev. Voodoo!
comments.php should be part of your theme. You can see it in the theme editor
On mine, toward the bottom I have this line
<p><textarea name="comment" id="comment" cols="100%" rows="10" tabindex="4"></textarea></p>so I would just add a new line right under it like this:
<p><textarea name="comment" id="comment" cols="100%" rows="10" tabindex="4"></textarea></p> <p>DISCLAIMER: blah blah</p>Perhaps in the WordPress Classic theme for comments.php ?
well, unfortunately it looks like your theme is a paid theme…. so I can’t help you very well.
And, I can’t ask you to put up more source code… I’m sure that’s not what they want
Can I use the WordPress Classic theme instead ?
That doesn’t look like a comments template, that’s looks more like the callback function for displaying comments.
The code above only deals with outputting actual comments, and not the form you use for posting them.
You should have obvious form mrkup for the form in your comments.php, or if not then a line that looks like this..
<?php comment_form() ?>Otto did a great write up on using this new comment form function here.
http://ottopress.com/2010/wordpress-3-0-theme-tip-the-comment-form/well…yeah, but didn’t you pay for this theme?
The WP classic theme is pretty old, and not up to date for WP3.0, you will be losing out on many features.
There are many newer themes
WP 3.0 changes how comment stuff is handled, I’m doing some research now to see what I can learn….. It’s something I haven’t dug too deep into. There are filters you can use to add stuff to your coment form
EDIT: I was just going through Otto’s writeup, good stuff!
Yes, we paid for the RocketTheme theme.
If the comments.php with WordPress Classic theme doesn’t work, the terrane tribune theme ‘s comments.php which I recently posted doesn’t seem to have the form which I am looking for ?
Will Otto’s form help me ? I go look at it now….
comment_form(array('comment_form_after'=>'DISCLAIMER: blah blah'));added to functions.php inside the php tags looks promising
you definitely cannot easily paste in the comments.php from another theme. it’s not that easy
You need to hook into comment_form somehow, using info from the tutorials
the above is my guess at what something would look like (unless your theme uses a custom callback of some sort)
Otto’s seems pretty long for me to do ! All I need to just add the text under the textarea.
Hmmm… where do I start first ??
Add
comment_form(array('comment_form_after'=>'DISCLAIMER: blah blah'));in the functions.php in my theme ?In my functions.php code from my theme:
<?php global $option, $tname, $fname; $tname = 'terrantribune'; $fname = 'TerranTribune'; $option = get_option('terrantribune-options'); // Required require_once(TEMPLATEPATH.'/includes/options_handler.php'); require_once(TEMPLATEPATH.'/includes/common.php'); require_once(TEMPLATEPATH.'/includes/widget_data.php'); require_once(TEMPLATEPATH.'/includes/rokbox.php'); require_once(TEMPLATEPATH.'/includes/comments.php'); require_once(TEMPLATEPATH.'/features/RokMenu.php'); // Widgets Include $wp_ver = get_bloginfo('version'); if ($wp_ver >= 2.8) { include(TEMPLATEPATH . '/includes/widgets/roktabs_wget.php'); include(TEMPLATEPATH . '/includes/widgets/rokstories_wget.php'); include(TEMPLATEPATH . '/includes/widgets/roknewsrotator/roknewsrotator_wget.php'); include(TEMPLATEPATH . '/includes/widgets/rokmininews/rokmininews_wget.php'); include(TEMPLATEPATH . '/includes/widgets/rokmenu_wget.php'); } // Add theme settings menu function rockettheme_admin_menu() { global $tname, $fname; add_menu_page('RocketTheme '.$fname.' Theme Settings', $fname.' Settings', 'edit_themes', $tname.'-settings', 'theme_settings_showup', get_bloginfo('template_directory').'/admin/rt_fav.png'); } add_action('admin_menu', 'rockettheme_admin_menu', 9); // Settings Page function theme_settings_showup() { include('admin/rtpanel.php'); } if (is_admin() && $_GET['page'] == $tname.'-settings') { add_action('admin_head', 'theme_settings_admin_css'); wp_enqueue_script('mootools', get_bloginfo('template_directory').'/admin/js/mootools.js'); wp_enqueue_script('rokbox_config', get_bloginfo('template_directory').'/js/rokbox/themes/light/rokbox-config.js'); wp_enqueue_script('rokbox', get_bloginfo('template_directory').'/js/rokbox/rokbox.js'); wp_enqueue_script('roktabs', get_bloginfo('template_directory').'/js/roktabs/roktabs.js'); wp_enqueue_script('rokinnertabs', get_bloginfo('template_directory').'/admin/js/tabs.js'); wp_enqueue_script('roktips', get_bloginfo('template_directory').'/admin/js/roktips.js'); } if (is_admin() && $_GET['page'] == $tname.'-settings' && !rok_isIE(6)) { wp_enqueue_script('rokutils', get_bloginfo('template_directory').'/js/rokutils.inputs.js'); } function theme_settings_admin_css() { echo ' <link rel="stylesheet" type="text/css" media="screen" href="'.get_bloginfo('template_directory').'/admin/admin.css" /> <link rel="stylesheet" type="text/css" media="screen" href="'.get_bloginfo('template_directory').'/js/rokbox/themes/light/rokbox-style.css" /> <link rel="stylesheet" type="text/css" media="screen" href="'.get_bloginfo('template_directory').'/admin/roktabs.css" /> <!--[if lte IE 6]> <link href="'.get_bloginfo('template_directory').'/admin/admin_ie6.css" rel="stylesheet" type="text/css" /> <link rel="stylesheet" href="'.get_bloginfo('template_directory').'/js/rokbox/themes/light/rokbox-style-ie6.css" type="text/css" /> <![endif]--> <!--[if IE 7]> <link href="'.get_bloginfo('template_directory').'/admin/admin_ie7.css" rel="stylesheet" type="text/css" /> <link rel="stylesheet" href="'.get_bloginfo('template_directory').'/js/rokbox/themes/light/rokbox-style-ie7.css" type="text/css" /> <![endif]--> <!--[if IE 8]> <link href="'.get_bloginfo('template_directory').'/admin/admin_ie8.css" rel="stylesheet" type="text/css" /> <link rel="stylesheet" href="'.get_bloginfo('template_directory').'/js/rokbox/themes/light/rokbox-style-ie8.css" type="text/css" /> <![endif]--> '; } /** * Like implode but with keys * * @param string[optional] $glue * @param array $pieces * @param string[optional] $hifen * @return string */ function implode_with_key($glue = null, $pieces, $hifen = ',') { $return = null; foreach ($pieces as $tk => $tv) $return .= $glue.$tk.$hifen.$tv; return substr($return,1); } // sys_get_temp_dir function require_once(TEMPLATEPATH.'/includes/php4function.php'); // Add the shortcode to a sidebar widget for the form (ask a question) add_filter('widget_text', 'do_shortcode'); ?>I do not know if that will help ?
require_once(TEMPLATEPATH.’/includes/comments.php’);
shows me you have an additional comments template in your theme
you may be able to edit in there, or at least see if it references comment_form
The topic ‘Comment form – disclaimer’ is closed to new replies.