Robin W (@robin-w)

Forum Replies Created

Viewing 25 replies - 13,926 through 13,950 (of 14,246 total)
  • In reply to: bbpress sidebar

    @robin-w

    Moderator

    presume you are using the code is_bbpress() in your widget logic?

    @robin-w

    Moderator

    unfortunately you are right. The widgets that bbpress comes with can only be changed by filters, and that may be your solution.

    Alternately you can cut the widget code into a plugin. I do this to alter the wordpress login plugin, and once you get into it it’s quite easy, just google creating a plugin for lots fo resources.

    You’ll need some plugin code, and then to copy the widget into the plugin. You’ll then need to change the widget name so it doesn’t conflict.

    @robin-w

    Moderator

    If having themes and plugins in wp-content was a security issue, then WordPress all over the world would be hacked daily, and if wp-content is insecure then all wordpress folders would be and the locations of the wordpress core are all standard.

    I’d just put bbpress into a wp-content folder

    If you really want to stick with your route, then search the whole bbpress plugin for “wp-content” and just do a copy/paste. it may be one occurance, it could be hundreds.

    Of course you’ll need to repeat on any upgrade

    @robin-w

    Moderator

    can you do a screenshot of a phpbb page to show what you’d like, and add a link to it?

    @robin-w

    Moderator

    use the bbpress logon widget in a sidebar on your forum page, and it’ll stay on the forums.

    edit : sorry just read your entry again, and that’s exactly what you are doing !

    I disable dashboard for all my users – untick “show toolbar when visiting site”

    If they logout using the widget (which is their only option if they don’t have toolbar), then they don’t get the WordPress login page.

    You can customose the generic login form if you want to keep it see

    https://codex.wordpress.org/Customizing_the_Login_Form

    In reply to: Can no longer post.

    @robin-w

    Moderator

    How long have you had the forum?, and how long have you had the problem?

    Have you done any additional plugins, wordpress, bbpress or other plugin upgrades, or changed css or functions recently?

    What versions of wordpress and bbpress are you on?

    @robin-w

    Moderator

    Not quite sure what you are after

    There is a bbpress widget that shows latest topics which you can put into your sidebar.

    Otherwise come back and explain some more !

    @robin-w

    Moderator

    Think this thread should help you

    http://wpml.org/forums/topic/conflick-with-bbpress/

    @robin-w

    Moderator

    @robin-w

    Moderator

    it’s coming from bbpress stylesheet.

    there may be a quicker way to remove this, but one that should work is as follows.

    I don’t think you have a childtheme, and now may be the time to consider having one, see https://codex.bbpress.org/step-by-step-guide-to-setting-up-a-bbpress-forum-part-2/ for more details

    once done you need to navigate to

    wp-content/plugins/bbpress/templates/default/css/bbpress.css

    copy this file into a folder called css within your theme, so you end up with
    wp-content/themes/mychildtheme/css/bbpress.css

    where mychildtheme is the name of your childtheme

    Then edit every line that has

    background-color : xxxxxxx

    change to

    background: none repeat scroll 0 0 rgba(0, 0, 0, 0.4);

    NOTE it goes from background-color to background
    and it is only the background color that you’ll be changing, not lines which just have color: as that’ll be text!

    eg

    #bbpress-forums div.bbp-forum-header,
    #bbpress-forums div.bbp-topic-header,
    #bbpress-forums div.bbp-reply-header {
    	background-color: #f4f4f4;
    }
    

    becomes

    #bbpress-forums div.bbp-forum-header,
    #bbpress-forums div.bbp-topic-header,
    #bbpress-forums div.bbp-reply-header {
    	background: none repeat scroll 0 0 rgba(0, 0, 0, 0.4);
    }
    

    This will make the background transparent, but with a darker tint shading that you have in your sidebar (the amount of difference is on the 0.4 bit, 0.1 is the lightest, 1.0 the darkest).

    Come back if that doesn’t fix it, or for further help

    @robin-w

    Moderator

    the answer is probably yes – a forum post is a post

    You might do better to install bbPress WP Tweaks Widget Logic plugin which gives you a forum specific sidebar

    alternately (or additionally) use widget logic where you can use code like is_bbpress()or the negative !is_bbpress()to control where widgets are shown

    @robin-w

    Moderator

    Biloute,

    There are lots of ways into bbpress and wordpress. Can you post a link to the screen you’re talking about so that we can clearly see what text you want to remove.

    @robin-w

    Moderator

    great, glad you’re sorted !

    @robin-w

    Moderator

    ok, that all looks fine.

    The error as far as I can work out says that it has an unexpected ‘/ ‘ on the evaluated code on line 4 – so for the code in the profile page line 4 is

    ?>/edit/">
    

    However this may not be a line 4 error, but something that is missing or not evaluating correctly on an earlier line.

    I’d try the following

    Recheck that the code is pasted exactly as it should be, with no missing characters eg ‘;’s from ends of lines etc. The lines posted in my previous post go passed the visible, so did you scroll to the right – just checking the obvious first !

    that your domain is spelled correctly etc.

    Then I’d try removing the / from the start of line 4 – the edit bit, and the from the end of the edit bit – I don’t think that’s the problem, but try it anyway.

    The just form my sanity copy the code from your page back into a post here, and I try it on my site to see if I get the error.

    Then we’ll see where we go from there !
    `

    @robin-w

    Moderator

    ok, great to hear, and suspect you’ll never know why it didn’t – that’s computers for you !

    @robin-w

    Moderator

    Ok, thanks for clarifying.

    Suspect this could be because your path is slightly different.

    Can you go into a profile edit for me , that is into bbpress and then go into edit for a real username

    The in the url you should be something like

    http://mysite.com/forums/users/admin/edit

    Post on here what that path looks like. You can substitute mysite.com for your site, and admin for whatever username you are using, it is the stuff around that I am after.

    @robin-w

    Moderator

    Hey, great that you’re working !

    @robin-w

    Moderator

    the best solution so far courtesy of Ronthai

    In Dashboard>plugins>add new
    Search for WP exec PHP, install and activate

    Create a new page called “profile” or whatever name you want

    In content of this page, add this code

    <meta http-equiv="refresh" content="0;URL=http://mysite.com/forums/users/<?php global $current_user;
          get_currentuserinfo();
    
         echo  $current_user->user_login . "";
          
    ?>/edit/">
    

    Where mysite.com is your site name

    If using custom menus, add the page to the menu.

    And it works !

    In reply to: Menu link to Profile

    @robin-w

    Moderator

    Ronthai – have just tried it for profile, and it works well

    Summary of what I did

    In Dashboard>plugins>add new
    Search for WP exec PHP, install and activate

    Create a new page called “profile” or whatever name you want

    In content of this page, add this code

    <meta http-equiv="refresh" content="0;URL=http://mysite.com/forums/users/<?php global $current_user;
          get_currentuserinfo();
    
         echo  $current_user->user_login . "";
          
    ?>/edit/">
    

    Where mysite.com is your site name

    If using custom menus, add the page to the menu.

    And it works !

    @robin-w

    Moderator

    hmmm…

    Should work !

    Are you changing it in wp-content/plugins/bbpress/templates/default/bbpress/loop-forums.php?

    or in your child theme?, and if the latter can you detail the path from wp-content/ onwards

    @robin-w

    Moderator

    I’m sorry that you feel that something for which you paid nothing isn’t for you.

    But I don’t think that abusing the people on here who are trying to help you by saying it sucks is really the way forward.

    I hope you are able to find some free software that works precisely as you want.

    Whilst most people use sidebars and widgets to perform these functions, I shall continue to see if there is an easy way to get this into a menu and add it to the codex if I work it out.

    Best wishes

    Robin

    @robin-w

    Moderator

    Just had another thought. Since the error is occurring as part of the submit, it could be an issue with the database.

    I’d suggest you run the repair functions for the forums

    Dashboard>tools>forums

    I’d run them all, BUT ONLY ONE AT A TIME! as they use a lot of resource

    @robin-w

    Moderator

    Steady, wasn’t accusing you of doing anything wrong ! A programming error can occur in plugins, or as a result of a combination of plugins. “You have a programming error” is very different from “you created a programming error” ! That you have an error doesn’t mean you created it !

    I still find that when I submit I get a http500 error, but the post has posted. If I click refresh it then works fine.

    As you have tried this with all plugins except buddypress disabled, and you have tried it with just twenty-eleven, then I’d suggest you try without buddypress to eliminate that.

    If you still have the problem, the suggest you delete and reload both bbpress and buddypress plugins in case they glitched when loading.

    @robin-w

    Moderator

    @crzyhrse

    Hey thanks for your kind words, very much appreciated.

    I have added you submit button at the bottom of the styling guide, and happy to add any others people will think useful.

    I am trying to write a filters and actions guide – but keep getting diverted to other things, and a “creating a test site” guide as well, so hopefully will get these onto site in the next few weeks !

    @robin-w

    Moderator

    your last question is easy, .org have customised, just as you are trying to do by adding it as a menu item – we all like it to look slightly differently to others.

    I have tried from my little knowledge to get it to work but can’t. The best I can get is

    // 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
    		$user      = get_userdata( $user_id );
    		$name      = esc_attr( $user_name );
    		$user_link = '<li><a href="http://www.mysite.com/forums/users/' . $user . '/edit">Amend profile</a></li>';
    		$menu = $menu . $user_link;
    		return $menu;
    }

    But this just returns

    http://www.mysite.com/forums/users//edit

    Sorry, I have given up.

    Can someone else get this working? – it is now annoying me !

Viewing 25 replies - 13,926 through 13,950 (of 14,246 total)