goxu
Forum Replies Created
-
Forum: Developing with WordPress
In reply to: Overriding MethodI really appreciate it, markjaquith.
Forum: Fixing WordPress
In reply to: WP Admin Takes hours to loadIt is something I don’t know but.. I would install another wordpress and see if the same thing happens.
Forum: Fixing WordPress
In reply to: WP Admin Takes hours to loadI would disable all the plugins and see what happens.
Forum: Fixing WordPress
In reply to: WP Admin Takes hours to loadI would remove the feed in the dashboard and see what happens.
http://wordpress.org/support/topic/53586?replies=4Forum: Everything else WordPress
In reply to: Web Host IssuesI don’t recommend ipower. They once have suspended my account without notice for my plugin. And now they have locked the cache directry under the wp-contet.
What they said by e-mail after a few days of the sudden shutdown was that some scripts are causing an extreme high load on the server. That’s it.
They don’t provide the details including how much the server performance was affected, specific names of the scripts, numbers of process, information of memory and cpu resource usage.
To me, it’s just for no reason.
I had a plugin script which retrieves rss feeds with magpie and creats listings by categories sorted by time. That was the core part of the site. After they unsuspended my account, I modified it to run less freaquent. But they didn’t like it. So they now locked the cache directry which other scripts are also using.
If you are a coder, it will very discourage your motivation to write scripts since making scripts is like weaving little secrets, especially if you don’t publish them. If you get a locked directry all the sudden and you will feel intervened.
After all, what they say is to upgrade the plan to VPS’s, which costs around 50 bucks/m. It’s ridiculous that the money won’t come back which was paid annually if I discontinue them.
If you don’t run heavy scripts, then they might be ok.
Forum: Developing with WordPress
In reply to: Overriding MethodThank you markjaquith for your responce.
What kind of change was made in v2.1 in order to make it work?
What I’d like to do is just changing this,
$this->select($dbname);to,
mysql_query("SET NAMES utf8", $this->dbh);
$this->select($dbname);in the wpdb funtion of the wp-db.php.
Could this be done differently for the older versions? Is it not possible to do it with a single plugin?
Sorry if you meant to suggest the use of query filter for this since I’m not familiar with it.
Forum: Developing with WordPress
In reply to: Overriding MethodCould anybody help please?
Forum: Fixing WordPress
In reply to: URGENT: I think I have been hackedHello,
I made a plugin which restricts IP addresses to login to the admin panel, meaning you can ban different ip addresses from the admin panel.
It is available from here
This might help a bit if the hackers use the admin panel.
Forum: Developing with WordPress
In reply to: Forcing Logout from the Admin PanelThe ‘init’ hook did the job.
Forum: Plugins
In reply to: Modyfing the Header OutputThank you for the attention. The ‘init’ hook did the job.
Forum: Plugins
In reply to: Cleaning up the Option TableThank you for the reply Handy Solo,
Well, how does the plugin author know when you temporarily disable it vs uninstall it?That’s true, nobody can tell it. But my concern is too much unnecessary data slowing down the performance. It seems there is no plugin dealing with it.
If you know the way to delete unused options, it will be greatly appreciated.
Forum: Plugins
In reply to: iG:Syntax Hiliter PluginHi,
Somehow, the Plain Text Bar keep appearing even though I disable the ‘Show Plain Text Code Option’ via the option panel.
I don’t know when the bar goes back to the setting to be displayed, but it just suddenly happens sometims. Everytime it appears, I have to disable it again and again.
So is there another way to disable the feature completely?
Forum: Developing with WordPress
In reply to: Forcing Logout from the Admin PanelI haven’t been able to figure out yet.
There was a minor mistake in the last line. the ‘admin_header’ had to be ‘admin_head’.
Still, I keep getting the following error in the admin panel after enabling this plugin. Is it only me getting this or do you also get this error too?
Warning: Cannot modify header information – headers already sent by (output started at /home/wordpress/wp-admin/admin-header.php:16) in /home/wordpress/wp-content/plugins/force_gohome.php on line 12
<?
/*
Plugin Name: Go Home
Plugin URI: http://example.com
Description: forces anybody to go home
Version: 0.1beta
Author: Goxu
Author URI: http://example.com
*/
function force_gohome(){
header('Location: ' . get_settings('siteurl'));
exit();
}
add_action('admin_head', 'force_gohome', 1);
?>Forum: Developing with WordPress
In reply to: Forcing Logout from the Admin PanelOk,
If I embed the following code at the very beggining of the wp-admin/admin-header.php it works.
header( 'Location: ' . get_settings('siteurl') );
exit();However, if I do this as a plugin,
/*
Plugin Name: Go Home
Plugin URI:
Description: forces anybody to go home
Version: 0.1beta
Author: Goxu
Author URI:
*/function force_gohome() {
header( ‘Location: ‘ . get_settings(‘siteurl’) );
exit();
}add_action (‘admin_header’, ‘force_gohome’ ,1);`
The priority is set to 1, so I assume that the funciton will be loaded prior to anyother funciotns. Am I correct?
If so, why doesn’t it work? Any information will be greatly appreciated.
Forum: Plugins
In reply to: mySQL: How Can I Select Post IDs whose Post Content Containing IMGs?Thanks Otto,
It worked!!
SELECT post_content, comment_content
FROM wp_posts, wp_comments
WHERE post_content LIKE ‘%src=%’
AND comment_content LIKE ‘%src=%But… only worked on my test site. When I did it on my main site, it returned 0 results. I’ve seen a discussion before mentioning that information of uploaded images are stored in a different table/colum?
If so, do you know which one it is?