Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 14,826 through 14,850 (of 32,506 total)
  • Author
    Search Results
  • #125085
    common8308
    Participant

    Thanks for the kind reply @lynq.

    As you suggested, I changed some bbp template codes in my custom theme, removing all the author data and user-id class in the reply loop template so that one specific public forum could look like it’s working as anonymous one for logged in users…

    It looked as if it’s working fine as an intended anonymous forum.. and just found the biggest problem is that all those posts are shown in activity stream.
    (I’m also using Buddypress as other users do.)

    I tried to fix the buddypress activity template to not display the anonymous forum’s contents, but it doesn’t seem buddypress activity template is controlled by bbp_forum_id or bbp_topic_id.. can someone give a clue about solving this problem?

    #125083
    equilibs
    Participant

    Hi
    New to Buddypress/Bbpress and trying to test it on a localhost installation
    I have all the latests versions and the installation seemed to work smoothly
    I have enabled both group forums and site wide forums (even though my problem is consistant even when disabling the group forums)

    The problem:
    I’be opened several forums from the admin panel but can’t find them on the site!
    when I get on my Forums page (http://localhost:29138/forums/) I reach to a “Forums Directory” page with an ability to add new topic, and a list of topics (from the groups forums!?) but no track to the list of my desired site-wide forums.

    I tried to edit the forums page and insert the forum index shortcode but it had no effect

    any help would be appreciated

    Stephen Edgar
    Keymaster

    Create a WordPress page called ‘Support’ and use the [bbp-forum-index] shortcode on that page.

    https://codex.bbpress.org/shortcodes

    #125074
    Stephen Edgar
    Keymaster

    I am fairly new around here and have hardly touched the old standalone bbPress.

    The following page in the docs was last updated 341 days ago, that said I don’t think there should be that many differences in upgrading from 1.0.x to 1.1/1.2 based on these docs.

    Has anyone actually tried this? What breaks if you do follow these steps?

    Remember: Constantly make backups of your site with FTP and your SQL Database/s with myPhpAdmin.

    Updating

    Legacy

    Just saying it doesn’t work is not enough, give us detailed information: on what breaks, what doesn’t work, detailed specs of your site, extremely detailed error messages, steps for us and others to reproduce the problem and with this type of information we can all help each other.

    #125060

    In reply to: Forum loop

    Lynq
    Participant

    If you add the code in you get a Division by zero and if you take it out you don’t get it, is that correct?
    Have you tried taking it back out?

    I am just wondering if it is a recently updated plugin causing the division by zero.

    #125053
    common8308
    Participant

    Hi, I’m starting this topic since I was stuck on creating anonymous forum.
    First I want to thank mods and those all who are participating in this voluntary development, I’m very satisfied in using this forum plugin.

    Back to the topic, I have got two issues.

    One is creating an anonymous forum only logged-in members can write. I’m curious to know if this is possible in the given function of bbpress admin panel. Or should I do additional code tweaks.(guess the forum should be set private, and remove all the related username infos in my custom bbpress reply author loop.. right?)

    The other issue is making a query to this private forum’s post and displaying it in the main page which visitors can all see. Is it possible to unlock this access capability after querying the topic content which is set private?
    Currently, when I make a query to this private reply contents, and display them on the main page as a widget, ppl with proper capability only can see the content on the main page. Visitors cannot. I want to unlock this capability after querying the contents.

    Sorry for asking too much at once. I’m stuck over days.. so asking in this support forum after searching the whole forum.
    Thank you for reading!

    #125047
    Lynq
    Participant

    You will need to copy over the bbPress theme files from the plugin directory and into your theme, then you can add in the get_sidebar() function into the theme although it should be there already.

    Try that and see how you get on, a good reference is: https://codex.bbpress.org/theme-compatibility/

    Good luck!

    sunriseweb
    Participant

    Well… in fact I had to do the opposite and force TinyMCE into “teeny” mode to make bbPress 2.2.3 with WP 3.5 and Ultimate TinyMCE 4.0.3 to work. The TinyMCE toolbar forced the entire editor table to be wider then the content area of my theme and it was getting hidden behind the right-hand-sidebar. This could be a theme incompatibility, but I’m guessing some issue with this combination of plugins and WP version.

    At any rate I used the code in this thread to the opposite effect (I put it in my theme’s function.php file, although a plugin is the proper thing to do).

    `
    function marconf_bbpress_mceallow( $args = array() ) {
    $args[‘teeny’] = true;
    return $args;
    }
    add_filter( ‘bbp_after_get_the_content_parse_args’, ‘marconf_bbpress_mceallow’ );
    `

    #125033
    jesse017
    Participant

    Yes figured it out. Thanks! Apparently, I had to ad a shortcode (IIRC) to the page to display the forum index. Somehow that must have been lost when I did the upgrade, I guess.

    #124988

    In reply to: Forum loop

    Stephen Edgar
    Keymaster

    Something like this should get you going:

    if ( bbp_has_topics( array( 'author' => 0, 'show_stickies' => 'false', 'order' => 'DESC', 'post_parent' => 'any', 'posts_per_page' => 5 ) ) )
    bbp_get_template_part( 'bbpress/loop', 'topics' );
    #124974

    Topic: Forum loop

    in forum Troubleshooting
    Abdizriel
    Participant

    Hello,
    What is loop code for getting all forum topics?
    I want to show latest post from forum in footer.

    #124966

    In reply to: Custom loop

    Lynq
    Participant

    Because bbPress is using custom post types you could use: https://codex.wordpress.org/Class_Reference/WP_Query.

    See the part about taxonomy parameters, you can set the post_type to whatever you want.

    #124961
    kriskl
    Participant

    Hi!

    Just migrated to bbpress, and users are confused.. as they do not see standard on other forums ‘New Topic button..

    I hope it is possible to add one using  function code – so it would appear at the top of every forum – and either expand to add ne topic – like in buddypress or at least to direct users to the bottom of the page..

    happy to pay $10-20 for this. but  please post code on the forums, so everyone can get the benefit 🙂

    thanks

    kris

    #124960
    Stephen Edgar
    Keymaster

    @shrewdies

    Huge thanks for this 🙂 (and your life story, it puts things in a much clearer context.)

    I have also split this topic starting from your first post as a new thread as I am quite sure this will be referenced by quite a few who do migrate from Simple Press.

    I will also link to it from the FAQ I am doing that will link from this page:

    https://codex.bbpress.org/import-forums/simplepress/

    Cheers,

    Stephen

    #124953
    shrewdies
    Participant

    OK, here are the redirects, but first some background.

    Your move takes some planning, and the redirects are specific to your old Simple:Press Forum structure and your new bbPress settings (Admin-Settings-Forums). I describe how I approached my conversion, but you may need a different approach. If you need specific help with a different set of objectives, then please just ask. I did not use tagging in Simple:Press, as it was more trouble to implement than the benefit it gave. None of this refers to tagging, and I notice that the r4638 version of SimplePress5.php has them commented out.

    If your forum has little search and external referral traffic, then save yourself the bother of all this, and just get on with building your new forum.

    Before I explain the permalinks, you need to be aware that I took this opportunity of simplifying my forum structure. I used to believe in different forums for different subject areas, but I’ve come to realize that most forum users do not understand my theme, so they cannot decide which forum to post in. I noticed the same thing here when I looked around for the best place to post. I decided to simplify my forums to two main choices, with the rest as child forums. I did this by manually editing the Forums parents in bbPress after the conversion. That explains my choice of Topic slug in bbPress settings, but redirects should handle any choice.

    In Simple:Press, topics get permalinks in a hierarchy under their forum, and all forums lie within the WordPress forums page in the Simple:Press settings. Thus, a topic will be referenced domain/wp-forums-page/sp-forum-title-slug/sp-post-title
    In bbPress, permalinks are built from your WordPress root, with prefixes set in the bbPress settings under slugs. Thus a topic will be referenced domain/bb-forums-base/bb-topic-slug/bb-post-title

    The post titles are the same in bbPress and Simple:Press, so redirects have to account for the changed forum slug structure.

    The first bbPress setting, Forums base, is the equivalent of your Simple:Press WP page, so I used exactly that. If you made bad choices when setting up your Simple:Press forum, I guess you could change it with the redirects, by specifying different destination URLs. I kept it the same, and simply renamed my old Simple:Press page (be aware this auto changes in WP menus, so you may need to manually delete old forum menu pages and add new custom menu links)

    In bbPress settings Single Slugs, the Forum Prefix should be left switched on.

    Forum slug has no Simple:Press equivalent, so I opted for something theme related. The default is probably OK, but I’m slug-fixated as a result of a bad SEO upbringing. I have not redirected these pages, but I will assess the impact over the next few days, and come back with these if I see they are necessary.

    I set topic slug to my most popular forum, which is very general, as per my introduction. Redirects will handle whatever you put here.

    The rest of the bbPress settings do not affect conversion.

    At last, @netweb here are the requested redirects. Are you glad you didn’t ask for my life story? 😉

    The general construct is:
    Old
    ^ begin with
    /wp-forums-page
    /sp-forum-title-slug
    (.*) store the rest

    New
    //domain
    /bb-forums-base
    /bb-topic-slug
    /$1 whatever * stored

    
    RedirectMatch 301 ^/gout-pal-forum/gout-symptoms(.*) http://www.gout-pal.com/gout-pal-forum/please-help-my-gout/$1
    RedirectMatch 301 ^/gout-pal-forum/gout-cures(.*) http://www.gout-pal.com/gout-pal-forum/please-help-my-gout/$1
    RedirectMatch 301 ^/gout-pal-forum/gout-diet(.*) http://www.gout-pal.com/gout-pal-forum/please-help-my-gout/$1
    RedirectMatch 301 ^/gout-pal-forum/colchicine-campaign(.*) http://www.gout-pal.com/gout-pal-forum/please-help-my-gout/$1
    RedirectMatch 301 ^/gout-pal-forum/united-states-colchicine-sources(.*) http://www.gout-pal.com/gout-pal-forum/please-help-my-gout/$1
    RedirectMatch 301 ^/gout-pal-forum/gout-related(.*) http://www.gout-pal.com/gout-pal-forum/please-help-my-gout/$1
    RedirectMatch 301 ^/gout-pal-forum/uric-acid(.*) http://www.gout-pal.com/gout-pal-forum/please-help-my-gout/$1
    RedirectMatch 301 ^/gout-pal-forum/your-gout(.*) http://www.gout-pal.com/gout-pal-forum/please-help-my-gout/$1
    RedirectMatch 301 ^/gout-pal-forum/tech-stuff(.*) http://www.gout-pal.com/gout-pal-forum/please-help-my-gout/$1
    RedirectMatch 301 ^/gout-pal-forum/wish-list(.*) http://www.gout-pal.com/gout-pal-forum/please-help-my-gout/$1
    RedirectMatch 301 ^/gout-pal-forum/gouties-water-trough(.*) http://www.gout-pal.com/gout-pal-forum/please-help-my-gout/$1
    

    One potential complication lies with multi-page topics. I’m still assessing if it is worth bothering with these, as traffic rarely hits anything after the first page. Google WebMaster Tools is currently complaining, but experience tells me it will soon re-index unless there are other sites that link to specific pages.

    Disclaimer: Before you try this at home, you might like to wait a month or so. I’ll be back to tell you if I killed my forum traffic or not. 😮

    #124951

    Topic: Removing the sidebar

    in forum Themes
    dreamache
    Participant

    Okay first, I’m well aware of the 10+ threads already that exist about this topic, and I’ve gone through all of them.

    I’ve read this:
    http://codex.bbpress.org/theme-compatibility/

    It seems as though “extras” contains all of the files with get_sidebar, which I’ve edited to //get_sidebar

    The link above mentions:
    ““extras” contains optional page templates and things to make life a little easier when customizing; copy any you want to use or modify into the same ‘bbpress’ folder. eg. /wp-content/mytheme/bbpress/”

    First, that should probably be changed to: /wp-content/themes/mytheme/bbpress

    Secondly, I’ve done this. My directory structure looks like:
    wp-content/themes/sahifa/bbpress/extras (which contain the modified //get_sidebar files)

    Yet the sidebar still shows up.

    Is there anything I’m missing?

    Thanks.

    #124948
    Sunidaze
    Participant

    I really searched Google and the forum to try to find the answer but I just can’t come up with it. I have a brand new install of BBPress. I’ve never used it before. (I’m using version 2.2.3.) I’m using Wordress version 3.5.

    I went over the roles here:

    http://codex.bbpress.org/bbpress-user-roles-and-capabilities/

    It says participants can create and edit their own topics and replies. On my forums participants cannot create topics at all. I don’t want to bump them up to moderator because I don’t want everyone to be able to edit everything.

    I’m hoping there is a simple fix for this or someone can please tell me what I’m doing wrong. 🙁

    #124945
    funnycat777
    Participant

    Hi,
    I am using the latest version of bbpress.

    When I post youtube videos using the embed code (iframe) in a bbpress post, the video does not fit within the width of the textbox.

    How can I make the youtube video responsive so that it always fits within the post and resizes itself with the correct aspect ratio?

    freax
    Participant

    I have the same problem too. I tried to find get_sidebar function to delete it from the code but I only find them in ‘extra’ directory and it is showing again. Any help ?
    Thanks in advance.

    #124943
    Ben
    Participant

    Okay, that’s just weird.

    I created a separate page for topic creation and just ran the same PHP call (`echo do_shortcode(‘[bbp-topic-form]‘);`), and it works… So for some reason that call doesn’t behave properly in my `bbpress.php`, but does just fine in a custom template.

    Stephen Edgar
    Keymaster

    So close… Indeed you use bbp_has_replies to reverse order the replies

    function custom_bbp_has_replies() {
      $args['order'] = 'DESC'; // 'ASC' (Ascending, Default), 'DESC' (Descending)
      
      return $args;
    }
     
    add_filter('bbp_before_has_replies_parse_args', 'custom_bbp_has_replies' );

    And use bbp_show_lead_topic to always show the ‘lead topic’ (More details here.

    function custom_bbp_show_lead_topic( $show_lead ) {
      $show_lead[] = 'true';
      return $show_lead;
    }
     
    add_filter('bbp_show_lead_topic', 'custom_bbp_show_lead_topic' );
    #124935
    PavelS
    Participant

    And as you can see i can’t even post code part. I have tried PRE + your CODE button.

    #124934
    PavelS
    Participant

    I have the same issue.

    All i need to do is to show all forums with topics on main page. Here is my archive-forum.php

    When i try to use BB_Query i get error.
    When i try to use shortcode i get error.

    
    <ul>
     
    	<li>
    		<a href="" title="" rel="nofollow">
    		
    	</a></li>
      <li> 
         'art'
            )
          );
          $topic_query->results;*/
     
          //$forum_id = bbp_get_forum_id();
          //echo do_shortcode("[bbp-single-forum id=$forum_id]"); 
        
        
          if ( !bbp_is_forum_category() && bbp_has_topics() ) :  
            bbp_get_template_part( 'loop', 'topics-custom' );        
          endif; 
        
        ?>  
      </li>  
      
    </ul>
    #124932

    Topic: Custom front page

    in forum Themes
    PavelS
    Participant

    Hi, guys.

    I need forums titles list with topics on my forums frontpage. How can i do that? What is the right way?

    I have add next lines, and all topics are shown for each of forums. I need each forum have only it’s own topics. I know that i can use BB_query or even WP_Query but i can’t figure it out. System says that i have “Fatal error: Class ‘BB_Query’ not found in X:\home\vkk.ca\www\wp-content\themes\themeName\loop-single-forum-custom.php”

    if ( !bbp_is_forum_category() && bbp_has_topics() ) : 
    bbp_get_template_part( 'loop', 'topics-custom' ); 
    endif;

    PS: it’s bad that i should enter username only instead email or username.

    #124931
    Lynq
    Participant

    Create a page and call it something like forum registration.
    Add the registration shortcode: [bbp-register]
    Then link to the new page.

    (You can find more shortcodes here: https://codex.bbpress.org/shortcodes/)

Viewing 25 results - 14,826 through 14,850 (of 32,506 total)
Skip to toolbar