Forum Replies Created
-
as
<img src="http://www.kimberleygundogs.com/wp-content/uploads/2019/12/dog-jumping.jpg" alt="" />
gives you
I did give you the proper code – you need to link to the full url of an image ie a file that is an image file
yes, unless you can can tell the server precisely where to find the image, it cannot display it 🙂
ok, I’ll give it one more try, and then you are on your own!!
your code would produce
<img src="84396884_480x480.jpg">
which is not a valid url, so produces nothing.
you need a link which is a valid url to an image, so one where you see an image if you put the url into your browser
you need to wrap the url into an image tag as in
https://www.w3schools.com/tags/tag_img.asp
so (untested so may need fixing) and image sizing but try
add_action('bbp_template_before_replies_loop', 'bbp_show_extra_fields'); function bbp_show_extra_fields() { $topic_id = bbp_get_topic_id(); $value1 = get_post_meta( $topic_id, 'bbp_extra_field1', true); $value2 = get_post_meta( $topic_id, 'bbp_extra_field2', true); $img1 = '<img src="'.$value1.'">' ; echo "Field 1: ".$img1."<br>"; echo "Field 2: ".$value2."<br>"; }
In reply to: Please make replies not viewable to non-users.the problem is that you are changing the actual content box, so it will still display 20 boxes with author details and only blank the boxes.
you basically need to alter the bbpress template loop-single-reply.php to achieve what you want
see
section 3
In reply to: Getting 404 response on forum archive pageif you mean you are getting 404 to https://bbpress.org/forums/page/2/ , the this is working fine as far as I can see
In reply to: Users unable to turn of email notifications🙂
🙂
In reply to: There has been a critical error on this website.In reply to: Hide participant role at messages🙂
In reply to: Best way to change forum name roles?🙂
In reply to: Edit Lock could not be set to 0that is a bug which is in the list for fixing
in the meantime just set it for 5256000 which is 10 years !
just tested it on my site, and it seems to work.
where did you put the code?
untested but try this
add_filter ('bbp_new_reply_redirect_to', 'rew_redirect_to_topic', 10 , 3) ; function rew_redirect_to_topic ($reply_url, $redirect_to, $reply_id ) { $topic_id = bbp_get_reply_topic_id ($reply_id) ; $redirect_url = bbp_get_topic_permalink( $topic_id, $redirect_to ); return $redirect_url ; }
Put this in your child theme’s function file –
ie wp-content/themes/%your-theme-name%/functions.php
where %your-theme-name% is the name of your theme
or use
In reply to: Help to style bbpressIn reply to: breadcrumb style with cssgreat – glad to have helped !!
In reply to: breadcrumb style with cssyou can wrap the breadcrumb in a container – there is a filter
'bbp_get_breadcrumb' return apply_filters( 'bbp_get_breadcrumb', $trail, $crumbs, $r, $args );
In reply to: Reorder Topics by Reply Count of each topicbuddyboss platform is paid, and I do not have it/use it, but it should be fine
In reply to: Hide participant role at messagesIn reply to: Best way to change forum name roles?In reply to: Reorder Topics by Reply Count of each topicthis is the code bbpress uses
$topics_query = array( // What and how 'post_type' => bbp_get_topic_post_type(), 'post_status' => bbp_get_public_topic_statuses(), 'post_parent' => $settings['parent_forum'], 'posts_per_page' => (int) $settings['max_shown'], 'meta_query' => array( array( 'key' => '_bbp_reply_count', 'type' => 'NUMERIC' ) ), // Ordering 'orderby' => 'meta_value_num', 'order' => 'DESC', // Performance 'ignore_sticky_posts' => true, 'no_found_rows' => true, 'update_post_term_cache' => false, 'update_post_meta_cache' => false );
In reply to: Background colour different on Safari and Firefoxit will be caching on your browser.
you need to clear cache on the browsers to let them download the latest version of css.
They look the same on my PC in all browsers, as I am looking at the site for the first time.
In reply to: how to customize bbpress forumif that doesn’t help, then link please to a live example on your site