Skip to:
Content
Pages
Categories
Search
Top
Bottom

nolageek’s forum

  • (Not Safe For Work)

    nolageek’s adult forum

    Yes, it’s a porn blog, but I’d like to think it’s better than most, since it’s mine. :)

    But anyhoo, I just put up bbpress on it, sporting a few custom modifications that I like…

    I put the forum list and profile menu in the sidebar, both only visible while in the forum.. while not in the forum it just has a link to the forum. I also want to add a ‘latest discussions” list there (when not in the forum) but before then, i want to get some discussions going. :)

    I have a few issues with IE that I can’t figure out… the second sidebar gets stuck behind the main content column and I don’t know why. If you can shed some light into this, I’d appreciate it. And click on some links while you’re there. lol

    I’m really trying to avoid having a bazillion banners and blind links all over it.

    (This REALLY isn’t spam, I promise.. really want opinions on my layout.)

    The Alligator was done on a whim, be kind. :)

Viewing 14 replies - 1 through 14 (of 14 total)
  • crap. After I posted this I tried to tweak a few things and I totally borked the side bar up. I *HAD* it working, but now it’s not. The Forum List doesn’t show.

    This is the code that I THOUGHT I was using, but now if I use it, the forum list doesn’t show AND the profile link doesn’t show on the Front Page. WTFBBQ?

    function show_bblogin() {

    global $forum;

    if ( $forum ) { /// if we're in the forum...

    login_form();
    if ( is_bb_profile() ) profile_menu();

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

    <tr>
    <th>NAME</th>
    <th>TOPICS</th>
    <th>#</th>
    </tr>
    <?php while ( bb_forum() ) : ?>
    <tr<?php bb_forum_class(); ?>>
    <td><?php bb_forum_pad( '<div class="nest">' ); ?><a href="<?php forum_link(); ?>"><?php forum_name(); ?></a><br /><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>
    </tr>
    <?php endwhile; ?>
    </table>
    <?php endif; // bb_forums() ?>

    <?php } else { /// if we're not in the forum

    echo '<a href="/forum/" style="font-size:2em;">Visit the Forum!</a><br /></br>';

    }

    }


    Sam Bauers
    Participant

    @sambauers

    > Yes, it’s a porn blog, but I’d like to think it’s better than most, since it’s mine.

    People generally aren’t offended by their own farts either.

    I realise there are places on the net where people speak liberally about porn, but I’m not sure this is one of those places.

    I also realise you made your best effort to warn about the content, but personally “NSFW” is a label I don’t really want to see on posts in these forums.

    Sorry, it’s a minus one from me.

    I like the way you did the alligator, mind sharing how it was done?

    Sorry if I offended, Sam, I totally understand if it gets moderated or removed. Just asking.. (I removed the adult content – with the exception for the category list) from the forums. (the banners, etc…)

    I didn’t see where it was against any rules, but as I said – if it’s inappropriate – I understand.

    While I wouldn’t want to see the site being used as spamming (Which I honestly wasn’t doing) I would like to think that even us pervs can come up with a few neat things ideas for bbpress. :) If you like I can put the code I’m (now) having problems with on another site.

    wmarcy: It’s a transparent .png that I just placed over the forum using position: absolute; I am having a problem


    Sam Bauers
    Participant

    @sambauers

    I don’t know if it is against any rules either, nor was I particularly offended. I was just pointing out that I thought it was inappropriate for these forums. I’m not trying to make a moral judgement about it, I’m just concerned that there are knock on effects for sites that associate with this type of content, and I would hate to see anyone lose access to the resources of this site either due to the policies of their workplace, their government or their own moral compass.

    I understand, I would have never have posted it without making it clear what kind of site it was. Mainly I was having an issue and was seeking assistance, plus I wanted to get options of the layout.

    I changed the links to hide them a bit and will leave this open for now. It really would be a moral judgement to close or delete this thread and while spam and porn are not at the top of the list of things to keep around, it really is about a design. Leaving it alone for now.

    Trent

    Heh, nice alligator. :)

    I agree that the moral judgement shouldn’t be made, although like Sam said it also shouldn’t hurt bbPress. I guess that would mean keeping it off an official showcase of bb forums, but since “Pimping your Press” is very much informal it should be alright? And asking for help should be in any case.

    > the forum list doesn’t show

    You may have to reset something (there should be an API function) as I think bb_forum() walks a certain tree.

    I appreciate everyone continually tagging this as “modlook”, but I have already looked at this thread ;)

    Trent

    > You may have to reset something (there should be an API function)

    > as I think bb_forum() walks a certain tree.

    Not sure what you mean by this? I’ve tried various things and nothing is working again. I had it for about 10 minutes last night. :(

    bb_forums() starts the walk through the forum tree. bb_forum() then moves to the next node in the tree until the tree is completed. When the tree is completed, it resets any globals that may have been overwritten then kills the $bb_forums_loop object which the bb_forums() and bb_forum() mechanism relies upon.

    So give this a shot:

    global $bb_forums_loop;
    $somethingreallyscatological = $bb_forums_loop;

    /* code to output list of forums */

    $bb_forums_loop = $somethingreallyscatological;

    That might enable you to output two forum listings on one page.

    I tried this, and now.. for some reason.. the login/forum list only shows on the topic page, but for no others. weird. everything else gets the “View The Forum!” message

    function show_bblogin() {

    global $forum;

    if ( $forum ) {

    login_form();
    if ( is_bb_profile() ) profile_menu();

    } else {

    echo '<a href="/forum/" style="font-size:2em;">Visit the Forum!</a><br /></br>';

    }

    global $bb_forums_loop;
    $imakepoopy = $bb_forums_loop;

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

    <tr>
    <th>NAME</th>
    <th>TOPICS</th>
    <th>#</th>
    </tr>
    <?php while ( bb_forum() ) : ?>
    <tr<?php bb_forum_class(); ?>>
    <td><?php bb_forum_pad( '<div class="nest">' ); ?><a href="<?php forum_link(); ?>"><?php forum_name(); ?></a><br /><?php bb_forum_pad( '</div>' ); ?></td>
    <td class="num"><?php forum_topics(); ?></td>
    <td class="num"><?php forum_posts(); ?></td>
    </tr>
    <?php endwhile; ?>
    </table>
    <?php endif; // bb_forums()

    $bb_forums_loop; = $imakepoopy;

    }

    $bb_forums_loop; = $imakepoopy;

    The first ; needs removing. Not sure if you’d get a parse error, but it certainly shouldn’t be there. :P

    Let me also take this opportunity to complement your choice of $imakepoopy. Good to remember, unlikely to be used in bb core. :P

    Try checking for global $bb; if( isset( $bb ) ) { ..., as $forum may not be set on every page but $bb must be.

    > forum list only shows on the topic page, but for no others.

    To display the forums bb needs to read them from the database and prepare the globals, which I think it only does on pages that it assumes will display them. Hence, check out /forums.php, /frontpage.php and others with a forum listing (files in root prepare for the theme file to actually show anything).

    Fel64, $somethingreallyscatological was just too long, so $imakepoopy just seemed appropriate. :)

    Nope, checking for $bb does even less than checking for $forum. It doesn’t show up anywhere.

Viewing 14 replies - 1 through 14 (of 14 total)

You must be logged in to reply to this topic.