Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'bbpress'

Viewing 25 results - 3,151 through 3,175 (of 64,452 total)
  • Author
    Search Results
  • Robin W
    Moderator

    Sorry, I’m being brain dead this afternoon.

    Spectate is a capability shared by many roles, so the code above is rubbish !

    Try this

    function forum_user_is_spectator(){
    if ( is_bbpress() && is_user_logged_in() ) {
        $user_ID = get_current_user_id() ;
        $role = bbp_get_user_role( $user_id );
        if ($role == bbp_get_spectator_role()){
           wp_enqueue_script( 'spectator-js', get_template_directory_uri() . '/js/spectator.js', array(), false, true);
           }
        }
    }
    Robin W
    Moderator

    you add action is right, and I’d have this as the function (not tested!)

    function forum_user_is_spectator(){
    if ( is_bbpress() && is_user_logged_in() ) {
       $User_ID = get_current_user_id() ;
    	$Spectator = (!empty(current_user_can( 'spectate' )) ? 1  : 0) ;
        if ($Spectator){
           wp_enqueue_script( 'spectator-js', get_template_directory_uri() . '/js/spectator.js', array(), false, true);
           }
        }
    }
    haddlyapis
    Participant

    Hi there,
    Due to a high number of spambot registrations, any user who registers for the forum initially gets “Spectator” rights. Once I check (usually within 12-24 hours) that they are not spam, I change them to “Participant”.
    Some people get annoyed that they cannot post immediately. And I would like to create a popup banner that appears when users login for the first time but cannot post. I am capable of the JS and the CSS, but not quite the PHP.

    Basically, I want to enqueue a JS file if the user is a “spectator” and is “logged in”.

    Could you please advise how to complete my function (hopefully just the commented parts), which will go in the functions.php file, and what add_action arguments should be applied if I am wrong?

    function forum_user_is_spectator(){
    if ( is_bbpress() && is_user_logged_in() ) {
        //$User_ID = get user ID
        //$Spectator = find out if User Has Spectator rights
        if ($Spectator){
           wp_enqueue_script( 'spectator-js', get_template_directory_uri() . '/js/spectator.js', array(), false, true);
           }
        }
    }

    add_action('wp_enqueue_scripts', 'forum_user_is_spectator');

    thx in advance

    #220010
    Robin W
    Moderator

    Itโ€™s kinda weird that when I edit this php file you mention โ€œcontent-single-topic.phpโ€, it didnโ€™t show those changes on the forum pages.

    ok, question, does your theme have bbpress files associated with it? or is a plugin affecting this

    it could be a theme or plugin issue

    Themes

    As a test switch to a default theme such as twentytwenty, and see if this fixes.

    Plugins

    If that doesn’t work, also deactivate all plugins apart from bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.

    If you cannot do this to your site (say because it is live) then use the ‘troubleshooting’ features of this plugin to let you test without affecting other users

    Health Check & Troubleshooting

    Then come back

    #220000

    Topic: Tips: forum theme

    in forum Themes
    flamuren
    Participant

    Hi,

    I am not good at coding or custom css. My level of knowledge is: I just know how to install and activate stuff on wordpress more or less.

    I am looking to get a clean, crisp and modern design on my forum and member site (located on a subdomain of my main homepage). However I cant really find a good theme. I am looking for a cheap solution – if possible free. I use BBpress and Buddypress and thats mostly the features I need. I will use a custom register plugin also and the main page should present news and some quick info for the members to be updates whats going on. Do you have any tips on themes that works well for this and looks good?

    I googled and found these mentioned in a list and they where free (however not having a presentation on the main page as I want):
    https://zakratheme.com/
    https://wpastra.com/

    Please help if you have any ideas ๐Ÿ˜Š๐Ÿ™

    #219998
    cristofayre
    Participant

    Having done a little digging in the CSS that “bbp style pack” creates, I THINK I have isolated the buttons to the class of

    #bbpress-forums.button{
    background-color:#9e9e9e
    color: 000000
    }

    … which is the correct grey / black that the editor buttons SHOULD be. But it seems that something after that is picking up the theme colours, and setting it to those. (Unless there is some code earlier that is !IMPORTANT! that is setting it.

    Also, “bbPress” seems to have a mind of it’s own, disregarding settings made within WordPress. For example, the editor has been set up with two rows of buttons … but “bbPress” will only display the default 12 or 13 buttons in one row, (and not even those match what’s been set up elsewhere in WordPress) The same plugin that sets up two rows of buttons has an option with “Don’t use visual editor in bbPress” Guess what … “bbPress” loaded the visual editor anyway.

    Another plugin states “Switch this on to use the membership profile rather than the bbPress profile” Turn that on, and … rather than link to the profile, the link shows “#” so that it simply reloads the same page. And the big profile button (beside “Create Topic”) STILL jumps to the bbPress profile !!

    OK, appreciate that some of those things are bbPress not accepting the settings of the other plugins … but it gets somewhat annoying when you bat your head against a brick wall all day!

    #219994
    Robin W
    Moderator

    I’m running 2.6.6 on 5.7 on my test sites, all I can suggest is

    it could be a theme or plugin issue

    Themes

    As a test switch to a default theme such as twentytwenty, and see if this fixes.

    Plugins

    If that doesn’t work, also deactivate all plugins apart from bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.

    If you cannot do this to your site (say because it is live) then use the ‘troubleshooting’ features of this plugin to let you test without affecting other users

    Health Check & Troubleshooting

    Then come back

    #219990
    BackuPs
    Participant

    Hi

    Something did go astray in the link supplied. The widgets do now show.

    BBpress Forum

    not-aligned

    Thank you

    #219988
    eeyyjohn
    Participant

    Hi Robin,

    Thanks for your response.

    We are using v2.5.14 before and we’ve updated it to v2.6.6.

    The template file is “loop-replies.php” which is inside the directory “/wp-content/plugins/bbpress/templates/default/bbpress”.

    Here’s the screenshot for comparison reference.

    Comparison Screenshot

    We have the “v2.5.14” on left of the screenshot and we have the “v2.6.6” on the right. As you can see this functions “bbp_topic_subscription_link()” and “bbp_user_favorites_link()” were removed on the updated template.

    Thanks!

    #219984
    Ben
    Participant

    Is bbPress 2.6.6 compatible with WordPress 5.7 ?

    #219983

    In reply to: Topic stats

    Robin W
    Moderator

    it could be a theme or plugin issue

    Themes

    As a test switch to a default theme such as twentytwenty, and see if this fixes.

    Plugins

    If that doesn’t work, also deactivate all plugins apart from bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.

    If you cannot do this to your site (say because it is live) then use the ‘troubleshooting’ features of this plugin to let you test without affecting other users

    Health Check & Troubleshooting

    Then come back

    #219982
    Robin W
    Moderator

    no, most bbpress sites will be 2.6.6 and this was released in November 2020, so if this was an issue it should be well known by now.

    #219972
    Robin W
    Moderator

    @tintinmilou – thanks, and this is a known issue

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

    #219968

    Topic: Topic stats

    in forum Troubleshooting
    magistr01
    Participant

    I need to find out where in the bbPress plugin editor I can find the number of answers in the topic discussion forum. I need to correct the incorrect total number of responses on the page.

    Thanks for the information.

    Martin

    cristofayre
    Participant

    On my post / pages, the Tiny MCE Visual Editor displays as it should, ie a row (or two) of grey and black icons, allowing user to select align right / align left / justify etc. (I mention that in case anyone thinks I’m referring to the ‘basic’ buttons as shown on this forum posting options) As such, I don’t think it’s the theme / plugins causing the problem.

    However, once “bbPress” fires up, the buttons go crazy, and ‘inherit’ the CSS styles from the theme. (The vendor who created the “WP-Edit” plugin says in an article that some themes are DESIGNED so that the buttons change to the theme colours; I want to keep the default colours)

    In another post, RobinW suggested the “bbpress-pack” which has done a great job getting the forum set up the way I want … but it doesn’t redress the button problem.

    I am using:

    Theme: dashscroll
    Plugins: ARMember (membership plugin)
    bbPress
    WP-Edit (to change the buttons on the editor)

    I THINK there is code I can place somewhere that effectively filters this settting so that it doesn’t take effect … but what I need to filter for, or the code to use I have no idea.

    NB: The “Visual” and “Text” buttons also seem to be inheriting the font size / padding of theme as it is also displacing the text on said buttons.

    https://atomz.pro/tec-tocc/Forums/forum/atomz-apps/product-directory/

    #219964
    BackuPs
    Participant

    Because of different html code (using tabs in html) the space is not the same in one widget! And the items do not vertically align correctly. See image and link

    bbpress-forum-lia

    bbpress-html

    BBpress Forum

    #219959
    eeyyjohn
    Participant

    Hi,

    We are having the following issues after we have updated the bbPress plugin version to 2.6.6.

    1.) Topic favorites and subscription button are missing.

    We’ve actually checked the template file where those buttons were being displayed and the functions that shows those buttons were not here anymore. We’re wondering if there’s any reason why it was removed on the latest plugin version update.

    2.) When user subscribe to a forum, the forum is not listed on the “Subscribe Forums” page under members page. e.g. /members/111/forums/subscriptions/

    WordPress version: 5.6.1
    BuddyPress version: 7.2.1(latest)

    #219954
    Robin W
    Moderator

    I am just a bbpress user who helps out here – I have no power to change code. I can log a defect, but I’ll only do that if I can also see an issue

    #219951
    Robin W
    Moderator

    there are many additional plugins which add functionality to bbpress, just as there are for almost all the popular wordpress plugins (eg woocommerce, contact form 7 etc. all have a host of additional plugins)

    Just add style pack and enjoy ๐Ÿ™‚

    #219946
    cristofayre
    Participant

    I presume by settings, you mean the plugin settings option. The “bb style pack” you mention isn’t listed. Fact, all I have is one option that says “Forum Theme Packages” which lists the one default template. (I also checked the settings where writing / reading / discussion is shown, but again, nothing found)

    I have (sort of) solved it via a plugin called “Turnkey bbPress by WeaverTheme”; at least now all the children are shown in one column with a newline, although they still show with just (0,0) at the end, (which changes to (1,0) when making a post

    Will research if there are anymore bbpress templates that can be installed anywhere.

    Robin W
    Moderator

    if you have one forum and one topic, you probably don’t need a statistics widget ๐Ÿ™‚

    However I’ve logged a defect

    https://bbpress.trac.wordpress.org/ticket/3428#ticket

    #219941
    Robin W
    Moderator

    Will it create any problems changing it or why is this function like this (wouldn’t everybody like it unticked I mean?)?

    It should not create problems if you untick.

    the forums part just gives a consistent custom post structure so you have

    /forums/forum/forum-name
    /forums/topic/topic-name
    /forums/reply/replyid

    If you are running multiple forum platforms (eg bbpress alongside say wpforo or asgaros etc. – say you are transitioning), then this structure makes sense.

    My personal view is that only site admins ever worry about urls. When was the last time you looked at a url for a site you were visiting.

    I just visited Amazon, and this is the url I get

    https://www.amazon.co.uk/?&tag=hydraamazonav-21&ref=pd_sl_781ozcfkw8_e&adgrpid=52740778523&hvpone=&hvptwo=&hvadid=441815611363&hvpos=&hvnetw=g&hvrand=16287605677804181215&hvqmt=e&hvdev=c&hvdvcmdl=&hvlocint=&hvlocphy=1006704&hvtargid=kwd-10573980&hydadcr=13724_2033556&gclid=EAIaIQobChMIsvmZmMn27wIVc_bVCh27fwCnEAAYASAAEgLOT_D_BwE

    hardly pretty, but do I care one jot – ummmm… no I am interested in content, not the url ๐Ÿ™‚

    #219935
    cristofayre
    Participant

    WP:5.7
    bbpress: Who knows: Most recent download
    theme: dashscroll
    membership: ARMembership

    Not sure whether it’s BBPress, my theme or another plugin … but the ‘child’ forums are all being bunched under the category heading. (Maybe I set it up wrong) I set a forum as a category, and then created the forums as children of that parent:

    Atomz/
    – Products forum
    – Banner forum

    and so on

    The top line shows the correct format (Forum, Topic, Posts, Last Posts), but the children display as
    Products forum (0,0), Banner forum (0,0) …

    https://atomz.pro/tec-tocc/the-atomz-forums/ ** This has temporarily been enabled; it’s normally hidden by membership plugin. If you click through to the “The Entrepreneur Club (TEC) you will see “Ecommerce” category … and all the ‘bunched’ children under that.

    I’m also wondering if the category will show the totals of posts etc. Confused

    BackuPs
    Participant

    Hi

    i you create a new install with just one forum and one topic and no replies and start adding the dafult widgets to the widget area then in the front of the website you get these notifications.

    Please add a check for these counts if they are empty so that the notifications are suppressed.

    Thank you

    Notice: Undefined index: reply_count in /var/docs/server.tst/public/wp-content/plugins/bbpress/templates/default/bbpress/content-statistics.php on line 37

    Notice: Undefined index: topic_tag_count in /var/docs/server.tst/public/wp-content/plugins/bbpress/templates/default/bbpress/content-statistics.php on line <i>42

    #219920
    flamuren
    Participant

    Hi,

    is there any way to make the forum url shorter by removing the one extra “forum” that is added to the url?

    I think I have the same question as this one: https://bbpress.org/forums/topic/permalinks-slugs-modification-removing-forum/
    And here seems to be a solution: https://bbpress.org/forums/topic/name-based-permalinks-without-page-and-forums/

    I wonder if there is any easier way for us beginners? Anybody knows? ๐Ÿค”

Viewing 25 results - 3,151 through 3,175 (of 64,452 total)
Skip to toolbar