Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 5,651 through 5,675 (of 32,518 total)
  • Author
    Search Results
  • #180267

    In reply to: Unassigned Topics

    Scordisian
    Participant

    I fixed it, here is for future reference:

    UPDATE wpxn_posts SET post_parent=3270 WHERE post_type=’topic’;

    TheDream18
    Participant

    Hello,

    I’m not good at code. Can you please step by step what to do?

    I added following code to function.php childe-theme, it leaved me a blank page.

    <span class=”bbp-last-post-by-author”><?php printf( __( ‘Last Post: %1$s’, ‘bbpress’ ),bbp_get_topic_freshness_link( array() ) ); ?></span>
    <?php _e(‘ by ‘, ‘bbp’); ?>
    <span class=”bbp-topic-freshness-author”><?php bbp_author_link( array( ‘post_id’ => bbp_get_topic_last_active_id(), ‘size’ => 14 ) ); ?></span>

    #180256
    TKServer
    Participant

    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);
    
    #180219
    Robin W
    Moderator

    bit more digging

    it would appear that wordpress 4.7 takes out the filter capability

    https://github.com/WP-API/WP-API/issues/2964

    there is plugin that puts it back

    https://github.com/WP-API/rest-filter

    Otherwise I think they now want you to filter at the client end.

    so http://MY_SITE.COM/wp-json/wp/v2/posts gives you all the posts, and then you pick those that are the right post type.

    If you try the plugin above, then I think

    http://MY_SITE.COM/wp-json/wp/v2/posts?filter[type]=topic

    does it

    Please do report progress back !!

    #180214
    Robin W
    Moderator

    Do you know how to put code in your theme’s function file ?

    if so add this to it

    add_filter( ‘bbp_get_do_not_reply_address’, ‘noreply@swissinformatics.org' );

    and that will not get overwritten on upgrade of bbpress plugin

    Of course that will need a child theme, as otherwise it will get lost on a theme update !

    If any of that not clear (or not possible) come back !

    #180212
    Robin W
    Moderator

    The below is offered as potential help, and in an effort to help, so if it is rubbish, then please come back, and I will try to help further.

    bbpress uses the standard wordpress posts, but with post types of ‘forum’, ‘topic’ and ‘reply’ instead of ‘post’ and ‘page’, and bbpress code itself basically uses wp_query to access the database.

    The glossary for wordpress api says

    GET /wp-json/wp/v2/posts to get a collection of Posts. This is roughly equivalent to using WP_Query.

    so I’d imagine that you would just use the same sort of call, and use wp_query parameters to return what you wanted.

    So if for wordpress you had a command that gave you say the latest 5 posts, then this same command would work but just changing whatever that code has for post_type=’post’ to post_type=’topic’

    If you wanted topics from a particular forum, you would add the equivalent of post_parent = ID where ID was the forum ID

    In essence if you can tell me what you want, I can give you the wp_query, and you could hopefully translate this into json.

    Does any of that make sense? 🙂

    #180210
    Gilbert
    Participant

    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 now

    Subscriptions ***********************************************************/

    /**
    * 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
    * using admin_email instead, though this is not normally publicized.
    *
    * We use $_SERVER['SERVER_NAME'] here to mimic similar functionality in
    * WordPress core. Previously, we used get_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 );

    #180199

    In reply to: Guest Posting Question

    Anonymous User
    Inactive

    Mike,

    I have just stumbled upon the thread from 3 years ago and it led me to finding yours here. Is this really not resolved?

    I recently got bbPress up and running and I also needed this. I went ahead and found the solution… here goes…

    It’s in the template. Seriously. Let’s take the previous answer (sorry for no reference) that souneone suggested to “tell the users to use anon@example.com”, and we’ll make it even easier for the user.

    Make sure to copy the default bbpress template “form-anonymous.php” to /wp-content/themes/your-theme/bbpress/

    Open up form-anonymous.php from your theme and find the following code section:

    <p>
    			<label for="bbp_anonymous_email"><?php _e( 'Mail (will not be published) (required):', 'bbpress' ); ?></label><br />
    			<input type="text" id="bbp_anonymous_email"   value="<?php bbp_author_email(); ?>" tabindex="<?php bbp_tab_index(); ?>" size="40" name="bbp_anonymous_email" />
    		</p>

    Delete that. In fact, replace it with the following:

    <input type="hidden" id="bbp_anonymous_email" value="anon@yourdomain.com" tabindex="-1234" name="bbp_anonymous_email" />

    Save it out, close it out. You’re done!

    Now you don’t require names.. it forces the “anon@yourdomain.com” as the value.
    Developers can still change it 😉

    remember to change yourdomain.com to your actual domain in the values I gave above.

    if you have further questions or anything reach out on skype joshuasadler4550

    #180191
    TheDream18
    Participant

    Example:
    TOPIC A
    – Post 1
    – Post 2
    – Post 3
    – Post 4

    Simple added this code css:
    /* Display sub-forums in separate lines */
    #bbpress-forums .bbp-forums-list li {
    display: list-item !important;}

    #180188
    eliblair
    Participant

    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.

    #180187
    Robin W
    Moderator

    the topic index shortcode in my style pack plugin might be what you need

    https://wordpress.org/plugins/bbp-style-pack/

    go to

    dashboard>settings>bbp style pack>shortcodes to see what is available and how it works

    #180186
    moni
    Participant

    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.

    #180181
    stagezero
    Participant

    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…

    #180149
    CMB70
    Participant

    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?

    #180132
    Robin W
    Moderator

    it is your theme doing this

    it sets a css rule

    .entry-content {
    width: 71.4286%;
    }

    and considers bbpress to be entry content.

    you could try setting this to 100% – it will work for the forums page, but you’d need to check that it doesn’t upset another part of the site

    it looks like you have child theme configurator that will let you have custom css, so put this in it

    .entry-content {
      width: 100%;
    }

    if that doesn’t work try

    .entry-content {
      width: 100% !important;
    }

    come back and let us know

    #180130
    Mutahhar
    Participant

    bbp_get_reply_id()
    is the function you are looking for.

    #180126
    Robin W
    Moderator

    your theme is doing this

    it doesn’t recognise this as a page, so is allowing for a sidebar.

    go to

    Step by step guide to setting up a bbPress forum – Part 1

    and look at item 3, and tell me what method you are using. If not Method 2, then try this

    #180121
    Robin W
    Moderator

    The nofollow is added on output rather than save, so if you use inspection tools you will see that the actual code sent to browser (and hence seen by robots) has nofollow

    eg

    <div class="bbp-reply-content">
    <p>
    <a href="http://www.rewweb.co.uk" rel="nofollow">link to my site</a>
    </p>
    #180104
    Robin W
    Moderator

    set your root to ‘xxyy’ – whatever you want to call it

    create a page called ‘xxyy’

    in the content on that page put

    [bbp-forum-index] 
    [bbp-topic-index]
    
    devpaq
    Participant

    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.
    Thanks

    Wilbur
    Participant

    I 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.

    #180075

    In reply to: signature separator

    Robin W
    Moderator
    add_action ('bbp_theme_after_reply_content', 'rew_hr', 10) ;
     
    function rew_hr () {
    echo '<hr>' ;
    }
    #180073
    mythusmage
    Participant

    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.

    #180072

    In reply to: move content in bottom

    adarshmadrecha
    Participant

    Is the bug still present? I am using 2.5.12, released on December 9, 2016.
    And still facing the same problem.

    Theme: Avada 5.0.4
    Wordpress: 4.7
    BBpress: 2.5.7

Viewing 25 results - 5,651 through 5,675 (of 32,518 total)
Skip to toolbar