Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for '"wordpress"'

Viewing 25 results - 1,601 through 1,625 (of 26,873 total)
  • Author
    Search Results
  • #222903
    cosmiclove1978
    Participant

    Dear bbPress-ers!
    Hello. I’m Herman.
    I will greatly appreciate your assistance with a couple of problems with my forum I’ve been trying to fix for a couple of days now with no solution.

    I wanted to display the message “Replies not viewable to non-members” to anonymous/not-logged-in users browsing my forum. This message replaces all actual replies with the generic one above. I was able to achieve this with the code below found on this page Dezzain website. The problem though is that this message shows up everywhere a reply is posted. So if there are 20 replies, there will be 20 generic messages.
    So my request for help #1: I would like the 1 reply ONLY to display the generic message, and the other replies hidden. Any chance you can help me with it please?
    #2, I would like to include a link to register/login in that generic reply. I am not too familiar with php. Can anyone rewrite the message below so that it also has a url portion for “Login here” | Register”?

    Thanks so very much in advance.

    bb_auth_reply_view( 
    $reply_id
    ) {
    $reply_id
    = bbp_get_reply_id( 
    $reply_id
    );
     
    // Check if password is required
    if
    ( post_password_required( 
    $reply_id
    ) )
    return
    get_the_password_form();
     
    $content
    = get_post_field( 
    'post_content'
    , 
    $reply_id
    );
     
    // first topic reply shouldn't be hiding
    $rep_position
    = bbp_get_reply_position(
    $reply_id
    );
     
    // if user is not logged in and not the first post topic
    if
    ( !is_user_logged_in() && 
    $rep_position
    > 1 ) {
    return
    "Replies only viewable for logged in users"
    ;
    } 
    else
    {
    // return normal
    return
    $content
    ;
    }
     
    }
    add_filter( 
    'bbp_get_reply_content'
    , 
    'bb_auth_reply_view'
    );
    #222896
    novenaprayer123
    Participant

    Hi
    I created few forums and topics when I press on forums It’s give me the following error:

    There has been a critical error on this website.

    Learn more about troubleshooting WordPress.

    Can you please help

    Thank you

    Nicola

    Robin W
    Moderator

    untested but try this

    add_filter ('bbp_new_reply_redirect_to', 'rew_redirect_to_topic', 10 , 3) ;
    
    function rew_redirect_to_topic ($reply_url, $redirect_to, $reply_id ) {
    	$topic_id = bbp_get_reply_topic_id ($reply_id) ;
    	$redirect_url = bbp_get_topic_permalink( $topic_id, $redirect_to );
    return $redirect_url ;
    }

    Put this in your child theme’s function file –

    ie wp-content/themes/%your-theme-name%/functions.php

    where %your-theme-name% is the name of your theme

    or use

    Code Snippets

    #222830

    In reply to: Help to style bbpress

    Robin W
    Moderator
    #222799
    Robin W
    Moderator

    bbp style pack

    once activated go to

    dashboard>settings>bbp style pack>Forum Roles

    #222798
    Robin W
    Moderator

    bbp style pack

    once activated go to

    dashboard>settings>bbp style pack>Forum Roles

    #222780
    specstanza
    Participant

    A little update on this too. πŸ™‚

    The $count of favoriters is updated correctly on topic’s single page.
    But when the $count is called elsewhere, WordPress seems to take the first _bbp_favorite encounter.

    Looking at posts’ metavalues, it seems that every ‘favorite’ mention becomes an extra _bbp_favorite

    bbp_favorite

    My code doesn’t say anything about taking the highest number – maybe this would be the solution?

    $subscriptions = get_post_meta(get_the_ID(), '_bbp_favorite', true) ;
    $count = count($subscriptions) ;
    $output .= '<li><a href="' . get_permalink() . '">' . get_post_meta(get_the_ID(), 'an_extra_field', true) . '</a><br> <span> Votes :'  . get_post_meta(get_the_ID(), '_bbp_favorite', true) . '</span></li>';
              }
              $output .= '</ul>';
              wp_reset_query();
         }
         return $output;
    }
    #222760
    Robin W
    Moderator

    bbp style pack

    if that doesn’t help, then link please to a live example on your site

    #222744
    Robin W
    Moderator
    #222720

    In reply to: CSS on Index Page

    Robin W
    Moderator

    styling root page us

    #bbpress-forums

    eg

    #bbpress-forums ul.odd
    {
    background-color:blue ;
    }

    or use

    bbp style pack

    #222709
    regnalf
    Participant

    It’s about the [bbp-forum-index], but it seem that the failure is coming from my theme (pro from theme.co)

    If I style the page with their builder the output seems to be broken. It works if the page is created with the standard WordPress editor.

    I will contact them about this.

    #222667
    Robin W
    Moderator

    Atleast one that says it officially supports the latest wordpress version that is out.

    I thought it now did – certainly here

    bbPress

    #222666
    Chuckie
    Participant

    I appreciate that you took the time to look.

    Maybe sometime soon we will get an updated bbPress? Who knows …. Atleast one that says it officially supports the latest wordpress version that is out.

    #222665
    Robin W
    Moderator

    I did look at some thoughts on this, but my knowledge of linking email to WordPress is too weak to work a solution out πŸ™‚

    it would be nice to achieve

    #222603
    #222589

    In reply to: Close own forum topics

    Robin W
    Moderator

    bbp style pack

    once activated go to

    dashboard>settings>bbp style pack>Topic/Reply Display>item 17 and 18

    #222571
    Robin W
    Moderator

    bbp style pack

    dashboard>settings>bbp style pack>buttons

    #222557

    In reply to: bbpress and cache

    techinbermudas
    Participant

    you are correct. it still happens.
    even contacted the theme dev for some help, he removed most plugins and still didn’t work.

    looks like i have to leave wordpress.

    #222530
    Robin W
    Moderator

    either use the settings in

    dashboard>settings>discussion

    which lets you set say ‘before a comment appears’

    or use

    bbPress – Moderation Tools

    which though old still works fine

    #222507
    Robin W
    Moderator

    there should be a topic form at the bottom if you are logged in (presuming you are only allowing logged in users to post)

    you can add a button using

    bbp style pack

    dashboard>settings>bbp style pack>Buttons

    #222506
    mgfit1
    Participant

    Can anyone help with this? There is no way to post in forums at all. There is no post button. It just says “this forum is empty”
    I am using all the recent versions of things. This is a new website. It is a member only website using wordpress, BBpress, Buddypress and some other plugins. Please help! In a time crunch!

    http://www.michiganlibertyleaders.com

    #222494

    In reply to: Forum url changes

    Robin W
    Moderator

    ok you could also use a PHP variable rather than a wordpress function

    so

    $current_url = $_SERVER['REQUEST_URI'];

    should give you the displayed URL in all cases.

    you can then do an ‘if’ test to see if you are in forums using say

    if (strpos($_SERVER['REQUEST_URI'], '/qaforums/') == true ) …then you are in the forums

    #222471

    In reply to: Forum url changes

    Robin W
    Moderator

    sorry, I have given you some code which addresses, which does not seem to satisfy you.

    I am not quite sure why you think the plugin authors would want to make their plugin work for your exact circumstances, but if you want to post a defect then go here

    https://bbpress.trac.wordpress.org/

    #222461
    Robin W
    Moderator

    You can restrict who can see what by using

    Private groups

    #222460
    Robin W
    Moderator

    Hello, I have a membership website, and in it a forum with bbpress.
    I use restrict content pro and to restrict the forum I installed the restric content pro-bbpress plugin.
    The following happens to me, apparently this plugin is abandoned and they do not make updates for a lot of time, or so the security of my website indicates.
    My question is which one can I change it for and have it integrated with restric content pro.

    My version of: wordpress is
    5.8 bbpress 2.6.6
    RCP-bbpress
    1.0.1 My
    site is https://www.tactodebarro.com
    Thank you for your attention Nuria

Viewing 25 results - 1,601 through 1,625 (of 26,873 total)
Skip to toolbar