Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'test'

Viewing 25 results - 8,751 through 8,775 (of 11,584 total)
  • Author
    Search Results
  • #79558

    In reply to: First Poster

    Your new frontpage.php

    <?php bb_get_header(); ?>

    <?php if ( $forums ) : ?>

    <div id="hottags" role="main">
    <h2><?php _e('Hot Tags'); ?></h2>
    <p class="frontpageheatmap"><?php bb_tag_heat_map(); ?></p>
    </div>

    <div id="discussions">
    <?php if ( $topics || $super_stickies ) : ?>

    <h2><?php _e('Latest Discussions'); ?></h2>

    <table id="latest">
    <tr>
    <th><?php _e('Topic'); ?> — <?php bb_new_topic_link(); ?></th>
    <th><?php _e('Posts'); ?></th>
    <th><?php _e('Voices'); ?></th>
    <th><?php _e('Last Poster'); ?></th>
    <th><?php _e('Author'); ?></th>
    <th><?php _e('Freshness'); ?></th>
    </tr>

    <?php if ( $super_stickies ) : foreach ( $super_stickies as $topic ) : ?>
    <tr<?php topic_class(); ?>>
    <td><?php bb_topic_labels(); ?> <big><a href="<?php topic_link(); ?>"><?php topic_title(); ?></a></big><?php topic_page_links(); ?></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"><?php topic_author(); ?></td>
    <td class="num"><a href="<?php topic_last_post_link(); ?>"><?php topic_time(); ?></a></td>
    </tr>
    <?php endforeach; endif; // $super_stickies ?>

    <?php if ( $topics ) : foreach ( $topics as $topic ) : ?>
    <tr<?php topic_class(); ?>>
    <td><?php bb_topic_labels(); ?> <a href="<?php topic_link(); ?>"><?php topic_title(); ?></a><?php topic_page_links(); ?></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"><?php topic_author(); ?></td>
    <td class="num"><a href="<?php topic_last_post_link(); ?>"><?php topic_time(); ?></a></td>
    </tr>
    <?php endforeach; endif; // $topics ?>
    </table>
    <?php bb_latest_topics_pages( array( 'before' => '<div class="nav">', 'after' => '</div>' ) ); ?>
    <?php endif; // $topics or $super_stickies ?>

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

    <tr>
    <th><?php _e('Main Theme'); ?></th>
    <th><?php _e('Topics'); ?></th>
    <th><?php _e('Posts'); ?></th>
    </tr>
    <?php while ( bb_forum() ) : ?>
    <?php if (bb_get_forum_is_category()) : ?>
    <tr<?php bb_forum_class('bb-category'); ?>>
    <td colspan="3"><?php bb_forum_pad( '<div class="nest">' ); ?><a href="<?php forum_link(); ?>"><?php forum_name(); ?></a><?php forum_description( array( 'before' => '<small> – ', 'after' => '</small>' ) ); ?><?php bb_forum_pad( '</div>' ); ?></td>
    </tr>
    <?php continue; endif; ?>
    <tr<?php bb_forum_class(); ?>>
    <td><?php bb_forum_pad( '<div class="nest">' ); ?><a href="<?php forum_link(); ?>"><?php forum_name(); ?></a><?php forum_description( array( 'before' => '<small> – ', 'after' => '</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 if ( bb_is_user_logged_in() ) : ?>
    <div id="viewdiv">
    <h2><?php _e('Views'); ?></h2>
    <ul id="views">
    <?php foreach ( bb_get_views() as $the_view => $title ) : ?>
    <li class="view"><a href="<?php view_link( $the_view ); ?>"><?php view_name( $the_view ); ?></a></li>
    <?php endforeach; ?>
    </ul>
    </div>
    <?php endif; // bb_is_user_logged_in() ?>

    </div>

    <?php else : // $forums ?>

    <div class="bbcrumb"><a href="<?php bb_uri(); ?>"><?php bb_option('name'); ?></a> &raquo; <?php _e('Add New Topic'); ?></div>

    <?php post_form(); endif; // $forums ?>

    <?php bb_get_footer(); ?>

    #31826
    angelamaria
    Member

    Hello,

    I’m planning to using bbPress on a WP site/blog I am currently working on, on my local. WordPress is up and running already, a relatively clean install save for a couple of themes, and some entries. No plugins yet. I download bbPress, upload it underneath my WP root directory (where the blog is), change config to match WP config (for my local it’s just changing out the database name; I have a username/password account set up already for each of test installs), and try to install. I get:

    DB Error: cannot select

    …on all pages. I’ve looked at both bb-config and wp-config and the database values are identical, except for the suffix variable naturally. I’ve checked the database, only wp_* tables are there. I am using a fresh bbPress download.

    Just for completeness’ sake (comments removed for brevity):

    bb-config.php excerpt:

    /** The name of the database for bbPress */

    define('DB_NAME', 'pugad-lawin');

    /** MySQL database username */

    define( ‘BBDB_USER’, ‘username’ );

    /** MySQL database password */

    define( ‘BBDB_PASSWORD’, ‘password’ );

    /** MySQL hostname */

    define( ‘BBDB_HOST’, ‘localhost’ );

    /** Database Charset to use in creating database tables. */

    define( ‘BBDB_CHARSET’, ‘utf8’ );

    /** The Database Collate type. Don’t change this if in doubt. */

    define( ‘BBDB_COLLATE’, ” );

    /** snip snip **/

    /**

    * bbPress Database Table prefix.

    *

    * You can have multiple installations in one database if you give each a unique

    * prefix. Only numbers, letters, and underscores please!

    */

    $bb_table_prefix = ‘bb_’;

    wp-config.php excerpt:

    /** The name of the database for WordPress */

    define('DB_NAME', 'pugad-lawin');

    /** MySQL database username */

    define(‘DB_USER’, ‘username’);

    /** MySQL database password */

    define(‘DB_PASSWORD’, ‘password’);

    /** MySQL hostname */

    define(‘DB_HOST’, ‘localhost’);

    /** Database Charset to use in creating database tables. */

    define(‘DB_CHARSET’, ‘utf8’);

    /** The Database Collate type. Don’t change this if in doubt. */

    define(‘DB_COLLATE’, ”);

    /** snip snip **/

    /**

    * WordPress Database Table prefix.

    *

    * You can have multiple installations in one database if you give each a unique

    * prefix. Only numbers, letters, and underscores please!

    */

    $table_prefix = ‘wp_’;

    Again, I have a username/password user setup on my local MySQL database for testing purposes, so yes, it is expected that those will be staying the same.

    Any info on this would be great. Thanks!

    #79439

    In reply to: bbPress Codex – lolz

    #76880
    chrishajer
    Participant

    Very interesting, and sad for the project to lose Sam, if that’s the case.

    #76879

    I think Sam doesn’t work for Automattic anymore. Check this link : http://www.wptavern.com/forum/bbpress/860-future-bbpress-undecided.html

    Moreover he isn’t listed here too : http://automattic.com/about/

    #79393
    infected
    Participant

    @mwaterous: Sorry, now i know what you mean. Yes, you´re right. This is really not what i want to do.

    @all: I tested the above mentioned fix once again with the default theme and got it working after changing the css file too… But as mwaterous said: this fix is not removing the brackets. It just fixes the line break between the brackets. I´d like to completely remove the brackets. Where they´re generated?

    #79488
    gerikg
    Member

    or just <?php forum_name($topic->forum_id);?>

    #79487

    ah.. thats what I said. Good will come to use someday.

    #79486
    gerikg
    Member

    Go it <?php global $topic; forum_name($topic->forum_id);?>

    with the help of _ck_’s post: https://bbpress.org/forums/topic/retrieving-forum-id-from-post-id#post-21521

    #79485
    gerikg
    Member

    I don’t know how to write php…

    #79484

    forum_name() requires you to pass the forum_id to it. one way of doing is to get the forum_id for the topic_id and then call it. in other words create a function which takes topic_id as argument and do a mysql query to find out the forum_id & then call it.

    I don’t think there is a bb-template function which can do that. you can try coding it. its easy enough.

    #31811
    frasermassey
    Member

    Hi

    I run a WP site and BBpress forum. Recently upgraded to BBpress latest release version and now when I log in I cannot view any old posts and when I try to create a new topic is reports ‘This topic has been closed’

    On the top of dashboard I get the following…

    Warning: Division by zero in D:inetpubvhostssunstridercats.orghttpdocsbbpressbb-includesfunctions.bb-statistics.php on line 214

    Warning: Division by zero in D:inetpubvhostssunstridercats.orghttpdocsbbpressbb-includesfunctions.bb-statistics.php on line 194

    Warning: Division by zero in D:inetpubvhostssunstridercats.orghttpdocsbbpressbb-includesfunctions.bb-statistics.php on line 174

    Warning: Division by zero in D:inetpubvhostssunstridercats.orghttpdocsbbpressbb-includesfunctions.bb-statistics.php on line 244

    I know this warning is shown if it belives there are no posts but the forum has been fine for a long time and has showing on the overview of the dashboard..

    39 forums

    82 topics

    457 posts

    So the posts are still there although I cannot see them or add to them.

    Any help would be greatly appreciated.

    #31810
    gerikg
    Member

    How do I add forum name to latest discussion.

    so instead of saying,

    call for testers on the 0.9 branch and 1.0 trunk

    to say,

    Requests and Feedback: call for testers on the 0.9 branch and 1.0 trunk

    I’ve tried <?php forum_name(); ?>

    #79346

    In reply to: Nofollow

    bbpros
    Member

    Found the solution for the “nofollow” in signatures, similar to the one you proposed for posts:

    https://bbpress.org/plugins/topic/bbpress-signatures/page/2/#post-3179

    Ooops, I think we posted at the same time. Ok, I tested it and it works so now all links in the message area are nofollow with no holes and the profile has the follow as I wanted. Very good :) Thank you, mwaterous.

    #79342

    In reply to: Nofollow

    bbpros
    Member

    Hi, mwaterous. That is FANTASTIC. Thank you!

    I have to run some more tests but I think you nailed it. I tested:

    Test.com

    http://www.test.com (simply written www, no html)

    http://test.com (http: but no html)

    <a/ a tag)

    Except for the 1st one, all were converted into a link and ALL carried the nofollow tag. This is for posting messages by members on regular threads.

    I placed that last line anywhere inside /bb-includes/functions.bb-formatting.php, as I didn’t have any of the other files you mentioned. In case others need this, is it possible to stick this one up? When I researched this subject here I found a few topics with at least 7 or 8 members looking for an answer to this problem. But the only answer was provided by you today.

    Still ONE MORE spammer alert: if a member places HTML in its signature (using the <a tag) this will escape your filter and the signature will go “follow”


    On another subject, if I may…

    1. Signatures: do they only appear in the first post made by the member? I believe so.

    2. I messed up the .css and can’t refix it. The size of the font for the “textarea” where messages are entered is close to nothing and I have to glue my eyes to screen to read what I am writing. This is the only field where the font-size was nuked. Where and in which .css should I fix this?

    Thanks!

    #79397
    johnhiler
    Member

    The latest WordPress is definitely the most secure, b/c Automattic has not released security patches for earlier versions. But bbPress 1.0 is not clearly more secure than 0.9 – in fact, because bbPress 1.0 uses BackPress, it’s possibly less secure. Plus 0.9 has been stable for a long time, while 1.0 is new and still has a fair number of bugs.

    Integration is easiest when you share a user table. It’s possible to integrate bbPress with other software (WordPress, or even something else) without sharing a user table but it’s not easy and there are no publicly released plugins which allow it.

    How many users do you have on your WordPress install?

    #79396
    batrachoid
    Member

    The latest versions of wordpress and bbpress are the most secure and bbpress is designed to integrate with wp. The only possible advantage to keeping an older version of bbpress is the amount of plugins that have not been updated to ensure compatability (in other words, if you want a lot of plugins, stick with 0.9 until the ones you can’t live without are brought up to speed. My recommendation – upgrade now that you don’t have too many plugins to worry about).

    If you’re going to upgrade bbpress, do it first.

    Install wordpress and integrate with bbpress. Basic (shallow) integration eliminates the need for users to log in to each seperately.

    #79348
    Mark
    Member

    Did you select integration during the installation? I’m assuming so – you should have the following values set in WordPress which you will use during this process to have added to your bb-config.php and the bbpress database;

    AUTH_KEY

    SECURE_AUTH_KEY

    LOGGED_IN_KEY

    NONCE_KEY

    AUTH_SALT

    LOGGED_IN_SALT

    SECURE_AUTH_SALT

    The four that go in your bb-config.php (should be handled by the installation):

    BB_AUTH_KEY

    BB_SECURE_AUTH_KEY

    BB_LOGGED_IN_KEY

    BB_NONCE_KEY

    The three that should be (matched) in your database (the bb_meta table) are:

    bb_auth_salt

    bb_secure_auth_salt

    bb_logged_in_salt

    …the rest of the integration allegedly needs no attention with the latest WP/WPMU and bbPress, but I have the bbPress Integration plugin installed on mine anyways, and at the very least it doesn’t hurt. It also gives you some additional cookie information to add to your wp-config.php

    #79279

    In reply to: Plugin Request: Garage

    gerikg
    Member

    I would it be separate from the forums. maybe another tab in a person’s profile. (maybe I should ask bp people?)

    People can upload their car picture(s) and fill out pre determined fields.

    You will have a link under their name when they post saying garage where you see the person vehicle, like you see their profile. That would be the minimal and the starting point.

    Then more complex:

    -Have a directory of all the people’s car, maybe looking like the groups in bp (http://testbp.org/groups).

    -Have rating on the car

    -Top Rating, Random, Search, and Last updated.

    -Add more than one car, more than one picture

    I realized that means you are basically creating a photo album with fields.

    #79238
    Olaf Lederer
    Participant

    Hi,

    I don’t think that there is a standard function for that, do you tried some custom code?

    since version 1.0 it’s possible to have custom functions in the template functions.php file. Just like in wordpress.

    #79240
    johnhiler
    Member

    I haven’t seen any reports of that issue on the forums… you might want to try upgrading to the latest 1.0 release, and see if that helps?

    #79174

    You are correct. I downloaded it from https://bbpress.org/latest.zip and there it was. Strange that it doesn’t come with the .zip package from the trac site.

    On a new note there is now a new installation error:

    Warning: Cannot modify header information – headers already sent by (output started at /XXXXX/StealthEmployed/forum/bb-config.php:64) in /XXXXX/StealthEmployed/forum/bb-includes/functions.bb-pluggable.php on line 232

    I have a feeling this is probably easier to fix than the last one. Any ideas?

    #31765
    jphill77
    Member

    Is there a way, on the front page, to list the top level forums, and then show the lastest 5 discussions under each forum? I’ve been poking around in these forums and haven’t found a solution quite yet.

    #79173
    chrishajer
    Participant

    I just checked out 1.0.2 via svn and I see backpress is included as an external:

    Fetching external item into 'bb-includes/backpress/pomo'
    A bb-includes/backpress/pomo/mo.php
    A bb-includes/backpress/pomo/sample
    A bb-includes/backpress/pomo/sample/app.php
    A bb-includes/backpress/pomo/sample/languages
    A bb-includes/backpress/pomo/sample/languages/app.pot
    A bb-includes/backpress/pomo/sample/languages/bg.mo
    A bb-includes/backpress/pomo/sample/languages/app-side.pot
    A bb-includes/backpress/pomo/sample/languages/bg-side.mo
    A bb-includes/backpress/pomo/sample/languages/bg.po
    A bb-includes/backpress/pomo/sample/languages/bg-side.po
    A bb-includes/backpress/pomo/po.php
    A bb-includes/backpress/pomo/streams.php
    A bb-includes/backpress/pomo/entry.php
    A bb-includes/backpress/pomo/translations.php
    Checked out external at revision 191.

    It’s actually included in the packaged download here too:

    https://bbpress.org/latest.zip

    https://bbpress.org/latest.tar.gz

    I don’t think using trac to grab the source is the same as actually downloading the package. Maybe that was the problem?

    #50302
    anabelle
    Member

    1 Year ago latest reply posted.

    I Wonder if this has got any progress in v1.0.2 or if it is easiy doable by templates.

    I was thinking about this and it would be ideal to ask for Name, Email, and Post, when asking for a reply, if it’s a new user, he will be registered as described above, if it matches an existing user, it’ll ask for password before posting.

    It would be a killer feature for me.

Viewing 25 results - 8,751 through 8,775 (of 11,584 total)
Skip to toolbar