Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 5,426 through 5,450 (of 32,505 total)
  • Author
    Search Results
  • #182296
    hughb1
    Participant

    Ignore this, I found my answer here. Thanks!

    Layout and functionality – Examples you can use

    #182253
    BenM
    Participant

    Hi,

    I use Private status to protect some forums and I would like to have a login page instead of 404 on private posts because it’s very inconvenient for people who have subscribed to a topic and click on the link to read new replies, to see a 404 if they are not logged in. (bbPress Private groups doesn’t work for this too.)

    I tried a lot of things, but I was never able to catch status of topic’s forum with a single function.

    bbp_is_forum_private doesn’t work here (there’s no ID).
    get_queried_object() is empty.

    I can have topic slug ($wp_query->query['topic']) but strangely, get_page_by_path doesn’t work.

    Finaly, I have to make a SQL request to find ID and post_parent (so, forum) from slug, then use bbp_is_forum_private (to post_parent because it doesn’t work witk ID and ancestor)! It’s a little bit… heavy.

    Do you have a best method?

    #182206
    mattdevelop
    Participant

    Same error here, this happens because of this code

    $post_stati = $posts_query->get( 'post_status' );
    
    		// Default to public status
    		if ( empty( $post_stati ) ) {
    			$post_stati[] = bbp_get_public_status_id();
    

    in \includes\forums\functions.php on line 1800

    #182199
    mapofemergence
    Participant

    Hi there,
    while waiting for the github by @casiepa to be updated, I managed to take some time to (partially) clean what I had written so far.
    I published it on a repo, just in case anybody were interested in taking a look and opening a discussion about desirable ways to approach the problem and to structure the code.

    Here it is:
    https://github.com/mapofemergence/BB-REST

    cheers,
    s t e

    #182189
    UgoDimma
    Participant

    Hey guys,

    I have set up my bbpress forum, create a page for it with the name forum, in the description box, I added some description, and featured image for the page. I also added some forums to get started with, but when I share my forum page on social networks, which is https://mydomain.org/forums/ it does not display any featured image, not even the one I added at the page. And again, the description it displayed is that of a forum I created.

    Please, how do I force the page to display the featured image and the description I added to it when shared on social networks.

    #182188
    Kalusha
    Participant

    Hello,

    I need one extra Field where I can put “New Message” with this function:
    <a href="<?php echo fep_query_url('newmessage', array('to' => USER ) ); ?>">Send Message</a>
    CAn anybody help me how and where I must out it in, please.

    Thank you

    #182166
    mikeboltonca
    Participant

    It’s nice to see some activity in this thread.

    Having to choose between dynamic reply forms (our reply.js) and a modern input method (TinyMCE) in 2017 just doesn’t seem right.

    I’ve tried to research potential solutions, but the code is a bit over my head.

    It’s known that the TinyMCE editor doesn’t like being moved around the DOM. Has anyone tried removing it, then re-adding it?
    A couple people in this thread said that worked for them.

    #182116
    Kalusha
    Participant

    Hello from Germany 🙂

    I have an WordPress Role called “Autor”. This Role are on my Site “Premium User” and “Abonnents” are Standard User. Capabilyties for the bbpress are the same. Now I want to under the names in the Forum who is a Premium User and who is a standard User.

    The bbPress Role for both is “participants” so the differents are only in the WordPress Role.

    With this Code I can change the name, but only for participants…
    ##Name ändern Participant in User Standard User
    function my_custom_roles( $role, $user_id ) {
    if( $role == ‘Participants’ )
    return ‘Standard User’;

    return $role;

    Hope anybody understand 🙂 me and can help me

    regards

    atonyk
    Participant

    I have the same problem. Double quotes are converted into &quot; and saved in the DB in this way.

    If, for example, I create a post using the WordPress admin panel,
    its columns ‘post_content’ and ‘post_title’ in the table ‘wp_posts’ are saved like this:
    "Post title" and "Post content"

    If I create a topic on a BBPress topic page, its data saved in the DB like this:
    &quot;Topic title&quot; and "Topic content"

    So the issue mentioned by @jakubmarian is not resolved yet 🙁

    How can we please resolve it?

    #182111
    phil49
    Participant

    Hi Robin !

    LOL !

    I talk too much, but as I want to give as many detail as possible…

    Your code is working for the pages of the site.

    Your code is NOT working for ALL the forum pages of the site

    Your code is applied for all the pages, that’s it takes almost 100% of the page, but site pages are not concerned by my problem.

    Your code doesn’t make any difference when applied to the forum pages.

    I was just adding in my previous post that I have the same problem for my second issue with the background gradient that is not applied either, unless the code is not correct, but I don’t think so !

    Thinking about all this yesterday, I’ve got the feeling that in fact, what is desperately keeping void corresponds to the place that should be occupied by the sidebar, even though I told you that I have no sidebar on all the site pages as well as the forum pages.
    But there’s a section dedicated to its management in this new theme and version of WordPress 4.7.2 !
    I removed all the widgets initially present in this sidebar but maybe the code keeps holding the place !?

    It’s as if this part of the code keeps applying in the end, prevailing on the child theme css code !

    Hope this is clear now ! 😉

    Regards,

    Philippe

    #182098
    maximemoisan
    Participant

    Alright, when I block links with: remove_filter( ‘bbp_get_reply_content’, ‘bbp_make_clickable’, 4 );remove_filter( ‘bbp_get_topic_content’, ‘bbp_make_clickable’, 4 );

    it seems to work BUT admins can’t post links either even with the code you have sent me.

    Secondly, the links doesn’t work wich is good BUT site that doesn’t provide a “www” can still be clickable so when someone type:” https://bbpress.org ” this link is clickable and both admins and user can do that, and if you type: “www.google.ca” then both admins and user can do that and it WONT be clickable.

    I would like the admins to be able to send link, AND be able to block non www links too.

    Thanks you.

    #182093
    phil49
    Participant

    Yes,

    If your remember, I have a page dedicated to Members and protected by a password (with or without it doesn’t make any difference either, of course), and the 3 following pages on the which I simply pasted the relevant short codes:
    – “Forum” which is the default bbpress root page, I simply added a shortcode for the connection widget thanks to a plugin otherwise I couldn’t have done it on this specific page (but my VM doesn’t have it and again it makes no difference)
    – “Registration”
    – “Reset password”

    Regards,

    Philippe

    #182090
    Robin W
    Moderator

    ok, try

    $user_id = wp_get_current_user()->ID;
    if ( !bbp_is_user_keymaster($user_id )) {
    	remove_filter( 'bbp_get_reply_content', 'bbp_make_clickable', 4 );
    	remove_filter( 'bbp_get_topic_content', 'bbp_make_clickable', 4 );
    }
    #182089
    Robin W
    Moderator

    Your code for the page width is still working on ALL pages as expected, therefore the CSS is bieng applied, BUT the code doesn’t apply to the “page.php” template used by the forums !

    Do you have a page set up for forums? ier one that is using [bbp-forum-index] ?

    #182088
    maximemoisan
    Participant

    no one can post links, wich is good, but the code : !bbp_is_user_keymaster, did not let keymaster be able to do so.

    oh and by the way, bbpress links still works on my forum wich is normal I suppose?

    #182085
    phil49
    Participant

    Hello Robin,

    Yep, always, and this is a copy of the original one where I just changed as advised in one of the forums I mentioned previously, to change the DIV that way :

    <div class=”wrap page-full-width“>
    <div id=”primary” class=”content-area-wide“>
    <main id=”main” class=”site-main” role=”main”>

    Actually, both child theme folders (the real site and my VM) contains those files :
    – bbpress.php
    – functions.php
    – page-full-width.php
    – screenshot.jpg
    – style.css

    This latter currently contains only your code as well as the code for background gradient as the page-full-width does the job for the page width, I mean, only for the site pages except forum ones !

    The rest is similar.

    Regards,

    Philippe

    #182082
    Robin W
    Moderator

    untested, but this should make the filter only removed if they are not a keymaster

    if ( !bbp_is_user_keymaster()) {
    	remove_filter( 'bbp_get_reply_content', 'bbp_make_clickable', 4 );
    	remove_filter( 'bbp_get_topic_content', 'bbp_make_clickable', 4 );
    }
    #182042
    phil49
    Participant

    Hello Robin,

    Don’t know if you could find something to help me, but I keep you informed of the progress on my side.

    I’ve installed a virtual machine with the same WordPress version, twenty seventeen theme and almost all the plugins.

    I’m now more comfortable “playing” with different themes and child themes, this is the positive side of the situation, I even corrected a mistake I initially made by creating my child theme inside the Twenty seventeen theme instead of at the same level as it !

    Now it turns up in the theme section, I can activate it, but basically, it doesn’t make any difference !

    Your code for the page width is still working on ALL pages as expected, therefore the CSS is bieng applied, BUT the code doesn’t apply to the “page.php” template used by the forums ! 🙁

    I even tried simultaneously to find out a solution for a request from our site members, that’s a background gradient.
    It doesn’t apply at all !

    In fact, taking a closer look at the wysiwig panel in the Appearance section of the theme, I noticed that the gradient is applied but ONLY on the homepage and behind the image and NOT on the body of all the other pages of the site !

    Trying to paste the code in the custom code or straight in the style.css file in the theme child produces the same result…

    This is so incredible that nobody in the world can find a solution or has ever tried to customize these elements !

    Hope is what makes us live…

    Regards

    Philippe

    #182033
    jayney54
    Participant

    The Post Author is not showing anywhere on posts on our Topics page. Is there some custom CSS I can add to have the Author information come up underneath the post title?

    We worked with a developer to style the forums, but I don’t want to go back to the developer at this point if possible (I’m not sure he knows what he’s doing), but I also don’t know enough to go into the code.

    #182024
    parmaker
    Participant

    What I ve done:

    1. installed bbpress plugin
    2. added a filter bbp_show_lead_topic to do lead topic
    3. added a filter bbp_has_replies_query to do DESC order
    4. created a forum
    5. created a topic under the forum
    6. created a reply to the lead topic
    7. repeatd 6. a couple of times by clicking Reply of topic-admin-links
    8. created a reply to one of the replies created from 7., i.e. threaded reply.
    9. got out of the forum, and revisited the forum, and clicked the topic to do a reply
    a. clicked a link which is not the one of topic-admin-links, but reply-admin-links
    b. but changed mind to click the one of topic-admin-links to the lead topic (remember !! having clicked the reply-admin-links, not clicking send button)
    c. put some words into editor and Send
    d. the reply is under the reply which was clicked at a., not the lead topic

    The Reply topic-admin-links has [reply] => <a href="#new-post" class="bbp-topic-reply-link">Reply</a>

    and it is ok before any Reply of reply-admin-links is clicked.

    href=”#new-post” is pointing correctly when no bbp_reply_to is, i.e. no reply of reply-admin-links was clicked.

    The Reply of reply-admin-links has `[reply] => <a href=”/forums/topic/test-topic1/?bbp_reply_to=18&_wpnonce=1d17517a0b#new-post” class=”bbp-reply-to-link”
    onclick=”return addReply.moveForm(‘post-18′,’18’,’new-reply-8′,’8′);”>Reply</a>`

    where 8 is the lead topic id, 18 is reply id

    As far as reply-admin-links was clicked, href=”#new-post” of the Reply of topic-admin-links is meaning /forums/topic/test-topic1/?bbp_reply_to=18&_wpnonce=1d17517a0b#new-post

    I don’t know whether it is the way supposed to be.

    Or did I miss anything ?

    #181984
    sally
    Participant

    Hello,

    im not a developer.., can someone maybe help me to get the code work?

    Thx
    Regards
    Sally

    #181972
    Brandon Allen
    Participant

    @padrenola I’ve added a reply on your ticket, but I wanted to post here as well.

    The issue you are seeing is related to your theme, so you will want to get in touch with their support to get an official fix. You can send them to the ticket for background. https://bbpress.trac.wordpress.org/ticket/3059

    In the meantime, adding the below code to the bottom of your theme’s/child theme’s functions.php file should give you some relief.

    remove_filter( 'bbp_get_forum_topic_count_int', 'x_bbpress_filter_forum_topic_count' );
    remove_filter( 'bbp_get_forum_reply_count_int', 'x_bbpress_filter_forum_reply_count' );
    remove_filter( 'bbp_get_forum_post_count_int',  'x_bbpress_filter_forum_post_count' );
    #181911
    struth
    Participant

    Hey oyegigi,

    Thanks for this, it works like a charm. I used the plugin “Shortcodes in Menus” as a quick solution to output to a menu.

    Would be great if you could amend the code to show, only if user is logged in?

    Thanks again!

    #181873

    In reply to: Ayuda del Plugins

    u_Oi
    Participant

    Hi,

    1.- What you mean with overlap? Do you want to put together both fields? Debates are topics, and Publications are topics and replies.

    2.- You can translate bbPress using pod files:

    bbPress in Your Language

    Also, you can visit this page about bbPress in Spanish

    Suerte!

    #181871
    u_Oi
    Participant

    Thanks for the answer @benklocek

    I am still looking for the right code, I will post here once I got it 😉

    I was thinking what could be the best way…

    1.-Create a custom role and then use the name of role to translate it. (I am doing this.)
    2.-Give to spectator role the participant´s capabilities and then translate it.

    I need two participant roles, with differents name. Just to make more fun the forum style. Just like the ticket about “Add CSS class for user roles in topics and replies”.

    Regards,

Viewing 25 results - 5,426 through 5,450 (of 32,505 total)
Skip to toolbar