Search Results for 'wordpress'
-
AuthorSearch Results
-
March 8, 2009 at 8:15 am #39464
In reply to: have problem with SEND TO box
Riolec
ParticipantThank you johnjamesjacoby,
have try both way … the message still shown .. both this time is shorter than before:
WordPress database error Unknown column ‘Array’ in ‘where clause’ for query SELECT count(id) FROM wp_bp_friends WHERE (friend_user_id IN (Array) AND initiator_user_id = 1) OR (initiator_user_id IN (Array) AND friend_user_id = 1) made by friend_search_friends, BP_friends_friendship->search_friends
is their any other way to solve this problem?
March 8, 2009 at 4:55 am #39448In reply to: Widget Ajax Problem on Members/Groups
John James Jacoby
KeymasterHaha Thanks! Happy to help!

I’ve also noticed that WordPress can be particular about the jquery version it’s using also. I’ve tried upgrading to the newer versions just to be on top of things, and it usually breaks something.
March 8, 2009 at 3:39 am #39441In reply to: Post length limit?
John James Jacoby
KeymasterIf this is in regards to making a new blog post, than unfortunately that falls more into being a WordPress MU support question than one we can accurately diagnose here.
However, I can tell you from experience that I’ve never experienced any issues saving even extremely huge content and HTML element heavy blog posts.
(I’m going to change this to “not a support question” since it’s a little out of our scope, so that no one else sees this as a BP issue.)
March 8, 2009 at 3:30 am #39440In reply to: Users unable to create blogs
John James Jacoby
KeymasterLooks like you’re going to need to use sub directories instead of subdomains. Don’t worry, as they work identically, but instead of blog.yourdomain.com, you’ll have yourdomain.com/blog
(This is also more of a WordPress MU support question, but because others may benefit from this too, lets discuss…)

Stop me if you’ve heard this, but it should be a semi-easy fix.
in wp-config.php, change…
define('VHOST', 'yes');to
define('VHOST', 'no');and make sure…
$base = '/';Then, you’ll want to dive into either phpMyAdmin, or each of your blogs admin panels and edit them individually, just making sure that the paths to each of the blogs are correct.
March 8, 2009 at 12:35 am #39436In reply to: Facebook connect
John James Jacoby
KeymasterMy brief experience with the Facebook Connect plugin for WordPress was that the necessary edits took away from the pluggable nature of WordPress plugins, and the file includes made the site feel pretty sluggish.
Fix those issues and it could be a super popular plugin.
Now correct me if I’m wrong, but doesn’t this allow Facebook users that have not registered through your website to still login to your site as if they were verified users? I think when they do that, they are assigned a pseudo-name in the wp_users table, which then only allows them to sign in using FBConnect and nothing else, correct?
Call me a disbeliever, but while I can see the value in this, I also see how once it’s installed and relied upon, that you’re very much stuck with that method for those individuals.
What do you do when 4 years from now, no one uses Facebook anymore? (Friendster anyone?) If your site takes off, and those users have previously only used their Facebook id to login to your site, now they need to create a new duplicate profile without it.
Maybe I’m being selfish here, but I like my users to register with me, and keep their files and data within my sites.
March 7, 2009 at 9:40 pm #39429In reply to: BuddyPress Showoff: Post your links
felix2009
ParticipantMarch 7, 2009 at 3:26 pm #39422In reply to: Facebook connect
gpo1
ParticipantHere some info on the Facebook connect,maybe if it works with wordpress Mu then it could work for BP.
What do you think?
March 6, 2009 at 11:46 pm #39408In reply to: Buddy Press Home Page as a Content Page
modemlooper
ModeratorYou can use any page template as a home page. In the admin of mu just have the front page as a static page choose the page, it could be called home, and then select the page template you want. I think page templates are the most under utilized feature of wordpress. You can make it anything you want.
If you do not know how to create custom page templates the search on wordpress. many tuts.
March 6, 2009 at 8:56 pm #39393In reply to: Is it possible to have custom themes for groups?
nicolagreco
Participantif (the group is XBOX) add_action(‘wp_print_styles’, ‘your style hook’)
i made a good set of functions in bpdev theme to add stylesheet with condition, look here:
http://trac.bp-dev.org/plugins/browser/trunk/bpdev-theme/bpdev-theme-extra.php
look line 9:
function bpdev_theme_register_style( $slug, $name, $callback, $default = 'off', $admin_show = 'on', $condition = true, $priority = 1 ) {it means that with this function you will be able to add styles in wordpress/buddypress integrating them in the bpdev admin interface to activate or deactivate them,
in your example you need a plugin like that called for example my-styles-bpdev.php
<?php
/*
Author: Nicola Greco
Author URI: http://nicolagreco.com
*/
require_once( 'bp-core.php' );
require_once( 'bpdev-core.php' );
function bpdev_search_css() {
global $group_obj;
bpdev_theme_register_style(
'my-styles', // your style slug name
'XBOX Styles', // your style name
'xbox_styles_function', // callback
'on', // status "on" on default
'off', // off will not display it in admin interface
$group_obj->id = 1; // the group ID
);
}
function xbox_styles_function() { // example of css content
?>
#header {
background: #FFF;
}
<?php
}
add_action( 'bpdev_theme_extra_setup_globals', 'bpdev_search_css' ); // it will add the style
?>March 6, 2009 at 8:48 pm #39389bigkill
Participantokay.. for future BP installers if you get 500 error after mu install and your host doesn’t like your .htaccess file
the default htaccess.dist looks like this
RewriteEngine On
RewriteBase BASE/
#uploaded files
RewriteRule ^(.*/)?files/$ index.php [L]
RewriteCond %{REQUEST_URI} !.*wp-content/plugins.*
RewriteRule ^(.*/)?files/(.*) wp-content/blogs.php?file=$2 [L]
# add a trailing slash to /wp-admin
RewriteCond %{REQUEST_URI} ^.*/wp-admin$
RewriteRule ^(.+)$ $1/ [R=301,L]
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule . - [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-.*) $2 [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(.*.php)$ $2 [L]
RewriteRule . index.php [L]
<IfModule mod_security.c>
<Files async-upload.php>
SecFilterEngine Off
SecFilterScanPOST Off
</Files>
</IfModule>But…
notice line #2
RewriteBase BASE/
this should read
RewriteBase /
so if you get 500 error.. this could be the culprit – works for me
March 6, 2009 at 8:30 pm #39388In reply to: Is it possible to have custom themes for groups?
Burt Adsit
ParticipantI ran across something similar.
https://wordpress.org/extend/plugins/art-direction/
Allows ‘per blog post’ custom css. Cool.
In the case of bp the css gets queued up on a very selective basis. This is from bp-groups-cssjs.php in /mu-plugins/bp-groups:
function groups_add_structure_css() {
/* Enqueue the structure CSS file to give basic positional formatting for components */
wp_enqueue_style( ‘bp-groups-structure’, site_url( MUPLUGINDIR . ‘/bp-groups/css/structure.css’ ) );
}
add_action( ‘bp_styles’, ‘groups_add_structure_css’ );
We got actions too. Hook ‘bp_styles’ and define an override for the defaults. You might have a problem getting it in the sequence properly.
function my_custom_group_css(){
// check if the file exists and if it does queue it up
‘group-custom-‘ . $bp->groups->slug . ‘.css’
}
add_action(‘bp_styles’, ‘my_custom_group_css’, 99);
March 6, 2009 at 8:02 pm #39383In reply to: Plugin Developers – Submit to WP Plugin Repo
GiovanniCaputo
ParticipantOk I have tried how to:
In this link readme standard: https://wordpress.org/extend/plugins/about/readme.txt
March 6, 2009 at 8:00 pm #39381bigkill
Participantjohnjamesjacoby – so what should my directory look like where wordpress lives?
/.htaccess
/htaccess.dist
or that the content of htaccess.dist and place into .htaccess?
I have been fighting this and my php.ini.. so if I knew the correct way I need to start there.
TIA
March 6, 2009 at 10:57 am #39358In reply to: Creating different users and their registration
Burt Adsit
ParticipantNot sure what you mean. You want to create a different role system or just create a ‘visitor’ account? There’s a plugin called ‘role manager’ that might do what you want.
https://codex.wordpress.org/Roles_and_Capabilities
http://www.im-web-gefunden.de/wordpress-plugins/role-manager/
March 6, 2009 at 9:53 am #39346Michael Berra
ParticipantI am using this plugin for that case – i think it’s great
:March 6, 2009 at 3:26 am #39340In reply to: WordPress Mu 2.7 and Buddypress POT File!
bloggus
ParticipantWPMU
To translate the WPMU, which I think you want to do, do this:
1. Download the POT file for regular WordPress, current version. WPMU have a lot of strings that are the same. You save a lot of work.
2. Download PoEdit, http://www.poedit.net , install it
3. Download current WPMU
4. Open the POT file for the regular WP
5. Change the path in PoEdit to the path where you have your sorce files to WPMU
6. Run “Update from source” in the PoEdit. That will create you a POT file for WPMU, but will also keep a lot of phrases translated, so you save work.
—
BuddyPress
Same software can be used to extract and create POT file.
March 5, 2009 at 11:19 pm #39330In reply to: WordPress Mu 2.7 and Buddypress POT File!
tufancetin
Memberhelp please!
March 5, 2009 at 10:23 pm #39328In reply to: Where to start theming
Andy Peatling
KeymasterIt’s okay to do anything you want with the theme files, just as you would do in WordPress.
You don’t need the loader.php stuff if you don’t want to, however, it does add some extra functionality, such as cross theme CSS and the ability to selectively load styles.
You should also read this:
https://codex.buddypress.org/getting-started/using-the-buddypress-themes/
March 5, 2009 at 9:05 pm #39323plrk
ParticipantI have no idea what the problem is really, but you should be using subdomains for your wpmu blogs if running WordPress MU, afaik. Otherwise you are bound to get in trouble.
March 5, 2009 at 7:41 am #39303In reply to: BP Avatars in bbPress
John James Jacoby
KeymasterI basically started going through what changes were made to your plugin since it last worked, and started replacing code block by block. Once I could debug the XML request, it gave me some eyes in the back of my head so to speak, to watch what I couldn’t otherwise see.
So basically, it sounds like there is something in the xprofile field, and/or something in some users meta info that the XML parser just doesn’t like, so it gets caught up and returns a crappy value? Is that a good guess? You think it’s time to just rip through the user meta and see if anything looks suspicious?
Here’s a question. What if there are users that haven’t yet updated their profiles in BuddyPress? They were converts from a wordpress.org install, and if they haven’t returned since then, BuddyPress doesn’t have a “fullname” for them yet, and they also don’t have xprofile info. Could that break this somehow? Is there a way to watch this user by user and have it spit out an error when it finds a bad value?
Also, just for the record. I’m using BuddyPress RC1, bbPress Alpha6, and WPMU2.7. Is it possible there was a trunk update that you’re using that I’m not that maybe gives you different results than me?
More specifically, if I comment out line 335 in oci_bp_groups_forums.php…
//$user['xprofile_' . $group->name . '_' . $field_obj->name] = array('group' => $group->name, 'name' => $field_obj->name, 'value' => $field_obj->data->value, 'type' => $field_obj->type);And run the group import, it works without error as well.
If I put a switch on the $field_obj-> name…
switch ($field_obj->name) {…and only retrieve the custom title and forum signature, the groups import also works (still not for all users though, only groups.) I think it may be tripping over a specific type of field. I’m going to guess the textarea field, but that’s totally a blind guess with no merit or motive what-so-ever.
March 5, 2009 at 12:50 am #39294In reply to: BP Avatars in bbPress
John James Jacoby
KeymasterMy process above was using deep integration. Even if an XMLRPC request looks for the xmlrpc.php in the bbpress install directory, it still loads bb-load.php, which loads bb-config.php, which loads all of wordpress before proceeding to load the remainder of bbpress. If an XMLRPC request is being made from buddypress to bbpress (like when viewing a group forum from within BP), I don’t want to reload all of buddypress again invisibly, if that makes sense?
That’s why I did…
if ( !defined('ABSPATH') & !defined('XMLRPC_REQUEST')) {in bb-config.php, to prevent reloading ALL of wpmu and bp just for a quick xmlrpc peek.
What I don’t get is why it works in every version but this new one.
March 4, 2009 at 11:31 pm #39286In reply to: Constant CSS (global styles) for Home and Members
Trent Adams
ParticipantWordPress allows you to subscribe to the wp_head filter to add things through plugins to your site. More information is found here on that. An example of this in use would be looking at this one even though it is a little different than you are looking for, but gives idea how to do it.
Really, you create a little plugin to put in your /mu-plugins/ folder that has a function that adds the stylesheet to the wordpress header of every page. Then you subscribe that function to the wp_head filter.
Trent
March 4, 2009 at 8:25 pm #39279In reply to: Increase Avatar Quality – Looks Hazy?
Paul Wong-Gibbs
KeymasterWordPress has had a patch submitted for this imagejpeg() thing and it’s already been added into the source, so future releases (and therefore future releases of WPMU) should let us use our filter. Hurrah!
March 4, 2009 at 7:41 pm #39276In reply to: Making Member Theme Header Match Main Theme
Simon
ParticipantWordPress detects the currently enabled theme’s root and css directories via the bloginfo(‘template_directory’) and bloginfo(‘stylesheet_directory’) functions.
To call the css and images from the home theme in a member theme template you would have to hard code the path references as “/wp-content/themes/buddypress-home/styles.css”.
Personally, as hard coding is generally a bad idea, I would suggest simply copying the elements you wish to use from the home theme directory to the member theme directory and reference them the usual way.
March 4, 2009 at 5:39 pm #39268In reply to: BuddyPress For WordPress (Not MU) Coming
Adam W. Warner
ParticipantI couldn’t agree more with donnacha. I would rather see patience and success, than instant gratification and failure. (not that it would ever fail of course:)
-
AuthorSearch Results