Forum Replies Created
-
In reply to: Splitting a topic
I’d just use the backend to create 2 topics, copy the relevant info into each one, and use the author information on the right hand side to change to the required author ID
In reply to: Pagination – How to remove last page numbers?oh, and I found a bit where we can do some string editing, so…
This code reduces the last to 1 entry, and then looks for that entry and removes it…
add_filter ('bbp_before_paginate_links_parse_args' , 'rew_pagintion' ) ; function rew_pagintion ($args) { $args['end_size'] = 0 ; return $args; } add_filter ('bbp_make_first_page_canonical', 'rew_take_out_last', 10 ,2) ; function rew_take_out_last ($retval, $pagination_links) { $posf = strrpos ($pagination_links, '<a class="page-numbers' ) ; $posl = strpos ($pagination_links, '<a class="next page-numbers' ) ; $start = substr ($pagination_links, 0 , $posf) ; $end = substr ($pagination_links, $posl , strlen($pagination_links)) ; $links = $start.$end ; return $links ; }
you can get rid of the page number dots using css or some more str functions in the code above, but I’ll leave you to work that out 🙂
In reply to: Pagination – How to remove last page numbers?yes, find
wp-content/plugins/bbpress/templates/default/bbpress/content-single-forum.phptransfer this to your pc and edit
you’ll see
<?php bbp_get_template_part( 'pagination', 'topics' ); ?> <?php bbp_get_template_part( 'loop', 'topics' ); ?> <?php bbp_get_template_part( 'pagination', 'topics' ); ?>
change that to take out the first line and save
create a directory on your theme called ‘bbpress’
ie wp-content/themes/%your-theme-name%/bbpresswhere %your-theme-name% is the name of your theme
Then transfer the file you saved above and put in in the directory called bbpress that you created above, so you end up with
wp-content/themes/%your-theme-name%/bbpress/content-single-forum.phpbbPress will now use this template instead of the original
In reply to: cannot edit, delete or close a topicgreat – glad you are fixed
In reply to: Pagination – How to remove last page numbers?hmm – that’s a core WordPress bug.
It has a track ticket, but no date
https://core.trac.wordpress.org/ticket/39251
sorry, best I can do !!
In reply to: cannot edit, delete or close a topicthen use this to allow participants to close or delete topics and delete replies
once activated go to
dashboard>settings>bbp style pack>Topic/Reply Display
and look at items
17, 18 & 19
In reply to: cannot edit, delete or close a topicso put this in the custom css are of your theme
#bbpress-forums ul.bbp-forums li.bbp-body .reply .bbp-reply-header .bbp-admin-links,
#bbpress-forums ul.bbp-forums li.bbp-body div.hentry .bbp-reply-header .bbp-admin-links,
#bbpress-forums ul.bbp-replies li.bbp-body .reply .bbp-reply-header .bbp-admin-links,
#bbpress-forums ul.bbp-replies li.bbp-body div.hentry .bbp-reply-header .bbp-admin-links,
#bbpress-forums ul.bbp-topics li.bbp-body .reply .bbp-reply-header .bbp-admin-links,
#bbpress-forums ul.bbp-topics li.bbp-body div.hentry .bbp-reply-header .bbp-admin-links {
bottom:1px !important;
}In reply to: Pagination – How to remove last page numbers?ok, so did you try MY code on another site?
In reply to: Pagination – How to remove last page numbers?hmm end works with 0 on my test site !
In reply to: cannot edit, delete or close a topicif you change
bottom:15px;
to
bottom:1px ;
it works
In reply to: cannot edit, delete or close a topicyes your theme has a style sheet
wplms/assets/css/bbpress.min.css
which contains
#bbpress-forums ul.bbp-forums li.bbp-body .reply .bbp-reply-header .bbp-admin-links, #bbpress-forums ul.bbp-forums li.bbp-body div.hentry .bbp-reply-header .bbp-admin-links, #bbpress-forums ul.bbp-replies li.bbp-body .reply .bbp-reply-header .bbp-admin-links, #bbpress-forums ul.bbp-replies li.bbp-body div.hentry .bbp-reply-header .bbp-admin-links, #bbpress-forums ul.bbp-topics li.bbp-body .reply .bbp-reply-header .bbp-admin-links, #bbpress-forums ul.bbp-topics li.bbp-body div.hentry .bbp-reply-header .bbp-admin-links { position:absolute; bottom:15px; right:0 }
which moves the links, and makes them unclickable
In reply to: cannot edit, delete or close a topicok, you say you have admin rights, but what forum role do you have ?
Participants are not by default allowed to delete or close.
Your theme (or another plugin) is only letting you see any admin links when you focus on the content. This is I am pretty sure preventing you clicking the link to edit.
In reply to: Pagination – How to remove last page numbers?so the functions.php file that is in your child theme – yes ? (sorry but the obvious questions so often lead me to a solution!)
and can you paste the code with say the function above or below it, so I can check that it is not erroring due to syntax.
In reply to: Pagination – How to remove last page numbers?in your functions file or code snippets ?
In reply to: Pagination – How to remove last page numbers?yes I see 🙂
Put this in your child theme’s function file – or use
add_filter ('bbp_before_paginate_links_parse_args' , 'rew_pagintion' ) ; function rew_pagintion ($args) { $args['end_size'] = 0 ; return $args; }
In reply to: use wordpress posts as bbpress topicswhat do you mean by
Hi, i would like to use WordPress native posts as topics with bbpress.
In reply to: Bridge wordpress users and bbpress🙂
In reply to: Bridge wordpress users and bbpressthat’s all fine and good, just checking 🙂
so yes you will need to look at how to share WordPress users over two sites. Above link looks good to fix, but there were lots of answers when I googled ‘share WordPress users between 2 sites’
I also saw this plugin
In reply to: Pagination – How to remove last page numbers?link to an example and I might be able to give you css to hide
In reply to: Large space between header and forumsthinking about it, putting this in the custom css part of your theme should work
.dummy { display: none; }
In reply to: Bridge wordpress users and bbpressif you want a subdomain, you’ll need to look at how to bridge two domains eg
In reply to: Bridge wordpress users and bbpressbbpress just uses WordPress users, so if your members are WordPress users, they will be bbpress users as well.
you main issue will be sharing users between two domains.
Why do you want bbpress in a sub domain ?
In reply to: Allowing Line Spacing in Forum Descriptionthis should get you somewhere, although does throw up some raw displays in the backend
add_filter( 'bbp_get_forum_content', 'rew_show_paras' , 10 , 2 ); function rew_show_paras ($content, $forum_id) { $post = get_post($forum_id); $the_content = apply_filters('the_content', $post->post_content); return $the_content ; }
In reply to: Large space between header and forumslooks like same theme related issue – you need to raise with your theme provider
In reply to: Large space between header and forumsgreat – glad you are fixed !!