Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'test'

Viewing 25 results - 8,826 through 8,850 (of 11,611 total)
  • Author
    Search Results
  • guyom
    Member

    Hi

    I have the old legacy branch of BBpress on my website and I want to move to the The latest stable version 1.0.2

    I try to find some informations about that on the forum but nothing

    I need to keep my users and topics data

    I just want to know if it is possible and what is the process

    thanks

    #77666
    Mark
    Member

    It’s actually a pretty simple hack, though I caution you that I worked it out in the last five minutes.

    First, modify the following three lines of your bbpress .htaccess;

    RewriteRule ^forum/([^/]+)/page/([0-9]+)/?$ /bbpress/forum.php?id=$1&page=$2 [L,QSA]
    RewriteRule ^forum/([^/]+)/?$ /bbpress/forum.php?id=$1 [L,QSA]
    RewriteRule ^forum/?$ /bbpress/ [R=302,L,QSA]

    change ^forum/ to whatever you want the permalink to be, such as ^sub/ or ^purplepolkadots/, whatever works for you. Then open functions.bb-template.php and go to line 711 inside function get_forum_link() (line numbers may vary). It should look something like:

    $link = bb_get_uri('forum/' . $forum->$column . $page, null, $context);

    …and change ‘forum/’ to whatever you put in your .htaccess – this seemed to work for me immediately, however as I mentioned, I haven’t done any thorough testing of it.

    #31678
    HeroicNate
    Member

    I’ve been trying to install the latest version of bbpress, but every time it installs it’s giving an error it can’t create the forum. It makes no sense. And then whenever I try to reinstall it says bbpress is already installed and it won’t do anything.

    #78762

    Haha or that :P I work with a server that’s almost completely firewalled in most of the time, makes doing anything that easy impossible

    #78761
    kirpiit
    Member

    I got it!

    See here http://www.kirpi.it/rss2html/rss2html.php?XMLFILE=http://www.kirpi.it/r/rss/topics&TEMPLATE=sample-template.html&MAXITEMS=10

    You just download a folder [1] into your server and make a call with the proper parameters.

    Templates are trivial to edit.

    Looks the right thing for dummies like me :-)

    So, the raw problem is solved.

    Now let’s go bor a better solution, if there is any.

    I’ll try your code, kawauso, and let you know.

    —-

    [1] http://www.feedforall.com/free-php-script.htm

    #78760

    It’s probably easier to use a RSS parser to be honest, but I couldn’t find one that’d use a local RSS source rather than a remote one passed through a PHP script first, so meh.

    #78759

    Ah the plugin is intended for WordPress installs only I’m afraid.

    A quick way of doing it:

    In your bbPress directory, make a file called javascript.php containing:

    <?php

    // Taken from index.php
    // Load everything up

    require('./bb-load.php');

    do_action( 'bb_index.php_pre_db' );

    $forums = bb_get_forums(); // Comment to hide forums
    if ( $topics = get_latest_topics( false, $page ) ) {
    bb_cache_last_posts( $topics );
    }

    bb_load_template( 'html_include.php' );

    ?>

    then in your template directory, make a file called html_include.php containing:

    <?php if ( $forums && $topics ) : ?>
    <table id="latest_discussions">
    <tr>
    <th><?php _e('Topic'); ?></th>
    <th><?php _e('Posts'); ?></th>
    <!-- <th><?php _e('Voices'); ?></th> -->
    <th><?php _e('Last Poster'); ?></th>
    <th><?php _e('Freshness'); ?></th>
    </tr>

    <?php foreach ( $topics as $topic ) : ?>
    <tr>
    <td><a href="<?php topic_link(); ?>"><?php topic_title(); ?></a></td>
    <td class="num"><?php topic_posts(); ?></td>
    <!-- <td class="num"><?php bb_topic_voices(); ?></td> -->
    <td class="num"><?php topic_last_poster(); ?></td>
    <td class="num"><a href="<?php topic_last_post_link(); ?>" title="<?php topic_time(array('format'=>'datetime')); ?>"><?php topic_time(); ?></a></td>
    </tr>
    <?php endforeach; // $topics loop ?>
    </table>
    <?php else : ?>
    No discussions.
    <?php endif; ?>

    and finally, in the page where you want to load the list, put something like:

    <script src="http://code.jquery.com/jquery-latest.js"></script>
    <script>$.get("javascript.php", { rand: Math.random() }, function(data){ document.getElementById('latest').innerHTML = data; } );</script>
    <div id="latest"></div>

    Old-fashioned way of loading the HTML in there and use a local copy of jQuery or whatever library you use, but that’s the general idea really.

    html_include.php is just a cut down version of front-page.php so you can edit it the same as any other template. javascript.php doesn’t load in stickies, but that’s just how I felt like doing things, it’s a cut down version of index.php so it’s easy enough to put back.

    Even more cut down version of html_include.php (so you really do just get a list):

    <?php if ( $forums && $topics ) : ?>
    <ul>
    <?php foreach ( $topics as $topic ) : ?>
    <li><a href="<?php topic_link(); ?>"><?php topic_title(); ?></a></li>
    <?php endforeach; // $topics loop ?>
    </ul>
    <?php else : ?>
    No discussions.
    <?php endif; ?>

    #78758
    kirpiit
    Member

    Instead, that /rss/topics thing looks promising: if I only could find the source of that page, and throw away most of the code, just to keep the last 5 or so entries with no formatting, that would be more than enough.

    There is a rss.php file inside the bbpress folder, but there is too much code and I get lost into it.

    #78757
    kirpiit
    Member

    They could surely be worth inspecting, if I only really knew anything about coding.

    :-)

    So, you mean that if I place this piece of php code [1] into any web page I’ll show a list of entries? I tried but it doesn’t seem to work at all.

    So, the idea of just swapping wordpress variables with bbpress ones is not enough.

    No. I’m afraid it would be beyond my skills.

    —-

    [1] https://bbpress.org/plugins/topic/wordpress-latest-post/

    #78756
    Olaf Lederer
    Participant

    why not using the RSS feed from some blog?

    #78755

    There’s the latest topics RSS feed at /rss/topics and the WordPress Latest Post plugin: https://bbpress.org/plugins/topic/wordpress-latest-post/, either of those help?

    #31669
    kirpiit
    Member

    What if I want to show some of the latest discussions inside my site home page? Just titles (with links) would do. Is there any way one can grab them, perhaps as RSS, and display them into a page? I know, as an example, this is currently done for twitter posts. What about bbpress discussions?

    #31672
    garyditsch
    Member

    I had my test bbpress and my wordpress site working well. WP 2.7.1 and bbpress 1.0 I updated my wordpress site this weekend to 2.8 and now the integration doesn’t work.

    Not only does the login not work across the site, but when I login to one it logs me out of the other.

    I have went through all the steps that I did initially to integrate the sites, but haven’t figured out the change. I’m wondering if it has to do with the bbpress integration plugin?

    #31671
    #31667
    QuickD
    Member

    How do you link to html link in the forum post and display photos. Is there a plugin for that? I have latest version of bbpress.

    #78036
    Olaf Lederer
    Participant

    @dragunoff, upgrade to the latest bbpress version :)

    #31659
    BaraBajen
    Member

    Hi,

    hoping for help, since I´m not in no way good enough to find this answer.

    The inputfiled for posts/replys in atopic seems to be attached to the page where the first post in a topic was made. Since I´ve using the the threads so that the latest post gets on top in the first page (and therefore the first post ends upp last in the last page). What happens is that the posting (input)-field ends upp on the last page.

    Is it possible to change in the code så that the posting field ends upp connected to the last posting/reply. And then (hopefully on page one).

    Anybody?

    #78683
    wsokc
    Member

    At last its solved, I follow ur idea and its works.

    First I upgrade it the old database to the latest bbpress, then I import it for each table manually, the tags located in bb_terms.

    Thanks Anyway.

    #78694

    I’ve never quite understood the complaints about cookies and bbPress/WordPress integration… I set up a fresh copy of 1.0.2 locally with no prior knowledge and it worked fine (Windows test server). I FTPed it onto my live server and changed over the addresses and it works fine, apart from an odd quirk to do with bb-admin and where you log in. My cookies hold across either site, and for that matter to a MediaWiki install I have tied in to the same user set.

    I quite understand the issue with cross-posting though. I’d fix it myself if I could work out how to initialise bbPress core cleanly inside WordPress, but that’s not possible in 1.0, so for now all you can use is plugins that do it by HTTP. Hopefully that will be integrated into core later on, but including bbPress as a WordPress plugin would be shoehorning something that was designed to be relatively standalone into a different structure and no doubt would over complicate things.

    #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

    #78638
    kirpiit
    Member

    So.

    1. – I just dowloaded 1.0.2 once again from bbpress.org and completely reloaded the Kakumei folder into my install. [1]

    2. – Tags do *not* work as they should once you load the forum, log in and try. Please see http://www.kirpi.it/r/topic/evita (User: Evita Password: IE0Rc4vpTl7P) for a free test.

    3. – When I disable Javascript as suggested, tags adding start to work fine (although not ajaxically, obviously): the tag is recorded, the page is reloaded, the tag is inserted into the list and the input field is cleared.

    4. – Re-enabling Javascript, it sometimes work and sometimes not.

    5. – Repeating points 3 and 4 confirms point 4. Test were done many times with the latest Firefox.

    It is all funny, but I cannot get a clue of it.

    —-

    [1] I also updated the bb-templates/kakumei/rss2.php as indicated here

    https://bbpress.org/forums/topic/all-rss-feeds-broken#post-57278 in attempt to solve the RSS problem (which was not solved, but this is another story).

    #78325

    Try integrating as per this tutorial of mine on a test install : http://blog.ashfame.com/2009/07/integrate-bbpress-10-with-wordpress-28/

    Just follow closely and you should be fine.

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

    #31643
    Marius-
    Member

    I know theres a discussion going on about using Facebook Connect with BBPress, but I wonder if there is any there way to merge these two?

    I run a website, with an own Facebook group. They usually just write on the wall what the latest discussion is. Manually, with no links.

    Is it possible to get something like an RSS feed of the forum integrated into the Facebook group? So users there can see the 10 latest threads appear as links?

Viewing 25 results - 8,826 through 8,850 (of 11,611 total)
Skip to toolbar