Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 24,701 through 24,725 (of 32,570 total)
  • Author
    Search Results
  • #75187

    You can’t make an image size cap that will work in all browsers, but in theory you should be able to ‘crop’ the image via overflow. See http://www.w3schools.com/Css/pr_pos_overflow.asp and you’ll want to add it to .threadpost

    In theory you could also make a css entry for (I think…) .threadpostimg {} along these lines: http://phydeaux3.blogspot.com/2006/01/max-width-and-faking-it-for-ie.html (which will xplain why IE sucks).

    As for why you have that dead space… You have a left margin :) Trim that down.

    #front-page #discussions {
    margin-left: 170px;
    width: 590px;
    }

    #73777

    Actually … kinda yeah.

    This works on any page <?php if (is_topic() ) : ?><?php topic_tags(); ?><?php endif; // is_topic() ?> I have it in sidebar.php and it works fine. The reason it works is that it checks the page to see if it’s a topic and, if so, gets the tags.

    I’m guessing you want something like this on your index page etc: Topic Name – Poster Name – Tags

    You’ll need something like bb_get_topic_tags() which appears to take a $topic_id parameter.

    #74733

    _ck_ – Totally valid point. And that’s what I’m doing now :)

    PS: Trunk is totally sick on the admin side! ROCK!

    #74316

    @frooyo – Either get Donncha to explain the plugin (good luck, he’s busy) or download it for WP and study it. Honestly, I think you’re a little nuts, only because you’re picking possibly the most complicated plugin in the history of WP to convert as your first plugin :)

    deadlyhifi
    Participant

    When logging in, or out, through WordPress (MU) the following error(s) occur.

    Warning: extract() [function.extract]: First argument should be an array[...]

    and

    Cannot modify header information - headers already sent by (output started at /home/s/a/sandbox/public_html/wp-content/plugins/bbpress-integration/bbpress-integration.php:202)

    Also reported on: http://wordpress.org/support/topic/282166

    It works fine when login in through bbPress, and then accessing the admin in WPMU (user login integration shared)

    #74732
    _ck_
    Participant

    Ipstenu, what you have done is disable all the security entirely on the allow images plugin.

    Kind of defeats the purpose of the plugin which could then be accomplished with just two lines.

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

    MDA really needs to update that one, it’s becoming ancient now.

    #75160
    r-a-y
    Participant

    Hi guys,

    FYI, I’ve updated the code for the BuddyPress bar in bbPress:

    https://buddypress.org/forums/topic.php?id=1152#post-18510

    It uses bbPress’ header and footer hooks, instead of WordPress’.

    The BP bar now also works in the bbPress admin area as well!

    #74311
    johnhiler
    Member

    Frooyo – I think you are going to set a record for posting the same thing over and over! :-)

    #75183
    michael3185
    Member
    .threadpost {
    font-size: 11.5pt; /* Post content */
    padding: 16px 10px;
    margin-left: 140px;
    }

    #74731
    the_Wish
    Member

    Thanks for the suggestion, Ipstenu.

    I think bbcode-lite has me covered for now, I dumped Allow Images altogether.

    #75036
    r-a-y
    Participant

    @Sam

    Thanks for elaborating on this new class! Anxiously waiting for bbPress v1 :)

    @Burt

    Off-topic, but… wow! Post-grad particle physics?

    #74799

    Allow Images works if you change this:

    remove_filter( 'pre_post', 'bb_encode_bad' );
    add_filter( 'pre_post', 'allow_images_encode_bad', 9 );
    add_filter( 'pre_post', 'allow_images', 52 );
    add_filter( 'bb_allowed_tags', 'allow_images_allowed_tags' );

    to this

    // remove_filter( 'pre_post', 'encode_bad' );
    // add_filter( 'pre_post', 'allow_images_encode_bad', 9 );
    // add_filter( 'pre_post', 'allow_images', 52 );
    add_filter( 'bb_allowed_tags', 'allow_images_allowed_tags' );

    #75170

    In reply to: bb_meta corrupted?

    citizenkeith
    Participant

    Other than make another backup right now?

    Already done. :)

    I’m really concerned with all these MySQL errors I’m getting with MediaTemple. I’d love to find a solid, reliable host in the same price range, but I suppose you get what you pay for.

    #74730

    I was about to say “I use Allow Images without any problem”, but when I went to look at my files, I found I have an allow-images.php and an allow-images.orig … Clearly I found shenanigans somewhere down the road.

    Change this:

    remove_filter( 'pre_post', 'bb_encode_bad' );
    add_filter( 'pre_post', 'allow_images_encode_bad', 9 );
    add_filter( 'pre_post', 'allow_images', 52 );
    add_filter( 'bb_allowed_tags', 'allow_images_allowed_tags' );

    to this

    // remove_filter( 'pre_post', 'encode_bad' );
    // add_filter( 'pre_post', 'allow_images_encode_bad', 9 );
    // add_filter( 'pre_post', 'allow_images', 52 );
    add_filter( 'bb_allowed_tags', 'allow_images_allowed_tags' );

    And Allow Images should work.

    #75035
    Sam Bauers
    Participant

    @r-a-y

    There is a major incompatibility between the memcached WP_Object_Cache class that is out there and BackPress. I’m about to add a newer class to BackPress itself that will replace the currently available one.

    Once that class is added to BackPress it should fix these problems and a few others I’ve found. You’ll be able to use the new class by adding the following define to your config:

    define( 'BB_OBJECT_CACHE_TYPE', 'memcached' );

    This will be part of bbPress 1.0

    #75130
    iang
    Member

    Thanks Sam…this is exactly what I needed to get me going after being stuck for days :-)

    For completeness, here is the first working version of my code:

    <?php

    require_once(‘../bb-load.php’);

    bb_get_header();

    ?>

    <script src=”../my-js/sorttable.js”></script>

    <?php

    $tbl_header=<<<EOD

    </br>

    <h3><center><font color=”#880000″>WBS80 Registered Users</font></center></h3>

    <center><i><font size=”2″>(click on table header to sort</font>)</i></center>

    </br>

    <table class=”sortable” width=’100%’ border=’1′ cellpadding=’4′ cellspacing=’0′ align=’center’>

    <tr>

    <th>lname</th>

    <th>fname</th>

    <th>email</th>

    <th>city</th>

    <th>state/province</th>

    <th>country</th>

    </tr>

    EOD;

    $user_ids = $bbdb->get_col( “SELECT ID FROM $bbdb->users WHERE user_status = 0 ORDER BY id;”, 0 );

    foreach ($user_ids as $key => $value) {

    if ($value == 1) {

    continue;

    }

    $users = bb_get_user( $value );

    $lname = strtolower($users->last_name);

    $fname = strtolower($users->first_name);

    $email = strtolower($users->user_email);

    $city = strtolower($users->city);

    $state = strtolower($users->state);

    $country = strtolower($users->country);

    $tbl_info .=<<<EOD

    <tr>

    <td>$lname</td>

    <td>$fname</td>

    <td>$email</td>

    <td>$city</td>

    <td>$state</td>

    <td>$country</td>

    </tr>

    EOD;

    }

    $tbl_footer = “</table>”;

    $tbl =<<<TBL

    $tbl_header

    $tbl_info

    $tbl_footer

    TBL;

    print $tbl;

    ?>

    <p><h3 id=”tag”>AGE QUOD AGIS</h3></p>

    <?php bb_get_footer(); ?>

    #15119
    smfadmin
    Member

    Hi everyone…I read some posts about this problem, but wanted to find out if a different or new solution had come about. I’ve read about an issue with PHP version 5 and needing to add code to the .htaccess file. I’ve also read about adding “dummy” lines to the database file. I wondered if there are any other solutions that might be easier to understand for someone with no coding skills. I am trying to integrate WP and BBPress. My site is brand new so I can reinstall everything if I have to. I saw the really great screencast that someone did, too. That was really helpful except that it didn’t work. :-)

    The error I get says “Forum could not be created”.

    #75156
    allenweiss
    Member

    thanks..just did that and get

    Fatal error: Call to undefined function wp_head() in /home/alumnide/public_html/forum/bb-templates/kakumei/header.php on line 33

    am I still missing some code?

    #75154
    allenweiss
    Member

    Ok..thanks…well, this is what I did, but it doesn’t work. I followed the advice given in the link above:

    1. Created a function called functions.php inside my template folder (bb-templates/kakumei/functions.php) and put in it the code:

    function recreate_bb_admin_bar() {

    echo ‘<div id=”wp-admin-bar”><ul class=”main-nav”>’;

    bp_adminbar_logo();

    bp_adminbar_login_menu();

    bp_adminbar_account_menu();

    bp_adminbar_blogs_menu();

    bp_adminbar_notifications_menu();

    bp_adminbar_authors_menu();

    bp_adminbar_random_menu();

    echo ‘</div>’;

    }

    add_action( ‘wp_footer’, ‘recreate_bb_admin_bar’, 8 );

    add_action( ‘admin_footer’, ‘recreate_bb_admin_bar’ );

    add_action( ‘wp_head’, ‘bp_core_admin_bar_css’, 1 );

    2. Added to my bb-config.php file, this line

    require_once(‘../wp-blog-header.php’);

    Am I still missing something? Thanks

    #75166

    Ok, now when I’ve added all the settings it’s giving me this error message on another screen.

    Warning: fopen(D:Hosting4030532htmlForums/bb-config.php) [function.fopen]: failed to open stream: Permission denied in D:Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1036

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043

    Warning: fclose(): supplied argument is not a valid stream resource in D:Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1050

    Warning: chmod() [function.chmod]: No such file or directory in D:Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1052

    Warning: Cannot modify header information – headers already sent by (output started at D:Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php:1043) in D:Hosting4030532htmlForumsbb-includesfunctions.bb-core.php on line 1095

    #15123

    I’ve been inputting my

    Database name

    Database user

    Database password

    exactly how they appear in “wp-config” (copy & pasted) but it keeps telling me

    “There was a problem connecting to the database you specified.

    Please check the settings, then try again.”

    I’m guessing it has something to do with the advanced settings, which I have not changed. I’m with GoDaddy but it said in 99% of all cases you should leave it the same.

    Any help guys? :(

    #75147

    Why not load the bbPress environment and then call function to check is user is logged in? I have done the same in WP, so I think it might be possible in bbPress very easily too.

    For WP

    // load the WP environment so that I can call on the WP functions to make sure that user is logged in before accessing members area
    require( dirname(__FILE__) . '/wp-load.php' );

    if (!is_user_logged_in()) // You can't access the members area without login. Now can you?
    {
    auth_redirect();
    }

    For bbPress, it should be like

    require('./bb-load.php');
    // find the name of the function you will need

    #75040
    yeknomedoc
    Member

    *push* ;)

    #75141

    Thanks guys. I must say this forum is very friendly. I will definately give this a go. If I have any problems I won’t hesitate to come back :-)

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