Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 12,676 through 12,700 (of 32,504 total)
  • Author
    Search Results
  • #142435
    Stephen Edgar
    Keymaster

    I haven’t seen any integration with Zendesk but checkout this awesome tutorial by @mordauk (@pippinsplugins)

    http://code.tutsplus.com/tutorials/using-bbpress-as-a-support-forum–wp-28877

    #142434
    Stephen Edgar
    Keymaster

    You would need to make some custom templates

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

    And there are a few other docs here https://codex.bbpress.org/

    #142432

    In reply to: Translate to Swedish

    Stephen Edgar
    Keymaster

    See this https://codex.bbpress.org/bbpress-in-your-language/

    It’s the same process for both bbPress & BuddyPress

    #142430
    jslom
    Participant

    Hello,

    I am using the shortcode [bbp-topic-form forum_id=599] to display a form that will post to forum id 599.

    I noticed the shortcode is using the form-topic.php template file to output.

    What I want to do is have it use a modified version of the form-topic.php template file, but only for the shortcode.

    How can I achieve this?

    Thanks!

    #142429

    In reply to: Forum Index Scrunched

    thefruitnation
    Participant

    So I’ve found its specific to the url.. if its
    http://www.thefruitnation.com/forums/

    It scrunches it up

    Anything else like http://www.thefruitnation.com/forums1/ keeps it full width

    I’m sure this has to do with the

    Forum Root Slug

    as it is set to ‘forums’ I just cant figure out how its correlated

    I guess I can get around this by changing the page that I use the shortcode for index on to not share the same forums slug.. I thought this was needed, but perhaps thats my problem? Should it matter or any insight if this would effect url building/seo

    #142427

    In reply to: Forum Index Scrunched

    thefruitnation
    Participant

    Thats the odd part, they are both using the default…and switching between the various different templates doesn’t seem to modify it. The theme has an internal setting that allows you to dictate how many ‘columns’ are shown. I can get it to show full page if I switch that around, but then my article page is also shown full (one column) I’m looking at the code further to try and figure out how to isolate one from the other

    #142424

    In reply to: Form To Forum Post

    jslom
    Participant
    $sql="INSERT INTO wp_posts (post_type, post_parent, post_title, post_content, post_author)
    VALUES
    ('$_POST[forum]','$_POST[forumid]','$_POST[1]','$_POST[2]','$_POST[3]')";

    This is the code im using to get my form to post to the db, and it still does not create the topic even though it populates

    #142412
    barnabe
    Participant

    But with this code, when there is an error (like username already exists), the redirect is not effective.

    This excellent tutorial helped me to fix that : Redirect to custom page after login or register fails

    #142410
    barnabe
    Participant

    – How to hide the WP toolbar by default when a user registers?

    I found this code to add in functions.php theme file:

    add_filter('show_admin_bar', '__return_false');

    – I use the bbPress’ form register template, how to redirect users to a specific page after submit and not to the WP’s form login?

    I found this code to add in functions.php theme file:

    function bbp_form_register_custom_redirect()
    {
       return 'URL here'; // Ex : return get_permalink(73);
    }
    
    add_filter('bbp_user_register_redirect_to', 'bbp_form_register_custom_redirect');

    But with this code, when there is an error (like username already exists), the redirect is not effective.

    Any idea?

    #142404
    Robin W
    Moderator

    I think those words are in your page 322

    You should just have the following in contents

    [bbp-login]
    

    I think you have

    [bbp-login] - Display the login screen.
    
    #142400
    Robin W
    Moderator

    ok, think the ones on the page link are around line 90 (my .css is different, so exact lines may vary) – look for

    #bbpress-forums li.bbp-header,
    #bbpress-forums li.bbp-footer {
    	background: #f3f3f3;
    	border-top: 1px solid #eee;
    	font-weight: bold;
    	padding: 8px;
    	text-align: center;
    }
    
    #bbpress-forums li.bbp-header {
    	background: #eaeaea;
    }
    

    and change background to the same as above.

    They may be some others as you go through. Come back with any that are still niggling, and I’ll chase them down for you.

    As you are making changes to bbPress templates, make a copy of the file onto your PC, and keep a list of what you changed, as any bbPress updates will override this file.

    You should revisit child themes when you get some more time, as this is a better way to do it, but the way you’re doing will work fine (and was what I did in the early days!).

    #142391
    hitkid
    Participant

    *edit*
    I’ve tried all of the documentations functions*

    <?php $args = array( ‘post_type’ => ‘topic’, ‘posts_per_page’ => 10 );
    $the_query = new WP_Query( $args );?>
    
    <?php if ( $the_query->have_posts() ) : ?>
    
    <!– pagination here –>
    
    <!– the loop –>
    <?php while ( $the_query->have_posts() ) : $the_query->the_post(); ?>
    <?php bbp_author_link( array( ‘post_id’ => bbp_get_forum_last_active_id(), ‘size’ => 32 ) ); ?>
    
    <a class=”bbp-topic-permalink” href=”<?php bbp_topic_permalink(); ?>” title=”<?php bbp_topic_title(); ?>”><?php bbp_topic_title(); ?></a>
    <?php endwhile; ?>
    <!– end of the loop –>
    
    <!– pagination here –>
    
    <?php wp_reset_postdata(); ?>
    
    <?php else: ?>
    <p><?php _e( ‘Sorry, no posts matched your criteria.’ ); ?></p>
    <?php endif; ?>
    #142390
    hitkid
    Participant

    @netweb

    I don’t need their role or title. For some reason the avatars will just not come up in the loop outside of the mychild/bbpress/loop-single-forum.php files and mychild/bbpress/loop-single-topic.php. So it works fine on index pages.

    I’ve tried all of the but nothing

    Here’s what the code looks like right now:

    <?php $args = array( 'post_type' => 'topic', 'posts_per_page' => 10 );
    			$the_query = new WP_Query( $args );?> 
    			
    <?php if ( $the_query->have_posts() ) : ?>
    
      <!-- pagination here -->
    
      <!-- the loop -->
      <?php while ( $the_query->have_posts() ) : $the_query->the_post(); ?>
       <?php bbp_author_link( array( 'post_id' => bbp_get_forum_last_active_id(), 'size' => 32 ) ); ?>
    	
    	<a class="bbp-topic-permalink" href="<?php bbp_topic_permalink(); ?>" title="<?php bbp_topic_title(); ?>"><?php bbp_topic_title(); ?></a>
      <?php endwhile; ?>
      <!-- end of the loop -->
    
      <!-- pagination here -->
    
      <?php wp_reset_postdata(); ?>
    
    <?php else:  ?>
      <p><?php _e( 'Sorry, no posts matched your criteria.' ); ?></p>
    <?php endif; ?>

    This worked for getting the original post author, but I need the latest active poster to appear<?php echo get_avatar( get_the_author_meta( 'ID' ), 32 ); ?>

    Is there a wordpress function equivalent for this function: bbp_get_forum_last_active_id() that I can use with get_avatar() ?

    What file do these functions reside in? Maybe I could copy the functions out and make new ones in mychild/functions.php or see if something wrong and replace the file?

    Thank you for the help!

    #142386

    In reply to: Importing from Vanilla

    Stephen Edgar
    Keymaster

    There is a broad outline here: https://codex.bbpress.org/import-forums/

    Some more Vanilla specif info here: https://codex.bbpress.org/import-forums/vanilla/

    Essentially you should be able to open up your Vanilla Config file in a text editor:

    eg. /public_html/dev/vanilla/conf/config.php

    `
    // Database
    $Configuration[‘Database’][‘Name’] = ‘ntwb_vanilla2’;
    $Configuration[‘Database’][‘Host’] = ‘localhost’;
    $Configuration[‘Database’][‘User’] = ‘ntwb_wpdev’;
    $Configuration[‘Database’][‘Password’] = ‘abc123’;
    `

    Use the values you have in the bbPress importer screen.

    To get the table prefix you might have to open phpMyAdmin on your hosting providers control panel (cPanel)

    In this image my table names have a gdn_ prefix, this is what you would use.

    I am pretty sure gdn_ is the default and used by most installs.

    #142384
    domainhorizon
    Participant

    Thanks so much Robin,

    I had problems setting up a child theme and have ended up ditching that for the moment and just edited your code directly into the bbpress.css file.

    It half worked! http://www.luciddreamingland.com/dream-journal/

    I’ve tried fiddling with the bbpress.css some more but without luck.

    If you have any more suggestions that would be great.

    Really appreciate your efforts.

    Thanks.

    #142380
    AITpro
    Participant

    We were looking for a plugin that already did this and did not find what we wanted so we created this simple solution here: http://forum.ait-pro.com/forums/topic/buddypress-bbpress-social-media-share-button-code/

    This is lightweight HTML code outgoing Share links to keep website resource usage very low since the Social Media buttons are being loaded per Reply.

    #142375
    thajskyraj
    Participant

    Problem solved! I found the small error in code. Now its working. Thanks a lot for your advise and guide Robin!

    #142373
    thajskyraj
    Participant

    Nearly there 🙂 I found I made an error in code, so I corrected it and now sidebar widgets are corrected. The only last problem I have is that the forum is there twice.

    #142372
    thajskyraj
    Participant

    Nearly there :-), I made an error in code. I corrected it and side bar is now corrected. The only last problem I have now is that the forum is there twice :-).

    #142371
    thajskyraj
    Participant

    Thanks Robin, I guess I understand you completely. I did exactly what you advised me to do and it actualy works, however I am not certain what exact code of bbpress theme should I put there.

    The code of page.php looks as follows:

    <?php get_header(); ?>
    <?php get_template_part(‘loop’, ‘page’); ?>
    <?php get_footer(); ?>

    The questions is what piece of bbpress template code should I put between the header and footer. Now I put there code copied from bbpress/templates/default/extras/page-front-forums.php, and its some improvement, however it is still not correct as it put the sidebare widgets under it instead of its correct location.

    If you can advise what code should I put there, then it will be perfect solution.

    Thanks a lot for your efforts and time.

    #142366
    Robin W
    Moderator

    No problem,

    Several ways to do this, the easiest is to add the following to your theme’s style.css file:

    .widget_display_topics .bbp-author-avatar { display: none ! important; }
    
    .bbp-topic-freshness-author  .bbp-author-avatar { display: none ! important; }
    
    

    or if you are using a child theme, put in in the bbpress.css in your css folder

    If you need further help, just come back and ask, or visit

    Step by step guide to setting up a bbPress forum – part 2

    #142361

    In reply to: bbpress sidebar

    Robin W
    Moderator

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

    #142360
    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.

    #142352
    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

    #142350
    ttyler333
    Participant

    I have been trying to enable the ability for the author to delete their own posts. I am running bbPress 2.5.3-5249 and based on my analysis current_user_can("delete_reply", $post->ID); seems to be the problem, I created a capability “delete_reply” and still didn’t succeed. I read documentation but it said delete_replies. I have spent too much time on this one thing. I can make the bbpress work so the user can delete their own posts but it’d be after modifying files I really should only have to hook into. Anyone have any advice or tips?

Viewing 25 results - 12,676 through 12,700 (of 32,504 total)
Skip to toolbar