Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 27,926 through 27,950 (of 32,516 total)
  • Author
    Search Results
  • #64239
    arlene476
    Member

    There is an answer here, https://bbpress.org/forums/topic/require_oncepathtowp-blog-headerphp

    Saying:

    Put in the full path from the server root instead of the relative path.

    But I don’t know how to code it and what line to place it

    #64212

    this order: WP 2.3, bbpress 0.8 (no integration with plugins at that time!), WP 2.5, bbpress 0.9

    I patently waited with integration until 0.9 was out since I did not understand the whole thing before. And everything seems to work fine. Just as soon as I add the WP_ prefix setting to my bbpress config, it seems as if bbpress can only access the WP users anymore (with the correct role mapping i set up etc.).

    maybe I should just ask all registered users to reregister after integration, since the forum is pretty new anyway ;-)

    chrishajer
    Participant

    Sorry, I forgot I was talking about tags.php specifically. Here’s a tags URL.

    http://www.riversideinfo.org/forum/tags.php?tag%3Dtif

    is what’s in the sitemap.

    curl -I "http://www.riversideinfo.org/forum/tags.php?tag%3Dtif"

    returns a 302 header.

    If you unencode it, and then curl -I:

    curl -I "http://www.riversideinfo.org/forum/tags.php?tag=tif"

    returns a 200 header.

    Maybe it’s just the urlencoding of the = that causes it to redirect? That’s the only difference between the two URLs here.

    chrishajer
    Participant

    Here’s an example of a URL in the sitemap.

    http://www.riversideinfo.org/forum/topic.php?id%3D3%26page%26replies%3D1

    If you do a

    curl -I http://www.riversideinfo.org/forum/topic.php?id%3D3%26page%26replies%3D1 you get a 302 header back. If you URL unencode the URL and do a curl -I, you get back a proper 200:

    curl -I "http://www.riversideinfo.org/forum/topic.php?id=3&page&replies=1"

    I am not using permalinks or slugs, and that plugin author doesn’t seem to have updated it since I installed it long ago. I actually turned it off a while ago because of the amount of time it was taking to generate the sitemap for 5000 posts.

    http://boakes.org/talk/topic/31

    So, I guess the question is, why does that first URL trigger a 302? Maybe the sitemap plugin is creating URLs that are poorly formed?

    _ck_
    Participant

    I am not sure why Google would be seeing redirects. bbPress only redirects after form submits via wp_redirect to the best of my knowledge. Some plugins do too, but usually again after only form submits. Even tag URLs don’t use redirects.

    Are you saying the sitemap plugin does not generate permalink urls but rather the non-slug type ie. ?topic=123 If so, it’s outdated and if you are using slugs it should be modified to generate results that take advantage of slugs.

    #64071
    _ck_
    Participant

    bbPress has a function to check for administrators.

    if (!in_array(intval($GLOBALS['forum']->forum_id), array(2,5,9)) || bb_current_user_can('administrate')) { do something here }

    where 2,5,9 is the list of forum numbers you want to restrict

    what you are trying to do is possible but very tricky

    For example the “add new” on the front page offers all the forums for posting and you’d have to write a replacement for the list (bb_new_topic_forum_dropdown)

    All the “magic” happens in post-form.php, so you could take that if statement above and wrap the entire template with that (in theory).

    #64208
    _ck_
    Participant

    Find bb-templateskakumeifront-page.php (or the same template name in any alternate theme you might be using) and find the line that says

    <?php if ( $topics || $super_stickies ) : ?> (around line 11) and make it say

    <?php if ( 0 && ( $topics || $super_stickies )) : ?>

    which will make the if statement always fail and never show the latest discussions. If you ever want to restore it, just remove the zero &&.

    #64156
    refueled
    Member

    “Interesting design.”

    Hopefully that’s a good thing, and not too interesting that it’s junk. :)

    Thanks for adding it to bbshowcase.

    #53835

    In reply to: k2 for bbpress

    linickx
    Participant

    I had an e-mail saying that the latest bbpress broke my port, so I’ve done a re-release :)

    http://www.linickx.com/archives/402/k2-for-bbpress-updated-v002

    #64152

    In reply to: Prblem upgrading

    Sam Bauers
    Participant

    If bbPress and WordPress are in the same database then hopefully all you should have to do is add this line to your bb-config.php after the database definitions:

    $wp_table_prefix = 'wp_';

    #64137
    mattpeckham
    Member

    Good question GoeffF, looks like it used to be here:

    http://bbshowcase.org/forums/view/available-themes

    But clicking on it just refreshes the page. Clicking on the author’s link takes you to a rather nebulous blog which for all I know has the code for the theme (if it’s even still the blog of the original guy) but good luck finding it.

    Was there a legal issue with posting that theme? Did bbPress not approve?

    #64144
    Hermiony
    Member

    Hi Chris,

    It is a WP blog, I just call it a website as I’ve tweaked a tad to be more websitesque and not bloggy.

    Thank you for your help :-)

    #63492
    citizenkeith
    Participant

    I had some spam to delete today, and realized that the “Delete” function still wasn’t working for the Keymaster.

    I deleted the offending post and topic name from PHPMyAdmin, but I really don’t want to do that!

    Can somebody help me troubleshoot this problem? The forum gets a decent amount of traffic, and there are a few trolls waiting in the wings. :)

    #64193

    In reply to: Plugin problem

    rbredow
    Member

    This one had me stumped but I just figured it out. I should probably document the solve it here in case others encounter the same problem.

    Like many people, I have bbpress installed in a subdirectory below wordpress:

    /myblog/bbpress/

    I also use the popular wp-super-cache plugin for wordpress. It turns out, you really need to add your bbpress directory to the list of rejected URI’s for wp-super-cache. For the above example, you’d want to add this line to the Rejected URI’s field:

    /bbpress/

    Otherwise, your bbpress board and the administration panel will be semi-randomly showing you old cached pages. Unsurprisingly, this can cause all sorts of strangeness including apparently activating/de-activating plugins, showing plugins that you’ve deleted, etc.

    -Rob

    #49642

    In reply to: Emoticons For bbPress?

    citizenkeith
    Participant

    At least I’m not the only one with problems. :)

    I have the plugin activated, and if you type the shortcut, the image does appear. But you can’t click on the image links to make them appear in your post.

    #64126
    intellivision
    Participant

    Same behavior when I don’t check “remember me”. Logging in one logs me out of the other.

    Note: I just today moved the site from a dev area at

    coloradoboards.com/appleswitcher/wp/

    to

    appleswitcher.com/wp/

    so further cookie path examples will reflect that.

    #64140
    chrishajer
    Participant

    In wp-config.php, there is this line:

    define('SECRET_KEY', 'put your unique phrase here');

    Whatever value you have there is what you need for bbPress.

    For WordPress address and Blog address, log into your WordPress control panel and under “Settings” you will find these two entries. Whatever is here is what you put into your bbPress installation.

    They are entries three and four I believe.

    http://www.example.com/wp-admin/options-general.php#siteurl

    http://www.example.com/wp-admin/options-general.php#home

    #64079
    mattpeckham
    Member

    I’m not sure why, but the file wasn’t there. Perhaps I inadvertently deleted it? I downloaded the install again and bingo, there it was. Uploaded it and the install went off without a hitch.

    Conclusion? Bad user on device error. :)

    Matt

    #3164
    intellivision
    Participant

    Logging in to WP 2.5 logs me out of bbPress 0.9.0.1, and vice-versa.

    Cookie information with bbPress .9

    name: wordpress_613ba28cb41760cadf1f08a898f98620
    contents: xxxx%7C1208969840%7C594bfc5f83a1e8af5dd70d130d4c0b89
    website: coloradoboards.com
    path: /appleswitcher/wp/
    date: Wed, Apr 23, 2008 10:57:19 AM

    Cookie information with WP 2.5

    name: wordpress_613ba28cb41760cadf1f08a898f98620
    contents: xxxx%7C1208969965%7Cba3e6d706d0ec0feff73e34afde5d9f0
    website: coloradoboards.com
    path: /appleswitcher/wp/
    date: Wed, Apr 23, 2008 10:59:23 AM

    …where xxxx is a not my username… just using that for security.

    #64061
    Hermiony
    Member

    Thank you Feldman :-)

    Sam Bauers
    Participant

    Thanks so1o, that’s the quick an dirty fix. That code uses jQuery methods, and jQuery is not available in topic pages.

    It didn’t get picked up because that code falls back to non-ajax requests when it fails.

    We are half way through removing all prototype in favour of jQuery, and this snuck under the radar.

    #63869
    Sam Bauers
    Participant

    Looks like you got the $bb_table_prefix wrong when you installed, it should have been different to the wordpress prefix.

    Change $bb_table_prefix from “wp_” to “bb_” in bb-config.php then rename you bbPress tables thusly:

    wp_forums -> bb_forums
    wp_tagged -> bb_tagged
    wp_tags -> bb_tags
    wp_topicmeta -> bb_topicmeta
    wp_topics -> bb_topics

    .

    Do not rename wp_posts, wp_users or wp_usermeta!

    This will still leave you without a bb_posts table. So if you have a way to browse your database (e.g. phpMyAdmin) then go into the bb_topicmeta table and look for the row with a meta_key of bb_db_version. Change the meta_value of that row from 1234 to 1233. Login to your bbPress (hopefully it works) then go to the admin section. You will be asked to upgrade, do so and check the log. You should see a log entry where your bb_posts table is created.

    That should do it.

    so1o
    Participant

    I fixed the error by adding

    <?php bb_enqueue_script('jquery'); ?>

    just before

    <?php bb_enqueue_script('topic'); ?>

    in header.php in the theme

    feelie75
    Member

    I’m sure this ISNT the proper solution, heh, but since it worked I thought I’d point it out.

    After Step 1 failed many times, I set out to debug it. My travel took me here:

    bb-includes/db-mysql.php

    $this->$dbhname = @mysql_connect( $server->host, $server->user, $server->pass, true );

    if (!$this->$dbhname)

    return false;

    That was failing and returning false everytime. I couldn’t figure it out. I printed out the hose and user and password, and it looked good. I could connect just fine from a shell prompt.

    After confirming that it actually WAS connecting, and that it was simply the lack of $this->$dbhname that was causing the failure, I just commented out the return false; and VOILA! It worked! Installation finished and I can post messages, etc, etc, everything seems fine.

    Soooo… What’s up with that?! hehe. $dbhname was == ‘dbh_local’.

    Not sure what other details I can provide. Just thought I’d share the rather strange experience and oddness that I’d have to hack the db_connect code to get the install to complete… Weird!!

    #64097
    erdenozkan
    Member

    Let’s say “A good image upload plugin is needed”. I agree with that. A good image upload system is a must for some communities and not for some.

    There’s no need to discuss why some users need image uploading and some not. I’ll be migrating a very large community to bbpress in a few months. The only reason for us to migrate to bbpress is its code base; it’s extendable and very easy to use. So we will write custom plugins to our specific needs.

    Yes, bbpress needs a very good image uploading plugin just like worpdress’s akismet plugin; developed seperately as a plugin. There are some good bbpress plugin developers over here, so what we need to do is just to donate some money. This kind of plugin will take bbpress one more step ahead.

Viewing 25 results - 27,926 through 27,950 (of 32,516 total)
Skip to toolbar