Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 23,451 through 23,475 (of 32,468 total)
  • Author
    Search Results
  • #79349
    gerikg
    Member

    Use this link: https://api.wordpress.org/secret-key/1.1/salt It has 8 keys.

    NOTE: do NOT use any “www.” anywhere when entering information.

    1. Open wp-config line replace your new keys with the one from that link. (lines 55-61)

    2. Copy the same keys to bb-config just add BB_ after define(' in each key so it will be define('BB_AUTH_KEY', ' (lines 41-44)

    3. Install & activate BBpress Intergration plugin https://wordpress.org/extend/plugins/bbpress-integration/

    4. Get the information from the plugin and put it in line 20 in wp-config and line 13 in bb-config. (if you’re using WPMU take out the HASH line when you put it in bb-config)

    5. Log into your BBpress admin section and navigate to SETTINGS -> WORDPRESS INTEGRATION enter all the information it ask for, save.

    6. Clear you cache and you should be ready to go.

    #79324

    In reply to: Widgets for bbpress?

    Mark
    Member

    also, is it possible to remove the tags bar? and possibly replace it with something else?

    Anything is possible. ;) You want to look for your template files in bb-templates, most likely you’re using the kakumei theme in a directory of the same name.

    #31787

    Topic: Nofollow

    in forum Installation
    bbpros
    Member

    Hi all, I love this script and have been getting acquainted for a couple of hours… I noticed the following:

    1. User can post html. If they drop a whole url it will print with a “nofollow” BUT if they actually write http://, then it will print without it. Is there a way to make it consistently “nofollow”?

    2. I would like to make the link in members’ profiles a “dofollow” but I am afraid to touch the code and all of a sudden make all links drop by members like that. I would only want to switch it off in the profile area.

    Thanks.

    #79283

    In reply to: Plugin Request: Garage

    johnhiler
    Member

    gerikg –

    If you want to write a post asking for plugin developers to bid on a project, you can do so here… but the forum policy is to just post your project description and your email and then a moderator will close the post:

    https://bbpress.org/forums/topic/bbpress-developers-wanted#post-39007

    If you want to discuss the project in general, you can always do so… just a heads up on the forum policy around soliciting bids on a project. :-)

    #69774
    johnhiler
    Member

    adamkayce – It’s absolutely possible. :-) I’ve done it a few times now.

    These links are hugely helpful:

    https://bbpress.org/forums/topic/integration-of-established-wp-and-bbpress-installations

    https://bbpress.org/forums/topic/successful-reverse-integration-steps

    The hardest part of the integration is how to handle “name collisions”… i.e. what do you do when two users share the same usernames in bbPress (from phpbb3) and WordPress. That’s discussed nicely in the above links.

    Good luck!

    #79316

    Add more like this

    <li>Page1</li><li>Page2</li><li>Page3</li><li>Page4</li>

    #79318

    In reply to: line breaks

    batrachoid
    Member

    In a post, here is a quick and dirty way:
     
     
     
     
     
     
     
     
     

    In this post I used <br/>&nbsp;<br/>&nbsp;<br/>&nbsp;<br/>&nbsp;<br/>&nbsp;<br/>&nbsp;<br/>&nbsp;<br/>&nbsp;<br/>&nbsp;<br/>

    #79229

    In reply to: Google Analytics

    InvTrdr
    Member

    So paste the same code from WP just above the </head> tag?

    Thanks.

    #79330
    Olaf Lederer
    Participant

    Limit page views for guests

    there is no plugin, but it’s easy to create (this is just an example not a full working snippet)

    If your visitors are from the same network you might have problems with this.

    session_start();
    $ipkey = $_SERVER['REMOTE_ADDR'];
    $_SESSION[$ipkey]++;
    if ($_SESSION[$ipkey] >= 10) {
    header("Location: /register.php");
    exit;
    }

    check also the function on my own forum.

    #31786
    chandersbs
    Member

    Is there a plugin or a way to code this? This was a feature that helped me increase the number of registered users back then when I was using SMF.

    How can this be achieved with bbPress?

    #79314
    InvTrdr
    Member

    Thanks. Below is the code for the menu item in the header. Just one. How do I add a couple more to it?

    Thank you.

    <div id=”access”>

    <div id=”menu”>

    </div>

    </div>

    #79228

    In reply to: Google Analytics

    @Ed

    That’s totally upto you!

    Use the same code which is in WP to track the whole site as one or a different code to track the forum separately.

    #31783
    Burkie
    Participant

    I’m currently adding content to my membership page, using the memberlist plugin. I have added a few extra details to the sign up page e.g. About, Skills etc… I had found the following line echo "<a>user_url."">".$member->user_url."</a>"; so modifying this to echo $member->about; It thought it should work but doesn’t, any ideas?

    #79227

    In reply to: Google Analytics

    mba-studium
    Member

    I think you can track this seperataly with two codes.

    #79252
    johnhiler
    Member

    Check out the comments on the plugin… it’s a bit tricky to configure since you have to make sure to create the upload directory about your webroot (for security reasons):

    # make a directory /bb-attachments/ ABOVE your webroot ie./home/username/bb-attachments/

    # chmod 777 the above /bb-attachments/ directory

    It’s definitely worth it though – the security help keeps your site safe. :-)

    #31778
    Mark
    Member

    v1.0.2

    Even though by technicality you are on your profile page, when I’m viewing my ‘manage favorites’ page (bb-templates/blah/favorites.php) I’m getting ‘profile-page’ returned by bb_get_location() instead of ‘favorites-page’ as I would expect. This also means bb_is_favorites() is of no use to me for this page. :(

    If that’s not the favorites page, what is?

    #79178

    I’ll check the config file to make sure the code is correct. I have no idea where all the spam tags came from. They’re pretty lame though. whoever it is, they are wasting tons of time!

    #79209

    In reply to: Mail me after post

    @Olaf: Your sidebar is going past the end of your main div :(

    #79238
    Olaf Lederer
    Participant

    Hi,

    I don’t think that there is a standard function for that, do you tried some custom code?

    since version 1.0 it’s possible to have custom functions in the template functions.php file. Just like in wordpress.

    #79205

    That code is probably fine, the version number is okay anyway but it’s slightly different to the one above.

    There’s an upload plugin for PostImage: https://bbpress.org/forums/topic/request-image-upload-with-free-image-hosting#post-56890

    That’s the only one I know of

    #79203
    InvTrdr
    Member

    That code above did not work for me chandersbs. The one below did. Is it safe to use the one below?

    <?php

    /*

    Plugin Name: Allow Images

    Plugin URI: https://bbpress.org/#

    Description: Allows <img /> tags to be posted in your forums. The image must be a png, gif or jpeg.

    Author: Michael D Adams

    Author URI: http://blogwaffe.com/

    Version: 0.7.1

    */

    // You can add more tags here

    function allow_images_allowed_tags( $tags ) {

    $tags = array(‘src’ => array(), ‘title’ => array(), ‘alt’ => array());

    return $tags;

    }

    function allow_images( $text ) {

    if ( preg_match_all(‘/<img(.+?)src=(“|’)(.+?)\2(.*?)>/i’, $text, $matches, PREG_SET_ORDER ) ){

    foreach( $matches as $match ){

    if (preg_match(‘/src=/i’, $match[4]) /* multiple src = someone’s trying to cheat */ || !in_array(substr($match[3], -4), array(‘.png’, ‘.jpg’, ‘.gif’)) /*only match .jpg, .gif, .png*/ && ‘.jpeg’ != substr($match[3], -5) /*and .jpeg*/){

    $text = str_replace($match[0], ”, $text);

    }

    }

    }

    return $text;

    }

    add_filter( ‘pre_post’, ‘allow_images’, 52 );

    add_filter( ‘bb_allowed_tags’, ‘allow_images_allowed_tags’ );

    ?>

    #79202
    InvTrdr
    Member

    Thanks. Will the above code posted by chandersbs work in 1.0?

    Thanks.

    #79221

    That’s in a core file… what have you managed to do in your CSS to make it not go underneath? D:

    Short-term fix:

    Put this in your theme’s functions.php

    <?php
    function add_topic_br_special() { ?>
    <br />
    <?php }
    add_action( 'pre_post_form', 'add_topic_br_special');
    ?>

    #79236

    In reply to: Link to Home Page.

    It depends on your theme design.

    In mine, I have four main divs: header, content, sidebar and footer

    So on my footer.php, at the top, I put in this: <?php require('/home/domain/www/forums/my-templates/themename/sidebar.php'); ?> and then built the sidebar as I wanted it.

    #79226

    In reply to: Google Analytics

    So it works similar to WP but just that you cannot do it through Editor in WP, rather do it directly in the files on the server, correct?

    Correct. There’s no theme editor built in to BB at this time, so you have to edit the template file.

    And you can use the same GA code from WP to BB without changing anything, but as it’s a different page, you have to edit the bbPress and WordPress templates separately.

Viewing 25 results - 23,451 through 23,475 (of 32,468 total)
Skip to toolbar