liarandathief
Forum Replies Created
-
I no longer think this is related to Thesis, at least not directly. I tried it on another site with the same Theme and it worked fine. I even added all the same plugins and it still worked.
But I made a clone of the bad site on my local machine and it has the same problem. I’ve turned on all debug and error reporting, I’m not getting any php errors, any javascript errors.
I would like to try a clean install, including stripping out all the entries from the database. Do you have instructions for that?
The theme is Thesis 2, which is a highly customizable theme. It doesn’t have a header.php. I don’t even think it uses body_class(), but rather I think it uses hooks. However. I was just able to test it on another site using Thesis 2 and it worked without adding the class manually. Odd. Could it be another plug-in causing the problem? Or a problem with the installation?
If it helps, and if it’s relevant, the sample text boxes don’t work on the first site (the one with the issue) I get an 500 error message. And they do work on the second site I tested it on.
Ok, I “fixed” it by making a single change to the index.php
function simple_history_add($args) { $defaults = array( "action" => null, "object_type" => null, "object_subtype" => null, "object_id" => null, "object_name" => null, "user_id" => null, "description" => null );changed to:
function simple_history_add($args) { $defaults = array( "action" => null, "object_type" => null, "object_subtype" => null, "object_id" => 0, "object_name" => null, "user_id" => null, "description" => null );That seemed to do the trick and I haven’t seen any adverse affects.
Forum: Plugins
In reply to: [Wordpress Forms] [Plugin: WordPress Forms] Some bugsMay have some insight into the check boxes. In build.helper.php, in the form_checkbox function, if you explicitly set an attribute of checked=’false’ or checked=’true’ the checkboxes will render checked (for some reason) but can be unchecked and checked with only one click.
Hopefully this points you in the right direction. I would love to help, but my familiarity with plugin structure is very limited.
Forum: Plugins
In reply to: [Wordpress Forms] [Plugin: WordPress Forms] Some bugsD’oh, you’re right. It was my code. But it brings up a potential irritating conflict. I was able to fix it by removing my css, OR explicitly setting it at 0 in your css. Maybe you could add a padding:0 and margin:0 to ul.wp_form table, ul.wp_form table tr, ul.wp_form table tr td? or should I just shut up now?
Forum: Plugins
In reply to: [Wordpress Forms] [Plugin: WordPress Forms] Some bugsSure. Created a new form, named it. Added Name, Phone, and email. No other changes. Looking at the source, it’s the table styling causing the space:
td { padding-bottom:20px; }if I remove that (with firebug) it looks correct.
Great plugin by the way. Would love to see a captcha object.
Forum: Themes and Templates
In reply to: check if current page is child or grandchild of a pageTry this function from the the Conditional Tags Page:
function is_tree($pid) { // $pid = The ID of the page we're looking for pages underneath global $post; // load details about this page $anc = get_post_ancestors( $post->ID ); foreach($anc as $ancestor) { if(is_page() && $ancestor == $pid) { return true; } } if(is_page()&&(is_page($pid))) return true; // we're at the page or at a sub page else return false; // we're elsewhere };it recognizes any ancestor child, grandchild, etc. Add this to your functions.php and call with is_tree(‘id’)
Forum: Plugins
In reply to: [Audio Player] [Plugin: Audio Player] Doesn't Show up in My ThemeGot it. So I started swapping out theme files with one I knew worked, eventually found the answer in the footer.php file.
Apparently I wasn’t using the wp_footer() function in my footer, so this line in the plugin file wasn’t getting triggered.
add_action("wp_footer", array(&$this, "addFooterCode"));Forum: Themes and Templates
In reply to: How do I make a Pages menu without <ul> … <li> ?I needed something similar for outputting the page list in a custom xml document, so I could read it with another program.
I used wp_list_pages() with a slight modification to two files: post-template.php and classes.php
first post-template.php (this is where the wp_list_pages function sits):
In the function, add a custom argument
'wrapper_tag' => 'li'
to the $defaults array. That’s it for that file. Then in classes.php, find the Walker_Page Class and find the line that reads:
$output .= $indent . '<li class="' . $css_class
and change it to:
$output .= $indent . "<$wrapper_tag class=\"" . $css_class
then, a little further on, change:function end_el(&$output, $page, $depth) { $output .= "</li>\n"; }to:
function end_el(&$output, $page, $depth,$args) { extract($args, EXTR_SKIP); $output .= "</$wrapper_tag>\n"; }You see I included all the $args and extracted them just to get the $wrapper_tag, so this may not be the most efficient solution, but it works. I probably should have created my own funtion/class, but I’m lazy.
Finally, to use it, just use:
wp_list_pages('title_li=&depth=1&wrapper_tag=whatever');