Search Results for 'code'
-
Search Results
-
Hi.
I’m showing my replies as a timestream, meaning I display the newest replies above the oldest one. Like this:function custom_bbp_reorder_replies($args) { $args['order'] = 'DESC'; // 'ASC' (Ascending, Default), 'DESC' (Descending) return $args; } add_filter('bbp_before_has_replies_parse_args', 'custom_bbp_reorder_replies' );Well, in My Replies Created I’m showing a list of replies with a link to corresponding thread like this:
<a href=" <?php echo bbp_get_reply_url() ?>" class="bbp-topic-edit-link">...</a>But that is not working because bbp_get_reply_url() is considering default order instead of reverse. So, when doing this it returns the wrong page:
$reply_page = ceil( (int) bbp_get_reply_position( $reply_id, $topic_id ) / (int) bbp_get_replies_per_page() );(that code is in includes/replies/template.php, line 487)
Maybe a hook around there would help.
By now I’m not sure how to solve it for myself.
Topic: Revision logs notes code?
I’m looking to limit the “Edited by xxxx” to the last edit at the end of every post. I remember looking through the forum on the topic, and I found it suggested to another user to use WordPress’ own the_author and the_modified_time. This should work great, however, how do I include the revision notes from the last edit? In other words the reason a user adds for editing their post.
Hello,
how can I give different childforums there own style ?
Is there a hook like “before show topics” where I can place my own css style ?
I counldnt find anything in the codex.Thanks,
bye
ChrissiLisaHello,
I use this function (in functions.php) to show extra fields over a topic form:
add_action ( 'bbp_theme_before_topic_form_content', 'bbp_extra_fields'); function bbp_extra_fields() { /*Extra-Felder Baufinanzierungsberater*/ if($GLOBALS['forum']=='baufinanzierungsberater'){ echo '<div id="baufinanzierungsberater_edit_box"><div style="width:50%;float:left;">'; $value1 = get_post_meta( bbp_get_topic_id(), 'nachname', true); echo '<label for="nachname">Nachname</label>'; echo "<input type='text' name='nachname' value='".$value1."'><br />"; $value2 = get_post_meta( bbp_get_topic_id(), 'vorname', true); echo '<label for="vorname">Vorname</label>'; echo "<input type='text' name='vorname' value='".$value2."'><br />"; }}This works. But when I want to edit the fields after saving the topic, the fields are gone. Which action do I have to use to show the fields?
Thanks,
best regards
ChrissiLisaHi,
Is there a way I can show a topic list from just one forum on a page ?
I already tried the standard widgets – e.g. recent topics – but this one shows topics from all forums. Additionally I used the shortcode [bbp-single-forum id=00] but this shows beside the list also the creation of a new topic – I only would like to have the list.Thanks
MarcinP.S. Working local; WP 4.3.1; bbPress 2.5.8; Theme GeneratePress
Topic: richer toolbar
Hi
I’m looking for bbpress, it works well but toolbar lacks a bit of ergonomics.
My members needs smiley, classical [quote] a quote[/quote] or [code]C code[/code] and picture/files attachement.how do I get it ?
Thank you in advance
WP 4.3.1 and last bbpress
Hi,
I am aware I can use the shortcode [bbp-single-tag id=181] to display forum posts associated with the tag 181. However, I’d like to pull content assoociated with more than one tag.
Could someone please help me?
Thank you