Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 29,901 through 29,925 (of 32,491 total)
  • Author
    Search Results
  • Trent Adams
    Member

    Some permalinks are showing up fine and some are not for me. What do you have in your .htaccess file in the /forum/ folder? Is it just:

    + Options Multiview

    That seems to work for me. Without having a seperate .htaccess file for your bbPress folder, it will get messed up and try and use the wordpress .htaccess.

    As for speed, nothing changed for me with and without permalinks on.

    Trent

    #58501
    Trent Adams
    Member

    Does editing your .htaccess to just having the following and nothing else work?:

    Options +MultiViews

    Does that work? Having it of course in your /bbpress/ folder only so that it is not screwing up your wordpress .htaccess file. Does that work for your installation?

    Trent

    #58557

    In reply to: editing profile

    Here’s a couple things to try.

    Disable all your plugins.

    Set $bb->mod_rewrite = false; in your bbPress’ config.php.

    #58537

    After you changed the hierarchy in the admin section, did you click the “Save Forum Order” button?

    I don’t believe this is a plugin issue. It’s possible it’s a theme issue. You may have to change some of the markup and CSS of your theme to get it to work correctly. Check out (can probably just copy and paste) the markup in /bb-templates/kakumei/front-page.php:

    <?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() ) : ?>
    <tr<?php bb_forum_class(); ?>>
    <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>
    </tr>
    <?php endwhile; ?>
    </table>
    <?php endif; // bb_forums() ?>

    You’ll then need some CSS too:

    #forumlist tr td div.nest {
    padding-left: 2.5ex;
    }

    Also, the URLs will not look like example.com/forum/sub-forum; the URLs do not currently reflect the hierarchy.

    #58472

    In reply to: bbPress 0.8.2

    karaboga
    Participant

    Thanks for your explanations, i hope bbPress will be as clever as WordPress. :)

    #58471

    In reply to: bbPress 0.8.2

    do you mean that “after upgrading and changing the permalink structure of a forum; the old permalinks does not redirect to the new one” ?

    No, I just meant that with the current code, if you’ve somehow managed to change the slug, you’ve broken the old links. But, as you point out, bbPress knows how to move “sideways” across different kinds of permalinks.

    WordPress allows you to change the slug and automatically redirects your old links to the new slug; it’s more clever than bbPress is at the moment :)

    #58052

    In reply to: bbSync

    fel64
    Member

    It’s there! I’m looking at it right now. In the code you copied it is line 10.

    The bb_posts table is what we’re looking for, not wp_posts (also a table), and it tells you the databasename.tablename so it’s actually trying to look for a table called “posts”. I don’t think the wpbb_prefix option exists in your tables, I suspect that’s a Latest Discussions plugin thing (ah, hindsight). If it did, it would read bb_. The . is used to join two strings together, so what it should be doing is joining 'bb_' and 'posts' together into the table name 'bb_posts', but since that option doesn’t exist in your tables it just join together '' (a blank) and 'posts', leaving us with the incorrect table name of just 'posts'. I suspect.

    #58469

    In reply to: bbPress 0.8.2

    karaboga
    Participant

    karaboga, permalinks should be permanent. Perhaps we can work on redirecting old permalinks to the new ones. Better yet, that’d be a great plugin :)

    mdawaffe, do you mean that “after upgrading and changing the permalink structure of a forum; the old permalinks does not redirect to the new one” ? In this forum, for example we if write

    https://bbpress.org/forums/topic/100

    it is redirected to the 100th topic with the new permalink structure.

    Yes, permalinks should be permanent. But, in WordPress we can change the post slug, and then the permalink of the post is changed. Why cannot we do so in bbPress? :)

    #58051

    In reply to: bbSync

    sneakym
    Member

    Sorry fel but that piece of code isnt in there. This is what it looks like

    ‘<?php

    function felblogtotopicid( $felpostID ) {

    global $table_prefix, $wpdb;

    $posts_table = $table_prefix . “bbpress_post_posts”;

    $topic_id = $wpdb->get_var(“SELECT topic_id FROM $posts_table WHERE post_id = $felpostID LIMIT 1;”);

    return $topic_id;

    }

    global $post, $wpdb;

    if( $forumtopic = felblogtotopicid( $post->ID ) ) {

    $bbprefix = get_option( ‘wpbb_bbprefix’ );

    $replies = $wpdb->get_results( ‘

    SELECT poster_id, post_text, post_time

    FROM ‘ . $bbprefix . ‘posts

    WHERE topic_id = ‘ . $forumtopic

    );’

    I think it has something to do with ‘$table_prefix, $wpdb;’ and ‘$posts_table = $table_prefix . “bbpress_post_posts”;’. My table prefix is not wpdb (where wpdb = database name) it is just wp. Plus that ‘.’ in there is throwing it off as well as the error reads:

    [Table ‘databasename.posts’ doesn’t exist]

    SELECT poster_id, post_text, post_time FROM posts WHERE topic_id = 6

    “.posts” That ‘.’ is getting into the code and appending itself to the db name…

    I think…

    You are the master though….

    #58521

    In reply to: Sticky posts

    There are two kinds of stickies. Those that stick in the individual forum pages and those that stick in the front page.

    Click “Stick Topic” to stick it in the forum page.

    Click “Stick Topic To Front” to stick it to the front page (click the “to front” part).

    Not super intuitive :)

    Stickies are given css classes: sticky and super-sticky (if it’s stuck to the front page). You can use those classes to style them however you like.

    #58442

    In reply to: header

    driz
    Member

    okay after loads of work i fink i have managed to get them intergrated by adding two plugins and adding the code to the config.php file.

    problem is i cant logout? this is a cookie issue i guess, a fix?

    #58494

    Is there a file in bbPress’ main directory called .htaccess? Depending on how you’re accessing your server and because that file starts with a period, you may have to ensure that you are viewing hidden files when looking for that file.

    If you find that file, paste its contents to a pastebin.

    If you don’t, create a file with that name and put into it the text generated when you visit http://www.bqtrademark.com/bbpress/bb-admin/rewrite-rules.php

    #58429
    kehlers
    Member

    Well, your guess was correct! Your tip got me to thinking about cookies – I’m a little rusty on my setcookie() syntax! Anyhow, I decided to install WordPress, even though I don’t need it just now, because if I could get that to integrate across directories, then I could surely do what I’m hoping for with the gallery.php page.

    That helped me to understand the interactions of the cookies and directories and domains. All that to say, I was able to get it to work using the following in config.php:

    $bb_cookiepath = "/";
    $bb_cookiedomain = ".mydomain.com" ;

    I believe that if cookie domain is not specified, then it will default to be the root of the directory in which the script is running, i.e. mydomain.com/forums/, making it unavailable to any other directory, including parent directories. You probably already knew that, but just putting it out there in case someone else has the same issue. ;)

    #58050

    In reply to: bbSync

    fel64
    Member

    Sneaky, I have an idea of what it is. Find this line near the beginning:

    $bbprefix = get_option( 'wpbb_bbprefix' );

    And replace with

    $bbprefix = 'bb_';

    or your actual bb table prefix.

    #52179
    Burkie
    Participant

    <a href="<?php user_profile_link(get_post_author_id()) ?>"><?php post_author(); ?></a>

    the above gets the use profile for any page.

    #58465

    In reply to: bbPress 0.8.2

    Null
    Member

    – Fantasy mode on –

    How about an “upgrade me” button in the admin area?

    This button is only clickable when there is an upgrade. Clicking it will upgrade you bbpress (downloading and installing the nessecairy files) :)

    – Fantasy mode off –

    #56414

    In reply to: Freshness Linked

    fel64
    Member

    Sorry, forgot about this 😮 Looked at it, can’t figure out where it might go wrong, so here’s some slightly alternative code that will use a different function to do it’s thing and we’ll see if that works. Replace function fel_addlatestlink() with

    function fel_addlatestlink($title)
    {
    global $topic;
    //$felgtlpl = get_topic_last_post_link($topic->topic_id);
    $felgtlpl = get_post_link( $topic->topic_last_post_id );
    $title = $title . ' <a href="' . $felgtlpl . '">&nbsp;&raquo;&nbsp;</a>';

    return $title;
    }

    #58463

    In reply to: bbPress 0.8.2

    karaboga, permalinks should be permanent. Perhaps we can work on redirecting old permalinks to the new ones. Better yet, that’d be a great plugin :)

    #58513
    karaboga
    Participant

    Thank you very much, but I am not able to write any plugin. :)

    #58512

    You can change some of the views (untagged, no-replies, …) with a plugin filtering on bb_views.

    For the rest, you’ll have to use rewrite rules. You’ll also have write a plugin that filters on get_topic_link, get_forum_link, and so on or bbPress will end up in an infinite redirect loop.

    #58488

    I really do need to know what your .htaccess file looks like in order to help you.

    Also, there may be some issue with your bbPress running on http://www.bqtrademark.com and your WordPress running on bqtrademark.com

    #58406
    Kahil
    Member

    by looking at the code for the “upload avatar” plugin I found this…

    strtolower($user->user_identity);

    This is what I have now, but nothing displays for the filename, just yourkahil.com/forum/avatars/.jpg

    <?php

    /*

    Plugin Name: WP Avatars

    */

    function wp_aud( $felID ) {

    $avatar = strtolower($user->user_identity);

    $bburl = ‘http://yourkahil.com/forum&#8217;;

    echo ‘<img alt=”avatar” src=”‘ . $bburl . ‘/avatars/’ . $avatar . ‘.jpg” class=”avatar” />’;

    }

    ?>

    #56413

    In reply to: Freshness Linked

    citizenkeith
    Participant

    fel64,

    Did you ever get a chance to this out? :)

    #58405
    Kahil
    Member

    Ok, so I’ve figured out some more info to share…

    First, the code posted above needs to reference the file type (.jpg, .jpeg, .gif, or .png). Right now the code only points to the avatars folder.

    Next, I’ve figured out that the “avatar upload” plugin for bbpress does rename the images to the user’s username, but makes it all lowercase letters if there are any caps.

    Hope that helps.

    Thank you!!

    #58486

    What does your bbPress’ .htaccess file look like?

    Have you read the documentation on setting up pretty permalinks?

Viewing 25 results - 29,901 through 29,925 (of 32,491 total)
Skip to toolbar