Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 9,726 through 9,750 (of 32,505 total)
  • Author
    Search Results
  • #156872
    Robin W
    Moderator

    yes just use ‘hours’ instead of ‘days’

    eg

    if ($last_active < strtotime( '-48 hours') )
    
    #156869

    In reply to: Category Tree

    Robkk
    Moderator

    download this .zip , extract the file loop-forums.php and copy it into a folder called bbpress in your child theme

    https://github.com/robkk/bbPress-Hierarchical-Forum-and-Category-Layout

    more on bbpress templates go to this.

    codex.bbpress.org/theme-compatibility/

    need anymore help setting it up please reply back.

    #156862
    Robkk
    Moderator

    i think i found it, i had the bbpress templates copied to my child theme of twenty-fifteen and it worked, i then removed it and i saw exactly what you explained.

    you have to copy the bbPress templates to a folder called bbpress in your child-theme

    follow this document and see if it fixes your issue.

    https://codex.bbpress.org/theme-compatibility/

    #156860
    j0n4h
    Participant

    Sorry for the late response! So, it was in fact a bug in the Avada theme code. Because of this, they just manually fixed it for me and are including the fix in their next patch, so hopefully it won’t happen to users in the future.

    Their Dev response:

    We have customized template files in the theme and there was a bug where Post count was not adding topic count on top of reply count which is what I have changed for you.

    Anyways, I have fixed the post count issue for you and it will also be fixed in the next version of Avada.

    #156858
    se7en1216
    Participant

    Sorry for the delay, was out yesterday evening.

    I altered the template.php file and put the following at line 2266

    Original:

    // Add the breadcrumb
    // $crumbs[] = '<a href="' . esc_url( $root_url ) . '">' . $r['root_text'] . '</a>';

    Modified:

    // Add the breadcrumb
    // $crumbs[] = '<a href="' . esc_url( $root_url ) . '">' . $r['root_text'] . '</a>';
    $crumbs[] = '<a href="/forums/">Forums</a>';
    }
    #156839
    sciencegeek
    Participant

    I’m very new to WP, so thanks for the support. After reading lots of support pages I’ve been able to create a simple home page showing a single Forum Topic; however, it also shows all of my other pages as boxes just below the forum box (e.g. registration, lost password, etc.) as one very long webpage. It looks like it shows all the website pages on one long page.

    I’m just trying to setup my site and on the home page show only the Forum Topics. So I created a new page (lets call it “Start”) and redirected the home page to this “Start”. This worked fine.

    Next I used the short code [bbp-single-forum id=49] to show my identified forum. The problem is that it shows everything else.

    When I go to the forum page things look great (aka it only shows the forum, header and right column).
    Go to http://www.sciencegeek.com to see the problem.

    Thanks again

    #156838
    jeffacubed
    Participant

    Thanks so much @korobochkin for sharing this in such detail! I’m going to test this out from start to finish on a 100% fresh bbPress, multi-site setup over the next few weeks. I’m thinking this is ‘finally’ a rock-solid sol’n to managing bbPress on multi-site, particularly in situations where the root site has no obvious visual/branding/etc relationship to the other sites on the network.

    This sol’n looks very solid, much better than what I was previously doing with the Login With Ajax (lwa) plugin, wp-members (plugin) & hard-coded redirections (which while worked, seemed very ‘hacky’) & would not work with the [bbp_register] shortcodes, etc.

    Thanks again Koyla!

    -Jeff

    #156833

    In reply to: post date not working

    Robkk
    Moderator

    thats not the post-date its suppose to be an IP address

    only keymasters and maybe moderators can see it and its for banning users from their IP addresses

    use this custom CSS to make a little tidy

    span.bbp-author-ip {
        font-family: "Helvetica Neue",Arial,Helvetica,"Nimbus Sans L",sans-serif;
        font-size: 11px;
        font-weight: bold;
        color: #AAA;
        word-wrap: break-word;
    }

    here is to remove it

    span.bbp-author-ip {
        display:none;
    }
    #156824
    Robkk
    Moderator

    the bbcodes one i think you can deactivate the message in gd bbpress tools settings.

    go to the bbcodes section find BBCodes New Topic/Reply Notice and deactivate that.

    the unrestricted HTML content message shows up for only keymasters so its not really worth messing with since you are the only one seeing it.

    #156814
    Nekurahn
    Participant

    These are two notices I get when I’m logged in and about to post on the forums.

    Is there any way to remove them?

    “You can use BBCodes to format your content.”

    “Your account has the ability to post unrestricted HTML content.”

    Thank you for your time!

    Robin W
    Moderator

    ok, lets break this down

    A)

    I was having trouble with a theme so I deactivated and reactivated bb press, since then all my “private” forums take me to a 404 page

    and

    However all the pages which I embedded the private forums via shortcode are still working

    Can you explain further where you can and cannot see forums?

    1. Are they visible from the backend

    Dashboard>forums>all Forums and then ‘view’ a forum

    2. On the ‘the pages which I embedded the private forums via shortcode are still working ‘ – so you can view here – yes?

    3. when is the 404 page occurring – is it just the forum root page, and if so are these being listed but going to 404 when you click.

    B) I presume you are logged on, at what level and can you try different levels eg participant, moderator and keymaster and tell us if this is different or the same.

    c) You don’ tell us what trouble you were having with the theme, so it would be good to eliminate this and plugins so

    Plugins

    Deactivate all but bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.

    Themes

    If plugins don’t pinpoint the problem, as a test switch to a default theme such as twentytwelve, and see if this fixes.

    #156797
    Sparkey
    Participant

    Thank you Robkk for the help. I deactivated all the plugins a couple weeks ago and checked that, no help at all.

    I had forgotten about the theme thing, I did as you suggested this morning and changed to 2012, no help, I clicked on the hardcoded sidebar link and it redirected it to a bad ugly link. Which it wouldn’t do if I uncheck the “group forums” check box at bbpress settings.

    Bummed

    stevebradley1
    Participant

    Hi there,

    I was having trouble with a theme so I deactivated and reactivated bb press, since then all my “private” forums take me to a 404 page and when I view the forum root page, it doesn’t show the private forums listed.

    However all the pages which I embedded the private forums via shortcode are still working and all the posts are there?

    Eeek! Please help!

    #156793
    pydun
    Participant

    Hi everyone,

    I installed bbpress on my company’s website, and when i tried to create new topic like what i am doing here, the brower will return “no data received” error, and if i click more information, i found the error code “ERR_EMPTY_RESPONSE”.

    I’ve tried to deactivate most of the plugin except bbpress, and the problem remains.

    And if I type something short, like “test”, it can be created.

    Does this has to do with the usage of server space? Because I used about 80% of it.

    Thank you in advance for your help. Please let me know if you need more information

    #156787
    shootingtime
    Participant

    While redesigning my website, I can not get the custom sidebar to work in the bbPress forum.

    Plugins I have installed:

    -Custom Sidebars

    -bbPress WP Tweaks

    Theme: Smart Mag
    Forum URL: http://shootingtime.com/test2/archery-bowhunting-forum/

    This is how I got to where I’m at:

    Attempt #1

    1. I assigned bbPress to use the forum root slug /archery-bowhunting-forum/

    2. I created a page with the url slug /archery-bowhunting-forum/

    3. With the ‘Custom Sidebars’ plugin, I created a sidebar called ‘forums sidebar’.

    4. I checked the box entitled ‘Allow this sidebar to be replaced’ on the sidebar named “main sidebar”

    5. I went to the forum page (with the url slug /archery-bowhunting-forum/) and selected the ‘forums sidebar’ from the custom sidebar options

    This did not work. I tried it with another individual page and it did work so I assume it’s a bbPress specific problem.

    Attempt #2

    1. I installed bbPress WP Tweaks

    2. bbPress WP Tweaks gave me a widget called “bbPress sidebar” so I customized it.

    It didn’t work.

    I went to the forum page and selected “bbPress sidebar” in the option field. This didn’t work either.

    There is one way I did get the forum index page and the custom sidebar to show up at the same time. It happened when the url slug was different the the bbPress forum slug and I used the bbPress shortcode for the forum to show up. When I clicked on a subforum, the custom sidebar disappeared though.

    Please someone HELP!!!!!!!

    Thanks

    #156785
    renzoster
    Participant

    Hi!

    I found some solution for this problem. Only you need to put this code on functions.php of your active theme:

    function custom_bbp_show_lead_topic( $show_lead ) {
    	if(!current_user_can('manage_options')){
    		$show_lead[] = 'true';
    	}
    	return $show_lead;
    }
    add_filter('bbp_show_lead_topic', 'custom_bbp_show_lead_topic' );
    #156772

    In reply to: Multiple forum titles

    Robin W
    Moderator

    I’ve just added a shortcode to one of my plugins that lets you custom list forums

    bbp additional shortcodes

    [display-forum-index forum= ‘2932, 2921′ breadcrumb=’no’ search=’no’] Displays the selected forum indexes – see the site for details

    #156767
    Robkk
    Moderator

    you can disable the search form in settings>forums in the backend dashboard of WordPress so that you wont have to use the CSS anymore.

    and unless you already did you could remove the code that renders the title in your bbpress.php file.

    if you haven’t created a bbpress.php you should

    https://codex.bbpress.org/theme-compatibility/getting-started-in-modifying-the-main-bbpress-template/

    if you still need help copy the first half of the bbpress.php file you have in a reply here.

    #156766
    Robin W
    Moderator

    As you no doubt already know, this is just a warning message, and bbpress say it is an issue with wordpress, and are waiting for wordpress to fix. Also as you know (but for others reading this), turning off debug fixes this.

    If you want it to disappear whilst you are developing (and so need debug on), then go to

    wp-content/plugins/bbpress/includes/core/sub-actions.php

    and comment out/change line 147

    _doing_it_wrong( __FUNCTION__, __( 'The current user is being initialized without using $wp->init().', 'bbpress' ), '2.3' );
    
    

    to

    //_doing_it_wrong( __FUNCTION__, __( 'The current user is being initialized without using $wp->init().', 'bbpress' ), '2.3' );
    
    

    and change back after developing as well as turning debug off for the production environment

    #156762
    Robkk
    Moderator

    @nishant2hit

    use this plugin instead and see if it works

    https://wordpress.org/plugins/bbpress-do-short-codes/

    #156743
    Robin W
    Moderator

    @cbsy lots of ways to achieve this – two below

    1. Look in

    Dashboard>settings>forums>Forum Root slug, and see what ‘forum root’ is set to

    The create a page with this name on it – so title the page this

    The in that page write whatever intro you want, and then put

    [bbp-forum-index] at the bottom of the content

    bbpress will then use this page as your forum root.

    2.

    Add the following to your functions file

    add_action ('bbp_template_before_forums_index' , 'my_intro' ) ;
    
    Function my_intro () {
    Echo '<div class="entry-content"> Here is my intro text. This is lots of writing to introduce the forums and make people read this stuff </div>' ;
    }
    
    

    Functions files and child themes – explained !

    If you hit prolems or need further help, just come back !

    #156740
    Robin W
    Moderator

    Try the following

    //adds login/logout to menu
    //filter to add login/logout to menu
    add_filter( 'wp_nav_menu_items', 'my_nav_menu_login_link' );
    function my_nav_menu_login_link($menu) {
        //uncomment the next line if you only want login on bbpress pages
        //if(is_bbpress()) {
        if (is_user_logged_in()) {
            //set the $url on the next line to the page you want users to go back to when they logout
            $url = 'http://www.mysite.com/forums' ;
            $url2=wp_logout_url($url) ;
            $loginlink = '<li><a title="Logout" href="'.$url2.'">Logout</a></li>';
            }
        else {
            $current_user = wp_get_current_user();
            $user=$current_user->user_login ;
            //set $page on the next line = the permalink for your login page
            $page='login' ;
            $loginlink = '<li><a href="/'.$page.'/">Login</a></li>';
                    }
        //uncomment out the next lines if you only want login on bbpress pages
        //      }
        //  else {
        //  $loginlink="" ;
        //      }
            $menu = $menu . $loginlink;
            return $menu;
    }
    dingzj
    Participant

    I have bbpress properly set up, and it worked well, except when clicking the user’s profile page, there is no sidebar with logged-in widget.

    Actually the sidebar was under user’s profile page. See this image.
    https://c4.staticflickr.com/8/7549/16059375738_d3e7dc8e1c_z.jpg

    How to fix this?
    I checked the source code, looks like the user profile page don’t have a ‘.et_right_sidebar’ class for its ‘left-area’, seems I need to change its template page? How?

    I am still a beginner to understand template code. Any good resources to better understand WP codebase?

    However, other forum page or topic page are fine with sidebar, like this.
    https://c2.staticflickr.com/8/7498/16245113651_341d810976_z.jpg

    #156725
    se7en1216
    Participant

    So earlier, someone suggested doing the following:

    // Add the breadcrumb
    // $crumbs[] = '<a href="' . esc_url( $root_url ) . '">' . $r['root_text'] . '</a>';
    $crumbs[] = '<a href="/forum/">Forum</a>';

    Can I make a duplicate of the template.php to drop into my theme somewhere to make a similar change? This works, but I don’t like the idea of altering the main bbpress files.

    #156572
    Robin W
    Moderator

    easiest way would be to uncode my shortcode

    bbp additional shortcodes

    or just use the do_shortcode function within your code

    https://codex.wordpress.org/Function_Reference/do_shortcode

Viewing 25 results - 9,726 through 9,750 (of 32,505 total)
Skip to toolbar