Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 32,076 through 32,100 (of 32,410 total)
  • Author
    Search Results
  • #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.. ;-)

    #51308
    Atsutane
    Member

    I dont think they gonna change the theme system for now :)

    #51307
    Atsutane
    Member

    Yeah it works now :) Thanks for your help

    #50923
    Atsutane
    Member

    Just want to let u know. The post count is broken. U can download the new version to fix this :)

    #51012
    Atsutane
    Member

    nolageek, it was a bug on bbpress 0.73 – https://trac.bbpress.org/ticket/476

    For temp solution u need to disable akismet :)

    #49733

    In reply to: Email subscription

    snowcrash
    Member

    Not having email notifications is the only reason that stalls me from using bbpress with WP.

    While a lot of effort has gone into RSS integration, as others have said, it’s not straightforward for many ordinary users. Email is still dominant.

    I hope email notifications will be developed, or least a plugin please :-)

    thanks

    #51301
    ear1grey
    Member

    gnawph wrote:

    The bbPress designers would look foolish changing all of their IDs to Classes and wouldn’t conform.

    I’ve already stated that: “I’m not advocating the removal of any of the ID’s from templates”. I am, however, conscious that the reliance on ID based formatting in the default template is more likely to run in to integration problems in the long run.

    “Latest and Popular are different tables and shouldn’t be labeled the same”.

    Yes, latest and popular are different tables (their ids are different), but they are both examples of a certain kinds of table that show an ordered selection of items based on some kind of score (be it date or rating). So it’s better to define what that kind of table is, so use a class.

    “If code redundancy is an issue you could always go:#latest, #popular {

    Yes, this does have a similar effect, but, if I’m writing a plugin with UI elements then for it’s output to be shown correctly in TemplateX, either:

    1. I have to add CSS to the plugin which might work with TemplateX, but be incompatible with TemplateY, or
    2. The authors of X&Y must alter their css to cope with my plugin.

    This potential hassle just becomes less likely if template designers take an extra few minutes to consider what the more abstract classes in the design should be!

    BTW: class="tableonmainpage" might be better described as .mainpage > table {}

    #50444

    In reply to: Google sitemap

    lstelie
    Member

    Hello earlgrey

    The 06rc1 version seems to work very well

    (note : line 21 $version=0.6rc1; must be replaced by $version='0.6rc1';)

    The version number is still 051 in the xml file so it may be hardcoded somewhere in the code.

    By the way the correct link is 0.6rc1

    #51299
    gnawph
    Member

    Users should have to rethink their CSS. Not using a ID selector just because a “newbie” doesn’t realize there can only be one element attatched to them is lame. The difference between ID and Class is one of the fundamentals of CSS. The bbPress designers would look foolish changing all of their IDs to Classes and wouldn’t conform. These selectors carry semantic meaning and without them your HTML code becomes less proffesional and harder to read.

    Latest and Popular are different tables and shouldn’t be labeled the same. If code redundancy is an issue you could always go:

    • #latest, #popular {
    • -or-

    • <table id=”latest” class=”tableonmainpage” >

      If somebody is going to be digging around and making their own theme they should really take 5 minutes to read a CSS tutorial.

    #51298
    ear1grey
    Member

    That’s part of it yes…

    …but also, using ID based formatting can cause trouble down the line when users want to add more elements to the page and find they have to change the CSS rather than just saying that their new addition <thing id='latest' />; should be formatted in the same way as <thing id="popular" />; because they’re both the same kind of table.

    This is a double pain because CSS seems to get stuck in some browser caches so users see the new page with the old CSS.

    The shift from “how do I want this to look?” to “what kind of thing is this and what do those things look like?” is (I have found) worthwhile.

Viewing 25 results - 32,076 through 32,100 (of 32,410 total)
Skip to toolbar