Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 7,626 through 7,650 (of 32,505 total)
  • Author
    Search Results
  • #167685
    Robkk
    Moderator

    You can try this instead. This hides the “this forum contains … topics… and” description that is blue on top of forums.

    add_filter( 'bbp_get_single_forum_description', '__return_false' );
    add_filter( 'bbp_get_single_topic_description', '__return_false' );

    You can try this CSS for the reply/topic form text areas.

    #bbpress-forums fieldset.bbp-form textarea {
        border: 1px solid #ccc;
    }

    Anything else you want on this site I am sure there has already been a topic about so searching the forums might be best.

    #167679
    Robkk
    Moderator

    @casiepa

    I am starting to think that filter may not be the best way to translate content. It was widely used though and was recommend a few times in these forums.

    The dangers of the gettext filter

    While trying to find the bbPress string swap plugin that was a bbPress plugin that use to do this exact thing fine. I came upon this that lead me to find the alternative to the gettext filter and using global $l10n;

    https://github.com/justintadlock/hybrid-core/issues/49

    Here is an example with BuddyPress and I am sure there is a way to make this kind of thing work with bbPress.

    https://bp-tricks.com/coding/string-replacement-hack-core/

    Robkk
    Moderator

    Try to ask Robin for the code snippet he uses in the plugin. He had a separate plugin that did it, but I am not entirely sure it still works.

    Robkk
    Moderator

    This might be custom development for now. You may need to hire a developer for this type of functionality.

    Here is a guide to help people create custom user roles with custom capabilities.

    Custom Capabilities

    The whole each user gets a private forum thing could be possible in the plugin bbPress Private Groups but I am not entirely sure. Having specific roles have their own forum is possible with the plugin though, a group of users not sure about just 1 specific user to each forum.

    Upgrading the role after they have done something is custom development also.

    #167674

    In reply to: Reply text area

    Robkk
    Moderator

    Does this CSS help any?? If it doesn’t add !important to it.

    #bbpress-forums div.bbp-the-content-wrapper textarea.bbp-the-content {
        max-width: 100%;
        height: auto;
    }
    #167673
    Pascal Casier
    Moderator

    @Robkk

    For this ticket, I have the logic on paper what is needed and part of the code already in one of my projects. But need to finish some stuff for the association first.

    For the participation part, I’m helping in the forum and will stick to that for now. But any bbPress developer can have a look at my code of course to get inspiration 🙂

    But we can have a chat about it, no problem.
    Pascal.

    #167671
    Robkk
    Moderator

    @casiepa

    Any contributions to that ticket would be much appreciated.

    Any other participation in the bbPress project would be much appreciated also.

    Participate & Contribute

    #167670
    Robkk
    Moderator

    @tashmash

    You can also try something like this too.

    #bbpress-forums fieldset.bbp-form textarea, 
    #bbpress-forums fieldset.bbp-form select, 
    #bbpress-forums fieldset.bbp-form input {
        border: 1px solid #ccc;
    }
    #167669
    Robkk
    Moderator

    What does the plugin do?
    You can send me the plugin in a zip to my email so I can see what the actual code does, and see if there is a possible fix for it too.

    You can send the plugin to the email listed here.

    Contact

    #167652
    trusso
    Participant

    Site: http://www.levelupsolutionscenter.com
    Theme: ZippyCourses by Social Trigger
    Wordpress: Latest release
    bbforums: 2.5.8 (Latest)

    I have installed the plugin for bbforums. No issues setting it up. I have created a post that I want to remain at the top of the forum. It is titled, Getting Started. I made it ‘sticky’ believing that this would allow it to be there at the top regardless of what others put in the forum.

    When I go in to test as a user who has purchased a course, the user can get to the forum but cannot see the sticky post content. Just the listing in the forum. I set access to participant and open, with automatic membership.

    I read your documentation and created a forum registration page and put in your shortcode.

    Do users need to register with the forum first to see the content of a post?
    If they do and I have the registration page, I can put it in the menu. Is that what I need to do to get registration to people? Is there anything special I need to know to make registration go through and access be granted? Special in setting up the access page?

    Question really is: how does a user of the educational material get to see the forum questions/posts?

    Thank you!

    #167645
    mica123
    Participant

    Just to let you know that I was testing it all day. I removed Robkk’s redirect code to see if there would be the same problem with Peter’s Redirect plugin and it is the same. So I am at my wits’ end.

    guillaumemolter
    Participant

    An even better solution is to use WordPress built-in return false shortcut, this way you don’t have to create a empty function each time.

    add_filter( 'bbp_get_single_forum_description', '__return_false' );
    add_filter( 'bbp_get_single_topic_description', '__return_false' );
    #167640
    DevynCJohnson
    Participant

    @Robkk , not necessarily. The “fix” is not 100% perfect because it removes “nofollow”s that I intend to keep for external domains/links. Also, if I were to write an article about nofollow, then any code examples I give will lose

    rel="nofollow"

    The fix I provided is a poor fix. True, it solves my problem at the cost of a much lesser evil (in my opinion). I still hope that someone can provide a real solution or explain where the nofollow is coming from. Until then, at least I have a fix which is better than no fix.

    Considering that I commented out those lines in the bbPress plugin, one would think that that would fix everything.

    Robkk
    Moderator

    Are you talking about running the purge previous import tool having an issue or really in the reset forums area.

    It is best to run the purge previous import after importing a forum and failing.

    Use this if an import failed and you want to remove that incomplete data.

    IF the reset forums tool does not do it, I guess you can try some SQL code in phpMyAdmin.

    You can try to see if @netwebs commment can help you

    https://bbpress.org/forums/topic/post-import-cleanup-help-needed/#post-133482

    Also if you regularly backup your site, you can just revert to a previous backup before you did the import. You should make regular backups if you are not doing so already too.

    Pascal Casier
    Moderator

    If it’s really not working anymore, you could delete directly forums, topics and replies from the DB and then run the reset again.

    USE WITH CAUTION

    DELETE a,b,c FROM wp_posts a
    LEFT JOIN wp_term_relationships b ON (a.ID=b.object_id)
    LEFT JOIN wp_postmeta c ON (a.ID=c.post_id)
    WHERE a.post_type IN ('forum', 'topic', 'reply')

    USE WITH CAUTION

    Pascal Casier
    Moderator

    First of all, a good database/site backup is always a starting point of course.
    Then I suppose you followed the steps for the data cleanup here: https://codex.bbpress.org/getting-started/installing-bbpress/deleting-bbpress/ ?

    Is your WordPress still working fine since the cleanup that ‘failed’ ?

    Pascal.

    #167618
    Robkk
    Moderator

    @phamdacloc

    Glad you found the solution to your issue. Sorry i wasn’t much help, it is hard to know every single function in the plugin. I am digging in the code more and more though.

    #167617
    Pascal Casier
    Moderator

    Hi,

    If it can help, check shortcodes. The 2nd one could be your starting point:
    [bbp-topic-tags] – Display a tag cloud of all topic tags.
    [bbp-single-tag id=$tag_id] – Display a list of all topics associated with a specific tag. eg. [bbp-single-tag id=64]

    See https://codex.bbpress.org/features/shortcodes/

    Pascal.

    #167614
    mica123
    Participant

    I don’t think this is the local caching problem because I tested it on both my laptop and netbook at home. I don’t have this problem when I test it on my site which I set up locally on my computer in xampp. This happens only on the live site.
    I don’t think this is related to your redirect code. So this is a huge unexpected setback – what a shame! It doesn’t seem there is an easy solution and that I have to battle it out with the webhost provider who may not be knowledgeable about this at all.

    #167613

    In reply to: Doubled title issue

    Pascal Casier
    Moderator

    Buongiorno Rendall,

    I quickly had a check in the sourcecode of the page and it seems the RT Theme is doubling the information. I also saw that your forum is cut on the right side of the screen.
    Any possibility to switch to a more standard theme to make sure the theme is not to blame ?

    How did you setup the forum ? Using a shortcut ? Any extra plugins concerning bbPress installed ?

    A presto,
    Pascal.

    #167608
    Robkk
    Moderator

    @mica123

    Just making sure. It just something a user may not know at first.

    I don’t think there is a caching problem during logins?? Maybe you just refreshed a page a few times and the cache recollected again.

    I don’t really have a cache plugin to recommend, I guess just make sure that they are popular and have great support for any issues that may come up, other than that make sure they fit your needs.

    It depends on your webhost really if you rather use their caching system, some hosts like WP engine strongly encourage users to use their system, and it is pretty good.

    If you really think my login redirect code I gave you is causing the issue, you can remove it while you are trying to find this cache issue.

    #167596
    Robkk
    Moderator

    I think bbPress just uses the code from WordPress since the topic tag clouds code is close to WordPress’s version for regular posts.

    You can see the tag cloud on hover displays the number of topics.

    https://bbpress.org/forums/

    I tried searching what it was, but couldn’t really pinpoint the exact function.

    #167592
    Robkk
    Moderator

    You can use this php Code function instead if you are not using BuddyPress. Make sure to place it in your child themes functions.php file or in a functionality plugin.

    What it does is redirect non-logged in users from see user profile pages to the default WordPress login page.

    You can change the page by editing

    site_url('wp-login.php');

    to something like this if you have a yoursite.com/login page instead.

    site_url('/login/');

    function rkk_restrict_bbp_user_pages() {
    
        if ( ! is_user_logged_in() ) {
    
           if ( bbp_is_single_user() ) {
    
                        $url = site_url('wp-login.php');
    
                            // Send them to the new URL
                        wp_redirect( $url );
    
                        exit;
    	}
        }
    }
    add_action( 'template_redirect', 'rkk_restrict_bbp_user_pages');
    #167589
    Robkk
    Moderator

    To enqueue files in your child theme use get_stylesheet_directory_uri.

    Put the custom login stylesheets into your child theme named style-login.css or whatever you want to call it, and in the function use get_stylesheet_directory_uri instead of template_directory.

    https://codex.wordpress.org/Function_Reference/get_stylesheet_directory_uri

    Will check out the other topic in a minute.

    #167582
    laberkopp
    Participant

    Thanks casiepa!

    I hoped for a solution without coding, but it seems I need to start digging into the fundaments of WP and bbpress.

    I will go for the @robin-w solution first, as from the other one I didn’t even get where to put the code and what kleo should be.

    So thanks again, I will get back here as soon as I have something to report.

    Best wishes,
    Sascha

Viewing 25 results - 7,626 through 7,650 (of 32,505 total)
Skip to toolbar