Forum Replies Created

Viewing 13 replies - 1 through 13 (of 13 total)
  • Thread Starter dovydas

    (@dovydas)

    In case anyone still has this problem there is a solution for flash uploader on IDN sites problem.

    Thread Starter dovydas

    (@dovydas)

    I have made fresh wordpress 3.0.1 installation on new site with IDN domain name. Flash Uploader failed with “security error”.

    I have filled bug report in trac: Ticket #14648.

    Thread Starter dovydas

    (@dovydas)

    I was using Twenty Ten theme already.

    I deactivated all plugins but Flash Uploader still doesn’t work.

    The only difference between working and non-working sites I can think of is that non-working site has IDN domain name and all working sites have ASCII domain names.

    Thread Starter dovydas

    (@dovydas)

    I have just upgraded wordpress 2.9.1 with working Flash Uploader to 3.0.1. And Flash Uploader still works fine after upgrade! So the problem lies not with 3.0 version number but elsewhere…

    Thread Starter dovydas

    (@dovydas)

    And I have found yet another two instances of wordpress installations on the same server that has Flash Uploader working fine. The version numbers of these installations are 2.9 and 2.9.1

    I can’t find any differences between all these different installations. WordPress 2.8 and 2.9 and 2.9.1 are working fine. But 3.0 and 3.0.1 have some problems. These installations have the same settings and use the same database.

    Any clues?

    Thread Starter dovydas

    (@dovydas)

    I have googled out somewhere that server configuration may cause problems. To be exact: mod_security module. However I don’t have this module loaded. Here is a list of my modules:

    # apache2ctl -M
    Loaded Modules:
    core_module (static)
    log_config_module (static)
    logio_module (static)
    mpm_prefork_module (static)
    http_module (static)
    so_module (static)
    alias_module (shared)
    auth_basic_module (shared)
    authn_file_module (shared)
    authz_default_module (shared)
    authz_groupfile_module (shared)
    authz_host_module (shared)
    authz_user_module (shared)
    autoindex_module (shared)
    deflate_module (shared)
    dir_module (shared)
    mime_module (shared)
    negotiation_module (shared)
    php5_module (shared)
    reqtimeout_module (shared)
    rewrite_module (shared)
    setenvif_module (shared)
    Syntax OK

    I believe that server is OK, because I have one working wordpress installation on the same server. It may be some directory permissions or some other configuration options different. I just don’t know what to look for and what to compare on working and non-working instances.

    Any advices would be appreciated.

    Thread Starter dovydas

    (@dovydas)

    It is just “Security error.” Written in red font. That’s it.

    Upload New Media
    Security error.
    Choose files to upload [Select Files] [Cancel Upload]
    Maximum upload file size: 2MB

    You are using the Flash uploader. Problems? Try the Browser uploader instead.
    After a file has been uploaded, you can add titles and descriptions.

    Thread Starter dovydas

    (@dovydas)

    Will it work if I will copy function wp_link_pages directly to my plugin?

    Forum: Plugins
    In reply to: check if table is empty
    Thread Starter dovydas

    (@dovydas)

    Thank you again Michael!
    You are wonderful. ??

    Thread Starter dovydas

    (@dovydas)

    Thank you, Michael.
    It’s working now. ??

    Thread Starter dovydas

    (@dovydas)

    Hi Michael,

    Thanks for helping me. It is working! I have added a cutom field value and key check and my content appears only on correct page now. That’s exactly what I wanted. However original content disappeared on all other pages and posts.

    function load_runninglog() {
      global $post;
      $custom_field_key = 'load_runninglog';
      $one_custom_field_value = get_post_meta($post->ID, $custom_field_key, true);
      if ($one_custom_field_value == 'races') {
        $content = 'It works! for post id '. $post->ID;
      }
      return $content;
    }

    How can I avoid messing up with other content?

    Thread Starter dovydas

    (@dovydas)

    Hi,

    What I am actually trying to achieve is to have a separate page where my data could be displayed. At first I wanted the plugin to create a page automatically (by entering page name in options menu) but it seems not possible. So a user will have to create a page himself and add a custom field with function from plugin. Then this function will display content in that page.

    I have found working example in another plugin, however I’m struggling to adapt it to my needs.

    function load_runninglog($content) {
      if (is_page()) {
        $cust_values = get_post_custom_values($this->runninglog_show);
        if ($cust_values != NULL) {
          $log_target = $cust_values[0];
          $content = $this->display_runninglog($log_target);
        }
      }
      return $content;
    }
    
    function display_runninglog($log_target) {
      echo "It's working!"
    }

    I get the following error. Fatal error: Using $this when not in object context in /var/www/wp-content/plugins/running-log/running-log.php on line 264.

    I understand I need to get classes involved here. However I’m trying to avoid them as classes go beyond my meager programming knowledge. Is there a way to pass the post id into the function and test if the custom field exists for that post id without using classes?

    > You can configure Get Recent Comments by Krischan Jodies to do this.
    > https://blog.jodies.de/archiv/2004/11/13/recent-comments/

    Yes, you can. But it is not the primary purpose of Krischan’s plugin, so the result is _very_ ugly. For example, you can not get the date of a last comment on the same line as post title. You need a separate line for that. Very ugly.

    > WP-Stats can do that
    > https://www.ads-software.com/extend/plugins/wp-stats/

    No, it can not! It can only show
    1) recent comments,
    2) recent posts,
    3) most commented posts.

    But not
    4) recent commented posts.

    I am looking for “recent commented posts” plugin for a long time, but can not find anything suitable.

Viewing 13 replies - 1 through 13 (of 13 total)