Robin W (@robin-w)

Forum Replies Created

Viewing 25 replies - 13,826 through 13,850 (of 14,191 total)
  • @robin-w

    Moderator

    I presume this is a private forum, in which case as I’m not logged in, I can’t see the forums, so can’t help 🙂

    @robin-w

    Moderator

    Which version of bbPress are you one, whilst I have your lines of code, my line 1766 of this file is in a different place than yours, and your line 1723 is my line 1700, suggesting you have extra stuff.

    Might be worth you downloading a fresh version of the plugin to your pc, and cracking open this file to see if it’s the same.

    @robin-w

    Moderator

    Presume you are getting the fatal error as you activate the plugin.

    Try copying that file to your PC (so it’s safe), and then deleting it from the plugin, and re-activate. That’ll confirm if it’s that file that has the problem, or whether the real problem is elsewhere. If it’s in that file, the plugin should activate without it, or produce an “unknown function” error rather than repeat the one you’re now getting.

    Come back with the result !

    @robin-w

    Moderator

    Could be you have a problem on your functions file – have you amended it in any way?

    viz

    http://johnlamansky.com/tech/php-fatal-flex-scanner-internal-error/

    if not, can you post back the lines 10 either side of the line it is quoting as the problem

    @robin-w

    Moderator

    possible conflict with other plugins or your theme

    Try deactivating all plugins except bbPress and then add buddypress back and restest. if ok, the add other plugins back one at a time to see which is causing the conflict.

    If no joy, then switch to default theme (eg twentytwelve) and see if it still is still there

    Come back and let us know how you got on

    @robin-w

    Moderator

    OK FINAL ANSWER

    Have finally got it working in the menu (and corrected the error in the post above!) !

    so for menu have

    // Filter wp_nav_menu() to add profile link
    add_filter( 'wp_nav_menu_items', 'my_nav_menu_profile_link' );
    function my_nav_menu_profile_link($menu) { 	
    	if (!is_user_logged_in())
    		return $menu;
    	else
    		$current_user = wp_get_current_user();
    		$user=$current_user->user_login ;
    		$profilelink = '<li><a href="http://www.mysite.com/forums/users/' . $user . '/edit">My Profile/Edit Profile</a></li>';
    		$menu = $menu . $profilelink;
    		return $menu;
    }
    
    

    For on the forum page have

    //action to add "amend profile" to top of forums pages
    function rw_edit_profile () {
    	if (is_user_logged_in()) {
    	$current_user = wp_get_current_user();
    	$user=$current_user->user_login ;
    	$user_link = '<br><a href="http://www.mysite.com/forums/users/' . $user . '/edit">My Profile/Edit Profile</a>';
    	echo $user_link ; }
    }
    
    add_action('bbp_template_before_forums_loop','rw_edit_profile') ;
    
    
    In reply to: Is it worth it?

    @robin-w

    Moderator

    I’m sure there are plenty of highly active bbPress sites, with 20% of the world’s websites being wordpress they’re bound to be. That these people don’t come to the attention of a support site – and that this site only gets 20 queries a day – is surely testimony to how good the software is !!!

    In reply to: Is it worth it?

    @robin-w

    Moderator

    This seems to be more a general question about the state of the internet.

    It depend on what you want from a forum and your site.

    If your site is all about generating money from say advertising rather than providing information, entertainment and/or a service, then unless you generate interest and content, the answer is no.

    If you want to add value for your users, then a forum does require effort from moderators, and effort to set up, but is worth it.

    Only you can really answer that question.

    @robin-w

    Moderator

    We could do with a bit more information than just the error!

    Have you just installed, or is this an existing bbpress site that has gone wrong?
    What were you doing at the time?
    Have you added any plugins or done any upgrades recently?
    Does it work at all?
    Does you site work but bbpress not?
    What versions of bbpress and WordPress are you on?
    what theme?
    what plugins are you using?

    @robin-w

    Moderator

    OK, so if we move outside the menu bar, you could have it after the breadcrumbs on the forum page

    Add this to your functions file

    //action to add "amend profile" to top of forums pages
    function rw_edit_profile () {
    	if (is_user_logged_in()) {
    		$user      = get_userdata( $user_id );
    		$name      = esc_attr( $user_name );
    		$user_link = '<br><a href="http://gos.rewweb.co.uk/forums/users/' . $user . '/edit">My Profile/Edit Profile</a>';
    		echo $user_link ; }
    }
    add_action('bbp_template_before_forums_loop','rw_edit_profile') ;

    But if you want to go the admin bar route, then the admin bar doesn’t show to not logged in users,
    just change each of your users to “show toolbar” in dashboard>user>edit

    @robin-w

    Moderator

    try :

    http://jobs.wordpress.net/

    someone should pick this up and help you

    @robin-w

    Moderator

    To edit what details the user can see/edit within the profile page then the template is

    wp-content/plugins/bbpress/templates/default/bbpress/form-user-edit.php
    and
    wp-content/plugins/bbpress/templates/default/bbpress/user-profile.php

    EDIT

    found the subscription/edit bit

    wp-content/plugins/bbpress/templates/default/bbpress/user-details.php

    @robin-w

    Moderator

    ahh..if you are saving in ‘text’ view, try changing to ‘visual’ or if you are in visual view try going to text. Sometimes the editor does funny things to stuff it sees as code. Once you have fixed it, try and not edit anything on the page, or if you do check whether it has changed the code, and change the code back as last thing.

    It’s an annoying bug in the wordpress editor where it get’s over-keen to ensure that code doesn’t screw up how it stores, but I’d prefer it to do that than muck up the database !

    @robin-w

    Moderator

    @donutz – thanks for sharing that, I’ll add it to the codex when I get a moment !

    In reply to: css problem..

    @robin-w

    Moderator

    take out the word div !

    .bbp-search-form {
    display:none !important;
    }
    

    @robin-w

    Moderator

    First thought is to de-activate, delete and re-install the plugin.

    Come back if that doesn’t work

    @robin-w

    Moderator

    Great, glad to hear you’re fixed, and have just added the code to one of my forums. One of those moments when you see something and think “that looks better”!.

    In reply to: Forum Index Scrunched

    @robin-w

    Moderator

    without spending time looking at defkon’s solution, I could say.

    However if you get the page template working, then copying that to a bbpress.php will ensure that bbpress uses it, and you can revert the page.php back to how it was, so it shouldn’t have any implications elsewhere on your site

    @robin-w

    Moderator

    so the answer is

    function short_freshness_time( $output) {
    $output = preg_replace( '/, .*[^ago]/', ' ', $output );
    return $output;
    }
    add_filter( 'bbp_get_time_since', 'short_freshness_time' );
    add_filter('bp_core_time_since', 'short_freshness_time');

    Drop this into your functions file

    @robin-w

    Moderator

    Think it’s as simple as

    is_bbpress()

    so try

    <div class="breadcrumbs">
        if(function_exists('bcn_display') && is_bbpress())
    {
    bcn_display();
    }</div>
    
    

    Haven’t checked the syntax, I’ll let you do that

    @robin-w

    Moderator

    Give me a day or two, and I’ll come back with a more detailed response.

    @robin-w

    Moderator

    Yes, it’s doable, but I’ve not yet delved into how to do it !

    @robin-w

    Moderator

    Great – glad you’re sorted

    @robin-w

    Moderator

    yes, you can customise for bbpress only – I’m actually adding this to the documentation as I write this, as it’s not obviously there !

    @robin-w

    Moderator

    yes, no problem.

    Make a copy of your theme page template that is full width, rename it bbpress.php and put in into your theme directory. bbPress will then use this for all it’s layout.

Viewing 25 replies - 13,826 through 13,850 (of 14,191 total)