Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 27,901 through 27,925 (of 32,495 total)
  • Author
    Search Results
  • #58948
    citizenkeith
    Participant

    Hmm…. not sure to how to change that code without getting errors (I’m running 0.9.0.1 on this particular forum).

    function get_profile_info_keys() {
    return apply_filters(
    'get_profile_info_keys',
    array('user_email' => array(1, __('Email')), 'user_url' => array(0, __('Website')), 'from' => array(0, __('Location')), 'occ' => array(0, __('Occupation')), 'interest' => array(0, __('Interests')))
    );
    }

    function get_profile_admin_keys() {
    global $bbdb;
    return apply_filters(
    'get_profile_admin_keys',
    array($bbdb->prefix . 'title' => array(0, __('Custom Title')))
    );
    }

    #64247

    In reply to: Change Gravatar Size?

    citizenkeith
    Participant

    Thanks Wyvn. It would be nice if there was something in the Admin menu to change this, but for now I’ll just change that file. :)

    #64029
    affacat
    Member

    to better illustrate my issue, my current code for the profile page is:

    if ( avatarupload_get_avatar(ID) ) {

    avatarupload_display($user->ID);

    } else {

    echo bb_get_avatar( $user->ID );

    }

    which means if uploaded avatar exists then display it, else get gravatar.

    but what i really want is:

    if uploaded avatar exists then display it, else if gravatar exists then display that, but if neither exists then display the avatar upload default avatar.

    Right now it displays gravatar default instead. which isn’t my first choice since avatar upload would give me control over the default image which is better for obvious reasons.

    feelie75
    Member

    This is the code that was making the call and getting the return false returned to it, thus resulting in this error:

    if (!$bbdb->db_connect(‘SHOW TABLES;’)) {

    $this->step_status[1] = ‘incomplete’;

    $this->strings[1][] = __(‘There was a problem connecting to the database you specified.
    Please check the settings, then try again.’);

    return ‘error’;

    }

    db_connect was returning false when it detected $this->$dbhname was undef. So by removing the return false when that happened, the db_connect call then succeeded and all was happy :).

    To answer the other person, I’m hosting on localhost. I have an old PowerPC Mac running OS X 10.4.11 or something. It’s a spare computer; thought I’d stick a forum on it and learn some php.

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

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