dnxpert
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Weird permalinks on admin sideNever mind, I had caused the issue myself. I was adding duplicate filters as can be seen above in code for custom_template_permalink and custom_logo_permalink when in fact I should have added only 1 and used the retrieved $post->post_type to differentiate between the post types.
Forum: Fixing WordPress
In reply to: Weird permalinks on admin sideAny replies please?
Jeff, any progress/updates on this?
Thanks Jeff.
Hi Jeff,
When you try to upload an avatar, you just get redirected to wp-admin.
Also, if you try to create a group, you keep just being redirected to the first step whenever you press next.
As soon as I disable theme my login, both of these functions work as they should.
Kind regards,
John
I have a problem with the global settings – not the bp integration settings.
I change the points allocation, prefix etc, hit update, and just get redirected to dashboard.
BP integration settings save fine.
J
Forum: Fixing WordPress
In reply to: Can I reassign global $wpdb object in a theme?No probs, I hope someone can find it useful.
Forum: Fixing WordPress
In reply to: Showing posts from another wordpress databaseHere is a solution if anyone is looking for it:
http://wordpress.org/support/topic/388990?replies=4#post-1481489Forum: Fixing WordPress
In reply to: multiple wpdb instances don’t work.Here is a solution if anyone is looking for it:
http://wordpress.org/support/topic/388990?replies=4#post-1481489Forum: Fixing WordPress
In reply to: Can I reassign global $wpdb object in a theme?For anyone interested, here is how I solved the problem:
1. call first db db1
2. call second db db2
3. have table prefix on first db set to prefix1_
4. have table prefix on second db set to prefix2_
5. installed hyperdb plugin from:
http://wordpress.org/extend/plugins/hyperdb/
(followed instructions in readme file).6. configured hyperdb db-settings.php file to read from the 2 dbs by adding the two databases via add_db_server();
add_db_server(‘global’, 0, ”, 1, 1, DB_HOST, DB_HOST, DB_NAME, DB_USER, DB_PASSWORD);
add_db_server(‘db2’, 0, ”, 1, 1, DB_HOST, DB_HOST, ‘db2’, DB_USER, DB_PASSWORD);7. Also inside db-settings.php of hyperdb I told hyperdb to query the second database for all tables belong to that database using a call to add_db_table (i added all tables via the method call like so):
add_db_table(‘db2’, ‘prefix2_commentmeta’);
add_db_table(‘db2’, ‘prefix2_comments’);
add_db_table(‘db2’, ‘prefix2_links’);
add_db_table(‘db2’, ‘prefix2_options’);
add_db_table(‘db2’, ‘prefix2_postmeta’);
add_db_table(‘db2’, ‘prefix2_posts’);
add_db_table(‘db2’, ‘prefix2_terms’);
add_db_table(‘db2’, ‘prefix2_term_relationships’);
add_db_table(‘db2’, ‘prefix2_term_taxonomy’);
add_db_table(‘db2’, ‘prefix2_usermeta’);
add_db_table(‘db2’, ‘prefix2_users’);6. finally, inside the code where I wanted to read second db posts on first site, I did the following:
global $wpdb;
$wpdb->set_prefix(‘prefix2_’);do all my processing…
then change prefix back to original inside wpdb object$wpdb->set_prefix(‘prefix1_’);
Works like a charm!
Forum: Fixing WordPress
In reply to: Can I reassign global $wpdb object in a theme?Thanks ambrosite, already saw that link but not exactly what i am looking for.
Did run into the hyperdb plugin which is more like what I need.
Forum: Fixing WordPress
In reply to: multiple wpdb instances don’t work.Anyone ever figure this out?
I am having the same problem.
Forum: Installing WordPress
In reply to: admin-ajax xml not at start of entity issue on new installationFound my problem guys.
Turns out my wp-config.php had white space at the bottom after the ?>
Forum: Fixing WordPress
In reply to: WordPress 2.3.3 to 2.5 loopIf anyone is still looking for a solution to this problem, I have fixed mine at least:
I have these two plugins installed:
http://wordpress.org/extend/plugins/replace-wp-version/
http://wordpress.org/extend/plugins/wp-security-scan/I had uninstalled them both, but somehow one of them was causing my wordpress version to change even after uninstalling. I deleted the folders from the plugins directory… then backed up my db… then installed wp 2.5, restored db, ran the upgrade wizard and it worked.
I hope this helps you guys.