Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 15,701 through 15,725 (of 32,503 total)
  • Author
    Search Results
  • #116035
    varsitysmack
    Participant

    @linq – I tried your solution again (thinking that I might have goofed something up the first time), but I don’t think I did because I still can’t get a list of replies to show up under the forum pages.

    @netweb – a short code like this would probably work… but there are none: [bbp-reply-index]

    #116031

    It’s true, but you can disregard the message. load_plugin_textdomain() unfortunately doesn’t do what we need it to, so we use load_textdomain() instead.

    #116025
    viktora
    Member

    Hi all. This evening I was just about to translate some pieces of BBpress into my native Czech lang. I am used to use Codestyling Localization plugin for translating plugins. This same I saw some strange warning. First time in my life.:-) Is here someone able to provide me with more details on following error message regarding bbpress?

    Loading Issue: Author is using load_textdomain instead of load_plugin_textdomain function. This may break behavior of WordPress, because some filters and actions won’t be executed anymore. Please contact the Author about that. (Codestyling Localization plug error message)

    #116023
    nick_w
    Member

    Found the fix on this site, deep in the Tracking discussion. Adding bbp_admin(); (courtesy of xiosen) did the trick, like this:

        // Setup admin (to include converter)
    require_once( bbpress()->plugin_dir . 'bbp-admin/bbp-admin.php' );
    
    bbp_admin();
    
    // Convert password
    require_once( bbpress()->admin->admin_dir . 'bbp-converter.php' );
    require_once( bbpress()->admin->admin_dir . 'converters/' . $row->meta_value . '.php' );
    

    Many thanks,

    nick

    #116022
    aaclayton
    Participant

    Hey JJJ, thanks for the advice. I am using /css/bbpress.css in my theme, the trouble I’m having is actually getting the proper syntax for unhooking these elements when they aren’t needed.

    Essentially, what I’m trying to do is something like this:

    add_action( 'get_header', 'remove_bbpress_scripts' );
    function remove_bbpress_scripts() {
        if ( !is_bbpress() ) {
            remove_action ( 'bbp_enqueue_scripts' , 'enqueue_styles' );
            remove_action ( 'bbp_enqueue_scripts' , 'enqueue_scripts' );
        }
    }
    

    Something isn’t working with this syntax though, I suspect I need to prefix ‘enqueue_styles’ with something, but I’m not sure what the proper prefix is.

    #115997
    aaclayton
    Participant

    Ok….so clearly I can’t effectively display what is actually getting put in my header section without the forum thinking I’m embedding live html or something. Just to clarify, bbpress is enqueing a stylesheet, bbp-child-bbpress-css from my theme’s /css directory regardless of the site page in question. Furthermore, it’s adding a script to the header defining a js variable:

    var ajaxurl = 'http://localhost/tamrielfoundry/wp-admin/admin-ajax.php';
    

    which I’m not sure is necessary?

    #115991
    aaclayton
    Participant

    Hey Jared, thanks for the reply. Unfortunately (perhaps due to misconfiguration on my part) these actions are firing on all site pages. Specifically I believe that bbPress is responsible for:

    link rel='stylesheet' id='bbp-child-bbpress-css'
    

    and

      /*  */
    

    I have bbPress configured to use theme compatibility base settings, upon which I am hand tuning templates within my theme directory. Any ideas why the child-css is getting called ubiquitously? The AJAX reference also showed up only after I installed bbPress, and I’m not convinced that it’s necessary…

    Any ideas would be great, thanks again. Andrew

    EDIT: Wow, I’m having a lot of trouble getting this code to display in blocks without getting stripped, so I had to throw in some unneccesary single quotes, but you get the idea…

    • This reply was modified 13 years, 6 months ago by aaclayton.
    • This reply was modified 13 years, 6 months ago by aaclayton.
    • This reply was modified 13 years, 6 months ago by aaclayton.
    • This reply was modified 13 years, 6 months ago by aaclayton.
    • This reply was modified 13 years, 6 months ago by aaclayton.
    #115989
    Siobhan
    Member

    Mason and I started to come up with a task list after talking to John at WCNYC. Here’s what we came up with:

    Setting up and running your forum
    bbPress settings (I have some content for this somewhere – will add it as a draft)
    Customizing how bbPress works
    Useful plugins that extend bbPress
    Moderating and managing your forum

    We also had:
    WordPress User Roles and bbPress
    Getting Started with bbPress

    They are complete though.

    Since you guys are on the ground supporting bbPress users, what things in the docs would you like to see prioritized?

    #115966
    atomnet
    Participant

    Thanks to all,
    with this shortcode i see only my forum/post index and not internal post (image and text).
    I try this [bbp-single-topic id=$topic_id=name post] but with /%postname%/ dont works.

    Thanks again.

    #115963
    mrjarbenne
    Participant

    Since updating to bbpress 2.1 the Forum Index is blank (whether pulled up through http://domain.com/?post_type=forum, or with the shortcode), and the descriptions entered for each of the Forum posts are not showing up. When all of the forum topics are set to private, a user who is not logged in sees the dialogue “Oh bother! No forums were found here!” But once the user is logged in, that dialogue disappears, but none of the Private Forums appear.

    I’ve reset the permalinks in Settings and in the Forum slugs area, and tried the Repair functions as well.

    #115961
    Stephen Edgar
    Keymaster

    I’m not sure if I’m reading what you want correctly but is this shortcode what your looking for?

    [bbp-topic-index] – This will show the most recent 15 topics across all your forums with pagination.

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

    #115957
    aaclayton
    Participant

    Hi bbPress community,

    Thank you for all your collective hard work on this great plugin. I’m working on an integration of the new 2.1 plugin into my own theme, and I had a question about scripts and styles that bbPress enqueues into the wp_head.

    In general, for plugins which are highly localized on the site (ones that only get used in very specific places), I prefer to conditionally enqueue styles and scripts to keep the head section of the main site relatively clean. bbPress currently initializes the following code site-wide:

    /** Scripts ***********************************************************/
    
    add_action( 'bbp_enqueue_scripts',      array( $this, 'enqueue_styles'        ) ); // Enqueue theme CSS
    add_action( 'bbp_enqueue_scripts',      array( $this, 'enqueue_scripts'       ) ); // Enqueue theme JS
    add_filter( 'bbp_enqueue_scripts',      array( $this, 'localize_topic_script' ) ); // Enqueue theme script localization
    add_action( 'bbp_head',                 array( $this, 'head_scripts'          ) ); // Output some extra JS in the 
    

    Normally I’m fairly handy with actions and filters in my functions.php file, but I’ve had a load of trouble getting these scripts to conditionally enqueue. Ideally, I would want to condition them on is_bbpress(). Can anyone offer a snippet to filter these unless is_bbpress() is true?

    Thanks in advance, and let me know if my question is unclear in any way.

    Andrew

    #115950

    Here on bbPress.org, I used the forums shortcode, and used CSS to hide a few columns. I did not use bbp_list_forums(), which has a specific purpose outside of what you’re trying to do.

    #115938
    quiksilver189
    Participant

    Hello,

    I’ve seen a lot of talk on these forums about Anonymous posting, and I was wondering how easy/feasible it would be to have an anonymous posting system work like the following:

    Users need to register in order to post. They have their own username, password, etc. etc., but when they post their username doesn’t show up whatsoever to other posters. Guests CANNOT post at all, which is how this is very different from the previously used versions of Anonymous posting.

    I would hope it’d be fairly simple in the posting code, but I’m not experienced enough to know exactly what I’d do. In the simplest terms, whenever there is a post, remove the field that shows the Username of the poster. Similarly, in the Topic view, remove the username from that field as well. Is that possible?

    Any help would be greatly appreciated. Thanks!

    #115921
    Stephen Edgar
    Keymaster

    Currently available shortcodes are list with a brief explanation of each:

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

    WP Version: 3.4.1
    bbPress Version: 2.1.1
    Permalink Custom Structure: /%category%/%postname%/

    User Settings:
    Show Toolbar when viewing site – Unchecked
    Username (all small w/o spaces) – forumuser

    bbPress Login Widget is used to provide login box which displays user profile image as well as name of user with the link to its profile page:

    http://domain.dom/forums/users/forumuser/

    I am having problem in accessing the above user profile page. The error displayed on the page is:

    The resource you are looking for has been removed, had its name changed, or is temporarily unavailable.

    However, if admin logins and goes to the url “http://domain.dom/forums/users/admin/” then bbPress’s profile page for admin is displayed correctly.

    What could be the problem? Can someone here help me to rectify it so that proper user profile of all respective users are displayed correctly?

    Thanks.

    #115916
    Anonymous User 5853594
    Inactive

    I think you can show the content of a single topic with the [bbp-single-topic id=$topic_id] shortcode in a post.
    Haven’t tried how exactly that would work, but it might be what you’re looking for.

    Stephen Edgar
    Keymaster

    No it wasn’t an auto reply to your post.

    I presumed what you were looking for is in point 4 of ‘Creating your first forum’ where you can define if a forum is a parent category or straight forum. In the case you were asking you simply create the forum as a forum and not a category.

    https://codex.bbpress.org/getting-started-with-bbpress/#creating-your-first-forum

    > Adjust your Forum attributes. These are:

    > Types: choose whether you are creating a Forum or category.

    > Forum – can contain topics and be the parent of other forums.

    > Category – can only contain forums (no topics). Use for organizing your forums.

    > You may, for example, have a Category “Open Source Software” with the > Forums “bbPress” and “WordPress”.

    And yes forum wide search is planned for a future release

    • This reply was modified 13 years, 6 months ago by Stephen Edgar.
    • This reply was modified 13 years, 6 months ago by Stephen Edgar. Reason: quote formatting
    #115881
    Stephen Edgar
    Keymaster

    There are plans to improve bbPress’s moderation features.

    You can see whats planned thus far, contribute more ideas or even code here:
    https://bbpress.trac.wordpress.org/ticket/1721

    #115880
    Stephen Edgar
    Keymaster

    Create a page (or edit an existing page) and add the [bbp-topic-index] shortcode to that page.

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

    Stephen Edgar
    Keymaster
    #115856
    Stephen Edgar
    Keymaster
    #115851
    Anonymous User 5853594
    Inactive

    You could create a page and use the shortcodes to display the forum there. You can then set the page as home, instead of the blog (under Settings > Reading).

    From there you’ve got the forum index on the frontpage. You could create other pages to handle registration and other account related things.

    You’ll want to read through https://codex.bbpress.org/shortcodes/ for the shortcodes.

    #115850

    In reply to: author -> bbp_user

    Starejosel
    Participant

    It turned out that the solution was to use the WP htaccess Control plugin and use it to install a custom .htcaccess file with a rewrite rule
    (using the pretty url’s generated by the permalinks):
    RewriteRule author/([^/]+)/?$ http://yourspecificwebsitename/forums/users/$1/ [R=301,L]

    #115841

    In reply to: Index page

    viktora
    Member

    No John.:-) I was using multiple methods for displaying my forum just for testing purpose. Now, the status is that I do NOT have any page with shortcode. I just modified the Forum base slug to /discussion/. Suddenly the historical /forums/ forum base slug started to work in the way I expected and the new slug /discussion/ works in the same wrong way as /forums/ did before.

    Couple of questions:
    Why is the /forums/ slug working after it was modified in the admin area (forum base slug)? It should not be visible at all.
    Why is the new /discussion/ forum base slug ignoring page-front-forums.php file? Compared to the /forums/ slug which accepts whe template file ok.

Viewing 25 results - 15,701 through 15,725 (of 32,503 total)
Skip to toolbar