Forum Replies Created
-
In reply to: how to change the post Permalinks?
@korobochkin do you support buddypress yet?
In reply to: how to change the post Permalinks?it works!
BTW,
1. the format is topic/[id]/, is it possible to remove the ending /, and replace it with .html, so it would look like topic/id.html
2. looks like it doesn’t take effect in the forum in a buddypress group.In reply to: how to change the post Permalinks?thanks, i tried to install the plugin, but it failed, i’m using the latest wordpress and bbpress 2.5.6
great, that’s simple enough.
ok, i got it (loop-replies.php):
<?php $count=1; while ( bbp_replies() ) : bbp_the_reply(); ?> <?php $post_id = get_the_ID(); //save the new count update_post_meta($post_id, 'bbp_seq_test', $count) ; ?> <?php bbp_get_template_part( 'loop', 'single-reply' ); $count = $count + 1 ; ?> <?php endwhile; ?>
and define a function show_seq()
$post_id = get_the_ID(); $count = get_post_meta( $post_id, 'bbp_seq_test', true ); echo $count;
and then in loop-single-reply.php
` <a href=”<?php bbp_reply_url(); ?>” class=”bbp-reply-permalink”>#<?php show_seq(); ?></a>
`and it works!
please take a look!
http://bbs.circday.com/forums/topic/%E6%B5%8B%E8%AF%95%E6%B0%B4%E5%8D%B0
looks like loop-single-reply.php is a single reply entry, which file invokes it (in a loop way),
if i can find the caller, maybe I can set the meta data in the caller every time it loops:$index=1 while (replies) set meta data (topic_id) to $index load loop-single-reply.php get meta data (topic_id) in loop-single-reply.php $index++
where’s the file which displays the number?
I still think there’s way. for example, by remapping.1. define a meta data for a specific topic (for example, topic_id)
2. remap the topic_id to the real id
3. display the topic_id instead of the real id
4. increase the topic_id by 1 every reply
5. still keep the link to the real id, so when you click the topic_id, it actually points to the real id.In reply to: can't upload media in bbpressand i just found if enabling edit_others_forums for the user, then the user can add media, but it seems make no sense. (and there’s “Edit” link at the bottom of the forum). why is that?
In reply to: how to remove the sidebar in twenty-fifteen theme?thanks, the forum is not centralized when i use #bbpress-forums to widen the forum.how to centralize it?
In reply to: how to remove the sidebar in twenty-fifteen theme?the link is http://www.saidao.org/wordpress
the forum link: http://www.saidao.org/wordpress/forums
BTW, actually I’m setting up a Chinese site….
it works, thanks a lot. BTW, how to remove the avatar only (keep the message)?
also, there’s also an avatar before the user if a reply was modified by the user, it will say:
“This topic was modified 3 days, 23 hours ago by …”
how to remove the avatar?