Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 31,951 through 31,975 (of 32,294 total)
  • Author
    Search Results
  • #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.

    #951

    Topic: Allowed tags

    in forum Troubleshooting
    dlats
    Member

    I used <a href....> here</a> and it simply repeats the code without the backticks. What am I doing wrong?

    #51365

    I found I cannot delete the post too, in both IE6 or firefox.

    in firefox, every time I try to delete, it shows the message: “Something odd happened.”

    in IE6, when I try to delete, it shows the message: “Processing Data…” but with the error on page, click it shows:

    Line: 362

    Char: 2

    Error: ‘new Thread’ is null or not an object

    Code: 0

    URL: http://www.travelsuperlink.com/forum/topic.php?id=44&replies=1

    anybody could give some hints what’s wrong, which files I need to copy again? Thanks.

    #51359
    astereo
    Member

    You’re doing something wrong in the config. (Don’t blame my article ;))

    Chances are, your WP information is not matching up in your BBpress config. Post your config file here (just take out the db passwords) and I’ll be glad to help.

    #51253
    ear1grey
    Member

    You’ll have noticed that there’s no “topic” subdirectory inside your “forums” directory, so what I think you’re asking is “is bbPress really serving a page that doesn’t physically exist on my hard drive?”

    The answer is yes, bbPress generates the page on the fly, so there is no stored page that has the content of that URL.

    Apache’s MultiViews option makes this happen because the server tries to find the best match to your URL. It looks first for forums and finds it, so then it looks for topic in forums, which doesn’t exist, so it tries the next best thing, which is to look for an index of some kind, and it finds the bbPress index.php.

    When bbPress runs (through index.php) it still sees the originally requested url, so the fact that it’s a request for topic/242 is spotted by the code – it’s a simple as stripping the integer value from the string and using that as the primary key for the database lookup.

    Briefly, the sequence is that index.php loads bb-load.php, bb-load.php loads your config.php, which specifies where your DB is (so the content can be generated), config.php then loads bb-settings.php which is where most of the core request-processing is done.

    At least… that’s what I got from looking through the code :) A core dev. might be able to describe it better.

    #946
    yottabite
    Member

    Originally posted at http://forum.blandname.com/topic/11

    Using http://cow.neondragon.net/stuff/reflection/ I was able to add reflection to the blandname bbPress theme.

    Here’s how it works:

    You’ll need two files to make this happen.

    Put both files in either /my-templates or /bb-templates, CHMOD them to 755, and edit your header.php file accordingly.

    In my case:

    <script type="text/javascript" src="/my-templates/reflection.js"></script>

    <script type="text/javascript" src="/my-templates/prototype.js"></script>

    Was added before the last div tag in the header.php file.

    In order to make the reflection work, make sure to add class="reflect" to any img tags you wish to have reflecting and looking all mac daddy cool.

    #49420

    In reply to: Importing from phpBB

    Trent Adams
    Member

    Did you edit the plugin to have your database username, database name and password? The plugin requires that information hardcoded into the space provided.

    Trent

    #51324

    In reply to: K2.F

    p3t3r
    Member

    Very nice Theme.. it looks a lot better than my attempt to let bbPress look like K2.

    When will you publish it? Do you plan to put the code a plattform like Google Code to make development more accessable?

    (Sorry, that my english is a bit crappy, it´s due to I don´t speak and write in english regularily.)

    #51115
    lordcoder
    Member

    Awesome :D

    #936
    #49418

    In reply to: Importing from phpBB

    pixelfight
    Member

    I got this message….

    Access denied for user ‘root’@’localhost’ (using password: YES)

    I am very new to databases, and I really could use some help here ;-)

    #51315
    pixelfight
    Member

    Nevermind.. ;-)

Viewing 25 results - 31,951 through 31,975 (of 32,294 total)
Skip to toolbar