Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 23,701 through 23,725 (of 32,481 total)
  • Author
    Search Results
  • #78692
    gerikg
    Member

    this is the code I use… (in post.php) hopefully that can lead you in the right track to finding the right code for your plugin.

    <?php echo bp_core_get_avatar( get_post_author_id() ); ?>

    #78557
    Olaf Lederer
    Participant

    I think you need more since there are sites providing buddypress+wordpress+bbpress ;)

    success with your free hosting site

    #76967
    Marius-
    Member

    kirpi.it, here is the code, like Kawauso pointed out:

    #latest th a, #forumlist th a, #favorites th a {style.css (line 714)
    -moz-border-radius-bottomleft:6px;
    -moz-border-radius-bottomright:6px;
    -moz-border-radius-topleft:6px;
    -moz-border-radius-topright:6px;
    background-color:#9D0000;
    border:1px solid #FFFFFF;
    color:#FFFFFF;
    padding:2px;

    You can see this theme in action at http://www.michaeljackson.no/forum

    #76966

    It’s using class new-topic, so you’d need .newtopic {}… it can’t be found because there’s no actual CSS affecting it specifically. I’d recommend using Mozilla Firefox’s DOM inspector or looking at the HTML source to find class/ID tags for things.

    Oh, and it’s affected by (in Kakumei at least):

    #latest th a, #forumlist th a, #favorites th a and a:visited

    #77510

    In reply to: All RSS Feeds Broken?

    That’s weird. Seems to be throwing <![CDATA in still… could you check if there’s a rss2.php in your template’s directory and if so either change that or delete it? That’s the only thing I can think of that might be causing that. Forgot themes usually copy everything.

    #78646

    In reply to: If BBpress then, else

    If they are deeply integrated then you will have a hard time figuring this out as if you ask Is this is WP? WP will say yes and if you ask Is this is bbP? then bbP will say yes and if they are deeply integrated then both questions will return a yes.

    #76108

    In reply to: Categories at the top?

    Hmm? I accidentally left the comment saying // List forums in there, but in actual fact that will only return categories, not forums in them because it does the bb_get_forum_is_category() check. If you’re referring to the normal forum code in frontpage.php, taking that out will take out the normal list of forums you see there, so I’m not sure if that’s what you want to do.

    #78593

    Sorry about that! :)

    #76107

    In reply to: Categories at the top?

    rgregory1
    Member

    Thanks mate, and then I remove the similar code at the bottom? Because if I understand correctly, I will then have two listings of forums.

    #78591

    @ashfame have a look at the bottom of front-page.php, it should read <div class="bbcrumb"><a href="<?php bb_uri(); ?>"><?php bb_option('name'); ?></a> &raquo; <?php _e('Add New Topic'); ?></div>. Your code seems to have somehow dropped everything between the last two PHP snippets and the trailing </div> too. That’s not being returned by the breadcrumb function though at least, so it should be easier to fix :) if it doesn’t work with your template’s front-page.php deleted/renamed though, there might be something wrong with your core files.

    #78590

    @gerikg he’s trying to fix an additional <a> with no closing tag in the new post form, not generate a link to it :)

    #31639
    gerikg
    Member

    WPMU+BuddyPress+BBpress

    How do you write the php code to say

    if in a bbpress side

    do this

    if wordpress (or else) do that.

    ?

    #78588
    chandersbs
    Member

    Maybe you can hardcode the URL like this http://domain/forum.php?id=9#postform

    #78587

    @kawauso

    Mine post-form.php is exactly the same as that of Kakumei.

    I can trace the problem to an unclosed anchor tag <a> which is in bbcrumb DIV.

    http://validator.w3.org/check?uri=http%3A%2F%2Fbbpress.ashfame.com%2F%3Fnew%3D1&charset=(detect+automatically)&doctype=Inline&group=1&ss=1#line-86

    Where does this code comes from? I mean which file?

    Username:demo

    Password:demo

    @gerikg

    I don’t get any of what you are trying to tel me. Probably you misunderstood my question.

    #73176

    In reply to: target _blank

    Fernando Tellado
    Participant

    Great idea!

    I’ve applied this way and works fine … 

    <?php

    /*

    Plugin Name: Target Blank

    Plugin URI: https://bbpress.org/forums/topic/target-_blank

    Description: Abre los enlaces del foro en nueva ventana. Nada que configurar, lo activas y funciona. Creado desde una idea de _ck_.

    */

    function bb_target_blank( $text ) {

    $text = preg_replace('||i', '', $text);

    return $text;

    }

    add_filter('post_text', 'bb_target_blank',255);

    ?>

    Thanks _ck_ ;)

    #78658

    I’m afraid I didn’t make it, so I can’t help you too much there, sorry. You used the full ID after http://www.facebook.com/group.php?gid= right?

    #78669
    Fernando Tellado
    Participant

    You may do it by .htaccess … 

    From www to no-www

    Options +FollowSymLinks

    RewriteEngine on

    RewriteCond %{HTTP_HOST} .

    RewriteCond %{HTTP_HOST} !^www.myforums.com.com

    RewriteRule (.*) myforums.com/$1 [R=301,L]

    and the opposite … 

    Options +FollowSymLinks

    RewriteEngine on

    RewriteCond %{HTTP_HOST} ^myforums.com [NC]

    RewriteRule ^(.*)$ http://www.myforums.com/$1 [L,R=301]

    #55563

    In reply to: Hooks & Filters Docu

    Olaf Lederer
    Participant

    no that is link is Okay, but his server is hacked :)

    #78666
    leoleoleo
    Member

    Thanks for help, your code is work fine for install. but the wiki history function still not work.

    #78655

    From what I can tell, the only things relating to groups in Facebook’s API are

    groups.get
    Returns all visible groups according to the filters specified.
    groups.getMembers
    Returns membership list data associated with a group.

    I think you’d therefore have to scrape the Facebook page manually and parse it’s HTML to pass back Facebook posts. Do-able, but it wouldn’t be very good for keeping in sync well.

    #78667

    In reply to: css problem

    Olaf Lederer
    Participant

    might be changed in my own sheet, but this is the class:

    #latest th, #forumlist th, #favorites th {
    text-align: left;
    background-color:#666666;
    font: 11px Arial, Helvetica, sans-serif;
    font-weight: normal;
    padding: 5px 9px;
    color:#fff;
    white-space: nowrap
    }

    #78665

    Change @require_once( BB_PATH . BB_INC . 'registration-functions.php'); to @require_once( BB_PATH . BB_INC . 'functions.bb-meta.php'); on line 77 of wiki-post.php to get it to load. I’m not sure how to fix anything else though.

    #78650

    For some reason it doesn’t get escaped by anything. How weird. Okay, the hackiest way of doing it ever:

    function bb_escape_nbsp( $text ) {
    $text = str_replace ( '&nbsp;', '&amp ;nbsp;', $text );
    return $text;
    }
    add_filter('post_text', 'bb_escape_nbsp');
    add_filter('edit_text', 'bb_escape_nbsp');

    Take out the space between amp and ;

    #31642
    Tomcraft1980
    Member

    Hi there,

    I have the Problem, that in Code & nbsp; is encoded so the user doens’t see it anymore.

    Is there a way to tell bbpress to not encode & nbsp; or does this make other problems?

    Kind regards

    Tom

    #73175

    In reply to: target _blank

    chandersbs
    Member

    That was indeed the problem :(

    The plugin is working.

    If i detect errors, I’ll report it here.

    Thanks very much for your help.

Viewing 25 results - 23,701 through 23,725 (of 32,481 total)
Skip to toolbar