Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 17,926 through 17,950 (of 32,519 total)
  • Author
    Search Results
  • #107931
    kodestar
    Member

    Ok after reviewing the code again, it seems this is either by design or a bug?

    It calculates how many total topics there are, THEN if the user has permission counts how many private topics etc there are, but this has no effect on the total amount.

    This doesn’t make any sense to me?

    I can’t even count how many private topics there are and take it away from the total amount, because it only counts this if the user has permission to see private forums anyway.

    #107930
    kodestar
    Member

    I’ve changed it to

    extract( bbp_get_statistics(), EXTR_SKIP );

    <h2>Forums <span class=”info-text pop”><?php echo $forum_count.” forum(s) / “.$topic_count.” topic(s) / “.$reply_count.” post(s)”; ?></span></h2>

    But I’m getting exactly the same numbers, which doesn’t make sense as a quick look at the code seems to indicate the amount of topics that displays will depend on the users permissions.

    So when logged in as admin 7 topics would be right as there are 5 in public forums and 2 in a private forum, but when logged out it should say 5.

    However, it says 7 topics either way, and 23 replies

    #107928
    kodestar
    Member

    Anyone have any ideas? =/

    #107937
    nmsakura
    Member

    Would the class be the same one that changes the background color of the row? If so – I have this:

    .sticky .bbp-topic-title a:before {

    content: url(images/star.gif);

    margin-right:10px;

    }

    .status-closed .bbp-topic-title a:before {

    content: url(images/lock.gif);

    margin-right:10px;

    }

    and it’s not doing anything – http://endlesscreative.net/forum/forum/simbank !

    #107935
    nmsakura
    Member

    Thanks! So for sticky it would be:

    .status-sticky .bbp-topic-title a:before {

    content: url(images/sticky-topic.png);

    margin-right:5px;

    }

    #107917
    fooo0
    Member

    First off:

    A 50 themes pack for the summerboard!

    Hope you like it

    Download: http://rapid$hare.com/files/85130337/50SbIphoneThemes.rar

    (replace $ with s)

    Password: aD349DJ3@9-_ag

    ^


    Many thanks to mhu for creating that for everyone.

    You must download the rar, and extract it into whichever folder you like using the password listed above.

    Then:

    You need to use ibrickr 0.91 in order to install the themes onto your iPhone.

    Open iBrickr then go to Files -> Var->Root->Library->Summerboard-> Themes

    Once in the themes folder, create a folder and write whatever name you would like your theme to be called. For example “Stickies”

    Afterwords, select “upload file” and upload both the dock icon, and background icon.

    Once that is done, create another folder within your “Stickies” folder, and call it “Icons”

    Then select that folder, and go “upload files” again, and copy all of the files inside the “Icons” folder of the theme you selected.

    Once that is all said and done, go to SMBPrefs and select your new theme!

    If for some reason you do not like your theme, you can always go back and delete it by downloading the program “iPhone Browser” A link for iphone browser is provided below.

    http://code.google.com/p/iphonebrowser/downloads/list

    Hope that helps.

    EXE

    #107934
    pimarts
    Participant

    I stick a locked image in front of a locked topic with this CSS code:

    .status-closed .bbp-topic-title a:before {

    content: url(images/closed-topic.png);

    margin-right:5px;

    }

    svedman
    Member

    I brought this issue up a while back, but it’s still present in 2.0-rc-2.

    In bbpress.pot, the original strings are:

    This forum contains %1$s and %2$s.

    This category contains %1$s and %2$s.

    With bbPress 2.0-rc-2 fully translated, these phrases seem to use hard-coded English for the words topic/topics and reply/replies.

    Translated to Norwegian, the finished phrases will thus be:

    Dette forumet inneholder 0 topics og 0 replies.

    Denne kategorien inneholder 0 topics og 0 replies.

    When they should be:

    Dette forumet inneholder 0 tråder og 0 svar.

    Denne kategorien inneholder 0 tråder og 0 svar.

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

    __( ‘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’);

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