Forum Replies Created
-
In reply to: Add/Remove from TinyMCE
Wow, I’m sorry. I didn’t realize I had forgotten this line.
I noticed the second line I had in my code was to disable the HTML editor, not teeny. However, is it possible to display the HTML editor only for moderators and above?
In reply to: Add/Remove from TinyMCEI don’t know the arguments for the different buttons though?
In reply to: Some startup help in designing my own theme?This added a new class, but not for the first hour after creation only.
In reply to: Some startup help in designing my own theme?There is a plugin Robin made that can basically do that. There is also a different plugin for displaying BuddyPress profile fields
Which one did you link me? What I did, which seems to work fine for now is simply check for the_author_meta and display it if there’s anything there. I placed it within loop-single-reply.php without issues.
<div class="bbp-reply-author"> <?php do_action( 'bbp_theme_before_reply_author_details' ); ?> <?php bbp_reply_author_link( array( 'sep' => '<br />', 'show_role' => true ) ); ?> <?php if ( bbp_is_user_keymaster() ) : ?> <?php do_action( 'bbp_theme_before_reply_author_admin_details' ); ?> <div class="bbp-reply-ip"><?php bbp_author_ip( bbp_get_reply_id() ); ?></div> <?php do_action( 'bbp_theme_after_reply_author_admin_details' ); ?> <?php endif; ?> <?php do_action( 'bbp_theme_after_reply_author_details' ); ?> <?php if(get_the_author_meta('twitter')): ?> <p>Twitter: <?php the_author_meta('twitter'); ?></p> <?php else: // do nothing endif; ?> </div><!-- .bbp-reply-author -->
Yeah you do not have to leave the [status] and just leave the classes there so you can style with just CSS.
I can’t completely grasp what you’re saying here. Say if I wanna add the class “new-topic” instead of a “new” label. What would I change here?
function rk_new_topics() { $offset = 60*60*1; if ( get_post_time() > date('U') - $offset ) echo '<span class="new">[New]</span>'; } add_action( 'bbp_theme_before_topic_title', 'rk_new_topics' );
I might be saying very stupid things here (gotta learn some way), but I tried changing bbp_theme_before_topic_title to bbp_topic_class which is what my inexperienced self thought would do the trick, but it didn’t.
In reply to: Some startup help in designing my own theme?This works nicely. Sorry to bug you so much.
The custom profile fields, what exactly do they do? I get that I can now add my Twitter handle from profile settings, but it’s not displayed anywhere on the site. I would love for it to be displayed beneath my avatar and username phpBB-style in topics, or at least on my visible forum profile. This doable? Obviously I can’t use the_author_meta() in bbpress, so…
Also, instead of adding labels to certain topics. Can I add classes so I can do changes in CSS?
Thanks! 🙂
In reply to: Some startup help in designing my own theme?Here is a code snippet that will do what you are looking for though.
This gives me the 5 most recent topics in single-forum as well, not just the forum index/home page of the forum. I tried working around it, and also directly solve the problem but with no luck.
In reply to: Some startup help in designing my own theme?Thanks again! 🙂
In reply to: Some startup help in designing my own theme?I’ve been doing some testing tonight, and actually made the realization that the starter theme is not the way to go for me. The first suggestion of yours seem to give me what I’m after just as well, and with a lot less effort on my part in the next stages.
In response to my other questions though (referencing this: https://bbpress.org/forums/topic/bbp-single-forum-wont-work/#post-166535):
Surely, there’s got to be a way of displaying both the forum index AND other shortcode elements on the home page of the forum? Since it won’t allow me to do changes in wp-admin if I set a custom page as root, do I have to call the shortcode via PHP in my bbpress.php custom template file?
Also, I’d love the front page “Latest update” to permalink the latest post, not the topic. Difficult task?
In reply to: Some startup help in designing my own theme?I tested the starter theme you linked and that is brilliant. There seems to be a lot of CSS to delve into, but that’s ok. Thanks! 🙂
No, I clicked, let it run and it never finished. I messed about for a couple hours after I wrote this and eventually got it to work by resetting the language to English, resetting forum, deleting bbPress and install/importing all over again with the default language. Don’t know if it’s a language files issue, but at least it worked for me.
Also, when repairing forum, I can not recalculate the positions of replies because the process exceed the allowed time. I am running 1 process at a time.
In reply to: phpBB type profile fields in bbPress?Thanks!
In reply to: phpBB type profile fields in bbPress?Wow, thanks! I’ll add this to bbPress with the_author_meta(), correct?