Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 17,926 through 17,950 (of 32,506 total)
  • Author
    Search Results
  • #107577
    spaghetti
    Member

    I am suspecting it’s because we were both registered here using another account. I think we have to register or log-in using our WP log in ID’s. Can anyone help us here? Thanks :)

    #107264
    Mike1233
    Member

    yes youre right.

    my fear is 300 sub-plugins too ;)

    but i have today too many and with this toolbar came more.

    #63094
    acoburn4
    Participant

    Still not working :(

    The code is coming through differently in my email, so I posted a link to it making sure I have the syntax right: http://pastie.org/2362857

    Internal links are still ok; external links look like this in Firebug:

    https://picasaweb.google.com/lh/photo/Px6V4Z7PfKk6Gpv5x_Uh4Q?feat=directlink

    #39497
    peaceharbor
    Member

    I heard I can place my WP registration URL in this code below, overwriting the old code, to reroute my forum users to register on my WP site instead of using bbPress registration. My forum and site are already linked. Everything is good to go other than this minor issue. Can anyone help/advise? Thanks…

    <form class=”login” method=”post” action=”<?php bb_uri( ‘bb-login.php’, null, BB_URI_CONTEXT_FORM_ACTION + BB_URI_CONTEXT_BB_USER_FORMS ); ?>”>

    <div class=”loginformtop”>

    <div class=”usernamelogin”>

    <label>

    <input value=”<?php _e(‘Username’); ?>” onfocus=”if(this.value=='<?php _e(‘Username’); ?>’){this.value=”;}” onblur=”if(this.value==”){this.value='<?php _e(‘Username’); ?>’;}” name=”user_login” type=”text” id=”quick_user_login” size=”13″ maxlength=”40″ value=”<?php if (!is_bool($user_login)) echo $user_login; ?>” tabindex=”1″ />

    </label>

    </div>

    <div class=”passwordlogin”>

    <label>

    <input value=”<?php _e(‘Password’); ?>” onfocus=”if(this.value=='<?php _e(‘Password’); ?>’){this.value=”;}” onblur=”if(this.value==”){this.value='<?php _e(‘Password’); ?>’;}” name=”password” type=”password” id=”quick_password” size=”13″ maxlength=”40″ tabindex=”2″ />

    </label>

    <label class=”rememberme”>

    <?php _e(‘Remember me’); ?>

    <input name=”remember” type=”checkbox” id=”quick_remember” value=”1″ tabindex=”3″<?php echo $remember_checked; ?> />

    </label>

    </div>

    <input name=”re” type=”hidden” value=”<?php echo $re; ?>” />

    <?php wp_referer_field(); ?>

    <input type=”submit” name=”Submit” class=”submit” value=”<?php echo esc_attr__( ‘Log in »’ ); ?>” tabindex=”4″ />

    <p class=”loginmeta”>

    <?php

    printf(

    __( ‘Registerlost password?‘ ),

    bb_get_uri( ‘register.php’, null, BB_URI_CONTEXT_A_HREF + BB_URI_CONTEXT_BB_USER_FORMS ),

    bb_get_uri( ‘bb-login.php’, null, BB_URI_CONTEXT_FORM_ACTION + BB_URI_CONTEXT_BB_USER_FORMS )

    );

    ?>

    </p>

    </div>

    </form>

    #63093
    _ck_
    Participant

    I just realized I am not escaping < and > in that code.

    It most probably should be.

    So anywhere you do not see a slash in front, add one, ie.

    <

    >

    actually to be more clear, try this

    $text = preg_replace('|<a (.*)rel=['"]nofollow['"]([^>]+)?>|iU','<a $1>', $text);	// strip ALL nofollow
    $text = preg_replace('|<a (?=([^>]+http://))(?!([^>]+'.$domain.'))([^>]+)>|iU', '<a $1 rel="nofollow" target="_blank">', $text);

    sorry, don’t have time to debug it more, someone will have to throw it into a regex tester and check it against some same sample links

    #63091
    _ck_
    Participant

    Don’t really have the time to debug all that but if it’s selecting too much, try replacing this

    (.+)

    with this

    ([^>]+)

    which hopefully will stop it from going past the end of the anchor tag

    #63090
    acoburn4
    Participant

    @_ck_, Nevermind my earlier post. It is already working on sub-domains. Sorry for the confusion.

    However, I am having the same problem as @cwdnow. Internal links are working as expected: they open in same window with “nofollow” tag removed.

    The code is broken when it deals with external links, though. It adds the attributes target=”_blank” and rel=”nofollow” but the URL is broken. I haven’t dug too deep yet, but I think the reg ex is too broad (selecting too much).

    Here is the code that I’m using:

    http://pastie.org/2361825

    Here is what it is outputting:

    https://picasaweb.google.com/lh/photo/Px6V4Z7PfKk6Gpv5x_Uh4Q?feat=directlink

    I will post an update if I figure out what it is. In the meantime, do you happen to know what is causing this?

    #63089
    acoburn4
    Participant

    @_ck_, I am using your code to open external links in a new window and add the attribute “nofollow”

    My site also has sub-domains, so I wanted to add a case for that. My reg ex skills are not that great. Do you know how I could do that?

    Code I’m using:

    http://pastie.org/2361268

    Thanks for your help!!

    #107915
    Anointed
    Participant

    td.bbp-topic-title a { color: green; }

    works for me

    #95678
    folgerj
    Participant

    I haven’t seen anything that would allow them to register with their facebook account… I assume there may be a way to do this but using this to by pass the registration process is what I was thinking that way they could comment or reply with out becoming a registered user.

    I don’t know if something like this is even practical.. I just assume all of you are more experienced with this so I look to learn what is working for you.

    I’m not a code hacker (editing the PHP is a mystery to me.. I can do it as long as some says what the insertion point is… (has to be dummy proof for me)…

    I updated to RD2 2.0 and I haven’t seen any glitches but I don’t have very many users and I’m going to try to sticky and super sticky topic post and see what happens…

    Is there a PDF online that will tell me what these thing should do versus what I see them actually do?

    #95689
    folgerj
    Participant

    I haven’t seen anything that would allow them to register with their facebook account… I assume there may be a way to do this but using this to by pass the registration process is what I was thinking that way they could comment or reply with out becoming a registered user.

    I don’t know if something like this is even practical.. I just assume all of you are more experienced with this so I look to learn what is working for you.

    I’m not a code hacker (editing the PHP is a mystery to me.. I can do it as long as some says what the insertion point is… (has to be dummy proof for me)…

    I updated to RD2 2.0 and I haven’t seen any glitches but I don’t have very many users and I’m going to try to sticky and super sticky topic post and see what happens…

    Is there a PDF online that will tell me what these thing should do versus what I see them actually do?

    Isabelle
    Member

    Additional info: put bbpress-fr-FR.mo in plugins/bbpress/bbp-languages

    And use this in my functions.php (in my theme):

    Code:
    function theme_init(){
    load_theme_textdomain(‘community’, get_template_directory() . ‘/languages’);
    }
    add_action (‘init’, ‘theme_init’);

    #107871

    In reply to: Private Messaging

    pimarts
    Participant

    It’s Pim (not prim :)) Arts, but why not?

    I use buddypress pretty much only for the private messaging & the avatar / profiles. I don’t use the activity / groups stuff, which can be easily disabled. The forum runs on a separate bbpress plugin (not using the buddypress one).

    #107870

    In reply to: Private Messaging

    Mike1233
    Member

    yes a private message and avatar plugin fpr bbpress 2.0 are great.

    @primarts

    for me buddyress no option too ;)

    #95672
    drizzt82
    Member

    bbpress RC2:

    1. The search does not work. It searches only in the wordpress default pages, not in forum posts.

    2. The profile edit does not work. It ends with fatal error:

    Fatal error: Call to a member function get_error_codes() on a non-object in … bbpress/bbp-includes/bbp-common-functions.php on line 1392

    3. Stick a top to the front and close it. Add another topic and make it sticky to a forum only. The super sticky topic does not appear everywhere anymore.

    #95683
    drizzt82
    Member

    bbpress RC2:

    1. The search does not work. It searches only in the wordpress default pages, not in forum posts.

    2. The profile edit does not work. It ends with fatal error:

    Fatal error: Call to a member function get_error_codes() on a non-object in … bbpress/bbp-includes/bbp-common-functions.php on line 1392

    3. Stick a top to the front and close it. Add another topic and make it sticky to a forum only. The super sticky topic does not appear everywhere anymore.

    #107254
    Mike1233
    Member

    thanks. Works great. Is there any hardcode way to change the folder to uploads/forum?

    #95670
    rsmb41
    Member

    Both files

    page-front-forums.php

    archive-forum.php

    Has the correct code

    <?php bbp_get_template_part( 'bbpress/content', 'archive-forum' ); ?>

    #95681
    rsmb41
    Member

    Both files

    page-front-forums.php

    archive-forum.php

    Has the correct code

    <?php bbp_get_template_part( 'bbpress/content', 'archive-forum' ); ?>

    #67547
    gotmedia
    Member

    Hey there!

    I found a solution by checking out how to tweak the avatar size for standard Gravatars in WordPress and then applied it to the BBPress code like so:

    <?php post_author_avatar_link(‘avatar_size=100’); ?>

    I know it’s 2 years ago someone posted, but I figured it might be useful to somebody :)

    #107316

    thanks i’m really enjoying bbpress plugin version, after some day of testing now i think it’s really great ;)

    #107692

    In reply to: [2.0/RC1] My Theme

    Mike1233
    Member

    you awesome ;) thanks for help and give this.

    have an idea how can change the link in the breadcrumb? the forums link bring me to bbpress standard site but i have made my own site with shortcodes.

    #95664
    master5o1
    Participant

    </a> and </span>. Posting HTML as code is using the backticks (` on the ~ key).

    #95675
    master5o1
    Participant

    </a> and </span>. Posting HTML as code is using the backticks (` on the ~ key).

    #39444
    Matalina
    Member

    I get the following error when my users try to update their account information through bbPress user pages:

    Fatal error: Call to a member function get_error_codes() on a non-object in /wp-content/plugins/bbpress/bbp-includes/bbp-common-functions.php on line 1392

    I disabled all plugins other than bbpress and still get the same error.

    WordPress is up todate.

    bbPress is up todate.

    I’m using a custom theme based off of what was in the bbPress folder, but I didn’t update the files to rc1 template files, could this be the issue?

Viewing 25 results - 17,926 through 17,950 (of 32,506 total)
Skip to toolbar