Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 32,126 through 32,150 (of 32,480 total)
  • Author
    Search Results
  • #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.

    #51369

    It’s probably a “white space” issue.

    Make sure there are no spaces or tabs or new lines or anything before the <?php or after the ?> in bbPress’ config.php file.

    #51254

    ear1grey,

    Actually MultiViews looks for topic.php if it hasn’t found topic/, but otherwise you’re spot on.

    You can also use RewriteRules which forces the server to do the same thing ‘manually’.

    hywl51,

    When you request that URL, Apache’s MultiViews or RewriteRules (whichever you are using) loads topic.php. That file then prepares a bunch of data and displays it with my-templates/topic.php (If that file exists) or bb-templates/topic.php (otherwise).

    If you are familiar with the way WordPress works, it may not help much :) This is one area where WordPress and bbPress are quite different.

    #51347

    You can hook into the bb_new_user hook (see bb-includes/register.php: bb_new_user() ), but by the time that hook is fired, the user is already in the database, and the new user has been sent an email.

    In the next version of bbPress, you’ll be able to hook into bb_verify_email(). (https://trac.bbpress.org/changeset/549)

    #51335

    The following plugin should work, but I have not tested it.

    <?php

    /*

    Plugin Name: Ignore Edit Lock

    Plugin URI: https://bbpress.org/forums/topic/263

    */

    function members_ignore_edit_lock() {

    global $bb_roles;

    $bb_roles->role_objects['member']->add_cap( 'ignore_edit_lock', true );

    }

    add_action( 'bb_got_roles', 'members_ignore_edit_lock' );

    ?>

    Save that bit of code as members-ignore-edit-lock and put it in bbPress’ my-plugins/ directory.

    #51360

    I beleive you… Don’t worry, I don’t blame your article. It’s very well written; no joking :).

    Thanks for your support. By the way, nice to meet you.

    Hope you can help.

    Here is my config.php:

    define(‘BBDB_NAME’, ‘per my WordPress wp-config.php’); // The name of the database

    define(‘BBDB_USER’, ‘per my WordPress wp-config.php’); // Your MySQL username

    define(‘BBDB_PASSWORD’, ‘per my WordPress wp-config.php’); // …and password

    define(‘BBDB_HOST’, ‘ localhost’); // 99% chance you won’t need to change this value

    $bb_table_prefix = ‘bb_’; // I chose that my bbPress prefix start with bb_.

    $bb->domain = ‘www.patrimoineacadien.com’; // Not sure which domain to choose here? http://www.patrimoineacadien.com is my WordPress domain.

    $bb->path = ‘/bbpress/’; // My bbPress folder is title bbpress as shown in this FTP path: (/public_html/blogue/bbPress). My WordPress folder is title blogue as shown in this FTP path: (/public_html/blogue/bbPress).

    $bb->name = ‘Babillard PatrimoineAcadien.com’;

    $bb->admin_email = ‘** MODERATED**’;

    $bb->mod_rewrite = false;

    $bb->page_topics = 30;

    $bb->edit_lock = 60;

    $bb->gmt_offset = -4; (Eastern Daytime)

    define(‘BBLANG’, ‘fr_FR’);

    $bb->akismet_key = ** MODERATED**;

    $bb->wp_table_prefix = ** MODERATED**; // I’m sure about my WordPress database prefix!

    $bb->wp_home = http://patrimoineacadien.com; // WordPress – Options->General: Blog address (URL) // No trailing slash

    $bb->wp_siteurl = http://patrimoineacadien.com; // WordPress – Options->General: WordPress address (URL) // No trailing slash

    When I add wp_home & wp_siteur1 URL as http://patrimoineacadien.com , I get the following error: Parse error: syntax error, unexpected ‘:’ in /home/patrimoi/public_html/blogue/bbpress/config.php on line 53 at http://patrimoineacadien.com/bbpress/bb-admin/install.php?step=1 . I retrieve this URL http://patrimoineacadien.com under my WordPress Options General.

Viewing 25 results - 32,126 through 32,150 (of 32,480 total)
Skip to toolbar