Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 9,876 through 9,900 (of 32,505 total)
  • Author
    Search Results
  • #156078
    Robkk
    Moderator

    yes you can.

    its used on bbpress.org , its not in button format but yeah

    first you create a new page called New Topic

    put the shortcode [bbp-topic-form] into that page.

    now to create a button , im just going to show you how to create a link with a background so it basically is a button.

    put the text widget in your sidebar

    and put this html in it.

    <a class="bbp-new-topic-button" href="http://yoursite.com/new-topic" "title="Create A New Topic">Create A New Topic</a>

    and put this CSS wherever you can put custom CSS

    a custom css plugin
    jetpack custom css module
    in the bbpress.css file that you could copy to your child theme.
    in your child themes CSS stylesheet

    a.bbp-new-topic-button {
      color: #fff;
      font-size: 24px;
      background: #222;
      padding: 10px 20px;
      border: solid #222 2px;
      text-decoration: none;
    }
    
    a.bbp-new-topic-button:hover {
      color: #222;
      background: #fff;
    }
    #156077
    Robkk
    Moderator

    @attuoz

    i think you can put that sample code in your functions.php in a child theme or functionality plugin.

    #156073
    Robin W
    Moderator

    try my plugin

    bbp additional shortcodes

    I think it will fit what you request

    #156070
    bog1
    Participant

    Hi,

    i am searching for a plugin which restrict user registrations.

    I only want users to be able to register when they provide a valid “code” in the registration form.

    Is this possible?

    regards
    Yavuz

    #156069
    dejudicibus
    Participant

    At the bottom left of a post:

    Stai vedendo rticolo (di 1 totali)

    instead of

    Stai vedendo 1 articolo (di 1 totali)

    #156067
    attuoz
    Participant

    Hi. I tried other 2 methods. They add only a few topics, which is not enough. Can do the same in 10 minutes.

    bbpFauxData should work. I just don’t know where to use the php code.

    ini_set( 'max_execution_time', 30000 );
    ini_set( 'memory_limit', '1024M' );
    
    $bfd = new bbpFauxData();
    
    const USERS   = 50;
    const FORUMS  = 5;
    const TOPICS  = 100;
    const REPLIES = 1000;
    
    for ( $i = 0; $i < USERS; $i++ ) {
        $bfd->generate_user();
    }
    
    for ( $i = 0; $i < FORUMS; $i++ ) {
        $bfd->generate_forum();
    }
    
    for ( $i = 0; $i < TOPICS; $i++ ) {
        $bfd->generate_topic();
    }
    
    for ( $i = 0; $i < REPLIES; $i++ ) {
        $bfd->generate_reply();
    }
    #156065
    yarashicr
    Participant

    I am very new to BBPress deployment. One of my client wants me to fetch Topics or discussions of a particular forum or all forums with in a category and display it on the homepage. The only way I can add it on the home page of my site in the current wordpress theme I use is through a custom widget (“text widget”). Can any one help me with the php code to do the same. Also help me on what I need to do inorder to fetch all topics under a particular category, irrespective of the forums to which they belong.

    Is there a plugin to do the same or an external widget which I need to install in the form of a plugin.?

    If I am not wrong, I assume that the following is the structure of a BBpress forum.
    Category >> Forum (Sub Category) >> Topics (Discussion)
    Eg: Software >> Apple >> A simple topic or discussion on iPhone.

    #156063

    In reply to: Help for roles

    Robkk
    Moderator

    use the gd bbpress attachments plugin to allow users to upload images.

    the users use html when they are using the visual editor too if you activated that it just outputs the html tags in an iframe in real time.

    there being two tabs is not really a big deal, but create me a subscriber account and i can see if i can hide it with some CSS.

    i need a subscriber account because i cant see the topic/reply form unless i login to your site.

    ok role see if this article helps

    https://codex.bbpress.org/bbpress-user-roles-and-capabilities/

    #156062

    In reply to: Edit reply page

    Robkk
    Moderator
    #156056
    Robkk
    Moderator

    try this code from this link

    https://gist.github.com/ntwb/7864894

    and rename the ones you want

    add_filter( 'bbp_get_dynamic_roles', 'ntwb_bbpress_custom_role_names' );
    
    function ntwb_bbpress_custom_role_names() {
    	return array(
    
    		// Keymaster
    		bbp_get_keymaster_role() => array(
    			'name'         => 'My Custom Keymaster Role Name',
    			'capabilities' => bbp_get_caps_for_role( bbp_get_keymaster_role() )
    		),
    
    		// Moderator
    		bbp_get_moderator_role() => array(
    			'name'         => 'My Custom Moderator Role Name',
    			'capabilities' => bbp_get_caps_for_role( bbp_get_moderator_role() )
    		),
    
    		// Participant
    		bbp_get_participant_role() => array(
    			'name'         => 'My Custom Participant Role Name',
    			'capabilities' => bbp_get_caps_for_role( bbp_get_participant_role() )
    		),
    
    		// Spectator
    		bbp_get_spectator_role() => array(
    			'name'         => 'My Custom Spectator Role Name',
    			'capabilities' => bbp_get_caps_for_role( bbp_get_spectator_role() )
    		),
    
    		// Blocked
    		bbp_get_blocked_role() => array(
    			'name'         => 'My Custom Blocked Role Name',
    			'capabilities' => bbp_get_caps_for_role( bbp_get_blocked_role() )
    		)
    	);
    }
    #156052
    Robkk
    Moderator

    We have installed the latest bbPress + latest WP on our site. Also we have Disqus if this matter.

    yeah Disqus not really

    We read that bbPress is integrated with ‘Discussion’ settings from WP installation.

    well it does but only the comment blacklist and comment moderation , not anything else yet.

    more info on this link.

    (codex.bbpress.org/moderation-and-blacklisting/)

    No answer here? Perhaps a plugin?

    sorry its the holidays in the U.S. , we are spending time with families.

    there is a plugin though!

    https://wordpress.org/plugins/bbpressmoderation/

    #156044
    attuoz
    Participant

    hello, thanks for the reply. i activated bbpFauxData. now i can’t find where to put the example code. it just says “Once you install and activate this plugin, you can do:”

    #156037
    Stephen Edgar
    Keymaster

    For example, here, there is NO documentation at all for import options:

    https://codex.bbpress.org/import-forums/

    This has been added for the next release.

    a) It would be useful if there was an explanation as to what difference ‘Rows Limit’ and ‘Delay Time’ actually make to the importer. For example, after a search on this forum, I read that one user upped the Rows limit to 10000 and this helped him with a successful import that had previously hung. Why should this be? @netweb suggests 0.1 as a good Delay Time – why? Also, is there a minimum or range of values that are acceptable? For example, would 0.01 an acceptable value and would it make any difference?

    The default values are what we think will work for “most users” without causing any issues, if your MySQL instance can handle more frequent and larger queries than the defaults then these values can be changed to reflect that. Many of the of shared hosting packages have limits on how many and how large these database queries can take place per hour, this is why it is relatively low by default.

    If you have an incredibly fast MySQL instance you could set the time between queries (delay) to 0.01ms, I’d suggest not though, this allows MySQL to have some “time up it’s sleeve” for any other tasks it may also be needing, you’d hardly notice the difference between 0.1 and .0.01, you do (or at least I do) notice this on large imports when it is set to 1.0.

    b) If ‘Start Over’ is not selected, will the importer always try and re-start where it left off if it was previously stopped? How does it know? Does it trawl through all matches and not replicate them until it gets to data that it hasn’t imported?

    Yes, the importer will continue from where it left off, we store this is the wp_options database table.

    i) Once what is finished? If it hung again then it didn’t finish? Bit confused by this.

    I’ll try to get to update these troubleshooting steps to make this a bit clearer.

    ii) If one stops and starts the import, why should it continue where it left off? Why should it not hang immediately? Does it continue with the next batch of rows or does it continue with the table row in which it was stopped?

    As per above, at each step during import we update this data in the options table so if the import stops when started again it can resume from where it left off.

    And yes, it continues with the next batch of rows from where it left off.

    iii) If one stops import, logs out, refreshes the page, etc. will import start where it left off?

    Yes

    iv) Please define ‘hangs’. If the wheel is spinning during, for example, ‘Converting Replies (480000 – 480999) does this mean it is still working albeit slowly?

    The ‘wheel’ is always spinning as each step of the importer progresses, if for example it took ~3 seconds to convert the “Converting Replies (470000 – 470999)” replies, you’d find each batch would typically be taking a similar 3 seconds, once you see per your example “Converting Replies (480000 – 480999)” if that has been stuck on that batch for 30 seconds, a minute, 20 minutes that is pretty much a case of the import has stalled.

    #155877
    gavintyte
    Participant

    Hello (especially Stephen!)

    Firstly, I must say that I am very grateful that there is a free importer at all! It’s a very valuable addition to bbPress. However, it would be useful if the published bbPress import documentation was just a little clearer and less confusing. Clearer documentation might save people time trawling for responses or firing off questions that are time consuming to answer.

    For example, here, there is NO documentation at all for import options:

    https://codex.bbpress.org/import-forums/

    a) It would be useful if there was an explanation as to what difference ‘Rows Limit’ and ‘Delay Time’ actually make to the importer. For example, after a search on this forum, I read that one user upped the Rows limit to 10000 and this helped him with a successful import that had previously hung. Why should this be? @netweb suggests 0.1 as a good Delay Time – why? Also, is there a minimum or range of values that are acceptable? For example, would 0.01 an acceptable value and would it make any difference?

    b) If ‘Start Over’ is not selected, will the importer always try and re-start where it left off if it was previously stopped? How does it know? Does it trawl through all matches and not replicate them until it gets to data that it hasn’t imported?

    In the troubleshooting guide here:

    https://codex.bbpress.org/import-forums/import-troubleshooting/

    c) I don’t understand the debug information:

    • Once the import hangs, click stop, take a note of where it was up to, e.g. Converting 11,299 – 11,300
    • Click start again and the import will continue from where it left off
    • If it hangs again, take note of where it was up to again
    • Once finished make a fresh copy of the source database
    • <
      /ul>

      i) Once what is finished? If it hung again then it didn’t finish? Bit confused by this.

      ii) If one stops and starts the import, why should it continue where it left off? Why should it not hang immediately? Does it continue with the next batch of rows or does it continue with the table row in which it was stopped?

      iii) If one stops import, logs out, refreshes the page, etc. will import start where it left off?

      iv) Please define ‘hangs’. If the wheel is spinning during, for example, ‘Converting Replies (480000 – 480999) does this mean it is still working albeit slowly?

      Many Thanks

      Gavz

    j0n4h
    Participant

    Hey again,

    Running into some trouble customizing my bbpress forums via the bbpress.css file in the my child theme. I’m unsure if the pathway is incorrect, or maybe the intro to the file itself is incorrectly formatted. I do, however, know I was able to enqueue the custom loop-forums.php correctly with the functions.php properly pathwayed.

    So, the pathway to the bbpress.css file is default>css>bbpress.css
    In my childtheme, I have the bbpress.css file located avada-childtheme>css>bbpress.css

    However, whenever I add code into the bbpress.css file after the

    `/*
    Theme Name: Avada-childtheme
    Theme URI: Your website if you don’t intend to publish a separate site just for your theme
    Description: A brief description of your child theme
    Author: Jonah Hollis
    Author URI: http://www.animusesports.com/
    Template: Avada
    Version: 1.0.0
    Tags: whatever tags you might want to use for your child theme
    */

    /* =Theme customization starts here
    ————————————————————– */
    it corrupts the bbpress forums and breaks them. When I delete the file, the bbpress forums resume normal functionality. For the purposes of example, I’ll leave them broken.

    Any help is appreciated. Thanks!

    http://www.animusesports.com/forums/

    WordPress 4.0.1
    bbPress 2.5.4-5380

    #155968
    Robin W
    Moderator

    Presume you have been through

    Codex

    and

    Step by step guide to setting up a bbPress forum – Part 1

    bbpress is not great on mamp or wamp, is this what you mean by localhost.

    #155989
    Master
    Participant
    #155987
    Master
    Participant

    I create page and add [bbp-topic-form] look http://www.oklop.me/kreiraj-temu/

    But on form not display editor like this

    After add code in functions.php

    function bbp_enable_visual_editor( $args = array() ) {
    $args[‘tinymce’] = true;
    return $args;
    }
    add_filter( ‘bbp_after_get_the_content_parse_args’, ‘bbp_enable_visual_editor’ );

    Only work on forum page, and editor not work on edit post.

    #155982
    Jake Hall
    Participant

    Hi guys,

    I am trying to achieve this (a mockup through Google Dev tools) however I am unable to find where I can actually edit the code behind this, it seems to be hard coded behind a bbpress function – which I personally think is silly if I have to rewrite it just to make it how I want it…

    How I want it

    I am gunning to make my installation of bbPress hierarchical in display, however currently it only displays the “Freshness” of the forum.

    Can anyone point me into the right direction here?

    EDIT: I wasn’t super clear, what I meant to say was – I would like to instead of having “15 hours and 30 minutes ago” with the username, the topic title. I can achieve the rest

    Thanks

    #155978
    chollyjung
    Participant

    I see css code in reply have display:none.
    How can I fix?

    #155976
    cyclesha
    Participant

    I guess the best way to illustrate this is:

    I installed, activated, etc. Forums. In the back end all seems to be well. In the front end I have nothing other than a 404 Error message. The Forums page on the menu came from bbPress and is not a page I created, published and added to the menu. Since bbPress added it to the menu the problem seems to be like this: You have a piece of paper with text in your left hand and a title in your right hand. How do you get the paper with text to appear under the title in your right hand?

    Is this a code issue, a permalink issue or what? Given my extreme lack of expertise I really need someone to give me step by step instruction.

    Please check the front end yourself:

    cycleshanty.com and click on Forums

    WP version 4.1

    Thanks in advance.

    #155971
    cyclesha
    Participant

    I tried using the short codes and they work on the backend.

    My problem is now getting rid of the 404 error on my front end. From the back end all seemswell.

    Lets focus on that error message. How do we eliminate it so when a person clicks forums the get forums?

    #155969
    melanie bund
    Participant

    Hi my forum appears in a part of the site that has a generic login. So what i need is that users have to type in email and name in order to post – is this possible? is there a shortcode for this or do i have to add something to the bbpress.php?
    thank you in advance
    Melanie

    #155960
    Bob1nz
    Participant

    Thanks for your reply @robin-w
    I tried that but it assigns the user the default role in bbpress.

    I gave a dummy user the admin role in wordpress and what I want is for the user to be automatically given the admin role in bbpress as well.
    Using the code you supplied it leaves the user with the default role.

    How can I assign non-standard bbpress roles with custom capabilities to non standard wordpress roles also with custom capabilities using the map so this is performed dynamically?

    #155951
    Robin W
    Moderator

    @tajender

    You’d need to modify

    wp-content/bbpress/templats/default/bbpress/form-reply.php

    create a directory on your theme called ‘bbpress’
    ie wp-content/%your-theme-name%/bbpress
    find
    wp-content/bbpress/templats/default/bbpress/form-reply.php
    Make a copy of this file, and put in in the directory called bbpress that you created above, so you end up with
    wp-content/%your-theme-name%/bbpress/loop-single-reply.php
    bbPress will now use this template instead of the original

    you should really do this inside a child theme

    Functions files and child themes – explained !

    but if you do it in your main theme, keep a copy of what youb have done as updates are likely to overwrite

    The you would need to modify line 20

    <?php if ( bbp_current_user_can_access_create_reply_form() ) : ?>
    

    to put in a check to see if it’s current user

    It’s too near xmas, and I have too much else on to write and test the code but it will involve bbp_get_currect_user and the topic author $user_id

Viewing 25 results - 9,876 through 9,900 (of 32,505 total)
Skip to toolbar