Jonathan Landrum
Forum Replies Created
-
Forum: Hacks
In reply to: PHP call to repeat posts annually?Thank you! I think that will work great.
Well, I finally got mine working for both Jetpack and Contact Form 7. My issue was I’ve just moved to a VPS, and didn’t set the path to Sendmail in my php.ini. Might want to give that a check and see if it’s the problem.
I am having the same problem. My install of WP and my install of the plugin are both the newest version. I have my email address explicitly set in the form, and it’s still not sending the emails. I’m also not getting a notification on the administration panel when new feedback arrives. So if I don’t just happen to check the Feedback section, I won’t get the message. Could it be a problem in the way I have the plugin configured?
Possibly relevant: I’ve recently (within the past few weeks) moved to a new host, and don’t have sendmail configured on my server. Does this plugin use the server’s mail program, or does it send it with PHP?
Forum: Fixing WordPress
In reply to: Cannot Disable Visual Editor After Upgrade To 3.4.1For future reference, it apparently cannot be done at this time. There are no hooks for this section, and the best solution I found was to hide it with CSS.
Forum: Fixing WordPress
In reply to: Cannot Disable Visual Editor After Upgrade To 3.4.1Edit: after trying this idea, and after a couple rounds of enabling and disabling the editor, I notice that there is now a second editor called the HTML editor. Any ideas on how to disable this?
Forum: Fixing WordPress
In reply to: The Dashboard Widget area not working correctly.have you tried a different browser or even a different machine?
Problem continues. No solution? Is it possible to have it grep for pre or code and leave those tags alone?
Forum: Installing WordPress
In reply to: Can't login to wp-admin on test versionInstead of importing the database itself, try exporting from the live site to an xml file, and then upload that to the test site.
Forum: Fixing WordPress
In reply to: How to modify wpautop to add tabs before <p>No, it never worked. I’m still searching for a way.
Forum: Fixing WordPress
In reply to: How to modify wpautop to add tabs before <p>Perhaps I should declare the variables global.
Forum: Fixing WordPress
In reply to: How to modify wpautop to add tabs before <p>This doesn’t work, but it’s where I’m at:
<?php $t = str_repeat('\t', 4); $lineWidth = 75; $n = $n . PHP_EOL; $space = $space . ' '; function prettyPrint($code) { // Don't Reformat Between Pre Tags if (eregi('<%pre%[^>]*>(.*?)</%pre%>', $code)) { return; } // Blockquote Formatting if (eregi($n . $n . '<%blockquote%(.*?)>', $code)) { $code = preg_replace($n . $n . '<%blockquote%(.*?)>', '</p>' . $n . $t . '<blockquote $1>', $code); } // Paragraph Formatting if (eregi($n . $n, $code)) { $code = str_replace($n . $n, '</p>' . $n . $t . '<p>', $code); } // Line Break Formatting if (eregi($n, $code)) { $code = str_replace($n, '<br />' . $n . $t . $space, $code); } return $code; } remove_filter ('comment_text', 'wpautop'); remove_filter ('the_content', 'wpautop'); remove_filter ('the_excerpt', 'wpautop'); add_filter ('comment_text', 'prettyPrint', 10); add_filter ('the_content', 'prettyPrint', 10); add_filter ('the_excerpt', 'prettyPrint', 10); ?>
Forum: Fixing WordPress
In reply to: How to modify wpautop to add tabs before <p>How about:
remove_filter ('the_content', 'wpautop'); remove_filter ('the_excerpt', 'wpautop'); $prettyPrint = str_replace("\n\n", "</p>\n\t\t\t\t<p>", $prettyPrint); add_filter ('the_content', 'prettyPrint'); add_filter ('the_excerpt', 'prettyPrint');
Forum: Fixing WordPress
In reply to: How to modify wpautop to add tabs before <p>wp-includes/classes.php
has some interesting code beginning at line 498:$indent = str_repeat("\t", $depth);
$depth
being a function previously defined.Forum: Fixing WordPress
In reply to: How to modify wpautop to add tabs before <p>I could disable wpautop in a plugin, and after that function add the above code.
I saw a fellow once whose source was simply gorgeous. Each paragraph was indented, no doubt, but each line broke after a certain number of characters, and the wrapped lines were indented, plus three spaces:
... <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Etiam adipiscing, tellus sed consequat euismod, felis turpis tristique magna, vel placerat sem arcu eget lorem. Aliquam aliquet, sapien a tincidunt vulputate, mauris ligula sagittis tortor, sed egestas ante est vitae velit. Etiam pharetra. Pellentesque mattis, tortor sed congue consequat, neque enim ornare tellus, quis dapibus nisl nisi nec risus. Ut eget erat. Proin lacinia nunc at enim. Vivamus adipiscing fringilla metus. Mauris hendrerit. In rhoncus metus sed velit. Praesent diam diam, varius eu, egestas pharetra, euismod id, sem.</p> <p>Curabitur dapibus. Mauris tincidunt mollis lacus. Ut ac justo. Phasellus faucibus diam non dui. Vivamus ut est. Nam et risus sit amet metus aliquam pharetra. Vivamus sollicitudin mauris at nisl. Sed tincidunt sollicitudin est. Proin pharetra. Donec euismod gravida est. Maecenas a sem. Aliquam erat volutpat. Praesent nibh. Aenean nisl tortor, porttitor sed, malesuada sit amet, dictum eget, lectus. Donec laoreet ante quis metus.</p>
That is what I really would like to get to.
Edit: Bah! Even here, with code marked up as such, it’s an un-attainable goal!
Edit 2: It doesn’t like spaces after the code mark.