Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 14,601 through 14,625 (of 32,503 total)
  • Author
    Search Results
  • #126846
    j0k
    Participant

    OK, I succeeded in doing the first thing.

    I checked in the database and found the custom post types in the wp_posts table:
    `
    if (!is_post_type(‘forum’) || !is_post_type(‘post’) || !is_post_type(‘topic’) || !is_post_type(‘reply’)){
    if (function_exists(‘my_breadcrumb’)) my_breadcrumb();
    }
    `

    The problem now is that I have to do it for all the children pages of these custom post types (forum, post, topic and reply), but I can’t find how to do it. I will try something with the get_page_children() function but I am not sure that it will work with custom posts…

    #126842
    Stephen Edgar
    Keymaster

    The instructions are here: https://codex.bbpress.org/bbpress-in-your-language/

    That said I cannot see any Greek (el) translations for bbPress in GlotPress for the 2.2 or 2.3(dev) branches of bbPress https://translate.wordpress.org/projects/bbpress

    I suggest you try asking some of the Greek WordPress communities listed here:
    https://codex.wordpress.org/WordPress_in_Your_Language#Greek_.28el.29

    In particular on their forum http://wpmania.gr/forum/
    (You could also ask when they are planning on switching to bbPress ;))

    #126840
    Lynq
    Participant

    If you go to: https://codex.bbpress.org/ and look for shortcodes, there is a register and login shortcode. Create two new pages for register and login, insert the shortcodes, then link to them from your site.

    #126815
    chicadieta
    Participant

    Same problem here. Also, when clicking the Edit profile link, the page is blank, showing header and footer and everything but nothing inside, not even the little sidebar at the left with the avatar picture and the other links (Subscription, Topis started, etc.), all empty and not even present in the source code.

    WP: 3.5.1
    bbPress: 2.2.4

    Using the Thesis Theme and s2Member plugin.

    moonoi
    Participant

    After having battled with this problem for a long time, I finally found out, why only keymaster users could upload images to their replies with the new media manager.

    The problem is not bbPress’ fault, but rather due to a shortcoming in the WP_Editor.

    When a front end editor is inserted on a page using the wp_editor() function, and media buttons are enabled, the media buttons will be automatically set up to attach the images being uploaded to the current global post object.

    This is a problem, because the current global post on a forum topic page is the topic. So if the user replying to the topic (and trying to upload images) is not the topic starter, a permissions problem will arise.

    The user will then in fact be attempting to attach media to the topic, which is owned by someone else. This will result in an error, unless the user has the “edit_others_topics” permission set to true.

    So, what to do? Here’s my temporary solution, until this hopefully gets addressed in the future:

    Because the core function that takes the post id from the current global post can’t be hooked directly into, I decided to hook in before and after it, to first change the global post id to null, and then change it back afterwards, so any logic that follows the WP_editor will not get disturbed.

    This will, however, cause the uploaded image to not be attached to any post. But it doesn’t have to be. The image will be inserted into the forum reply html, regardless of which post it is attached to in the DB.

    
    add_action('media_buttons', 'ml_pre_media_buttons', 1);
    add_action('media_buttons', 'ml_post_media_buttons', 20);
    function ml_pre_media_buttons($editor_id) {
        if (!$editor_id == 'bbp_reply_content')
            return;
    
        $GLOBALS['post_temp'] = $GLOBALS['post'];
        $GLOBALS['post'] = null;
    }
    function ml_post_media_buttons($editor_id) {
        if (!$editor_id == 'bbp_reply_content')
            return;
    
        $GLOBALS['post'] = $GLOBALS['post_temp'];
    }
    

    I created this issue on the WP support forums:
    http://wordpress.org/support/topic/front-end-editor-media-upload-would-like-ability-to-pass-post-id?replies=1#post-3895962

    #126791
    Stephen Edgar
    Keymaster

    See this page in the docs for instructions https://codex.bbpress.org/bbpress-in-your-language/

    #126790

    In reply to: Best URL Structure ?

    Stephen Edgar
    Keymaster

    Darren,

    I have a problem with the ‘spammy’ domain you keep linking to as it is a ‘web host’ ad farm, if you don’t own that domain please stop linking to it here on bbpress.org. I have removed these links from all of your posts.

    You can find some hosting providers links here https://wordpress.org/hosting/ that are well and truly under $5 a month.

    To your question the most common that suits most people is ‘Post Name’ as outlined here https://codex.wordpress.org/Permalinks#Choosing_your_permalink_structure

    Cheers,

    Stephen

    #126776
    sdxgameband
    Participant

    Sorry, I am really bad with WordPress, where do I put that code to make a link to the user’s profile?

    moonoi
    Participant

    Found out that the setting causing the whole post form to disappear, following my hack to the `bbp_get_caps_for_role()` function, was `’moderate’ => true,`. Setting this to false makes the post form available.

    However, still no way to upload pictures for non-keymasters.

    Hope one of the bbp core coders have a tip for this one.

    #126759
    moonoi
    Participant

    Thanks for these great and very much needed plugins.

    The quote plugin doesn’t work if the WP Editor is enabled and the currently selected pane is the preview/view pane. Only if the source code pane is selected, will the quote be inserted.

    #126758
    Darren1981
    Participant

    Hey again, Sorry 2 questions in one day 🙁

    OK here is what i am thinking… Rather than using /forums/ for my main forum page i would like to create my own custom Forums page.. Now would this need to be done via a BBpress template or simply by creating a WordPress page and then using shortcodes to display specific forums..

    Doing the above assuming it was possible.. i would call the WP page “Forums” but this would conflict with the BBpress Forums base which by default is “forums” so yeah i am at a little bit of a loss here.

    Again as always THANKS in advance to anyone who takes the time to reply / assist me with this.

    Regards, Darren

    #126744
    Lynq
    Participant

    You can create a page and then add the register shortcode to it: https://codex.bbpress.org/shortcodes/

    Then link to it from anywhere you like, menu, page, any where.

    #126714
    FlipFlop
    Participant

    Hi guys,

    I’d like to alter the ouput in the Freshness column, as you can see in the code below, bbpress knows the latest forum post in any one forum and links to it if you click the Freshness link, in this case ‘4days 2 hours ago’. Instead of it outputting 4 days 2 hours I’d like it to show the title of the post.

    I think I need to edit the bbp-header but I don’t know where to find this.

    Can anybody help me do this please?

    Thank you!

    `

    `

    #126691
    Nathan Pinno
    Participant

    Hi there.

    I’m using the latest plugin version of bbPress, WP 3.5.1, and BuddyPress 1.6.4 and I have a question for you:

    Does the code I found here still work, as that was posted almost one and a half years ago?

    Plus if it does work, how do I modify it to show only certain forums (cause I’m using the Membership plugin from WPMU DEV to control access to a few which are for premium members only)?

    Thanks in advance for the help,
    Nathan P.

    #126689
    Stephen Edgar
    Keymaster

    You need to use the correct values from your wp-config.php file

    eg. $table_prefix = 'wp_'; = wp_ in the bbPress Table Prefix: field. (You used MyDatabaseName in ‘Table Prefix’

    Also if you are using the same WordPress install as your existing SimplePress install you don’t need to convert the users as they are already exist, so uncheck the convert users checkbox.

    #126688
    jasoncoffee
    Participant

    I input the info found in the place you suggested above and when I ran it got this error.

    WordPress database error: [Table ‘MyDatabaseName.users’ doesn’t exist]SELECT convert(users.ID USING "utf8") AS ID,convert(users.user_pass USING "utf8") AS user_pass,convert(users.user_login USING "utf8") AS user_login,convert(users.user_nicename USING "utf8") AS user_nicename,convert(users.user_email USING "utf8") AS user_email,convert(users.user_url USING "utf8") AS user_url,convert(users.user_registered USING "utf8") AS user_registered,convert(users.user_status USING "utf8") AS user_status,convert(users.display_name USING "utf8") AS display_name FROM users AS users LIMIT 0, 100

    #126684
    Stephen Edgar
    Keymaster

    You should be able to find these values by using FTP to download a copy of /wp-config.php and open it with a text editor or use your web hosts file manager program to to view this file.

    // ** MySQL settings - You can get this info from your web host ** //
    /** The name of the database for WordPress */
    define('DB_NAME', 'database_name');
    
    /** MySQL database username */
    define('DB_USER', 'database_username');
    
    /** MySQL database password */
    define('DB_PASSWORD', 'database_password');
    
    /** MySQL hostname */
    define('DB_HOST', 'localhost');
    
    ....
    
    /**
     * WordPress Database Table prefix.
     *
     * You can have multiple installations in one database if you give each a unique
     * prefix. Only numbers, letters, and underscores please!
     */
    $table_prefix  = 'wp_';
    
    #126681
    Stephen Edgar
    Keymaster
    #126663
    zilveer
    Participant

    Hello everyone,

    I would like to require tags for topics and replies. I managed to find some help.
    Here is the code which you can have in your functions.php file.

    
    /*
    @ Require tags for posting topics, replies
    */
    add_action( 'bbp_new_topic_pre_extras', 'check_front_end_tags_wpse_82956' );
    add_action( 'bbp_new_reply_pre_extras', 'check_front_end_tags_wpse_82956' );
    
    function check_front_end_tags_wpse_82956(){
    if( empty( $_POST['bbp_topic_tags'] ) )
    {
    // WORKAROUND FOR LINKS WITH HASH TAG, e.g., topic/lorem-ipsum#post-91
    // Necessary when posting multiple replies that generate hashed links
    // OTHERWISE A SIMPLE href="javascript:history.go(-1) WOULD WORK
    ?>
    function goBack() {
    if (window.history && history.pushState) {
    history.replaceState("", "", "?no-tags=true);
    history.go(-1);
    }
    }
    <?php
    
    wp_die( '<a href="history.go(-1)" rel="nofollow">' . __( '&laquo; &laquo; Please type at least one tag' ) . '</a>' );
    }
    }
    

    But I would like to use AJAX and a modal dialog for displaying the requirements when someone creates a topic or replies and forgets to type in a tag.
    How can I do this, can someone give me guidance here?

    regards

    Big_Birtha
    Participant

    And again, thanks. The Google Chrome ‘inspect element’ tip is invaluable!

    Now I’m getting to grips with the code a LOT quicker!

    #126649
    Radmacdaddy
    Participant

    I don’t mean to hijack this thread, it’s just that when I used that shortcode, now it goes to a blank page when I click on lost passord enter my user details into the form I created a page for on my site: shamanscircle.com/home/lost-password

    #126640
    Ikenna
    Participant

    I am using buddypress 1.6.4, WordPress 3.5.1 and bbpress 2.2.4. My website is on the localhost xamp server. I am using bp-columns theme as my Buddypress Child Theme. Please I would like to know how to create a bbpress child theme. I followed the step by step guide on how to create a bbpress child theme and it have so useful to me. The problem I have with it is this line that says: go to bbPress’ theme folder. That is, go to wp-content > plugins > bbpress > bbp-themes > bbp-twentyten. Download all the files from this folder except style.css. These are the files that will style your bbPress theme.

    I can’t find the bbp-themes and bbp-twentyten folders in my bbpress installation.

    Any help on this will be deeply appreciated!

    davidfan
    Participant

    Hi,

    This is my first time trying to integrate bbpress on a wordpress site. I have purchased a premium theme from mojo theme but unable to get bbpress 2.2.4 to work on my page at all. If I switched the theme back to twentytwelve then the bbpress functions as normal. I tried running the forum using shortcode, however, only the shortcode page would work, and if I click on a topic nothing is showing up again.

    I have been reading through different topics in this forum for the past 4 hours but result has been a little confusing.

    Can someone please help?

    Thanks,
    David

    #126636
    choibc
    Participant

    I noticed that bbpress has no option to apply style by adding class inside of iframe.
    But, I’d like to do this way,

    <iframe class="span12 clearfix"…

    Is there way to do without modifying bbpress source code?

    #126624
Viewing 25 results - 14,601 through 14,625 (of 32,503 total)
Skip to toolbar