Search Results for 'code'
-
Search Results
-
Iโm looking for advice on how to display day of the week at “reply-post-date”.
In topic pages, “at” is used in the display of posting date. like…
2014/05/28 at(โhere!) 00:21I want to replace the display from “at” to “(Sun)”.
In other words, I want to display a day of the week of posting time.I tried many times by using PHP function “preg_replace”.
However, it was too difficult for me. Code that I made โโis as bellow.function change_reply_post_date($output) { $output = preg_replace( '/at/' , "<?php echo get_post_time('D'); ?>" , $output ); return $output; } add_filter( 'bbp_get_reply_post_date' , 'change_reply_post_date');In this case, it did not result in an error.
However, “at” disappeared.What should I do?
Would you please advice me?WordPress: ver3.9.1
bbPress: ver2.5.3Topic: bbPress Codex
I have just started updating the layout and structure of the codex http://codex.bbpress.org/
This has been on the ‘ToDo’ list for a while, there is much to do and if you would like to give a helping hand that would be great, subscribing to this topic would be a good start ๐
In the coming days I will update this post and outline further some of the plans.
You can see the new planned layout home page here: http://codex.bbpress.org/
The ‘Participate & Contribute’ page here: http://codex.bbpress.org/participate-and-contribute/
No pages or changes to permalinks have been made yet, though I do plan on this in the coming days.
I am using themes and modifying bbpress.css. I figured out how to remove the roles of people making posts. I want to remove the topic authors only, but keep all authors of replies. Here are the changes I made to bbpress.css, which was to put “dislay: none;” under the forum and topic authors, but that has not worked.
#bbpress-forums div.bbp-forum-author, #bbpress-forums div.bbp-topic-author { display: none; } #bbpress-forums div.bbp-reply-author { float: left; text-align: center; width: 115px; } #bbpress-forums div.bbp-forum-author img.avatar, #bbpress-forums div.bbp-topic-author img.avatar { display: none; } #bbpress-forums div.bbp-reply-author img.avatar { border: none; max-width: 80px; padding: 0; margin: 12px auto 0 auto; float: none; } #bbpress-forums div.bbp-forum-author a.bbp-author-name, #bbpress-forums div.bbp-topic-author a.bbp-author-name { display: none; } #bbpress-forums div.bbp-reply-author a.bbp-author-name { margin: 0 12px; word-break: break-word; display: inline-block; } #bbpress-forums div.bbp-topic-author a.bbp-author-name { display: none; } #bbpress-forums div.bbp-reply-author a.bbp-author-name { clear: left; display: block; } #bbpress-forums div.bbp-forum-author .bbp-author-role, #bbpress-forums div.bbp-topic-author .bbp-author-role, #bbpress-forums div.bbp-reply-author .bbp-author-role { display: none; // font-size: 11px; // font-style: italic; } #bbpress-forums li.bbp-header .bbp-search-author, #bbpress-forums li.bbp-footer .bbp-search-author, #bbpress-forums li.bbp-header .bbp-forum-author, #bbpress-forums li.bbp-footer .bbp-forum-author, #bbpress-forums li.bbp-header .bbp-topic-author, #bbpress-forums li.bbp-footer .bbp-topic-author { display: none; }The only way I have found to remove the topic author is to insert “display: none;” under the topic-reply authors, but that removes the topic-reply authors as well, which I don’t want to do. Perhaps I need to get into a php file to do this? If so, can someone direct me to the correct file? Thanks.
Topic: bbp-topic-tags – separator
Hi,
I am using the [bbp-topic-tags] shortcode on a page and would like to add some kind of separator between each tag [maybe a pipe | if possible].
Does anyone know how this can be done?
Thank you for any advice you can offer.