Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 15,401 through 15,425 (of 32,519 total)
  • Author
    Search Results
  • #118586

    Jeffvand: There are a few plugins that allow you to pull in and show custom Sidebars. Two Examples:

    These work with Custom Types Ie it recognises the Forums and You can select for them to have their own sidebar:

    https://wordpress.org/extend/plugins/custom-sidebars/
    But I prefer
    https://wordpress.org/extend/plugins/content-aware-sidebars/

    Hope this helps.

    I too want to remove the sidebar completly. What part of the CSS would I need to remove. Could you send some more detailed instructions of what code and in what CSS files I need to remove. It is only on Forum pages I want to remvoe sidebars.
    Thanks

    #118581
    Starejosel
    Participant

    I have some more information–I hope that someone can help me.

    The problem is to swap the default behavior and make return give a br tag and
    shift return give a p tag. The TinyMCE wiki http://www.tinymce.com/wiki.php/Configuration
    seems to say that is the way to do it is by setting forced_root_block to false.*

    However, when I tried that using the Advanced TinyMCE Configuration plugin by Andrew Ozz , I found:

    If I use it to set 
    forced_root_block to false, 
    nothing changes. 
    
    If I set forced_root_block to true, which I expected 
    to do nothing, it breaks the editor: 
    The buttons don't work, and anything that I type into 
    the Visual editor gets wiped out when I switch to html.
    
    If I set forced_root_block to just a space,
    when I typed in 
    
    test
    test
    test
    test
    
    test
    test
    
     it produces the following html:
    
    < >< >test
    <!-- -->
    test
    test
    test
    
    test
    test
    
    
    which displays as 
    
    test
    
    test
    test
    test
    test
    test
    
    after submitting.
    
    Finally, if I set forced_root_block to div,
    when I typed in 
    
    test
    test
    test
    test
    
    test
    test
    
    it produces
    
    test
    test
    test
    test
    
    test
    test
    
    
    which displays as 
    
    test
    test
    test
    test
    test
    test
    
    and there seems to be no way to produce a break.
    

    I hope that this data is useful. ANY help would be GREATLY appreciated.

    #118573

    Having better control over the sidebar in bbPress is a very common request and there is even a trac ticket for it.

    Unfortunately, there’s no easy way to handle this automatically. Each theme/framework handles the placement of the sidebar differently, so we can’t bbPress (or a plugin) can’t simply say “don’t show the sidebar” – it’s going to require modifications to your theme.

    For those of you who want control over your sidebar, are flexible with theme you are using, and are not comfortable editing your current theme, there is another solution out there.

    I created a plugin for sites running on the Genesis Framework called bbPress Genesis Extend. This plugin primarily builds in bbPress compatibility for the Genesis Framework, however it also ads in a few handy extra features – namely full sidebar control.

    https://wordpress.org/extend/plugins/bbpress-genesis-extend/screenshots/

    If you use the Genesis Framework and this plugin, it allows you to choose what layout you want to use on bbPress pages (full width page, content-sidebar, sidebar-content, etc). Additionally it also has the option to create a dedicated sidebar for bbPress pages, which would allow you to use bbPress widgets on the bbPress portion of your site.

    Hopefully as bbPress becomes more popular, other themes and frameworks will build in similar features which will give site administrators control over the layout/sidebar without having to touch any of the code in your theme.

    #118563
    pau-bbp
    Participant

    To solve this problem in files:

    /wp-content/plugins/bbpress/bbp-includes/bbp-reply-template.php
    /wp-content/plugins/bbpress/bbp-includes/bbp-topic-template.php
    

    comment following lines:

    // Remove first page from pagination
    if ( $wp_rewrite-&gt;using_permalinks() )
        $bbp-&gt;reply_query-&gt;pagination_links = str_replace( $wp_rewrite-&gt;pagination_base . '/1/', '', $bbp-&gt;reply_query-&gt;pagination_links );
    //else
        //$bbp-&gt;reply_query-&gt;pagination_links = str_replace( '&amp;paged=1', '', $bbp-&gt;reply_query-&gt;pagination_links );
    
    #118560
    Ommy
    Participant

    no one use this codes for buddypress? it is big issue for most people to have seperate blockss. help help 😀

    #118553
    smiga
    Participant

    aaclayton, speaking about “I wonder how some of the dedicated forum platforms handle this sort of feature.”

    Im running bbpress 1.0.2 forum with 400+ topics and 16000+ posts for 2+ years. Im using “Unread Posts” plugin written by ck and should say that its perfect. Have not faced any errors or performance problems with it. Maybe you should look at source of that? Not sure if that plugin can be still found on net, but in case its not I can share the code (actualy there is just one php file).

    #118552
    kate.t
    Participant

    I added below < ?php do_action( 'bbp_theme_after_reply_author_details' );


    $user_id = bbp_get_reply_author_id( $reply_id );
    $usermeta = get_userdata( $user_id, 'residence' );
    echo $usermeta->residence;

    #118550
    kate.t
    Participant

    i don’t know whats happening, the code is not showing

    #118544
    Stephen Edgar
    Keymaster

    Run the ‘Import Forums’ tool as outlined here:
    https://codex.bbpress.org/import-forums/

    #118542
    nirzol
    Participant

    Hello

    I have some troubles with shortcode.

    Wordpress: last version + buddypress last version. My website: http://rplayers.com

    So I have two pages with this code :

    Bienvenue sur les forums officiels de Rplayers

    [button color="red" link="http://rplayers.com/forums/sujet/page-contact-operationnelle/"] Annonces importantes : Page de contact mise à jour[/button]

    Communauté

    [bbp-single-forum id=44]

    Jeux

    [bbp-single-forum id=540]

    Recrutement

    [bbp-single-forum id=530]

    Aides et conseils

    [bbp-single-forum id=551]

    Derniers Articles

    [bbp-topic-index]

    In my first forum page look : http://rplayers.com/forums/

    And the same code in a second page : http://rplayers.com/forums2/

    I don’t understand why shortcode [bbp-single-forum id=44] doesn’t work with my first page. Someone can help plz ?

    Thx

    #118534

    In reply to: bbPress Smilies

    goddess_dix
    Participant

    I would be interested in trying this out, after many hours of trying to make Tango extended Smilies and bbpress play nice. I cannot get Tango to convert the smilie codes to the smilies and my users are accustomed to using the codes from the blog side.

    #118531
    aaclayton
    Participant

    Hi Pippin, great work on this plugin so far. Thank you. I read through the code and tested it out. The plugin works great, and I commend you for your hard work on this. I wanted to provide a bit of feedback in case you are planning any further revisions, just to weigh in with my 2c: 1) I realize you needed somewhere to hook the “mark as read/unread” link, and by default in bbp_theme_compat no action hook is provided in a topic header. Hooking it onto the subscribe link wedges it between subscribe/favorite and is overall a bit awkward for templating. I’m not sure what a better default solution would be, but personally I felt the need to unhook this and manually place the toggle button somewhere more appealing. 2) A standalone function to display a loop of unread topics would be great. show_unread_topics() is purpose built for the bbpress user profile, but under many circumstances users might want to call this list elsewhere (if we are using BuddyPress profiles for example). Personally I created a “View Unread Topics” page that functions similarly to the “Recent Topics” archive. Anyways, including a function for just the unread topics loop (with pagination) would be a nice addition for template flexibility purposes. 3) For a site with thousands of topics, is having that bulky a “_bbp_mar_read_ids” entry in meta a concern? 4) The plugin serves a nice function of allowing a user to track whether or not he/she has looked at topics which are posted. However, it seems to me that full “view unread posts” functionality would entail clearing resetting the “read” flag when the topic is updated with a new reply. What about saving each “read” ID to meta as: post_id?num_replies where num_replies is the number of replies to the topic when the user marked it as read. When a topic is called you can explode out how many replies it had when the user first marked it. If the topic now has more replies than when it was marked, you can override the “read” flag and reset it to unread. Probably not a very elegant solution, but I think what most users would be interested in is being able to generate a list of threads with unread content, not necessarily just unread topics. Anyways, thanks very much for your work on this. I’ll be keeping an eye on how this project develops. Andrew

    #118526
    jezza101
    Participant

    OK, so to do that I would have to close the post myself, which looks like I just have to add two x divs

     Div   <!-- .bbp-reply-content -->
    

    Div

    But it looks like HTML filters are being applied still – ah, is this a case of ordering things so that my filter comes right at the end, ie after the HTML filter?

    ..ah a quick test and, yes, this seems to work.

    $content=$content.'TEST1(/div)(/div)IS THIS BETWEEN POSTS? YES!(div)(div)';
    

    Ah apologies, the forum filter has filtered out the DIVs above.. putting them back in with curly brackets.

    Excellent. Looks like I need to put some thought into how to make it look good but I think I can work on that! One last question then (sorry, and thanks for your help!), how do I pick out the first post?

    • This reply was modified 13 years, 9 months ago by jezza101.
    #118522
    David
    Participant

    I just setup BBPress today and am excited to get it fully deployed, however I’m having an issue with the Forum root page: http://bricksofthedead.com/forums/

    As you can see, it’s posting truncated information. Also, the page is not editable.

    To try to fix this, I created a page with that slug and used the shortcode, but once I published it behaved the same way.

    I changed the URL on my created page to http://bricksofthedead.com/forum/, and it is displaying correctly, the trouble is, I can’t get the breadcrumb navigation to link there instead. I tried changing the default slug to /forum, but that ended up displaying the broken page instead of the correctly working one.

    This seems like a super simple thing to fix, but I’ve been struggling with it for a couple hours now. Any help?

    #118521

    In reply to: Blank Page Problems

    RobMackay
    Participant

    Thanks ajay – I will give the shortcode thing a go 🙂

    #118520

    In reply to: Blank Page Problems

    Ajay Sharma
    Participant

    firstly you must select one base forum to create topic, and if still not then there must be problem in integration bbpress check the short codes here https://codex.bbpress.org/shortcodes/ create new post or page then per page separtely put required short code . and preview them they must work.
    best of luck.

    #118509
    Poloniumradon
    Participant

    Since you’ve recommended the vote plugin, maybe this question is appropriate here.

    I have a buddypress install and added bbpress via buddypress. Where do I have to add the code for the vote plugin? I know it’s in the single forum file, but I can’t find that in the standard buddypress theme.

    #118497
    aidecms
    Participant

    Hi, would you please give me the code to count post and displays your ad ?

    Thank you very much

    #118494
    roddaut
    Participant

    Today I found this code between the bbp check for flood and the return true. I deleted it and I’m able to post in my forum again.

    $throttle_time = get_option( '_bbp_throttle_time' );
    if ( empty( $throttle_time ) )

    #118479
    javy
    Participant

    As the title says…is this an option/shortcode in bbp-theme-compat?

    Or do I need to create a page template and use some of the functions contained in page-forum-statistics.php?

    #118458
    kate.t
    Participant

    Hi craftcore, if i would like to put the Country below the user role, do you know what code I can insert in? I am using the User Meta Pro plugin, and the Country field is derived from there. Thanks!

    #118442
    judy1950
    Participant

    I have a WordPress site (3.4.2) which uses a premium theme that I want to keep. I just activated the BBPress plugin (ver 2.1.2) and created a forum and topic etc. The forum and topic pages appear and look ok, but I would like to customize the template and css that is being used in this. I am finding BBP documentation on this somewhat confusing.

    My Plan: I will create my own BBP template based on page.php from my main theme and modify the layout etc.

    To implement this new template I create, I am guessing that I can replace $new_template (shown below; code taken from bhp-template-loader.php (wp-content/plugins/bbpress/bbp-includes) with the name of my new template, such as “bbp-new-page.php”). Is this correct?

    // bbPress template file exists
    if ( !empty( $new_template ) ) {
    
        // Override the WordPress template with a bbPress one
        $template = $new_template;
    

    And to modify the css, I can simply hack “bbpress.css” (wp-content/plugins/bbpress/
    bbp-theme-compat/css/bbpress.css)?

    This approach seems really hacky/inelegant however.

    On a slightly separate note, it appears that implementing the steps for theme-compatibility (http://codex.bbpress.org/theme-compatibility) are necessary only if you are going to use a single (custom) theme (or child theme?) for both WP and BBP?

    Finding it a little confusing to untangle the methods and their purposes in BBP theming.

    Thanks to anyone who can help!
    Judy Wilson
    Nashville TN

    #118416

    In reply to: User profiles blank

    mb21
    Participant

    Yes it should display the forum index, but it’s just text with no links. I used shortcodes to create the page and named it Forum (forum.html). Any idea why the forum pages wouldn’t work?

    #118410
    Gawain Lynch
    Participant

    Thesis, and potentially other themes, call filters on the_content in the header. In the case of Thesis this is done to generate page meta etc.

    The problem is that this causes bbp_replace_the_content() to fire twice (or more) and on subsequent calls the $first_run variable in the _WP_Editors class is already set, the settings therefore reset to default as the array_merge() is not run, the editor.css stylesheet is not loaded and only a very basic and broken visual editor in rendered in page.

    This can be worked around very simply at the beginning of bbp_replace_the_content() with the following check:

    if ( !in_the_loop() )
    return $content;

    Gawain

    #118406

    In reply to: which page?

    mostafaqanbari
    Participant

    i installed bbpress inside buddypress and i created a menu for my system(i’m creating a forum like a vanilla forum[exactly like that! even better!]). but i have to change some features of my menu in different pages. in a simple not recommended way i can have my menu codes in every single page. but i can have it in a more modular way! in this case i can have a function who checks which page i’m in so call the particular menu for current active page. i mean sth like this:

    if (active page is profile page) 
         codes for profile page menu 
    else if (active page is topics page) 
         codes for topics page menu
    
Viewing 25 results - 15,401 through 15,425 (of 32,519 total)
Skip to toolbar