Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 17,901 through 17,925 (of 32,499 total)
  • Author
    Search Results
  • #68069
    philsown
    Member

    Ratsoid2 – Consider this me asking. Please let us know what you did to get avatars working. Thanks :-)

    #107969

    Cool! Great job. I am in love with responsive designs :)

    janoochen
    Member

    I started a loop with this loop opening:

    <?php // Display the top topics of current forum
    $args = array(
    'post_type' => 'topic',
    'posts_per_page' => '3',
    'post_parent' => $post->ID,
    'gdsr_sort' => 'thumbs',
    'gdsr_ftvmin' => '1',
    'gdsr_order' => 'desc',
    'order' => 'DESC'
    );
    ?>

    <?php endif; ?>

    <div class="entry-list-all">

    <?php do_action( 'bbp_template_before_topics_loop' ); ?>

    <?php query_posts( $args ); ?>

    <?php while ( have_posts() ) : the_post(); ?>

    All bbpress elements appear except those that display the author’s picture:

    <?php printf( __( 'Started by: %1$s', 'bbpress' ), bbp_get_topic_author_link( array( 'size' => '14' ) ) ); ?>

    and

    <?php bbp_author_link( array( 'post_id' => bbp_get_topic_last_active_id(), 'size' => 14 ) ); ?>

    They used to display in bbpress beta.

    Is there any way to display them again?

    #39529
    manager2
    Member

    I am using BbPress plugin forum for WordPress.

    When I create new topic it has a field for tags, which I enter with commas between normally.

    THE THING IS THE TAGS DON’T DISPLAY ANYWHERE ON FORUM.

    I think before I updated, the tags appeared on top of the page when reading discussion, but now there are’n there, anywhere.

    DID I MESS THE CODE, or are tags not displayed anymore in the new versions of bbpress WordPress plugin?

    #39512
    eliZZZa
    Member

    I don’t get bbPress with WP and BuddyPress to work properly – maybe because I don’t understand the central point (and yes, I read everything I could get hold of ;)

    My configuration:

    WordPress 3.2.1.

    BuddyPress 1.5.2 beta

    bbPress 2.0-rc-2

    site http://www.nadelspiel.com/clubneu/

    BP 1.5.2 beta included a complete bbPress folder within the directory /buddypress/bp-forums,

    I was able to run the install/setup through BP administration.

    On the site I see group forums only.

    I am confused as of having to install the bbPress Plugin too. Because if I do, the forums administration shows up in my WP control panel. But still the general forums don’t show in the frontend.

    So, what am I missing? I am really desperate!

    Thank you for your help, kind regards from Austria,

    eliZZZa

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

Viewing 25 results - 17,901 through 17,925 (of 32,499 total)
Skip to toolbar