dovydas
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: flash uploader security error problemIn case anyone still has this problem there is a solution for flash uploader on IDN sites problem.
Forum: Fixing WordPress
In reply to: flash uploader security error problemI 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.
Forum: Fixing WordPress
In reply to: flash uploader security error problemI 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.
Forum: Fixing WordPress
In reply to: flash uploader security error problemI 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…
Forum: Fixing WordPress
In reply to: flash uploader security error problemAnd 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?
Forum: Fixing WordPress
In reply to: flash uploader security error problemI 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 OKI 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.
Forum: Fixing WordPress
In reply to: flash uploader security error problemIt 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: 2MBYou are using the Flash uploader. Problems? Try the Browser uploader instead.
After a file has been uploaded, you can add titles and descriptions.Forum: Plugins
In reply to: pagination with wp_link_pages and <!–nextpage–>Will it work if I will copy function wp_link_pages directly to my plugin?
Forum: Plugins
In reply to: check if table is emptyThank you again Michael!
You are wonderful. ??Forum: Plugins
In reply to: custom field content questionThank you, Michael.
It’s working now. ??Forum: Plugins
In reply to: custom field content questionHi 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?
Forum: Plugins
In reply to: custom field content questionHi,
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?
Forum: Plugins
In reply to: Plugin for most recent commented post> 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.