Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 24,101 through 24,125 (of 32,468 total)
  • Author
    Search Results
  • #77173
    citizenkeith
    Participant

    This sounds really good. Would love to see the code when you’re finished. :)

    #77283
    citizenkeith
    Participant

    Looks great, Sam! I like the avatar size… would be nice to add Gravatar size options in the admin panel (hint). :)

    #77172
    anandasama
    Member

    I might have solved this whole business:

    BbPress MultiQuote (Based on Wp Quote Comments)

    – wysiwyg support (tinyMCE)

    – multiquote (No reloading or other problems)

    – Select area to quote and never be forced to quote the whole message.

    – Quote from previous pages (I got a solution for this. Just need to make the code)

    Might add nested quote support to it later.

    If there is any interest, I will make the code available here once Im done cleaning it up.

    atlegrimseid
    Member

    Hi and hello.!

    In my forum.php I use the following lines to show different content based on the forum-id:

    <?php if ( $forum_id == '2' ) : ?>
    blablabla
    <?php elseif ( $forum_id == '3' ) : ?>
    blablabla1
    <?php else : ?>
    blablabla2
    <?php endif; ?>

    Now, I need to show different content inside the topics (topic.php) based on witch forum the topic is posted in. For example if the topic is posed in forum_id 2, I would like to show “this post was posted in forum_id 2…”

    Any idea what I might use to make this come thru? I am running bbPress 1.1. :)

    – Thanks! :)

    #76741
    wiseacre
    Member

    Yes, .htaccess should be added to the list too. More eyes see better :)

    #76740

    Yeah, that too, wiseacre

    Third, keep the following files and directories.

    1. bb-config.php

    2. my-plugins/ (if you have it)

    3. my-templates/ (if you have it)

    4. my-languages/ (if you have it)

    I’d also suggest keeping .htaccess if you’ve modified it!

    #72365

    In reply to: Bulgarian translation

    wiseacre
    Member

    В страницата с разширенията горе има едно “Инталирани” – липсва с-то ;)

    #77282
    wiseacre
    Member

    Looks good. Very good.:)

    #76734

    See and I just turned off Akismet for catching nothing but ham :/

    FYI, the upgrade instructions still work, though Sam, you might want to remove ‘These instructions cover upgrading to version 0.9.0.2’ and the mention of config.php (are we really supposed to rename that? I just turn off my plugins, copy the my* folders, htaccess and bb-config over to the new folder, and rename them both)

    #75730
    Sam Bauers
    Participant

    @ _ck_

    That is defined for you in bb-settings.php

    if ( !defined( 'BB_LOAD_DEPRECATED' ) ) {
    define( 'BB_LOAD_DEPRECATED', true );
    }

    #77279
    Josh Leuze
    Member

    I dig the new look, a much needed re-design! Glad to see a bit of honey in the new design, adds a little fun, without giving me a toothache ;)

    The two column layout is a big improvement too, helps organize the content better and keeps it at out fingertips.

    Can I infer from the “Themes” link that bbPress will have an official theme directory soon?

    #77361

    Please be patient. Waiting about an hour between bumping is a little rude for a forum full of volunteers :)

    What are you using for the rest of your site? PHP pages, WordPress?

    #77354
    chrishajer
    Participant

    These folders do not exist:

    http://roadtoanimation.com/forums/my-plugins/

    http://roadtoanimation.com/forums/my-templates/

    These do:

    http://roadtoanimation.com/forums/bb-plugins/

    http://roadtoanimation.com/forums/bb-templates/

    (BTW, you should turn off directory indexes by putting this in your .htaccess:

    Options -Indexes )

    Since that server appears to be running Apache/Linux, the directory names are case sensitive. Are you sure they’re lowercase? Also, using hyphens, not underscores? Can you take a screenshot of the directory listing, using a shell or FTP, and post a link to that? Or, find someone local who you trust that can log in and check this out for you.

    #77332

    In reply to: Role = Main?

    Mark / t31os
    Member

    I’ll have a fiddle with the documents and see if switching to Mac or Unix format helps. I just assumed i’d run with what i use on WordPress…

    What concerns me is why these role lines seem to be required for template files to function correctly, and that in keeping them there invalidates the pages…

    I suppose the question now is, does anyone else have the issues i mentioned when editting or creating bbPress themes? … If anyone is to report they do not, then i’m happy to accept that it’s likely my mistake and look back over what i’m doing, and where i’m going wrong…. but i’d like a little feedback beforehand….

    Admittedly i’m using a custom theme that i converted from a WordPress theme, however i’m not incapable of managing code, so i’ll happily accept that i may have fudged something unintentionally if that’s really the case.

    I’ll let you know if using Unix or Mac format makes a difference….

    #77381
    chrishajer
    Participant

    If this is shared hosting, I think it’s overloaded. If it’s your own box, you can do something like this to see how many files are open:

    ulimit -a

    There are many reasons for too many open files, but I don’t think it’s related to bbPress since 0.9.x is pretty stable and I have not seen this error reported for it before.

    If you post a link to your domain, someone can check and see how many virtual hosts are living there. Maybe one is just behaving badly.

    #59832
    piedpiper21
    Member

    I like ck’s method of displaying the dates and I tried applying her code to the front-page.php file. But when I change the code under ‘$super_stickies’ and ‘$topics’ from

    <td class="num"><a href="<?php topic_last_post_link(); ?>"><?php topic_time(); ?></a></td>

    to

    <td class="num"><a href="<?php topic_last_post_link(); ?>"><span class=timetitle title="<?php echo date("r",strtotime($topic->topic_time)); ?>"><?php topic_time(); ?></span></a></td>

    There is no change.

    If I change it to

    <td class="num"><a href="<?php topic_last_post_link(); ?>"><?php echo date("r",strtotime($topic->topic_time)); ?>"></a></td>

    I get a properly formatted time description. But I can’t get the title to work. What am i doing wrong?

    #77171
    anandasama
    Member

    Yeah Its kind of an ugly workaround but its the only way i know that works. :)

    Id also like a native rss syndication. In time it will come i think!

    Thank you very much for your replies.

    #77350
    _ck_
    Participant

    It’s less common but it’s not invalid at all. There are many installs that do it.

    To just move forward so you can work on other things I would simply try putting the copy of kakumei under bb-templates and see if even that works. Name it maybe mykakumei for example.

    deadlyhifi
    Participant

    Have a look here on how to exclude a forum from the front page loop, whilst keeping the post limit intact.

    limit forums included in latest discussions

    Note the core hack required to keep the paging numbers correct.

    Maybe you then need to write another small custom query to bring out just forum 17, as I’m not sure you if you can have two loops. (perhaps the WP multiple loop info would give some insight into this: https://codex.wordpress.org/The_Loop#Multiple_Loops)

    r-a-y
    Participant

    Just looking at your code, it looks like you’re ending your “if” statement a little early.

    Try this:

    //Show latest discussions with all forums except id 17
    <?php if ( $topics ) : foreach ( $topics as $topic ) : if( $topic->forum_id != 17 ) : ?>
    <!-- your output stuff here -->
    <?php endif; endforeach; endif; // $topics ?>

    //Show latest discussions but only forum 17
    <?php if ( $topics ) : foreach ( $topics as $topic ) : if( $topic->forum_id == 17 ) : ?>
    <!-- your output stuff here -->
    <?php endif; endforeach; endif; // $topics ?>

    Not sure if that’s causing your problems… but try it out and see what happens.

    #77348
    _ck_
    Participant

    You can rename the sub-folder anything you want and yes you can even put it into bb-templates though that’s not how it’s supposed to be done.

    It’s just a bad sign that my-templates doesn’t work and very mysterious.

    There might be something else going on like multiviews interfering.

    #77272
    ArnyVee
    Member

    Very nice work! Keep it up! :D

    anandasama
    Member

    One thing I have an issue with is the first page; I want to make an own “Latest Discussions” loop with all forums EXCEPT one forum. And then an own “latest discussions” With only the entries on that one forum (It’s linked in RSS posts) on the same page.

    Problem is When i used this inside the loop

    //Show latest discussions with all forums except id 17

    <?php if ( $topics ) : foreach ( $topics as $topic ) : ?>

    <?php if( $topic->forum_id != 17 ) { ?>

    codeblock

    <?php } endif;?>

    <?php endforeach; endif; // $topics ?>

    //Show latest discussions but only forum 17

    <?php if ( $topics ) : foreach ( $topics as $topic ) : ?>

    <?php if( $topic->forum_id == 17 ) { ?>

    codeblock

    <?php } endif;?>

    <?php endforeach; endif; // $topics ?>

    The pagination gets an error (Shows me fewer posts than the actual limit), and I cant use the same loop (With different conditions) twice.. Then I get a blank page. :S

    So how should I do? Have any Idea? Im not so used to the bbpress loop yet..

    #77169
    anandasama
    Member

    R-a-y: Thank you! The theme is a heavily modified version of Scoun.

    Although I am soon to write a new template because of the css/html isnt that great on it. ;)

    Just my way of learning the ropes.

    About the RSS feeds: I use feedwordpress plugin to feed it into my wordpress. In wordpress then, I put in some arguments to filter out the RSS feed so it won’t show up there. Somehow it still shows up in my WordPress RSS so I need to find a way to filter it out from the RSS too.

    The RSS syndication plugin can hold a number of RSS feeds with alot of options and automatically post articles.

    Then I use BBpress WordPress Synchronization plugin and when bbpress finds a new post in WordPress it automatically syncs and creates a post in one of my bbpress subforums.

    Somehow i dont want all my stuff to go into BbPress so when I write some new article in WordPress I can choose manually wether to sync this to BbPress or not.

    One thing I have an issue with is the first page; I want to make an own “Latest Discussions” loop with all forums EXCEPT RSS. And then an own “latest discussions” With only RSS forum.

    Problem is When i used this inside the loop

    //Show latest discussions with all forums except id 17
    <?php if ( $topics ) : foreach ( $topics as $topic ) : ?>
    <?php if( $topic->forum_id != 17 ) { ?>
    codeblock
    <?php } endif;?>
    <?php endforeach; endif; // $topics ?>

    //Show latest discussions but only forum 17
    <?php if ( $topics ) : foreach ( $topics as $topic ) : ?>
    <?php if( $topic->forum_id == 17 ) { ?>
    codeblock
    <?php } endif;?>
    <?php endforeach; endif; // $topics ?>

    The pagination gets an error (Shows me fewer posts than the actual limit), and I cant use the same loop (With different conditions) twice.. Then I get a blank page. :S

    So how should I do? Have any Idea? Im not so used to the bbpress loop yet..

    #77271
    Detective
    Member

    I like it, it’s beautiful :)

Viewing 25 results - 24,101 through 24,125 (of 32,468 total)
Skip to toolbar