Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 751 through 775 (of 32,295 total)
  • Author
    Search Results
  • #233113
    MarkOlbert
    Participant

    Okay, I figured it out: turns out the default forum home page uses whatever you’ve defined for Posts Archive, at least if you’re using Elementor, like I am.

    So I updated my links to refer to the forums target, edited the Posts Archive template in Elementor to include the forum index short code, and everything appears to work.

    I also changed the Elementor display conditions for the template and restricted it to just Forum Archive (or Forum Posts, I don’t remember offhand), just in case I want to define a different template for other Posts Archives later on.

    #233111
    MarkOlbert
    Participant

    I’ve set up a custom forums landing page using the bbp-forum-index short code. It works fine.

    However, when a new entry is submitted (and probably if an existing entry is edited), clicking the Submit button sends me to a different page than the one I’ve set up. Specifically, it sends me to /forums…which simply displays “Blasts from the past” (that may be text I entered at some point in the setup process).

    How do I configure things so that my custom page gets used instead? Alternatively, how do I edit the /forums page?

    As you may have guessed by now I’m a new bbPress user :). My site runs the Astra Pro theme (with a customized child theme). I also run Elementor Pro on the site.

    #233105
    cwgah22
    Participant
    <?php
    /**
     * bbpress file to emulate page.html to display forums
     *
     * 
     */
    
    if ( ! defined( 'ABSPATH' ) ) {
    	exit; // Exit if accessed directly.
    }
    
    block_template_part('header-small-dark');
    
    wp_head();
    
    while ( have_posts() ) : the_post();
    	?>
    
    	<div class="bbpress-container bsp-fse-container">
    		
    		<div class="bbpress-content">
    			<?php the_content(); ?>
    		</div>
    	</div>
    
    <?php
    endwhile;
    
    ?>
    

    The only modifications I made were to remove the calling of the footer and adjusted the header to a variant that I created called “header-small-dark”. Oh, and also removed the call for the page title.

    #233069
    Robin W
    Moderator

    Doing anything involves finding out where and why this is happening.

    If we find that, then we can look at possible causes and potential solutions.

    I am yet to be convinced it is a bbpress issue at all. bbpress uses this element when a user inserts a link – that is true, but it is a generic piece of wordpress code. This is a bit like saying because Fred cuts his lawn, any lawn that is cut must have been cut by Fred.

    I am not seeing this form on any pages in my test site.

    The code is in some javascript in the footer, and could be loaded by anything, including a wordpress setting, theme or plugin.

    so can you

    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

    #233052
    Vivian E
    Participant

    @robin-w exactly it’s a WordPress element that’s only suppose to load on the backend! I use bbpress plugin and what BBpress does is that it causes this element to load on the front end! so that people who want to post a new topic or reply to an existing one can edict their texts and insert links. For example right now if you are tying something on bbpress and try to make word a link, you tap on the link in the editor menu and you will see “that wordpress element” pop out.

    I use Bbpress plugin and that elment shows up visibly when users want to link a text as well!
    BBpress causes that backend “wordpress element” to show up on the front end.

    The thing is even when the “wordpress element” is not visibly seen i.e when a user is trying to edict a link when typing a new Topic on the Forum. “The wordpress element” can still be seen hidden in “the source code” of the page and other pages even when not visibility seen. This doesn’t disrupt the user experience but here is the reason why I have a problem with this;

    SEO

    The “wordpress element” has a H1 tag. when it’s loading in the front end. My pages has it’s H1 tittle which I put there. So the H1 tag tittle tag on my page and the H1 tag on that “wordpress element” on the source code makes for redundant (2) H1 tags on my site page.

    Apparently search engines like Bing has a big issue with redundant H1 tags and shows it in my Bing webmaster report as a critical SEO error that need to be fixed. while search engines like Google have no problem with this.

    Is there a way that when BBpress pulls that “wordpress element” (that by default loads only at the backend) to the front end, it changes the tag on that “wordpress element” to a H3 tag??

    #233047
    Vivian E
    Participant

    @robin-w Oh thank you!

    you don’t see any source code like this for a form that looks like this.??

    #233042
    Vivian E
    Participant

    @robin-w it’s a false flag because my security company confirms that everything is clean. I will have them take a second look with the name of you guard.

    Yeah it’s a webpage. the insert/edict form isn’t visible if you just view the webpage. Look at the “source code” of the webpage.

    It’s literally the wp-editor insert/edict loading on the source code. What I really want is ti change the H1 tag to a H3 tag.

    #233025
    Robin W
    Moderator

    the code would need to go in a theme page, as it is your theme that renders the sidebar.

    Sorry beyond free help

    #233021

    In reply to: Searching Problem

    bobjgarrett
    Participant

    At present the site is in development behind a firewall so I cannot share it, though this should change next week as I bring it live but then a username and password will be needed.
    However, what I have identified is that when a two word search is made the resulting URL is
    …/forums/search/worda+wordb/
    This produces the error.
    However if I change the URL to
    /forums/search/holding%20tank/
    It then works so the code is inserting the wrong word separator.

    This seems to have been quoted before https://bbpress.org/forums/topic/forum-search-form-widget-space-between-words-returns-a-404/
    Though that was some years ago.

    I have already tried a standard theme.
    Does this provide any clues?

    #233012
    acer55
    Participant

    I know many fellows talked about how to remove a sidebar from a topic page, but they all are too complicated for me. So, I’m wondering whether I can remove a sidebar from a topic page by editing “funtions.php”.
    For example, the url of a topic page includes string “topic”, so the following code (not completed yet) will work?

    
    function bbPress_sidebar_hide() {
    	$url = $_SERVER['REQUEST_URI'];
    	if(strpos($url,'topic') !== false){
                
            // here is the code for removing or hiding a sidebar which I don't know 
      
    	}
    
    #233007
    Vivian E
    Participant

    @robin-w while I have messaged my site security company and waiting on a response from them! I did a malware scan of my domain using Sucuri;

    The site seems clean! You can use Sucuri to check! Also my Google search console and Bing webmaster does not show any malwares! I will still appreciate if you can tell me the name of the your security so I can my site Security company look into that. It could be a false flag.

    Pending that, could you please help me with a code snippet to change the H1 tag in the the insert/edict link form (that pops up when someone wants to insert a link on BBpress). How can I change the H1 tag there to H3 tag??? Please I’ll appreciate a code snippet that can do this pleaseee!

    #232949
    Robin W
    Moderator

    hmm, the link for the python brags forum goes to

    https://positivepython.co.uk/positive%20python%20forums/forum/python-brags/

    I would expect it to go to

    https://positivepython.co.uk/forum/python-brags/

    but even entering this in the browser also redirects to the first link.

    are the forums in some sub area?

    #232945
    Robin W
    Moderator

    thanks, by comparing settings on my working site with yours, I found the culprit

    In

    Dashboard>events>settings>general you had ‘Include events in main blog loop’ ticked. No idea what this does, but unticking it seems to fix the issue.

    If you need it ticked….

    I reckon (but not certain) it is something to do with how event calendar is reacting with a WordPress function called WP_Query.

    When listing a topic, bbpress sets the 2 custom post types ‘topic’ and ‘reply’ so that it can list the topic first and then fires WP_Query to get the list for the display. I think events calendar is catching that query and filtering for an event required process, the effect of which is to strip the ‘topic’, so only the replies get listed.

    You can fix this by using this code

    add_filter ('bbp_show_lead_topic', 'rew_true') ;
    
    function rew_true () {
    	return true ;
    }

    This does alter a bit how the topic page looks. I could build a topic display page to overcome this, but beyond free help I’m afraid.

    #232938
    chrisverticalplus
    Participant

    The error we are getting is the same:

    PHP Fatal error: Uncaught Error: Call to a member function get_users_for_object() on null in /var/www/vhosts/redacted-site-name/httpdocs/wp-content/plugins/bbpress/includes/users/engagements.php:125

    It seems bbp_user_engagements_interface is returning null if the user marks the forum as hidden. For now, we have told them not to do this, but we are concerned that a user action using the ui can cause such fatal errors. While we were troubleshooting I bypassed the error by adding a ? in the code to avoid the fatal error on null. This brought the site back up while we investigated the cause

    `$retval = bbp_user_engagements_interface( $rel_key, $rel_type )?->get_users_for_object( $object_id, $rel_key, $rel_type );

    acer55
    Participant

    To adjust its font size, I added the following code to “style.css” of the child theme.

    .bsp_button1{ font-size:20px; }

    But, this won’t work. Anything wrong?

    #232923
    veganishdotworld
    Participant

    I can’t find the other forum topic where I asked about how to make the replies VISIBLE.

    The problem was that participants, key masters, admins, authors, everyone was only seeing the date / time stamps of replies to topics, no one could see the content of any of the replies, when viewing the bbPress forum in the web page. Robin responded with this and fixed it.

    ——————————————————-

    In short some code clashing was stopping the display being right in your browser, it was all working behind the scenes. Nothing that you had done.

    Just for your records I have done the following change

    In dashboard>appearance>customise>additional css and added this code

    .reply {

    position: relative !important;

    right: 0px !important;

    top: 0px !important;

    #232919
    fcaporal
    Participant

    My observations so far by testing on the Stage site.

    1 – Deactivating The Calendar fixes the problem with the Forum
    2 – Downgrading The Calendar to 5.16.4 fixes the problem
    3 – Changing Themes to Twenty-Twenty-One has the same problem
    4 – Changing Themes to Roseta (we are using a child of Roseta) or Codex does not help
    5 – Changing Themes to Twenty-Twenty-Two or Twenty-Twenty-Three gives me blank pages on the forum (worse) even with all plugins deactivated.
    6 – Deactivating all plugins except bbPress and The Calendar gives me the same problem

    We are running PHP 8.1 and WP 6.1.1

    All this (except observation 5) points to a conflict between The Calendar and bbPress.

    If you want, I could give you access to the staging site.

    integratedcourse
    Participant

    Tech support at my theme company made a fix. Here is CSS to put into the theme options to fix this for the next person!

    #bbpress-forums > div:nth-child(4) {
        display: none;
    }
    ul#bbp-forum-0.bbp-topics1.bs-item-list.bs-forums-items.list-view {
        display: none
    }      

    Thank you so much for your help, Robin!

    #232898
    Robin W
    Moderator
    integratedcourse
    Participant

    Shortcode with [bbp-forum-index]

    Thanks!

    integratedcourse
    Participant

    Thanks. There is no “All Discussions” forum.

    This may or may not help, but that “All Discussions” box by itself is what you get with the short-code [bbp-topic-index]. In other words, if you used that shortcode by itself it just has that “All Discussions” part, but here it is as the 2nd part of [bbp-forum-index] (after the grid display of the forums). I am hoping to inject some CSS to make it go away.

    integratedcourse
    Participant

    Thank you! This shows the output of shortcode [bbp-forum-index]. I just want the grid of the forums, not the discussions box below.

    bbp-forum-index output

    If am hoping there is CSS where I can specify showing these things is ‘false’

    1) Remove the ‘Discussions’ Box

    2) Remove the two statements ‘Viewing 4 of 4 forums’ and ‘Viewing 1 of 1 discussions’

    I hope that makes sense!

    #232850
    veganishdotworld
    Participant

    I just found another question someone was asking, and apparently one sets up the users for BBPress forum in the USERS section of wordpress. OK, that would be REALLY GREAT if that were mentioned somewhere in the welcome information for BBpress. Also, a codex is mentioned. How would one find and access the codex?

    Anyway, I sent into the users section in wordpress. I found that there are now BBpress style roles listed like keymaster, participant, etc. But here’s the rub … it does not allow the person to be BOTH an author and a participant, for example. What the heck ?????!!???? How is that going to work? All I want is for all of the authors and admins to have access to a private forum, ideally using their wordpress login as the handshake because they are already logged in and verified that way.

    It seems like the capability is almost there, but … what am I missing?

    Thank you!
    Raquelita Dee

    #232849
    Robin W
    Moderator

    ok, bbpress just uses wordpress users, so anything that registers wordpress users will create users for the forums.

    You probably don’t need the private groups plugin, so deactivate that for the moment.

    So set the forum to private.

    then decide how you would like your users to register.

    a) If you just want anyone to be able to register, then

    dashboard>settings>general and tick ‘anyone can register’

    You can then create a registration page (Dashboard>pages>add new) and put this shortcode in it

    [bbp-register]

    then add that page to your menu.

    b) if you want to ‘vet’ new users, then use a contact form plugin such as ‘contact form 7’ to create a registration form asking whatever questions you want. Set that form to email to whoever, and they then create the user (dashboard>users<add new), and either use wordpress to email the user the password (there is a tick box on the user creation, or copy the password, and send an email to the user yourself.

    c) or use one of the many wordpress registration plugins (https://wordpress.org/plugins/search/register/)

    The choice is yours 🙂

    #232848
    veganishdotworld
    Participant

    So frustrated!
    I installed BBPress yesterday. I’m trying to set up a private forum for about a dozen authors on our site, so we can ask questions and learn from each other regarding using wordpress or the type of content we want to create.

    First Question. I used the bbpress shortcode to add the forum to a page, just as a test. http://www.veganish.world/forums That went well (there is a public forum there, just as a test), but the thing is, how do I add the registered users for the private forum? The 12 people who will have access? I’ve looked in Settings, and I’ve looked under Forums, in the left-hand side bar in WordPress, and I can’t find anything.

    I installed Robin’s Private Groups plugin today, thinking that would help … still not finding anything there either, regarding how to MANUALLY add registered users who are pre-approved to view the content in the forums. ARGH.

    Such a simple and crucial thing, I don’t know why I can’t find it.

    Second Question. Once I figure out how to register a new user, I have a question … can I make it so that if this persons is already logged in at wordpress.com (as they would need to be, to upload new blog posts), they instantly have access to the FAQ author forums, without having to log into anything else?

    My web site is http://www.veganish.world, but I don’t see how that would be helpful as I just have two (2) general questions, noted above.

    If you go to http://www.veganish.world/forums, you might see a public forum that I posted as a test yesterday, before I realized I need private forums, etc.

    Thank you!
    Raquelita Dee

Viewing 25 results - 751 through 775 (of 32,295 total)
Skip to toolbar