Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 32,051 through 32,075 (of 32,410 total)
  • Author
    Search Results
  • #51363

    If you have things set up right, it should ask you to put in the user name of your WordPress account rather than asking for all that other stuff.

    What does your $bb->wp_table_prefix setting look like?

    It should look like

    $bb->wp_table_prefix = 'wp_'; (or whatever the actual prefx is).

    The “Forum Name” can be anything you want. For example, one of the forum names on this site is “Installation”.

    #51468

    Let’s say your first bbPress has a table prefix (set in config.php) “bb_”.

    Install your second bbPress into another directory. In it’s config.php file, make sure and set it’s table prefix to “bb2_”.

    Directly under the table prefix line, add the following line:

    define('CUSTOM_USER_TABLE', 'bb_users');

    That tells the bb2_ bbPress to look for users in the bb_ bbPress’ user table.

    Now a new user has accounts in both bbPress installs, but the two installs do not share login cookies; the user has to log in separately to each install. To make it so that when a user is logged in to one forum, that user is also logged into the other, you will probably have to add the following line to both config.php files:

    $bb->cookiepath = '/';

    An admin in one bbPress will not be an admin the other bbPress.

    Blocking a user will block them everywhere. Instead of blocking a user, you could make their User Type “Inactive” in one of your bbPress installs by editing their profile. Then they won’t be able to do anything but look around on the one bbPress install, but can still be full members on the other.

    #51474
    steven19
    Member

    Cool THX, maybe its a feature in the next Version :)

    #51517
    ardentfrost
    Member

    Yeah, for that you’ll either have to wait for support or a plugin to be written. Gotta give it time. It’s something I was going to try to tackle soon, but I wouldn’t hold your breathe on my account :)

    I still have my phpbb forums up and they get slammed all the time with spammer comments. If you’re going to use something else while you wait for a plugin to be written, I’d probably try something else if I were you.

    #51530

    In reply to: Forum Categories

    ardentfrost
    Member

    I think that would be a pretty easy plugin to make, although it would take an addition to the database and since I started writing plugins 2 days ago (been playing with the code for 4 days now), I haven’t decided (or discovered) the best way to go about that yet.

    It’s a good idea and I’d start writing it myself, but I have like 5 others I’m going to make first. Sorry, maybe someone else will tackle it :) If not, I’ll probably have a solution in a few weeks.

    #50350
    ardentfrost
    Member

    Open your config.php in the bbpress root directory and change the offset. You don’t even have to reinstall anything, that’s just where the forums go to get that value. Changing that value and reuploading that file will fix the problem (same thing happened to me :) )

    #51400
    mjfiszman
    Member

    Thanks for the help :)

    ergate: I’m doing it manually right now. Assuming I carry on like that, is there a way to include the # posts functionality?

    ear1grey: Your plugin looks to be the sort of thing I’m after, but I’m a bit confused about how it works.

    First, I believe I’ve added that meta fields as instructed, but nothing seems to be showing in the post.

    Also, it’s not clear from the example post on your site if it’s possible to direct users to a particular, pre-existing forum topic.

    Thanks for any more help!

    #51514
    michan
    Member

    Ahh, you’re right! I overrode the keymaster setting with the code mentioned in this other topic and everything’s fine now. Thank you very much for your help!

    #51509
    ardentfrost
    Member

    I’m sure that’s plugin-able… I’ve been thinking about it myself

    It seems to me that anything that I want in bbpress I can just add in myself. The code isn’t too terribly hard to follow (you HAVE to make it searchable though, or you’ll pull all your hair out in less than 2 hours) and even if the hooks you want aren’t there yet, you can just adjust the core files and at least it’ll work for you (I know, I know, that’s bad ;) )

    #51473
    ardentfrost
    Member

    I’m about to post it actually :)

    However, let me warn you ahead of time, it does require a single change to a core file.

    #51461

    In reply to: Change URL address?

    ear1grey
    Member

    The symlink would mean old URI’s would still work, but any new URI’s generated (on every new page) would point to the preferred address.

    I think it’s maybe also worth adding this to robots.txt a:

    User-agent: *

    Disallow: /your-old-folder

    So that any robots that discover one of the older URLs don’t go indexing what they might consider as duplicate pages.

    Longer term you could also add a 301 redirect to htaccess to ensure any links to the old content have rank properly attributed to the new location… but this is probably getting waaay too complex if it’s a new installation.

    Another alternative, of course, is to just rename the folder and change your config.php – it’s more maverick than the symlink approach, but if your forum is new and has no fully qualified self referencing links contained within, then it’s not much of a wrench to just move the whole kaboodle.

    #966
    ardentfrost
    Member

    It’s a simple one.

    It returns the post count of the user.

    You can see it in action at http://www.rayd.org/forums2/ (you have to look at an actual topic)

    You can download it from http://faq.rayd.org/bbpress_postcount/ (link is instructions how to use it, link at bottom instructions)

    Is this something I can submit to bbpress? Or is me mentioning it here the equivalent of submitting it? :)

    #51459

    In reply to: Change URL address?

    ear1grey
    Member

    I think the easiest (& most stable) solution is to use a symlink such as ln -s /path/to/bbpress newname in the folder where you want the new forum to appear (probably at the top level of your server).

    Then, once that’s running, open your config.php and change $bb->path = '/newname/';

    I think that’s all, and you have the advantage of being able to get the symlink working before asking bbpress to use the new path when creating links.

    Anyone see any gotchas with that?

    #51402

    “PS: it just tells who was online over the past 5 minutes. This is not true, it only shows te persons currently online, which is good!”

    – If the user clicks on Logout, otherwise he will disappear after 5 minutes.

    “Would be nice to add total guests too”

    – Good idea … i’ll give it a try =)

    “Great plugin, if you made this one AJAXED it would be even greater!”

    – Thought about it, but this would be easer to realize with next version of bbpress (current version only loads bb_head() when topic is displayed)

    Thx for your critique.

    #51455

    In your config file it should look like this, does it?

    // If your bbPress URL is http://bbpress.example.com/forums/ , the examples would be correct.

    // Adjust the domain and path to suit your actual URL.

    // Just the domain name; no directories or path. There should be no trailing slash here.

    $bb->domain = 'http://patrimoineacadien.com'; // Example: 'http://bbpress.example.com'

    // There should be both a leading and trailing slash here. '/' is fine if the site is in root.

    $bb->path = '/bbpress/'; // Example: '/forums/'

    #961

    Hi.

    I really missed an onlinelist in bbpress, so i made a simple one myself. Dont expect anything special, it just tells who was online over the past 5 minutes.

    Download it here.

    See a demo here. (Login use: Test / test)

    To Display the online list simply add show_online_users(); wherever you want it in your template.

    Additional Features:

    – Last online time on profile page: profile_last_online();

    – Current online users as number: total_online_users();

    #51398
    Aaron
    Participant

    If I am not mistaken it looks like he already has an integration done. mjfiszman is that correct?

    If so how did you set this up? or are you doing this manually?

    If it is integrated (eg. calling bbpress functions on the wp page) did you try get_topic_posts()

    #51397
    ear1grey
    Member

    To redirect users to a forum (e.g. see the bottom of this article), I wrote a tiny plugin called bbpress-instead.

    I’m going to add a count capability now (for example purposes), so since it’s GPL (natch) feel free to embrace and extend :)

    #51395

    Thank you very much. :D

    #51394

    If you look at the default topic template (bb-templates/topic.php), you will see

    <li id="post-<?php post_id(); ?>"<?php alt_class('post', $del_class); ?>>

    the alt_class() function gives every other li element a class="alt".

    So if you use that function in your topic template, you can put something like

    .alt { background-color: red }

    in your CSS file.

    #50143

    you need to get something to help you find things like Grep. :)

    #955

    Topic: Avatars in bbpress

    in forum Plugins
    ardentfrost
    Member

    So, I just started using bbpress 3 days ago mostly because phpbb is God awful when it comes to spammers (akismet is pretty awesome on my homepage, so I assumed it would also be awesome in forums).

    At any rate, I installed a copy as a test and have been playing with it, got kinda sad that avatars weren’t supported (and didn’t want to make people get gravatars just to have an avatar, esp since gravatar service was down the other night). So I wrote my own avatar functions.

    I have everything I did on my forums, or you can just go check it out at http://www.rayd.org/forums2/

    My question is, can what I did be done in a plug-in? I know I can put my two ground-up functions in a plug-in file, but the one I don’t know how to do is the way I added a spot for a link to an avatar in profile pages. Here’s the link to me describing what I did, and the quote from what I’m talking about:

    http://www.rayd.org/forums2/topic/6?replies=1

    bb-includes/functions.php line 1388: Added avatar info to the array in function get_profile_info_keys(). Looks like this:

    array(‘user_email’ => array(1, __(‘Email’)), ‘user_url’ => array(0, __(‘Website’)), ‘from’ => array(0, __(‘Location’)), ‘occ’ => array(0, __(‘Occupation’)), ‘interest’ => array(0, __(‘Interests’)), ‘avatar_loc’ => array(0,__(‘Avatar URL’)))

    As you can see, adding that little avatar stuff at the end of that array definition not only easily added the spot to the page, but put it in the database and allowed me easy access to it in my other functions.

    I’d love to make this into a plug-in, I just don’t know how to do that. Any advice would be great :)

    #50025

    In reply to: bbPress new Theme

    Great Work. Please release ist… i need it for 10 news bb’s :)

    #51361

    bbPress no longer uses the dropdown menu (what if your blog had thousands of users on it? It’d be really hard to find you!).

    Instead, you should be able to enter your WordPress account’s login name into the form as you install bbPress.

    But, there is a problem with your config.php

    The values for $bb->akismet_key, $bb->wp_table_prefix, $bb->wp_home, and $bb->wp_siteurl should all be contained in single quotes (') like

    $bb->wp_home = 'http://patrimoineacadien.com';

    EDIT: I removed some potentially sensitive information from your post above.

    #51370

    In reply to: Allowed tags

    Backticks are for code that you want to display “raw”.

    If you want to actually have the link be a link, don’t use backticks.

Viewing 25 results - 32,051 through 32,075 (of 32,410 total)
Skip to toolbar