Forum Replies Created

Viewing 15 replies - 31 through 45 (of 51 total)
  • You need to be specific…
    where is the file with the test XML?
    (it could be a 3 year old tutorial you are following, and the guidiance not up to date..)

    Secondly, you need to enter your wordpress administration panel, use TOOLS, then IMPORT, then WORDPRESS
    accept to install the importer plugin and activate, then point the plugin XML file.

    You can use “conditionals” and trigger the action to insert extra css files into your header (loaded via header.php) .

    Enter something like this in your functions.php

    function more_css_to_this_category()
    {
      if( in_category(array('blue','Blue Cheese')) )
      {
        wp_enqueue_style( 'bluecss', get_bloginfo('stylesheet_directory') . '/bluecss.css' );
      }
      elseif( in_category(array('green','Green fish')) )
      {
        wp_enqueue_style( 'greencss', get_bloginfo('stylesheet_directory'). '/greencss.css' );
      }
      else
      {
        // a default: wp_enqueue_style( 'redcss', get_bloginfo('stylesheet_directory'). '/redcss.css' );
      }
    };
    add_action('wp_print_styles', 'more_css_to_this_category');
    
    function more_css_to_this_page()
    {
      if( is_page(array(42,'about-joe','About Joe'))  )
      {
        wp_enqueue_style( 'joecss', get_bloginfo('stylesheet_directory') . '/joecss.css' );
      }
      elseif( is_page(array(41,'about-linda','About Linda'))  )
      {
        wp_enqueue_style( 'lindacss', get_bloginfo('stylesheet_directory'). '/lindacss.css' );
      }
      else
      {
        // a default: wp_enqueue_style( 'dudecss', get_bloginfo('stylesheet_directory'). '/dudecss.css' );
      }
    };
    add_action('wp_print_styles', 'more_css_to_this_page');

    For more options, see codex for conditional tags: http://codex.wordpress.org/Conditional_Tags

    BR \ Emil πŸ™‚

    Thread Starter maxemil

    (@maxemil)

    Yea well, I’m lazy with themes these days. πŸ™‚
    Theres a clean version of the same bbpress theme here: http://bbshowcase.org/themes/peacemaker-bbpress.zip

    Thread Starter maxemil

    (@maxemil)

    Hi Emil!
    Thanks for the link, I read on bbpressthemes.org that one shouldent download from .net (due to malicious code inserted)..
    Anyway, checking the style.css it does indicate its for bbpress, [like] for trying πŸ™‚

    Thanks, I had this issue too πŸ™‚

    in header.php you can then substitute the included comment-reply.js with your own: (something like this)

    if ( is_singular() && get_option( 'thread_comments' ) )
    {
      wp_deregister_script( 'comment-reply' );
      wp_enqueue_script('comment-reply', get_bloginfo('stylesheet_directory').'/js/comment-reply.dev.js');
    };

    Btw, Im using IETester and in a ie6 session with debugbar and companion.js

    The alertbox (same as displayed when running it via firefox/firebug), so I guess its how IE interprents the return message thats the issue.. dunno.

    ---------------------------
    Microsoft Internet Explorer
    ---------------------------
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <!-- Ticket #11289, IE bug fix: always pad the error page with enough characters such that it is greater than 512 bytes, even after gzip compression abcdefghijklmnopqrstuvwxyz1234567890aabbccddeeffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz11223344556677889900abacbcbdcdcededfefegfgfhghgihihjijikjkjlklkmlmlnmnmononpopoqpqprqrqsrsrtstsubcbcdcdedefefgfabcadefbghicjkldmnoepqrfstugvwxhyz1i234j567k890laabmbccnddeoeffpgghqhiirjjksklltmmnunoovppqwqrrxsstytuuzvvw0wxx1yyz2z113223434455666777889890091abc2def3ghi4jkl5mno6pqr7stu8vwx9yz11aab2bcc3dd4ee5ff6gg7hh8ii9j0jk1kl2lmm3nnoo4p5pq6qrr7ss8tt9uuvv0wwx1x2yyzz13aba4cbcb5dcdc6dedfef8egf9gfh0ghg1ihi2hji3jik4jkj5lkl6kml7mln8mnm9ono -->
    <html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en-US">
    <head>
    	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    	<title>WordPress β€Ί Error</title>
    	<link rel="stylesheet" href="http://localhostPathToMyWPInstall/wp-admin/css/install.css" type="text/css" />
    </head>
    <body id="error-page">
    	<p>Error: please fill the required fields (name, email).</p></body>
    </html>
    
    ---------------------------
    OK
    ---------------------------

    Reading up on http://www.javascriptkit.com/jsref/ajax.shtml it would seem that if WP is relying on XMLHttpRequest and hasent made a ActiveXObject parser this is the culprint.

    A maby solution, however this is out of scope for a plugin imho πŸ™‚
    http://www.sencha.com/forum/showthread.php?45402-IFrame-fallback-for-Ajax-Requests
    or http://www.cristiandarie.ro/asp-ajax/Async.html

    when changing line 115 to
    _error = “Name and Email must be entered!”;
    it works.

    When disabeling “Comment author must fill out name and e-mail”, and submitting a comment with only email and comment-text (empty name), the plugin does not break in IE6

    The error only occurs when email, name or url is not entered (wp set to email and name is required).
    The error does not occur when only Comment is empty. (the “you need to enter a comment” is displayed correctly).

    The error is:
    ‘1.WholeText’ is null or not an object

    As I saw (at line 115) ‘WholeText’ inside your ptm-ajax-comments.dev.js file I assumed it was a check on your part.

    IE6 is for people like me, who has to conform to ancient big companies πŸ™‚

    great plugin πŸ™‚

    I have a small request / issue..
    In WP 3x you can define your fields in comment_form($args);
    http://codex.wordpress.org/Function_Reference/comment_form

    I tried the plugin on a page where I removed the ‘url’ in $fields.
    This returns a script error for the plugin IN IE6 at the validation for the required fields / empty data.

    I predict developers will be using the WP 3x comment functionality alot to extend the name/email/url/comment normalities…

    Is there a way you can extend your plugin to validate data only on fields filtered by the ‘comment_form_default_fields’ ?!?

    Best regards \Emil

    If you get an error saying depricated php function, don’t panic it will still work. However if you do want to fix it, at line 285
    replace the “ereg” with a preg_match

    //  if (ereg('^([a-zA-Z0-9_-])+$', $_POST['new_var'])) {
        if (preg_match('/^([a-zA-Z0-9_-])+$/', $_POST['new_var'])) {

    These changes are cool… thanks Rahul.
    ( in the wpaudio.js file )

    Awsome plugin btw!

    well.. looking at the core 3.1 track discussion, it seems jQuery UI will be updated.

    http://wpdevel.wordpress.com/2010/09/03/process-and-scope-for-3-1-part-i/#comment-10659

    Thanks!
    downgrading to legacy jquery ui 1.7.3 is the answer when including datepicker to an admin page like posts.php – even for wordpress 3.01.

    Hopefully the WP team will update the jquery UI core (just load the full UI package guys) in a very soon release – this is somewhat annoying πŸ™‚

    Just a point here..

    register_activation_hook will use the default message “cannot redeclare” on any error.

    I tried to activate a plugin, where I had a table to be created.
    My problem was that I had comments on my table rows… like this:

    `ID bigint(11) NOT NULL AUTO_INCREMENT,
    CATEGORY text NOT NULL default ”, // TilhΓΈrsforhold
    NAME text NOT NULL default ”, // Navn
    TITLE text NOT NULL default ”, // Stilling
    PRIMARY KEY ( ID )`

    But the of course I realized you cannot do this, and when I removed the comments, the function worked πŸ™‚

Viewing 15 replies - 31 through 45 (of 51 total)