Search Results for 'code'
-
Search Results
-
I’m trying to make my own nested threaded replies. Right now all the replies appear in my page, but there’s no organization to them. Is the $args method the way to go or do I need to make my own custom sql statement? I’ve got all the data in the args below, but the sort isn’t nested. Not sure how do do that.
$args = array( 'post_type' => 'reply', // custom post type 'posts_per_page' => '50', 'orderby' => 'post_parent', 'post_parent' => $topic_id, 'meta_query' => array( 'relation' => 'OR', array( 'key'=> $topic_id, ), array( 'key'=>'_bbp_reply_to', 'compare' => 'NOT EXISTS' ), array( 'key'=>'_bbp_reply_to', 'compare' => 'EXISTS', ), ), 'orderby' => 'meta_value_num', 'order' => 'ASC', ); //global $wpdb; $loopReply = new WP_Query($args);Hi,
WP 4.7, latest BBpress. I have a multisite: swissinformatic.org, magazine.swissinformatics.org, [other stuff]swissinformatics.org. My mail server is @swissinformatics.org and the plugin picks up$_SERVER['SERVER_NAME']to create the no reply address.
COULD YOU HELP US with a setting box to supersede this value?
Meanwhile I replaced it with my site name in the functions.php code, but mind the next plugin update!
$sitename = strtolower( ‘swissinformatics.org );
Always beware of “Educated guess’ I’m not going to buy a mail server for each subdomain and with the present security of providers,…
I also created a no reply alias of my administrative e-mail address.
Everything is fine nowSubscriptions ***********************************************************/
/**
* Get the “Do Not Reply” email address to use when sending subscription emails.
*
* We make some educated guesses here based on the home URL. Filters are
* available to customize this address further. In the future, we may consider
* usingadmin_emailinstead, though this is not normally publicized.
*
* We use$_SERVER['SERVER_NAME']here to mimic similar functionality in
* WordPress core. Previously, we usedget_home_url()to use already validated
* user input, but it was causing issues in some installations.
*
* @since bbPress (r5409)
*
* @see wp_mail
* @see wp_notify_postauthor
* @link https://bbpress.trac.wordpress.org/ticket/2618
*
* @return string
*/
function bbp_get_do_not_reply_address() {
$sitename = strtolower( $_SERVER[‘SERVER_NAME’] );
if ( substr( $sitename, 0, 4 ) === ‘www.’ ) {
$sitename = substr( $sitename, 4 );
}
return apply_filters( ‘bbp_get_do_not_reply_address’, ‘noreply@’ . $sitename );Hi guys, I will just say first that I do not know much about coding.
I just installed bbpress and now i have this error come up in my wordpress dashboard
Warning: preg_match(): Unknown modifier ‘0’ in /home2/eli/public_html/juniortactician.com/wp-includes/class-wp.php on line 231
Warning: preg_match(): Unknown modifier ‘0’ in /home2/eli/public_html/juniortactician.com/wp-includes/class-wp.php on line 232
the code on those lines are as follows:
if ( preg_match(“#^$match#”, $request_match, $matches) ||
preg_match(“#^$match#”, urldecode($request_match), $matches) ) {what does this mean and how can I get rid of it?
Thanks in advance.
Topic: Paging on custom short code
Hi I am using a custom short code to show about 10 latest replies on my reply dash board.
I get shortcode from this link by applying this code : http://www.daggerhart.com/bbpress-recent-replies-shortcode/what I want is to add paging (nav) at the bottom to show more then 10 replies on other pages. please suggest solutions.
Hello,
I have used Image Upload for BBPress to upload and attach image to forum.
my problem is image is not responsive. It will just shrink its width. I tried playing with firbug and remove image attributes and set max-width to 100%.
It works… Now my problem is which file to edit and how. Im not a coder. I just learned css and have little understanding on php…I am having trouble importing from SimplePress to bbpress. I’m not sure what the table prefix is supposed to be. I tried wp_ and that didn’t import anything. I tried wp_sf (I think that is the beginning of tables for SimplePress but get this error
Repair any missing information: Continue
WordPress database error: [Specified key was too long; max key length is 1000 bytes]
CREATE TABLE wpzu_bbp_converter_translator ( meta_id mediumint(8) unsigned not null auto_increment, value_type varchar(25) null, value_id bigint(20) unsigned not null default ‘0’, meta_key varchar(255) null, meta_value varchar(255) null, PRIMARY KEY (meta_id), KEY value_id (value_id), KEY meta_join (meta_key(191), meta_value(191)) ) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci;Is there anything I can do to get this import done?
Hello:
I have created a log in page but I tested it myself and I logged out. But though I set up the recommended bbPress code for log in, there is no option to log in. When I logged out, I still got this message: “You are already logged in.”
I can’t create a registration form, in spite of creating one with the recommended bbPress shortcode.
Without being able to log in our log out, or register, I can’t invite anyone to my forum.
Sigh.
In the forum settings, it gives the option “Forum root should show” with the choices of “Forum Index” or “topics By Freshness”. How can I have the root show both – the listing of forums, and below it the latest topics?
I know there is a shortcode [bbp-topic-index] which will show the latest topics, but I don’t know where I can put that to have it show on the forum root.
ThanksI am developing an android app for my wordpress forum. Please is there any way I can create new users and login old ones programmatically? Maybe a rest API or something.
Please you can show the code in php or any language of your choice.
Topic: You Forgot a Few Things
Two to be precise.
#1. Registration: I take it you need to set up a page and to add a shortcode.
#2. Lost Password. Again I understand you need to set up a page and add a shortcode.You need to tell people, instead of acting as though they automatically knew this. And in these instructions to the page on installation. In addition, make sure to include the softcodes needed.
Don’t make setting up the plugin any more frustrating than it has to be.