Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 25 replies - 426 through 450 (of 457 total)
  • @anonymized-96400

    Inactive

    No, what you need to do is copy header.php and footer.php into your child theme and adjust them. Then, if you need different headers for each section do it with if statements (also in header.php and footer.php). You can find all the conditional tags in the BP codex.

    You could also code a little switcher that works with includes. That way you’d have the various headers in different files. It’d be easier to maintain.

    @anonymized-96400

    Inactive

    Screaming won’t get you anywhere, mate. Have you tried object cache?

    @anonymized-96400

    Inactive

    You should never modify the parent theme. When you update buddypress and with it the parent theme all your modifications will be lost.

    A good tutorial source for PHP and WP is net.tutsplus.com. And of course the codex here and on wordpress.org. As for writing functions, you do that exactly like I referenced in the comment above.

    @anonymized-96400

    Inactive

    Most of the do_actions you find within the default theme don’t have any actions hooked to them. I guess they are mostly there for plugins and for child themes.

    Yep, any template file you copy from the parent theme to the child theme overrides the one in the parent theme. With all these actions, though, you won’t need to do that much. Say you want to add a terms of service checkbox to your register page. So, rather than copying registration/register.php to your child theme and adding the checkbox manually, for example, you could just write a function in your child theme functions.php that hooks into a do_action call at the end of the form and adds a terms of service checkbox for you.

    Makes it really easy updating the parent theme.

    To find out what an action does, if anything, just copy the name of the action and do a search with it in the buddypress plugin folder. That should list you all functions that are hooked to that action (add_action).

    @anonymized-96400

    Inactive

    The best way to start with a theme for BP is to start off with the bp-default theme. Then copy files across from the bp-sn-parent theme if you need to modify a file. If not, then you can leave that file in bp-sn-parent, cause WP will get that automatically for you.

    Of course, you can add all the functions later. The codex here is a great starting point on what functions are available to you. You can also go through the bp-sn-parent theme and have a look what’s in there and move it across, if you don’t want to use a parent/child theme structure.

    You can place div#search-login-bar anywhere you like.

    do_action functions cannot be reversed. They happen at exactly that spot in the template files. There’s so many, though, that you won’t have a problem finding one that suits your needs. Basically, you can write some custom functionality and add that to a certain hook by calling the add_action function. Here’s an example.

    Somewhere in a template you might have this:

    do_action( 'your_action_name' );

    Then in your theme’s functions.php file you could put the following:

    function your_function_name()
    {
    //some stuff happens here
    }
    add_action( 'your_action_name', 'your_function_name' );

    That’s basically it. Sometimes the action passes along a variable with which you can then work.

    Hope this helps you along a bit. The codex at wordpress.org is pretty extensive as well and you’ll find loads of stuff on actions.

    @anonymized-96400

    Inactive

    Not sure. If it’s like WP, then around every three months, so the next one should then be beginning next year. The plugin will be available earlier, I guess.

    @anonymized-96400

    Inactive

    Hey,

    yeah, I had a look at JobPress, but didn’t really like it. In the end I developed my own jobboard theme (http://test.jobboardr.com). It’s still in alpha at the moment and isn’t available for download yet. I develop the BP jobboard after that theme, though, so, for example, the component will include a basic API that allows group admins to display posted jobs on their external webpages.

    I think a joboard plugin that works together with the groups works much better than a theme, although it probably depends on what you need that functionality for.

    @anonymized-96400

    Inactive

    If you have a look at the roadmap you can see that in the next major version we can expect fine grained privacy control.

    I believe Jeff, one of the moderators here, is working on a privacy component, that might make it into core. I don’t know when he will release it, though.

    In the meantime, you can copy registration/register.php from your parent theme to your child theme and add a sentence that profile pages are publicly accessible, so it’s not a good idea to save any credit card details…

    In reply to: Codex?

    @anonymized-96400

    Inactive

    Yep, but just reload the page a few times and eventually it pops up.

    In reply to: Vcard Div Location?

    @anonymized-96400

    Inactive

    It’s in profile/index.php.

    Search is your your friend :)

    In reply to: Group/Profile Layout

    @anonymized-96400

    Inactive

    chewbaker, it’s not really the job of a develper to supply the perfect theme to go with the software. Everybody wants something different anyways. Andy has created a brilliant starting point with the default theme and I don’t think it should be changed. He’s made it even easier to change things with the use of a parent theme, so I’m pretty confident that it’s not on any roadmap :)

    BP is still in it’s beginnings. With time you will see a lot more child themes and probably a few parent themes from other people that might do exactly what you want. Either you wait for that to happen or you get your hands dirty and dive into the simplicity that is CSS. There’s loads of tutorials available on the net and a few really good ebooks that can get you started (search for o’reilly, for example).

    As for your question, the two navigation bars are in files called userbar.php (the ‘me’ bar) and optionsbar.php. In the parent theme the call to these files are to be found in header.php all the way at the bottom surrounded by an if statement that tells the system to only display it on certain pages. You could move all three files to your child theme, delete the complete if statement in header.php and then include the call to userbar.php and optionsbar.php wherever you want them to appear. Any file you modify, though, you have to copy over to your child theme.

    Happy experimenting!

    @anonymized-96400

    Inactive

    Have a look at style.css in your child theme. There should be a commented line saying something about a bp-custom.css file (I think it was called that). Uncomment that line, create that file in _inc/css/ and put your modifications in there. Because this file gets loaded later it will take precedence over existing files.

    @anonymized-96400

    Inactive

    You just activate BuddyPress and you have all the functions at your disposal. Just like any other plugin. Then you look for the function you want to use and paste it into your template where you want its content to appear. There’re a few functions in the codex, but I prefer to just look through the theme/plugin files…

    In reply to: Video Page?

    @anonymized-96400

    Inactive

    Well, if they all upload their videos to your webserver, you’ll have the urls and additional data like title, length, viewed,… in your database. then you just need to grab that information, display it nicely on a page, plug the url into a flash player, paginate everything, sort it by upload date and you’ve got yourself a video wall. You could take a look at WordTube. I used that on a nomal WP install to make something like a videowall. Not sure if it works with WPMU, but you could modify it.

    Or you could use YouTube and use their API to enable uploading to YouTube from within your site. Your users would still need an account, though…

    @anonymized-96400

    Inactive

    Ok, it seems I’ve got it working now. I ended up copying and modifying bp_register_group_extension:

    function activate_skool_courses()
    {
    global $bp;
    $type = groups_get_groupmeta( $bp->groups->current_group->id, 'group_type' );
    if( $type == 'organization' )
    {
    $extension = new Group_Skool_Courses;
    add_action( "wp", array( &$extension, "_register" ), 2 );
    }
    }
    add_action( 'plugins_loaded', 'activate_skool_courses' );

    @anonymized-96400

    Inactive

    Very slick. I always thought, though, that it’s really hard to skin Joomla. So much easier in WP…

    @anonymized-96400

    Inactive

    I took a hard look at Elgg for the site I’m setting up at the minute. I actually started the site with Elgg, but switched over to BP in the end. Elgg, as a standalone social network engine, might be the perfect choice for some people, but the learning curve is a lot steeper than with WP, especially if you already have some WP experience.

    And the fact that WP and WPMU are gonna be merged means that WP as a whole is gonna be a lot stronger. And you just need to look at how many users/blogs WP.com can handle, so with the correct server setup your BP site has no limits scaling wise.

    In reply to: Weird MySQL Problem

    @anonymized-96400

    Inactive

    Hey!!

    cheers, DJPaul!! I never stop learnng…

    Many thanks,

    Boris

    @anonymized-96400

    Inactive

    Did some checking and it appears that the above code I posted doesn’t work as advertised.

    All the error messages are picked up correctly, but it seems that the additional $_POST values from register.php aren’t picked up, so it always displays an error message and a user basically can’t sign up.

    Any ideas are welcome, cause I don’t really have a clue :)

    @anonymized-96400

    Inactive

    Firebug is a great tool. Saves you loads of time. Another way to acomplish what you want to do is search in _inc/css/screen.css for whatever you want to change and then do a replace with whatever you want to change it to. That’s the quick and dirty way!

    Doing it Tore’s way with a custom.css is probably more fool-proof, cause you’ve got all your css changes in one place, but I prefer to work without a custom.css file…

    @anonymized-96400

    Inactive

    You can’t hook into the function responsible for the account menu at the moment, so it’s not possible right now using an action You’d have to hack core files, so it’s not a good solution. It seems the only menu you can hook into is ‘visit’.

    @anonymized-96400

    Inactive

    Ok, that’s pretty clever. Easier than my solution :) I prefer not to install a plugin if I don’t have to, but I’ll check the plugin out.

    @anonymized-96400

    Inactive

    You need more memory. Ask your hosting company to set it to 64MB. Had a look at bp-loader and it seems you run out of memory by the time the loader gets to the extended profiles…

    You can try putting this into your main .htaccess file (in wordpress root)

    php_value memory_limit 64M

    @anonymized-96400

    Inactive

    Oh, forgot something. You also need to add

    do_action( 'bp_NAME_OF_FIELD_IN_TEMPLATE_errors' );

    where you want the error message to appear in your register.php file.

    @anonymized-96400

    Inactive

    To check if a field has been filled in you can use this function.

    function sv_check_tos()
    {
    global $bp;
    if ( empty( $_POST['name_of_field_in_template'] ) )
    $bp->signup->errors['name_of_field_in_template'] = __( 'Your error message', 'sv' );
    }
    add_action( 'bp_signup_validate', 'sv_check_tos' );

    Useful for things like agreeing to TOS. Put the function in your functions.php or bp-custom.php file

Viewing 25 replies - 426 through 450 (of 457 total)
Skip to toolbar