Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 17,976 through 18,000 (of 32,573 total)
  • Author
    Search Results
  • #39509
    tnwinn
    Member

    Hi, I am using a custom theme, which I am not the author of. I have, however, made quite a few changes to the css of my current theme. In order to try and fully integrate the bbpress plugin, I tried to set up a child theme (according to JJJ instructions), but it seems that my current theme just doesn’t support one. My question is, where do I go from here?

    The other interesting thing is that I changed from a standalone bbpress to the plugin, and imported all of our topics, post, etc. just fine. What also appeared, surprisingly, was the custom edits we had made to our standalone bbpress forum. Can someone tell me how/where it is pulling these codes/styles from?

    Thanks in advance!!

    gogo-gringo.com

    gogo-gringo.com/forum

    #107317
    #107926
    sureshdrim
    Participant

    @Pimarts:

    The author has used <iframe> tags in the plugin. On validating page that contains facebook like button, shows following markup error:

    1) element “iframe” undefined

    …0px;align:left;margin:10px 0px 0px 0px”></iframe><div id=”ajax-response”></div>

    2) there is no attribute “style”

    …lorscheme=light&font=arial” style=”border:none;overflow:hidden;width:450px…

    3) there is no attribute “src”

    <iframe src=”http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.the…

    The code rendered in browser for this button is as follows

    <iframe src=”http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.thecollegehunt.com%2Ftopic%2Fsupport-ipl&layout=standard&show_faces=false&width=450&action=like&colorscheme=light&font=arial&#8221; style=”border:none;overflow:hidden;width:450px;height:30px;align:left;margin:10px 0px 0px 0px”></iframe>

    Hope author of this plugin “Gautam” (if I am not wrong) is reading this post.

    #39507
    mrwolfy
    Member

    I get the following (code on the bottom) errors before installation. I can get the setup going, but the final install, after step 3 fails. I get the following message:

    “The database failed to install. You may need to replace bbPress with a fresh copy and start again.”

    error code:

    Deprecated: Assigning the return value of new by reference is deprecated in /usr/www/users/zensmart/comicbookusers/forum/bb-admin/includes/class.bb-install.php on line 1283

    Deprecated: Assigning the return value of new by reference is deprecated in /usr/www/users/zensmart/comicbookusers/forum/bb-includes/functions.bb-l10n.php on line 484

    Warning: Cannot modify header information - headers already sent by (output started at /usr/www/users/zensmart/comicbookusers/forum/bb-admin/includes/class.bb-install.php:1283) in /usr/www/users/zensmart/comicbookusers/forum/bb-admin/includes/class.bb-install.php on line 393

    Deprecated: Assigning the return value of new by reference is deprecated in /usr/www/users/zensmart/comicbookusers/forum/bb-includes/backpress/pomo/mo.php on line 171

    Warning: Cannot modify header information - headers already sent by (output started at /usr/www/users/zensmart/comicbookusers/forum/bb-admin/includes/class.bb-install.php:1283) in /usr/www/users/zensmart/comicbookusers/forum/bb-admin/includes/class.bb-install.php on line 393

    Warning: Cannot modify header information - headers already sent by (output started at /usr/www/users/zensmart/comicbookusers/forum/bb-admin/includes/class.bb-install.php:1283) in /usr/www/users/zensmart/comicbookusers/forum/bb-includes/functions.bb-core.php on line 1136

    #39505
    spaghetti
    Member

    How come I cannot start a new topic here at bbpress? Can someone help me with this? Tons of thanks :)

    #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(

    __( ‘Register – lost 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 :)

Viewing 25 results - 17,976 through 18,000 (of 32,573 total)
Skip to toolbar