Robin W (@robin-w)

Forum Replies Created

Viewing 25 replies - 13,876 through 13,900 (of 14,246 total)
  • In reply to: admin bar

    @robin-w

    Moderator

    Ok, I’ve worked out an easy(-ish) way to do this.

    a) Install the plugin WP Modal Login.
    Dashboard>plugins>add new>search “wp modal login” install and activate
    b) Settings
    Dashboard>settings>wp modal login
    you can play with the settings, but primarily you need to select a theme (later on you can play with the css to get it looking nice!)
    c) Then follow the post a couple up from the last in this link which has all the steps to add it to the menu
    NOTES:
    On step 4 – Whilst you can check all the options as he suggests, what you actually need to ensure are checked are “links” on the first line and Description under the “show advanced menu options”
    On step 5 – what you are creating is a new link, sop click “links” on the left hand side, and a dropdown with the url and link text will appear. Populate these two as he suggests and then add to the menu. Then look at the bottom right, and you’ll see this added as a custom item. Open this, and you’ll see the Description box, which is where you drop the shortcode.

    As I said, you can play with the css to get this looking how you want.

    Give it a go ! (I’m about to!)

    In reply to: LABELS

    @robin-w

    Moderator

    That should have worked.

    Try resetting your permalinks

    go into

    Dashboard>settings>permalinks and just click save

    If that doesn’t do it, can you come back and tell me what you breadcrumb for forums comes out as

    eg

    home>forums>forum

    @robin-w

    Moderator

    It’s picking up

    some background from
    .reply a {
    background-color: #8A8A8A;
    border-color: #FFFFFF;

    from what looks
    http://armada.sjebbe.nl/Discussion/topic/test-2/#3 line 57 possibly jscript related?, but something I think your theme is doing.

    @robin-w

    Moderator

    Ok, Glad you at least know what the problem is !

    In reply to: admin bar

    @robin-w

    Moderator

    Yes that is really quite good looking, I’d like to copy that also !

    The inloggen is in the menu, so it is a call from menu item.

    The site is using wordpress twentytwelve, but I don’t know whether it’s a plugin or they have coded it for themselves.

    I have contacted the site to see if they’d tell us how they did it. If I get a reply I’ll let you know !

    Maybe another support person on here knows how to code this – it’s actually a wordpress rather than bbPress solution.

    @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

Viewing 25 replies - 13,876 through 13,900 (of 14,246 total)