Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'wordpress'

Viewing 25 results - 22,201 through 22,225 (of 22,713 total)
  • Author
    Search Results
  • #39464
    Riolec
    Participant

    Thank 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?

    #39448

    Haha Thanks! Happy to help! :D

    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.

    #39441

    In reply to: Post length limit?

    If 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.)

    #39440

    Looks 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.

    #39436

    In reply to: Facebook connect

    My 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.

    #39429
    felix2009
    Participant

    I’ve just started with BuddyPress at:

    http://wordpress-blog.nl/

    It’s all in the Dutch language ;-)

    #39422

    In reply to: Facebook connect

    gpo1
    Participant

    Here some info on the Facebook connect,maybe if it works with wordpress Mu then it could work for BP.

    What do you think?

    https://mu.wordpress.org/forums/topic.php?id=10351

    #39408
    modemlooper
    Moderator

    You 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.

    #39393
    nicolagreco
    Participant

    if (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

    ?>

    bigkill
    Participant

    okay.. 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

    source – https://mu.wordpress.org/forums/topic.php?id=11076

    #39388
    Burt Adsit
    Participant

    I 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);

    #39383
    GiovanniCaputo
    Participant

    Ok I have tried how to:

    In this link readme standard: https://wordpress.org/extend/plugins/about/readme.txt

    bigkill
    Participant

    johnjamesjacoby – 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

    #39358
    Burt Adsit
    Participant

    Not 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/

    #39346
    Michael Berra
    Participant

    I am using this plugin for that case – i think it’s great :-):

    https://wordpress.org/extend/plugins/tdo-mini-forms/

    #39340
    bloggus
    Participant

    WPMU

    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.

    #39330
    tufancetin
    Member

    help please!

    #39328

    In reply to: Where to start theming

    Andy Peatling
    Keymaster

    It’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/

    plrk
    Participant

    I 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.

    #39303

    In reply to: BP Avatars in bbPress

    I 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. :)

    #39294

    In reply to: BP Avatars in bbPress

    My 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.

    #39286
    Trent Adams
    Participant

    WordPress 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

    #39279
    Paul Wong-Gibbs
    Keymaster

    WordPress 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!

    #39276
    Simon
    Participant

    WordPress 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.

    #39268
    Adam W. Warner
    Participant

    I 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:)

Viewing 25 results - 22,201 through 22,225 (of 22,713 total)
Skip to toolbar