thekmen (@thekmen)

Forum Replies Created

Viewing 25 replies - 1 through 25 (of 33 total)
  • @thekmen

    Member

    as far as I know google only allow 3 ad units per page, not sure about link units.

    If you are displaying a goodle ad in your header, sidebar or anywhere else, this is probably the reason only 2 are displaying in the loop.

    @thekmen

    Member

    I have been using bbPM for well over a year without any issues, great plugin.

    @thekmen

    Member

    I have done a good few wordpress/bbpress cookie/log in integrations at this stage.

    The easiest way I find to get it to work as expected is place the following in my bb-config.php

    define('BB_AUTH_KEY',        'YOUR_AUTH_KEY');
    define('BB_SECURE_AUTH_KEY', 'YOUR_SECURE_AUTH_KEY');
    define('BB_LOGGED_IN_KEY', 'YOUR_LOGGED_IN_KEY');
    define('BB_NONCE_KEY', 'YOUR_NONCE_KEY');
    define('COOKIEHASH', md5('Domain Name'));
    define('BB_COOKIEHASH', md5('Domain Name'));
    $cookiehash = md5('Domain Name');
    define('BB_HASH', md5('Domain Name'));

    and the following in your wp-config.php

    define('AUTH_KEY',        'YOUR_AUTH_KEY');
    define('SECURE_AUTH_KEY', 'YOUR_SECURE_AUTH_KEY');
    define('LOGGED_IN_KEY', 'YOUR_LOGGED_IN_KEY');
    define('NONCE_KEY', 'YOUR_NONCE_KEY');
    define('COOKIEHASH', md5('Domain Name'));

    Replace the KEY values with those generated here: https://api.wordpress.org/secret-key/1.1/

    Also i’m not sure which of the bbPress cookie bits is needed, I presume it’s only one of them.

    Hope this helps.

    @thekmen

    Member

    I copied all the required styles from WP to the bbPress theme.

    If you look at the source of the WP end, you will see I placed 2 <–COPY–> here markers for the Page & Cat nav, then in the bbPress backend theme options you just paste that code.

    In reply to: Need A Project ShowOff

    @thekmen

    Member

    I think you need to check the design in multiple browsers, looks all wrong in firefox 3.0.14 on linux.

    Also, the advise offered isn’t great.

    This post: http://needaproject.com/discussion/topic.php?id=5 is just wrong.

    Adding/removing profile fields should be done by filtering the get_profile_info_keys function, no need to redesign any template files.

    @thekmen

    Member

    If you don’t have a functions.php in tour theme folder, just create one & add the above code, just make sure to include the opening & closing functions, so it would look like

    <?php
    function bb_reset_newpostlink() {
    global $link, $topic_id;
    $link = get_topic_link( $topic_id );
    }
    add_action( 'bb-post.php', 'bb_reset_newpostlink' );
    ?>

    In reply to: Oops, I Broke It

    @thekmen

    Member

    sounds like a cookie issue, delete all cookies & try again.

    @thekmen

    Member

    sorry, sounds like you have a plugin enabled that uses the allow_images_allowed_tags function & looking at my above post, there is also some unneeded code.

    try:

    <?php
    /*
    Plugin Name: My Images
    Plugin URI: https://bbpress.org/
    Description: Allows <img /> tags to be used in forums.
    */

    add_filter( 'bb_allowed_tags', 'my_images_allowed_tags' );
    function my_images_allowed_tags( $tags ) {$tags['img'] = array('src' => array(), 'title' => array(), 'alt' => array(), 'class' => array()); return $tags; }
    ?>

    @thekmen

    Member

    create a file in your my-plugins directory called my images or something like that.

    add the following code

    <?php
    /*
    Plugin Name: My Images
    Plugin URI: https://bbpress.org/
    Description: Allows <img /> tags to be used in forums.
    */

    add_filter( 'bb_allowed_tags', 'allow_images_allowed_tags' );
    function allow_images_allowed_tags( $tags ) {$tags['img'] = array('src' => array(), 'title' => array(), 'alt' => array(), 'class' => array()); return $tags; }
    add_filter( 'get_profile_info_keys','bb_member_id_in_profile',255);
    function bb_member_id_in_profile($keys) {
    global $self;
    if (empty($self)==true && isset($_GET['tab'])==false && bb_get_location()=="profile-page") {
    (array) $keys=array_merge(array_slice((array) $keys, 0 , 1), array('ID' => array(0, __('Member #'))), array_slice((array) $keys, 1));
    }
    return (array) $keys;
    }
    ?>

    Activate the plug in & all should work as long as you use

    <img src="" alt="" title="" class="" />

    @thekmen

    Member

    Thanks for the help, I managed to fix the issue by using

    define('BB_HASH', md5('my key here'));

    in bb-config.php

    @thekmen

    Member

    I wish I didn’t, but I do…bbPress is setting a cookiehash & I need to change it, I thought this would be possible by using

    define('BB_COOKIEHASH', md5('my key here'));

    or

    define('COOKIEHASH', md5('my key here'));

    in my bb-config.php, but whatever I use as ‘my key here’ makes no difference to the cookies created by bbPress, any other ideas?

    @thekmen

    Member

    I know what my cookiehash is & am including it in the wp-config.php files, it’s just bbPress that doesn’t seem to set a cookie using the define(‘COOKIEHASH’, md5(‘my key here’));, I have also tried using define(‘BB_COOKIEHASH’, md5(‘my key here’)); but still no joy.

    @thekmen

    Member

    Looks like you are still using the default kakumei theme in bb-templates/kakumei.

    As well as renaming your modified template in my-templates/ have you edited that themes style.css to reflect the new name? then selected that new name in your admin/themes selection?

    @thekmen

    Member

    thanks _ck_ works perfectly…

    In reply to: howto find user ids?

    @thekmen

    Member

    Hi _ck_ and thanks for the answer. The function above works perfectly when viewing the users profile page, is there any easy way to see the user id on the bbPress users.php page? would save having to go to each users profile to get the id.

    I did ask on the plugin page, but also asked here as this forum seems to get a lot more replies.

    @thekmen

    Member

    Thanks _ck_, just tried that and it seems to work ok…

    @thekmen

    Member

    Perfect _ck_, thank you, that’s all I needed.

    For anyone else interested I added class to the array so I can style the images, so the function now reads:

    add_filter( 'bb_allowed_tags', 'allow_images_allowed_tags' );
    function allow_images_allowed_tags( $tags ) {$tags['img'] = array('src' => array(), 'title' => array(), 'alt' => array(), 'class' => array()); return $tags; }

    then added:

    .featureimage {
    padding: 4px;
    background: #eee;
    border: 1px solid #ccc;
    max-width:560px;
    }
    .thumbnail {
    float: left;
    width: 100px;
    height: 100px;
    margin: 0 20px 10px 0;
    padding: 4px;
    background: #eee;
    border: 1px solid #ccc;
    }

    to my style.css

    @thekmen

    Member

    Thanks Chris, couldn’t get that to work.

    Has anyone else any other solutions? Is it really this hard to add an image to a topic?

    @thekmen

    Member

    Nothing special to be done if you are using bbPress 1.0 as position-1 will be added as a div id to the first post in each thread.

    So you only need to add something like

    #position-1 .threadpost { background: #FF9; }

    to your theme css file to style the first post.

    @thekmen

    Member

    Thanks Sam, just tried adding this to the css

    #position-1 .threadpost {
    background: #FF9;
    }

    on the 1.0 release & it works perfectly…

    In reply to: bbPress 1.0 released

    @thekmen

    Member

    Sam, can you update the theme used here to make the FRESHNESS column clickable to the last post? It’s a pain in the a** to have to always view the first page if you have already read it…

    Love the new admin interface of 1.0 by the way, thanks…

    @thekmen

    Member

    If you are willing to look at the source after the first post is added, you could add styles to suit that post to your css.

    something like:

    #thread #post-3 .threadpost { background: #7CFC00; }
    #thread #post-3 .threadauthor img { display:none }
    #thread #post-3 .threadauthor { background: url(images/question.jpg) no-repeat 0 0; width: 80px;
    height: 80px; }

    should work ok for that page.

    other than that, i’m sure you could find a jQuery solution to find the first post in a thread & style it.

    @thekmen

    Member

    Try deleting all your cookies or using another browser to log in & see if it lets you.

    @thekmen

    Member

    I can’t really add to the argument except to say that I never tried any older versions, so downloaded RC1 last week & love it. I only have one issue mentioned in another thread, I can’t get the function bb_new_topic_link();

    to work but have worked around that for the moment using hardcoded links. The function is only used in 3 places so it’s not much of an issue.

    I am using it on a live site for less than a week now – http://xfactor-updates.com/forum/ – its quiet at the moment but will get busy & fully tested in the next few months

    As WordPress 2.8 is due out the door any day with it’s new widget classes, a lot of themes will have to be upgraded to take advantage of the changes so I can see a lot of people leaving WordPress 2.5, 2.72 and so on behind and making the switch to 2.8.

    The sooner bbPress can be fully integrated with WP 2.8 the better in my opinion.

    @thekmen

    Member

    What version are you using? I am using RC1 and if you view any post as admin, there is a link at the bottom to make a post sticky.

Viewing 25 replies - 1 through 25 (of 33 total)