Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 25,001 through 25,025 (of 32,516 total)
  • Author
    Search Results
  • #74239
    madeck
    Member

    I’ve updated. The bug is still there. I got it fixed by putting into comment

    <?php endif; echo "<!--"; do_action('topicmeta'); echo "-->"; ?>

    I did that because I think that was around where the error occured.

    #74249

    You already have a post for this: Registration Email setup – To User along with Password

    You don’t need to make multiple posts, that’s spamming :)

    You probably don’t have email capabilities as a ‘server’ on your local machine. Have you ever installed websoftware that sends emails from localhost before?

    #74238

    I’d upgrade to 0.9.0.5 personally but you could try that too :)

    #74237
    madeck
    Member

    bbPress version 0.9.0.4

    PHP version 5.2.6

    MySQL vesrion 5.0.67-community-log

    Someone told me to change :

    $this->rows_affected = mysql_affected_rows();

    for :

    $this->rows_affected = mysql_affected_rows($this->dbh);

    #14937
    stereopoly
    Member

    Hey guys,

    as many topics in this forum, this is another one concerning permalinks. I have read the FAQ here: http://bbpress.org/documentation/faq/#pretty-permalinks and I have tried both, using Options +MultiViews and also using the code generated by /bb-admin/rewrite-rules.php but I cannot seem to get my permalinks working.

    http://www.mitstil.com/community is the link to my forums.

    The bbpress installation will use pretty permalinks but my host calls it a 404! Please help!

    Tynan Beatty
    Member

    There’s no secret to it. All the info you need is in these forums. You mostly need to make sure that the […] in the following:

    define('AUTH_KEY'[...] matches define('BB_AUTH_KEY'[...]

    define('SECURE_AUTH_KEY'[...] matches define('BB_SECURE_AUTH_KEY'[...]

    define('LOGGED_IN_KEY'[...] matches define('BB_LOGGED_IN_KEY'[...]

    and define('NONCE_KEY'[...] matches define('BB_NONCE_KEY'[...]

    between your wp-config.php and bb-config.php.

    Make sure you use different table prefixes for WP and bbP.

    bb-config.php shouldn’t have anything extra defined in it past that, if you had left in WP2.8. Since you downgraded to 2.7 your bb-config.php needs to have define('WP_AUTH_COOKIE_VERSION', 1); until you upgrade back to 2.8, at which point you need to remove that line again.

    Your wp-config.php needs to have define('COOKIEPATH', '/wordpress/'); where ‘wordpress’ is the path to wherever you installed WP, or define('COOKIEPATH', '/'); if WP is in your site’s base folder.

    Visit the WP administration settings and fill out the bbPress Integration Plugin settings (but mind what I said above, you probably shouldn’t add what it suggests adding to your wp-config.php file).

    Visit the bbP administration settings and fill out the WordPress Integration settings there as well.

    As I said in the posts I linked earlier, everything works fine for me with WP2.8-RC1 or any of the betas, and bbP1.0-RC1, except that if users log in from bbP, they can’t log out from WP (which seems a somewhat trivial issue since I doubt many users will need to do that).

    Hope you can get it working.

    peace~

    Atsutane
    Member

    Nothing secret. My forum is on subdomain while my blog is on main domain.

    All i need to do is define define('COOKIE_DOMAIN', '.atsutane.net'); and define('COOKIEPATH', '/'); inside wp-config.php

    And if you are using Bbpress 1.0 RC1 with WP 2.7.1, you need to defind this define('WP_AUTH_COOKIE_VERSION', 1); inside bb-config.php.

    Another thing is, i let bbpress handle all registration and log in/log out process.

    Hope this will help you :)

    #74210
    exchequer598
    Member

    Hey thanks Ipstenu. I just tried removing this line:

    RewriteRule ^(.*/)?files/(.*) wp-content/blogs.php?file= [L]

    And the installer is running. I guess this error is resolved (Though now I’m having trouble with Step 3 of the installation, which means I’m running over to another topic).

    Thanks a lot :-)

    #74209
    RewriteRule ^(.*/)?files/$ index.php [L]
    RewriteRule ^(.*/)?files/(.*) wp-content/blogs.php?file= [L]

    What’s that for? It’s the only thing I don’t recognize.

    #67734
    Shagalaga
    Member

    Yeah give us facebook connect! :D

    sry, i’m too stupid to program such a plugin myself xD

    #74220
    michael3185
    Member

    Yay – got it! I removed the ‘fix nofollow & _blank’ code, and discovered how to add the _blank in by experimenting. bbPress wraps the URL in double quotes, so I used this;

    Click here to get it.

    Works fine. Just got to add the nofollow bit back in, though that affects forum spidering from what one of those other posts says. Well, at least I can open external links in a new window (or tab in Chrome). Thanks for the help!

    I just re-added _ck_’s code to bb-tweaks;

    add_filter(‘post_text’, ‘bb_rel_nofollow’);

    but it isn’t adding the rel=”nofollow”. No worries though, this is fine;

    Click here to get it.

    #74219
    chrishajer
    Participant

    How about posting it as HTML not bbCode, if it’s just you?

    #74218
    michael3185
    Member

    Thanks, just installed that plugin, but it’s stripping out the URL. I posted;

    Click here to get it.

    and the other bb-tweak code I mentioned turned it into;

    <ablah rel=”nofollow” target=”_blank”>Click here</ablah> to get it.

    #74216
    chrishajer
    Participant

    They don’t do anything because they don’t go anywhere. Take a look at the source (from the page you linked):

    Get it at <a >http://www.google.co.uk/chrome.</a>

    Looks like your regex is stripping out the link altogether.

    #74214
    michael3185
    Member

    I’ve had a read through some of that (brain’s worn out!) but I don’t want to force all links to open new windows, just some to external sites. Users can go external, have a read, then close that window to return to my forum. So something like;

    Click here

    As none of the members know bbcode it’ll only be me doing it. Well, if I could get it working. Hmm… Sam’s code on one of those threads does it pre-post, so I guess that would work, unless I linked to another post, which I don’t want in a new window.

    Ok, so… I added the following code from another post to my bb-tweaks.php;

    // add nofollow to externa links only
    function target_nofollow_external_only( $text ) {
    $domain="travel-writers-exchange.com"; // domain to exclude from target and nofollow
    // Strip ALL nofollow
    $text = preg_replace('|<a>|iU','</a><a>', $text);
    // Add back in when needed
    $text = preg_replace('|</a><a>]+http://))(?!([^>]+'.$domain.'))(.+)>|iU', '</a><a rel="nofollow">', $text);
    return $text;
    }
    add_filter('post_text', 'target_nofollow_external_only',999);

    It stops my links from working somehow. They highlight, but don’t do anything when clicked. (Try http://mbforum.letsdoo.org/topic/if-your-web-browser-drives-you-mad).

    #74213
    chrishajer
    Participant

    So you want links that are in replied to open in a _blank window? Just certain ones, or every one automatically? This would make any link posted in a reply open in a new windows (i.e. adds target="blank" to any link)”

    https://bbpress.org/forums/topic/open-links-in-new-window#post-15587

    #74077
    chrishajer
    Participant

    Where were you expecting the keywords? Keyword meta tags belong in the <head> section of the page. Are you talking about the admin interface or the source of the rendered page? I’m curious because I was thinking of using this as well.

    #14927
    johnhiler
    Member

    Sam mentioned that he might set up a codex for us to start documenting bbPress… so I thought it might be useful to round up useful links with info we could cleanup for a bbPress codex:

    Versions:

    http://bbpress.org/forums/topic/new-stable-version-version-0905

    http://bbpress.org/forums/topic/bbpress-10-release-candidate-1

    http://bbpress.org/forums/tags/releases

    WordPress and bbPress signin integration:

    http://bbpress.org/forums/topic/wordpress-and-bbpress-integration-101

    http://bbpress.org/forums/topic/basic-integration-screencast

    Theme integration:

    http://bbpress.org/forums/topic/seemless-wordpress-integration

    php compatibility issues:

    http://bbpress.org/forums/topic/warning-cannot-yet-handle-mbcs-in-html_entity_decode

    http://bbpress.org/forums/topic/warning-cannot-yet-handle-mbcs-in-html_entity_decode-in-home2

    Writing plugins:

    http://bbpress.org/forums/topic/overwriting-template-functions

    http://bbpress.org/forums/topic/list-of-hooksactions

    Importing data:

    http://bbpress.org/forums/topic/importing-from-phpbb

    Translation:

    http://bbpress.org/forums/topic/how-to-translate-bbpress-to-another-language

    http://bbshowcase.org/forums/topic/bbpress-translation-internationalization-into-local-languages

    Roles:

    http://bbpress.org/forums/topic/adding-a-new-user-type?replies=6#post-9210

    Miscellaneous FAQ’s:

    http://bbpress.org/forums/topic/forums-started-39-years-ago

    Please chime in and share what you’d like to see documented in a bbPress codex… and also, any links you’ve found particular valuable!

    #74208
    exchequer598
    Member

    I never saw even http://huddle.inversekarma.in/forums/index.php work!

    Here’s my .htaccess in /huddle

    RewriteEngine On
    RewriteBase /
    #uploaded files
    RewriteRule ^(.*/)?files/$ index.php [L]
    RewriteRule ^(.*/)?files/(.*) wp-content/blogs.php?file=$2 [L]
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule . - [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-.*) $2 [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(.*.php)$ $2 [L]
    RewriteRule . index.php [L]
    <IfModule mod_security.c>
    <Files async-upload.php>
    SecFilterEngine Off
    SecFilterScanPOST Off
    </Files>
    </IfModule>

    And here’s the one in /huddle/forums

    Options +MultiViews
    Options +Indexes
    IndexOptions ShowForbidden

    #14925
    michael3185
    Member

    I’ve read other posts on this, but I can’t get URLs to work with “target=_blank” when I add a link in a post. I use the BBcode-Lite plugin, and use blah, and have tried every variation of target=, with quotes, double quotes, slash quotes/double quotes – you name it. It all looks ok, but clicking the link always gives an error page of one form or another. Dammit, at this rate I’ll be on failblog.org before long..!

    This isn’t that difficult, and there are many sites that have been doing this for months now, including my own if you excuse my defense. :)

    Glad to see someone is taking charge of this however. Best of luck to those guys. :)

    #74206
    exchequer598
    Member

    Thanks Ipstenu and chrishajer.

    Yeah now I notice that the /forums/license.txt file opens up. I’ve suspected htaccess to be the source of trouble. So now what do I do to fix this? HELP :-)

    #74075
    michael3185
    Member

    Cheers tinskii – I’ll try that right away. Atsutane’s idea worked great, but to have it automatically updated is really neat.

    I’ve read in a lot of places that the Meta HTML tags are ignored by Google and others, but it’s got to be useful if some search engines still use them. Many thanks. I’ll even hack around with the code and see if I can learn anything. Though I think there’s something wrong with bbPress. Whenever I modify anything, it stops working (hehe).

    #74074
    timskii
    Member

    Below is the code I wrote for “SEO”-related tweaks. It tries to fill the description meta with something relevant, and adds keywords based on a combination of tags and site-wide words (added via the admin screen). It’s still rough round the edges. For example, it will produce duplicate descriptions on multi-page topics, and descriptions may not be terribly different from the title tag.

    <?php
    /*
    Plugin Name: SEO Tweaks
    Description: Adds description and keywords meta to the header.
    Author: Tim Howgego
    Author URI: http://timhowgego.com/
    Version: 0.1.rc
    */

    add_action('bb_admin_menu_generator', 'seo_config_menu');
    add_action('bb_admin-header.php', 'seo_config_process');

    add_action('bb_head', 'seo_meta_description');
    add_action('bb_head', 'seo_meta_keywords');

    function seo_meta_description() {

    switch ( bb_get_location() ) {

    case 'topic-page':
    $description = get_topic_title()." - ".bb_get_option( 'description' );
    break;

    case 'forum-page':
    $description = get_forum_description();
    break;

    case 'tag-page':
    if ( is_bb_tag() ) {
    $description = __('Topics tagged')." ".bb_get_tag_name();
    } else {
    $description = __('List of tagged topics.');
    }
    break;

    case 'profile-page':
    $description = __('Profile for')." ".get_user_display_name()." - ".__('includes contact information and posting history.');
    break;

    case 'view-page':
    $description = get_view_name()." - ".bb_get_option( 'description' );
    break;

    default:
    $description = bb_get_option( 'description' );
    break;
    }

    echo '<meta name="description" content="'.attribute_escape( $description ).'" />'."n";

    }

    function seo_meta_keywords() {

    // Includes enhancements by _ck_

    global $tags;
    $keywords = array();

    if ( !empty( $tags ) ) {
    foreach ( $tags as $t ) {
    $keywords[] = $t->raw_tag;
    }
    }

    $default_keywords = bb_get_option( 'seo_keywords' );

    if ( count( $default_keywords ) >0 ) {
    $keywords[] = $default_keywords;
    }

    if ( count( $keywords ) >0 ) {
    echo '<meta name="keywords" content="'.attribute_escape( implode( ", ", $keywords ) ).'" />'."n";
    }
    }

    function seo_config_menu() {
    bb_admin_add_submenu(__('SEO'), 'manage_plugins', 'seo_config_page');
    }

    function seo_config_page() {

    ?>
    <h2><?php _e('SEO Tweaks Configuration'); ?></h2>

    <form class="options" method="post" action="">

    <fieldset>
    <p><strong><label for="seo_keywords"><?php _e('Default keywords') ?></label></strong> (<?php _e('these words will be attached to every page, so only use words that describe the forum's overall content'); ?>):</p>
    <textarea name="seo_keywords" id="seo_keywords" cols="100" rows="4"><?php bb_form_option( 'seo_keywords' ); ?></textarea>
    <p><?php _e('Separate keywords with a comma. No formatting.'); ?></p>
    </fieldset>

    <fieldset>
    <?php bb_nonce_field( 'seo_config' ); ?>
    <input type="hidden" name="action" id="action" value="update_seo_config" />
    <input type="submit" name="submit" id="submit" value="<?php _e('Save Changes &raquo;') ?>" />
    </fieldset>

    </form>
    <?php

    }

    function seo_config_process() {

    if ($_POST['action'] == 'update_seo_config') {

    bb_check_admin_referer( 'seo_config' );

    if ($_POST['seo_keywords']) {
    $value = htmlentities( trim( $_POST['seo_keywords'] ) , ENT_NOQUOTES );
    if ($value) {
    bb_update_option( 'seo_keywords', $value );
    } else {
    bb_delete_option( 'seo_keywords' );
    }
    } else {
    bb_delete_option( 'seo_keywords' );
    }

    $goback = add_query_arg( 'seo_updated', 'true', wp_get_referer() );
    bb_safe_redirect( $goback );
    exit;
    }

    if ($_GET['seo_updated']) {
    bb_admin_notice( __('Changes saved.') );
    }

    }

    ?>

    #14920
    exchequer598
    Member

    I have WP-MU 2.7.1 + BuddyPress 1.0.1 installed and set up at http://huddle.inversekarma.in. I have copied bbPress 1.0 Rc-1 to http://huddle.inversekarma.in/forums. Now when I try to navigate to this address, I get the “The page you were looking for was not found” error. Is there something wrong with my htaccess? Please help! Thanks :-)

Viewing 25 results - 25,001 through 25,025 (of 32,516 total)
Skip to toolbar