Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 7,551 through 7,575 (of 32,505 total)
  • Author
    Search Results
  • #167998
    ChrissiLisa
    Participant

    i found this solution:

    <li class=”bbp-body”>
    
    <?php while ( bbp_topics() ) : bbp_the_topic();
    
    if(isset($_GET[‘submit’]) && !empty($_GET[‘ort’])){
    
    $ort = get_post_meta( bbp_get_topic_id(), ‘ort’,true);
    
    if($ort==$_GET[‘ort’]){
    
    //do_action( ‘bbp_template_before_topics_loop’ );
    bbp_get_template_part( ‘loop’, ‘single-topic’ );
    
    }
    
    }
    
    else{
    do_action( ‘bbp_template_before_topics_loop’ );
    bbp_get_template_part( ‘loop’, ‘single-topic’ );
    
    }
    
    endwhile; ?>

    The problmem is, that when I have 2 results the 2 topic are broken to 2 pages (I see an pagination für evtry topic) – how can I avoid this ?

    #167995
    Robkk
    Moderator

    You do not need to put the forum index shortcode in a page. And you can add content above the forum by editing the forum archive template if you copied it in a child theme in a folder called bbpress.

    The actual forum index/root page is the one that the forum list button is redirecting to.

    #167992
    mica123
    Participant

    This issue is now finally resolved. After a long battle, the web host came back to me to ask me to put the following code into .htaccess:

    FileETag None
    Header unset ETag
    Header set Cache-Control "max-age=0, no-cache, no-store, must-revalidate"
    Header set Pragma "no-cache"
    Header set Expires "Wed, 11 Jan 1984 05:00:00 GMT"

    They said the following: This should prevent my website from being cached by Apache and may help to solve this issue. The website is not currently sitting behind their caching
    server so this cannot be the cause of the issue but Apache itself can cache
    sites so perhaps this will help to resolve the issue.

    This may help others having similar problems.
    Last but not least, my heartfelt thanks to @robkk and @casiepa for their steadfast support without which I would have coped very badly. @robkk tirelessly tested every possible issue under the sun. Huge thanks again to both of them. All in all, everything pointed to a caching problem on the server side.

    #167982
    luisc110
    Participant

    Ok guys i did it for myself
    In style.css (appearence -> editor) add this

    .bbpress #secondary {      
    display: none;
    }

    #secondary is your widget / sidebar

    then add

    .bbpress #primary {
        margin: 0 auto;
        max-width: 980px;
        width: 100%;
    }

    #primary is the part of the page that you want to be full width

    #167980
    luisc110
    Participant

    i have the same problem but the code did not work, got any idea of how can i solve it?

    empleoschihuahua.com/foro/

    is mywebsite

    ty

    #167975
    Robkk
    Moderator

    If it is only those two items, you could be able to float the other item to the right and if the unordered list is floated to the left it will make the profile link the first item.

    li#menu-item-2679 {
        float: right;
    }
    #167969
    Robkk
    Moderator

    Are you just using the_author and the_modified_time to just display 1 revision log. You can use the default revision logs and then use a function or some CSS to display 1 revision log instead.

    PHP functiion, place in your child themes functions.php file or in a functionality plugin.

    // Only return one entry for revision log otherwise it gets cluttered
    function bbp_trim_revision_log( $r='' ) {
     $arr = array( end( $r ));
     reset( $r );
     
     return( $arr );
    }
     
    add_filter( 'bbp_get_reply_revisions', 'bbp_trim_revision_log', 20, 1 );
    add_filter( 'bbp_get_topic_revisions', 'bbp_trim_revision_log', 20, 1 );

    CSS snippet, place in your child themes style css or in anywhere else you can place custom css snippets like a custom css plugin.

    .bbp-topic-revision-log li {
    	display:none;
    }
    .bbp-topic-revision-log li:last-child {
    	display:block;
    }
    Robkk
    Moderator

    Probably the SQL query code he posted a week ago.

    Reset forum don’t work, how to clean up the db with phpmyadmin?

    #167965
    namrons
    Participant

    Thanks for the suggestion @casiepa but I have a large and well established Buddypress based community and cannot rebuild the groups. Unless it works with Buddypress based groups? My bbPress forums are set up only inside these Buddypress groups and I imagined that the private groups would support fully private forums. The “bbp-topic-index” shortcode provided by bbPress makes the private groups forum topics visible to members of the community who are not part of these private groups.

    #167956
    Robkk
    Moderator

    _bbp_activity_id is part of the BuddyPress integration code in bbPress specifically the activity component part of BuddyPress.

    https://github.com/ntwb/bbPress/blob/ce1334374cf9fd165e81da1e5b6b511a2b3b778b/src/includes/extend/buddypress/activity.php#L598

    #167951
    Pascal Casier
    Moderator

    Hi namrons,

    Check ‘bbP Private Groups’ and use the shortcodes and widgets provided by this plugin.

    Pascal.

    #167947
    TKServer
    Participant

    I’ve made a threaded forum list which looks really nice. I’ve added a little code to reply to posts but it isn’t writing the meta and I really don’t know what to write in the meta.

    I’m thinking it would be cool to bring in the entire bbpress functions.php to my page to utilize those functions already, rather than writing my own code for things.

    Is that possible to import functions.php and use it outside of bbpress?

    The main functions I would be looking for are posting and replying.

    #167946
    Svend Rugaard
    Participant

    i am using “Gauge” for my site, and i want to make my forum more visible. And therefor i want to make sure every game i create is getting it forum.

    Its like when i create a “Game Info” site, it automatic create News, Review, Images, Trailers.

    But i want to it also create a forum there would be shown in the game, so i dont have to manually add shortcode and forum for that particular game every time, it will save time also.

    I have use this guide from Ghostpool ( Theme Author ) https://ghostpool.ticksy.com/article/3379/

    And in stead of using preview i use debat.

    And im not sure bur i think the problem could be “solve” here ..

    if ( $_POST['debat_page'] == '1' ) {
        $new_page_title = $hub_title_prefix . __( 'debat', 'gp_lang' ); // Page title
        $new_page_content = '';
        $new_page = array(
            'post_type'      => 'forum',
            'post_title'     => esc_attr( $new_page_title ),
            'post_name'      => sanitize_title( $hub_url_prefix . '-' . __( 'debat', 'gp_lang' ) ), // Page slug
            'post_content'   => $new_page_content,
            'post_status'    => 'publish',
            'comment_status' => 'publish', // change to closed to disable the comment form
            'post_parent'    => $hub_page_id
        );

    In the “post_parent” its the parent it belongs to so i figure maybe there is someway to add autocreated forum.

    Because its actually create the forum, just not put it in the hub-page

    #167925
    Robkk
    Moderator

    This should help.

    bbp_get_topic_author_id()

    #167924

    In reply to: richer toolbar

    Robkk
    Moderator

    @tecca @denaize

    Yeah I hate any commercial items that require a yearly renewal of service. Is there anything you would like to see that is premium that does not have a free alternative??


    @denaize

    I forgot that in my editor.js file I hadn’t yet figured out how to customize the image and link quicktags. The guide you found will hopefully help, it will not add a bbcode toolbar though, but TinyMCE is good.

    #167919
    Robkk
    Moderator

    @tomtower

    Is that an extra avatar or just an image to show that the user donated?

    This might be possible if you have something that tracks what users have donated. Like if the data was stored in the user meta table.

    https://codex.wordpress.org/Database_Description#Table:_wp_usermeta

    https://codex.wordpress.org/Function_Reference/add_user_meta
    https://codex.wordpress.org/Function_Reference/get_user_meta

    This might be considered custom development and you may need to hire a developer to create this for you.

    #167915
    Robkk
    Moderator

    Use this custom css. Add the custom css to your child themes style.css file or anywhere else you can add custom css like in a custom css plugin.

    #bbpress-forums .reply {
        position: relative;
        top: inherit;
        right: inherit;
        line-height: inherit;
        font-size: inherit;
    }
    #167912
    zabre00
    Participant

    I know its been 3 years but just wondering if theres been any development on this? @trobee your code a script still work. Just wondering if you still after 3 years, have the single list shortcodes available? I would really appreciate it!

    Pascal Casier
    Moderator

    Hi ChrissiLisa,
    Not sure what you want to obtain, but can this example help ?

    add_filter('bbp_get_topic_content', 'chrissilisa_function');
    add_filter('bbp_get_reply_content', 'chrissilisa_function');
    function chrissilisa_function($content){
      return 'hiiiiiiii'.$content;
      }

    Pascal.

    #167901

    In reply to: richer toolbar

    denaize
    Participant

    with pleasure but my expertise is very limited ! I am an industry energy engineer…

    I look at that yet :

    Enable Visual Editor

    #167898

    In reply to: richer toolbar

    denaize
    Participant

    It’s a shame. For 10x cheaper the author could 20 or 30x more orders…
    To be great BBpress need only an ergonomic and simple input interface adapted to non-IT (no tag and html code visualisation, direct entry and final appearance ) as an ultra simplified tinyMCE.
    + attachement of course.

    Finally I got bored , wordpress is great but does not have a simple but ergonomic forum 🙁 or not free at all !
    I’ll take a little time for study how to improve the toolbar myself…but I am worried

    #167895
    Loc Pham
    Participant

    I’m not allow to change bbp_get_reply() but I was able to work around my problem by calling get_post_time('c', false, $replyID, false) where ‘c’ is iso 8601 format.

    #167893
    Pascal Casier
    Moderator

    Hi,
    with just this small portion of the code, it’s difficult to see the whole loop/picture of course. I’m not sure of what you try to obtain, but just one thing to start from your first one (custom_bbp_reorder_replies), to inverse the order I used:

    if ( bbp_is_single_topic() && !bbp_is_single_user() ) { 
       $args['orderby'] .= 'post_modified';
       $args['order'] .= 'DESC';
    }

    Pascal.

    #167891
    Loc Pham
    Participant

    Hello,

    Is there a way to specify the date format use in bbPress? In various places of bbPress, the date format do complies to IOS 8601 standard and prints the ‘T’ element to specify the beginning of ‘time’ element like: 1994-11-05T08:15:30-05:00

    Conversely, if I print bbp_get_reply($id) the format DOESN’T conform to ISO 8601 and prints the following: 1994-11-05 08:15:30-05:00. Notice that ‘T’ is missing. Its inconsistencies breaks my code in various places and wonder if there’s a way to specify the output?

    Thanks
    Loc

    #167888
    gperez-tl
    Participant

    I think this works:

    add_filter('bbp_get_reply_position', 'lugpa_get_reply_position', 10, 3);
    function lugpa_get_reply_position($reply_position, $reply_id, $topic_id){
        
        if(empty($topic_id))
            $topic_id = bbp_get_reply_topic_id ($reply_id);
        
        $numReplies = bbp_get_topic_reply_count($topic_id);
        return ($numReplies+1) - $reply_position; // plus one because of thread description
    }

    I’m not sure about the +1 but it works. I tested this with first and last comment of a given page.

Viewing 25 results - 7,551 through 7,575 (of 32,505 total)
Skip to toolbar