Search Results for 'wordpress'
-
Search Results
-
I have been trying this for a couple of days now and I haven’t quite figured it out. Am pretty good with wordpress and the $bp globals but this one has me stumped. Basically in my group extension pugin I have added the meta_key’s state and country with their corresponding values. I am tying to get the groups that have the meta_value of a certain country. in my phpmyadmin sql it works great
`SELECT g.group_id, g.meta_value FROM `wp_bp_groups_groupmeta` as g inner join `wp_bp_groups_groupmeta` as gm2 on g.group_id = gm2.group_id WHERE gm2.meta_value = ‘United States’ AND g.meta_key = ‘state’ GROUP BY g.meta_value`
the results is 53 rows
but when I use it in my function, which has been globalized with the $wpdb and $bp globals and the query being
`$result = $wpdb->get_results( “SELECT g.group_id, g.meta_value FROM FROM {$bp->groups->table_name_groupmeta} as g inner join {$bp->groups->table_name_groupmeta} as gm2 on g.group_id = gm2.group_id WHERE gm2.meta_value = ‘United States’ AND g.meta_key = ‘state’ GROUP BY g.meta_value “,ARRAY_A );`
`var_dump($result);`
I get an empty array. I am and I have tried using correlated subqueries and now using a join. Any help will be apreciated
Will they function correctly?
Topic: 404 page not found
I have installed wordpress mu and buddypress and I keep getting 404 page not found when I try to follow the links.
I had the signup working under a normal wordpress theme /wp-signup but now with the new buddypress theme its at /register and an error popped up. I have read up on this and everyone seems to think it has something to do with the .htaccess file. I have contacted my web host and they told me to put in rewrite.script instead of the mod_rewrite. The code I have in the rewrite.script is:RULE_0_START:
match URL into $ with ^/index.php$
if not matched then goto RULE_0_END
# Source line 3
# Second half of: RewriteRule ^/index.php$ – [L]
# This rule has [L]
goto END
RULE_0_END:# uploaded files
RULE_1_START:
match URL into $ with ^/([_0-9a-zA-Z-]+/)?files/(.+)
if not matched then goto RULE_1_END
# Source line 6
# Second half of: RewriteRule ^/([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [L]
set URL = wp-includes/ms-files.php?file=$2
# This rule has [L]
goto END
RULE_1_END:# add a trailing slash to /wp-admin
RULE_2_START:
match URL into $ with ^/([_0-9a-zA-Z-]+/)?wp-admin$
if not matched then goto RULE_2_END
# Source line 9
# Second half of: RewriteRule ^/([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]
set URL = $1wp-admin/
# This rule has [R]
set RESPONSE = 301
set OUT:Location = %{URL}
set BODY = Please try here insteadn
# Implicit [L] when converting
goto END
RULE_2_END:RULE_3_START:
match URL into $ with ^/
if not matched then goto RULE_3_END
# Source line 11
# RewriteCond %{REQUEST_FILENAME} -f [OR]
set SCRATCH:COND = %{REQUEST_FILENAME}
match SCRATCH:COND into % with -f
if matched then goto RULE_3_CODE_START
# Source line 12
# RewriteCond %{REQUEST_FILENAME} -d
set SCRATCH:COND = %{REQUEST_FILENAME}
match SCRATCH:COND into % with -d
if not matched then goto RULE_3_END
RULE_3_CODE_START:
# Source line 13
# Second half of: RewriteRule ^/ – [L]
# This rule has [L]
goto END
RULE_3_END:RULE_4_START:
match URL into $ with ^/([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*)
if not matched then goto RULE_4_END
# Source line 14
# Second half of: RewriteRule ^/([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L]
set URL = $2
# This rule has [L]
goto END
RULE_4_END:RULE_5_START:
match URL into $ with ^/([_0-9a-zA-Z-]+/)?(.*.php)$
if not matched then goto RULE_5_END
# Source line 15
# Second half of: RewriteRule ^/([_0-9a-zA-Z-]+/)?(.*.php)$ $2 [L]
set URL = $2
# This rule has [L]
goto END
RULE_5_END:RULE_6_START:
match URL into $ with .
if not matched then goto RULE_6_END
# Source line 16
# Second half of: RewriteRule . index.php [L]
set URL = index.php
# This rule has [L]
goto END
RULE_6_END:Is there something wrong with this or is there another possible reason my links arent working?
I want my users to be able to post things like `[wc]` which will be replaced with an image such as `
`I have managed to find a regular WP plugin for the blog portion:
http://wordpress.org/extend/plugins/searchreplace/But that filter doesn’t work for Buddypress posts in the activity stream and the forum.
Anyone know of a solution?
How is it possible that all the activity, questions and blogupdates uploaded are private -a login first should be required-.
If there is no beautiful solution like a plugin, would it be possible (because that the network is only about 25 members) to create a .htaccess restriction and post the password to wordpress, so the user only needs to insert the password once?
Thanks!
Topic: akismet?
Hey, I haven’t found any support for akismet, but its such a wordpress dependent program, so there has to be something……… can anyone point the way?
This maybe an easy answer for most but would really love anyone to walk me through what they do, the steps they follow when updating plugins or the theme they are using in general.
This is my first buddypress site and it seems like it is quite possible to have 15-20 active plugins running at any given point. Do you update your plugins as soon as a new version is released and what is the process, step by step please, that you follow so that you do not lose any information, settings, etc. when upgrading? Please be specific, in terms of how you save the information, where, with what programs, etc. and how you re-intergrate your information with the updated plugin. Same goes for when you have to upgrade wordpress, do you reactivate all plugins, save contents (how?), and then re-activate?
Thank you so much for helping out a newbie to buddypress and wordpress, of sorts, as well.Hi,
I have a WP plugin running called searchReplace.
http://wordpress.org/extend/plugins/searchreplace/I need it to replace custom tags to image-icons for a gaming site.
However, the plugin doesn’t work on buddyPress forumtopics and status messages. How can I regex those messages? Is there an existing plugin or can I easily edit some PHP file to include the regex?
