Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 22,476 through 22,500 (of 32,481 total)
  • Author
    Search Results
  • #32612
    grassrootspa
    Member

    Hey guys,

    I have a weird forum display issue and have no clue what I’m doing wrong. (My site is NewsTalkPA.com)

    I’m trying to get the lower forum section on FrontPage.php and Forum.php to display like this:

    CATEGORIES_TOPICS_POSTS_(GRAVATAR)_LAST POSTER_LAST POST (see: http://newstalkpa.com/)

    1) Everything seems to be working for the first 3 headings (which are standard), but the “Gravatar” and “Last Poster” seem to show up in the wrong rows (the Gravatar and Last Poster for the corresponding sections appear one row off.)

    I have no clue why this happens. It’s probably something very silly.

    Any idea what I messed up in the coding?:

    2) Also, any advice on getting the LAST POST to generate a clickable link to that post (right now the link is not clickable)

    Thanks in advance as I am stumped!

    <?php if ( bb_forums() ) : ?>
    <h2><?php _e('Forums'); ?></h2>
    <table id="forumlist">

    <tr>
    <th style="width:20px;"></th>
    <th style="width:660px;"><?php _e('Categories'); ?></th>
    <th><?php _e('Topics'); ?></th>
    <th><?php _e('Posts'); ?></th>
    <th style=padding:0px><?php _e('<i><b><font size=+1><font color=#a81817>!</font></font></b></i>'); ?></th>
    <th><?php _e('Last Poster'); ?></th>
    <th><?php _e('Last Post'); ?></th>
    </tr>
    <?php while ( bb_forum() ) : ?>
    <tr<?php bb_forum_class(); ?>>

    <td class="num" style=padding:2px><img src='http://newstalkpa.com/graphics/redfolder20.gif' width='30' height='20'><br></td>

    <td><?php bb_forum_pad( '<div class="nest">' ); ?><a href="<?php forum_link(); ?>"><?php forum_name(); ?></a><small><?php forum_description(); ?></small><?php bb_forum_pad( '</div>' ); ?></td>
    <td class="num"><?php forum_topics(); ?></td>
    <td class="num"><?php forum_posts(); ?></td>
    <td class="num" style=padding:0px>
    <?php echo "<img src='http://www.gravatar.com/avatar.php?gravatar_id=".md5(bb_get_user_email($topic->topic_last_poster))."' width='24' height='24'><br>"; ?>
    </td>
    <td class="num">
    <small><a href="<?php user_profile_link($topic->topic_last_poster) ?>" ><?php topic_last_poster(); ?></a></small>
    </td>

    <td class="num"><a href="<?php $topic = $GLOBALS['topic'] = current( get_latest_topics( array( 'number' => 1, 'forum' => get_forum_id() ) ) ); ?>"><?php topic_title(); ?></td>

    <?php endwhile; ?>
    </table>
    <?php endif; // bb_forums() ?>

    #32611
    skipcollege
    Member

    I’ve searched for hours but can’t find out how to accomplish this…

    If I have WPMU subdomain blogs installed at: blogname.domain.com, how do I install a bbPress forum within one of these subdomain blogs at: blogname.domain.com/forum?

    Since there is no actual subdomain configured within cPanel and the WPMU subdomain blogs are virtual, I don’t have a folder there to install bbPress into.

    I only need to install a bbPress forum within 1 WPMU subdomain blog, however, I will take a solution that does this for all subdomain blogs, if need be.

    From there, I’m assuming that I can integrate the bbPress installation(s) with WPMU so that user accounts can be shared, like usual?

    Need to figure this one out very soon!

    Thank you!! :)

    #81656

    In reply to: Last Post on Forums

    grassrootspa
    Member

    My apologies for bumping this up but:

    <td class="num"><a href="<?php $topic = $GLOBALS['topic'] = current( get_latest_topics( array( 'number' => 1, 'forum' => get_forum_id() ) ) ); ?>"><?php topic_title(); ?></a></td>

    …makes the last forum post appear, but the hyperlink does NOT work (the link generated is the current page that the reader is on).

    Any idea how to resolve this?

    #82647

    In reply to: Forum List Alterations

    Gautam
    Member

    I really like the way you columnize the topic table. Thinking to follow the same layout in my future designs, if any :P

    #32588
    Hard Seat Sleeper
    Participant

    Can anyone tell me how to link to the current commenter’s profile page? ie:

    http://www.mysite.com/forum/profile/username

    currently the template I’m using links to any url specified by the author (usually his own website), but I want everyone’s name to point to their profile page on my forum.

    using bb 1, and the function looks like this

    function post_author_link( $post_id = 0 ) {
    if ( $link = get_user_link( get_post_author_id( $post_id ) ) ) {
    echo '<a href="' . esc_attr( $link ) . '">' . get_post_author( $post_id ) . '</a>';
    } elseif ( $link = bb_get_post_meta( 'pingback_uri' )) {
    echo '<a href="' . esc_attr( $link ) . '">' . get_post_author( $post_id ) . '</a>';
    } else {
    post_author( $post_id );
    }

    #81774
    Macmenddotcom
    Participant

    Nothing is dead until it stops breathing and its heart stops beating, bbpress is opensource, if you like it as a forum and want it to continue then get coding, the wordpress codex says of opensource:

    “open source – is simply programming code that can be read, viewed, modified, and distributed, by anyone who desires. …”

    The next thing is promote it, if you have a blog do what I have done here: http://www.macmend.com/archives/114

    If you just have a forum with no blog then use what I have done above as a sticky topic.

    #82944
    Michael
    Participant

    Thanks so much! Works like an absolute charm!

    I’m not too worried about internal links being opened in a new tab, as I’d like people to not be taken away from the topic until they are happy to close it. If I find it needs to be that way, I will try and implement the code to only work when there is an external link, by checking the domain name.

    Thanks again – happy holidays! :)

    #82941
    Michael
    Participant

    Sorry, none of the solutions posted there work. They all seem to either do nothing, or strip away the HREF param from the code.

    I would try and figure it out, but my knowledge of Regular Expressions is quite limited.

    Does anyone know how to fix it? It seems to just be a problem with the RegEx.

    #82940
    Michael
    Participant

    lol – should’ve searched ‘ey? Thanks for the link ;)

    #82260
    Fernando Tellado
    Participant

    Yo pondría el bloque de login en el sidebar, igual que en el theme de wp ;)

    I would put login block in sidebar, as in wp theme ;)

    #82939
    Fernando Tellado
    Participant
    #82646

    In reply to: Forum List Alterations

    Michael
    Participant

    I take it no-one has a clue about this one ‘ey?

    Not to worry though – I might find out how to do it next year. :)

    #82934

    In reply to: Bug in post count?

    hpguru
    Member

    I check my friend bbPress 1.0.2 forum. This is new forum, not from 0.9.0.6, i converted 0.9.0.4->1.0 etc. Friend install first time 1.0.2. :) But there same problem. Index.php in admin says 299 posts, posts.php says 302. This is bug.

    #32605
    Michael
    Participant

    Hi all :) Hope you’re doing well, not keeping too busy around Christmas (unlike me ;))

    I hope someone can help me here. As some of you know, I run a small Development forum. In this forum I post tutorials and posts with quite a few links. It’s quite irritating that each link opens in the same window, making the user have to return to the forum every time.

    Is there a way to make sure that all the links in a post open up in a new window? I tried doing it manually in a post, but it trimmed the target="_blank" from the code. I also have BBCode Lite installed. I did try editing that code, but with no success. There’s obviously something in the core that I need to change. Anyone know where it is?

    Thanks in advance – and have a lovely Christmas! :)

    Michael

    #62405
    paamayim
    Member

    Just an update, I read elsewhere that this is deprecated in latest WP versions:

    require_once dirname(dirname(__FILE__)) . '/wp-blog-header.php';

    This should be used instead:

    require_once dirname(dirname(__FILE__)) . '/wp-load.php';

    #62404
    paamayim
    Member

    This is so annoying guys :(

    What’s the cleanest solution to this, for WP 2.8.6 installed in / and bbPress 1.0.2 installed in /forum/ ?

    Thanks very much, indexing is vital to me.

    #82916
    hpguru
    Member

    Seems you use Kakumei?

    Open header.php (theme)

    Found <div id="header" role="banner">

    Add something like after the code above <a class="bloglink" href="http://yourblog.com/">« My blog homepage</a>

    Found theme style.css and open

    Add something like this

    a.bloglink {
    font-size: 13px;
    }

    #32477
    Gautam
    Member

    Hey folks,

    Just ported a WordPress theme (which is here) to bbPress (which is here).

    It is a spanish website of my client named Severus Online Club, so just wanted to share it.

    All suggestions are welcomed. :-)

    #82914
    Casemon
    Member

    re: “pickle”

    suggest removing the bb-config change you made until you get these other things sorted out :)

    #64251

    In reply to: Change Gravatar Size?

    Casemon
    Member

    In the mean time you can just pass the size via the avatar call…

    <?php post_author_avatar_link($size='100'); ?>

    #82912
    stulynn
    Member

    Now I’m in a pickle. I cannot visibly see an admin screen for bbpress and therefore I can’t login to try to make changes. I did add this path in bb-config

    $bb->uri = ‘http://your-domain-name.com/forum-path/&#8217;;

    (after key codes) and it’s done nothing. My folder in file manager has been changed from bbpress to forum. I tried to change it back but because I can’t get into bbpress admin I can’t change the admin link. Right now I’d be happy to go back to bbpress and not forum and believe you me when I say I’ll become backup queen.

    Can anyone please help?!!

    #82333
    bb-lover
    Member

    Good Michael…..

    I’ll tell u abt it… after using ur scipt

    stay connect :-)

    #82925

    In reply to: Bug in post count?

    hpguru
    Member

    I do this. No help to this problem. :(

    #82723
    af3
    Participant

    My mom is on facebook, so does my 60yrs old auth and uncle… and they are all living on the island of Borneo (googling it would probably show up among ‘the remaining lost world on earth’). So I got 3 ppl for my hard stats :)

    I’m using WPMU+Buddypress and integrated with bbpress — since there are facebookconnect plugins for WPMU, and now facebook plugin specific for WPMU+BP, my installation of bbpress on WPMU+BP becomes the odd one. While BP is now with its own forum system, I have more reasons to abandon bbpress; yet I do hope facebook-enabled bbpress would make me continue to use this.

    #32602
    hpguru
    Member

    Hi, i have very good bbPress forum. I like bbPress. I am use a bbPress 1.0.2 but i may found 1 new bug.

    I go to my bbPress dashboard and see posts count, thats say: 4024 posts.

    Then i go to bb-admin/posts.php and i see 1 – 20 / 4,121. This mean i have 4121 posts on my forum.

    I try recounting without any help to this problem.

    My plugins now:

    Akismet

    Human Test For bbPress

    Topics Per Page

    bbSmilies (maybe smilies from WordPress plugin, i change it name, when i modified smilies codes)

Viewing 25 results - 22,476 through 22,500 (of 32,481 total)
Skip to toolbar