Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 14,626 through 14,650 (of 32,522 total)
  • Author
    Search Results
  • #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
    Garindan
    Participant

    Sorry for the ambiguous title. I have bbpress on a site, using the compatibility theme. The rest of the forums have always worked correctly and apart from a few css tweaks, have always looked good and matched the theme.

    I recently noticed however, that the User Profile pages; profile, topics created, favourites etc, seem to ignore all the css and consequently have no layout/structure.

    Here is a normal forum page on the site… Forums
    The layout is correct, the sidebar is positioned correctly and has a PNG background creating the ‘shadow’. A title bar with page title is displayed below the header and navigation.

    Here is an example of a User Profile page… Topics Started
    There’s no css structure, the sidebar is at the bottom, there’s no PNG background behind the sidebar, theres no title bar and page title. It’s as if the CSS is being ignored.

    As another example, on this page I have added the code below to user-profile.php and the sidebar is correct, but it still has no background PNG, title bar etc… User Profile

    Any idea whats going on?

    `
    #sidebar { float: left; width: 230px !important; }
    #main { float: left; width: 730px !important; }
    `

    #126604
    AllenPayne
    Participant

    I have buddypress with bbpress installed on my site and i want to hide posts from certain forums from non-logged in users. I’ve tried using this code but it’s not working:

    http://pastebin.com/007KCExe

    I would really appreciate any help.

    Thank you.

    #126600
    m1000
    Participant

    Where it’s disabled? How to enable shortcodes again without using any extensions?

    #126596
    Stephen Edgar
    Keymaster

    Its your permalinks settings…. Check out how to set ‘pretty permalinks’ here: https://codex.wordpress.org/Using_Permalinks

    pdhuisman
    Participant

    Hi,

    I use this code for that:

    `.singular .entry-header, .singular .entry-content, .singular footer.entry-meta, .singular #comments-title {
    width: 100%;
    }`

    Looking at your site, that should work. I use the inspect element button in Chrome to find the item i want to change. Just fiddle a bit by turning things on and off until you find what you want to change and add code in your child theme. Almost anything can be done like colours, font size e.d.

    Great work on your site btw!.

    #126567

    In reply to: Where to edit textarea

    moonoi
    Participant

    It is in the template files `form_reply.php` and `form_topic.php`

    The line that calls the WP_Editor class to create the textarea using the relatively new WordPress core front end editor is this one:

    `bbp_the_content( array(‘context’ => ‘reply’)`

    You can look into the `bbp_the_content` function to see how BBP does it and how you can circumvent default behaviour.

    Notice that this line only applies if the fancy editor is enabled for the current user*. Otherwise the template file falls back to display the classical textarea (which is also the one used in this forum).

    *) It seems there’s a bug in BBP 2.2.4 making the fancy editor available only to the keymaster. This can be overridden in the code of course.

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