Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 30,101 through 30,125 (of 32,499 total)
  • Author
    Search Results
  • #57960
    gjaw88
    Member

    Here is the site. NO I’m not using this for my site, this is just a test and is what domain name my friend offered haha. Nothing is inappropiate on this site, it is just for testing purposes before I buy my own domain.

    http://www.saladtossers.org/wp/bbpress/

    ‘code'<?php

    // ** MySQL settings ** //

    define(‘BBDB_NAME’, ‘mike_i126wor’); // The name of the database

    define(‘BBDB_USER’, ‘mike_i126wor’); // Your MySQL username

    define(‘BBDB_PASSWORD’, passwordhere’); // …and password

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

    // Change the prefix if you want to have multiple forums in a single database.

    $bb_table_prefix = ‘bb_’; // Only letters, numbers and underscores please!

    // 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://saladtossers.org&#8217;; // Example: ‘http://bbpress.example.com&#8217;

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

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

    // What are you going to call me?

    $bb->name = ‘test site’;

    // This must be set before running the install script.

    $bb->admin_email = ’email@gmail.com’;

    // Set to true if you want pretty permalinks.

    $bb->mod_rewrite = false;

    // The number of topics that show on each page.

    $bb->page_topics = 30;

    // A user can edit a post for this many minutes after submitting.

    $bb->edit_lock = 60;

    // Your timezone offset. Example: -7 for Pacific Daylight Time.

    $bb->gmt_offset = 0;

    // Change this to localize bbPress. A corresponding MO file for the

    // chosen language must be installed to bb-includes/languages.

    // For example, install de.mo to bb-includes/languages and set BBLANG to ‘de’

    // to enable German language support.

    define(‘BBLANG’, ”);

    // Your Akismet Key. You do not need a key to run bbPress, but if you want to take advantage

    // of Akismet’s powerful spam blocking, you’ll need one. You can get an Akismet key at

    // http://wordpress.com/api-keys/

    $bb->akismet_key = ”; // Example: ‘0123456789ab’

    // The rest is only useful if you are integrating bbPress with WordPress.

    // If you’re not, just leave the rest as it is.

    $bb->wp_table_prefix = ‘wp_’; // WordPress table prefix. Example: ‘wp_’;

    $bb->wp_home = ‘http://www.saladtossers.org/wp&#8217;; // WordPress – Options->General: Blog address (URL) // No trailing slash. Example: ‘http://example.com&#8217;

    $bb->wp_siteurl = ‘http://www.saladtossers.org/wp&#8217;; // WordPress – Options->General: WordPress address (URL) // No trailing slash. Example: ‘http://example.com&#8217;

    /* Stop editing */

    if ( !defined(‘BBPATH’) )

    define(‘BBPATH’, dirname(__FILE__) . ‘/’ );

    require_once( BBPATH . ‘bb-settings.php’ );

    ?> ‘code’

    #1923
    bavardage
    Member
    <?php
    require_once( '../wp-blog-header.php' );
    $bb->WP_BB = true;
    define('WP_BB', true);

    Start of config is as per above, but get the following error:

    Fatal error: Call to a member function on a non-object in /home/jefferss/public_html/blog/forum/bb-includes/functions.php on line 503

    Any ideas?

    #57959
    Trent Adams
    Member

    Put up a copy of your config.php with the integration portions in it. Tell us what your wordpress database prefix is and we can try and work this out. Just saying it doesn’t work will not help us help you. We need details of what you have tried and what your have entered. Just make sure you don’t put any password or other information in.

    For reference, my WP integrated config.php has these entries:

    $bb->wp_table_prefix = 'wp_';  // WordPress table prefix.  Example: 'wp_';
    $bb->wp_home = 'http://trentadams.com'; // WordPress - Options->General: Blog address (URL) // No trailing slash. Example: 'http://example.com'
    $bb->wp_siteurl = 'http://trentadams.com'; // WordPress - Options->General: WordPress address (URL) // No trailing slash. Example: 'http://example.com'

    It is important to have bbPress in the same database as wordpress. As well, give us your URL to check this out for ourselves and try and see if we can help.

    Trent

    #57957
    gjaw88
    Member

    I just tried that and it does the same thing…

    :(

    #57956
    Trent Adams
    Member

    It would be your database prefix:

    $bb->wp_table_prefix = 'wp_';

    Trent

    #57361

    In reply to: Plugin: Move It

    fel64
    Member

    To get it to be for Key Masters only instead of Admins (and above) only, use 'use_keys' instead of 'administrate'. :)

    #57360

    In reply to: Plugin: Move It

    Trent Adams
    Member

    You can put up a conditional like I use in the YouTube plugin:

    if (bb_current_user_can('administrate')) :

    Put that after the main plugin function and then the following before the closing of that function:

    endif;

    Trent

    #57906
    drmike
    Member

    Hmm, I tried code (well teh backticks) in there when I noticed that the blockquotes didn’t work. In Netscape they looked teh same so I went back to just using the blockquote.

    Moderators have backend access, right Trent? You should change that. ;)

    #57950

    In reply to: Private/member forums

    drmike
    Member

    Not a problem :)

    #57904
    Trent Adams
    Member

    Darn it, I forgot that blockquote is not styled in this forum…..that is a problem that I will have dealt with! I changed your post drmike to the code tag for now as it didn’t read right without a formatting of some kind!

    Trent

    #57897

    In reply to: Tags spam

    Trent Adams
    Member

    I didn’t mention it when it was brought up, but I knew that when that was brought up drmike! ;)

    Trent

    #57938

    In reply to: Style change request

    Trent Adams
    Member

    I will pass this along Jeremy to mdawaffe in the bbdevlist! I know what you mean about the overflow! The only thing that fel64 has a point on is that if the text doesn’t show up, they are more likely to use the code tags.

    Trent

    #57947

    In reply to: Old Version

    Trent Adams
    Member

    mdawaffe is working like crazy on 1.0, so the old versions won’t matter soon enough (well maybe not soon, but sometime!) :)

    Trent

    #57357

    In reply to: Plugin: Move It

    citizenkeith
    Participant

    I keep getting this error:

    Warning: Cannot modify header information – headers already sent by (output started at /forums/my-plugins/moveit.php:117) in /forums/bb-includes/pluggable.php on line 166

    I removed the complete path for my security. :)

    #57896

    In reply to: Tags spam

    drmike
    Member

    heh heh heh

    And we’ve been told that staff couldn’t see who made tags over in wp.com land. ;)

    #57903
    drmike
    Member

    There seems to be a bit of difficulty with integrating wpmu with bbpress.

    I disagree. You pretty much drop three lines into the config file for bbpress, use the same database and it’s set.

    The two lines to share the cookies: Link

    And this line to use the user table from wpmu.

    define('CUSTOM_USER_TABLE', 'wp_users');

    And IIRC, that’s already in the config file, just commented out.

    Hope this helps,

    -drmike

    #56702

    In reply to: Plugin: Avatar Upload

    aranamarunda
    Member

    Thank you very much. Such a polite reply! I’m amazed at the helpfulness on this forum. It is all working now :D If you are dutch, come and join the forum :D It is for dutch role playing only… Sorry :S

    (no intention or commercial interest, just see the above as a polite invitation, no spam intended.)

    #57873
    fel64
    Member

    That’s right. A typical template file in your theme will be like this: bb_get_header() loads header.php from your theme’s folder or otherwise the default kakumei one (header.php should contain what is now in your second div called header), then there’s a bunch of content, and then bb_get_footer() will get the sidebar and the footer elements in footer.php. You won’t need to modify this or add any files or anything like that to make your theme, at least in all probability.

    Because header.php and footer.php are always called, the unchanging HTML and php should all be in there.

    header.php

    html
    head
    //some head stuff, links and meta etc
    /head
    body
    wrap
    header
    //header HTML for your logo etc
    /header

    whatevertemplate.php

    .
    content
    //content HTML and php
    /content

    footer.php

    .
    sidebar
    //sidebar HTML and stuff
    /sidebar
    footer
    //footer HTML and stuff
    /footer
    /wrap
    /body
    /html

    I hope that’s clear, it’s a little late so I might have some tired logic. This is pseudoHTML – body corresponds to <body>, but wrap corresponds to <div id="wrap"> and sidebar = <div id="sidebar"> etc. I hope that’s okay.

    So there are usually only three files that directly contribute to the output of the forum. Most of the HTML you’re messing about with should go in header.php or footer.php.

    bb_get_header() and bb_get_footer() deal with all the mucky stuff for you, you don’t need to ‘call’ them (if I’m understanding you right) from the main template individually. Just make sure they’re proper HTML inside header.php and footer.php.

    #57937

    In reply to: Style change request

    JeremyVisser
    Member

    Yes, but people frequently forget to use the code tags for the code in their posts, leading to why I would like the whole post to be overflow: auto.

    #57872
    mfaxion
    Member

    ok. Played around with the code a little bit. Have a few questions.

    With this div tag structure this is referring to the overall structure spanning the multiple php files in the template folder?

    Do I need to include the div ids for header, sidebar, content, footer whenever they are called in the templates php files?

    I assume that the child element reference is that I should have all my div header, div sidebar and div footers closed when those sections end.

    Since there are a handful of php files in the template can you explain how I know which to add?

    If you couldn’t tell I’m pretty confused! Really appreciating the help.

    #56700

    In reply to: Plugin: Avatar Upload

    fel64
    Member

    You need to change the permissions of the avatars folder I think.

    http://faq.wordpress.net/view.php?p=54

    The avatars cross the next poster’s names because they’re that’s how the CSS is set up. You could change the HTML and CSS structure, or if that’s perhaps too much you could open kakumei’s style.css, find #thread li { ... } and add this to it:

    min-height: 120px;

    That should make sure the post box is big enough that the next post box doesn’t interfere with the avatar. Change the number if you want it differently.

    #57884

    In reply to: Changing the header

    LwEEs
    Member

    Sam my friend,

    Is this on the theme header or somewhere else, because my bbpress theme header is actually one line of code, everytime I try to change it messes up the installation. When I get home I’ll post the few letters my header has. Thanks.

    #57883

    In reply to: Changing the header

    Sam Bauers
    Participant

    I meant the post the whole header file. Place the code between backticks to show it properly here.

    #1918
    daxeno
    Member

    Does anyone here have any old version they can share?

    my friend tod me that the older version works better than th new one. :(

    #57944
    fel64
    Member

    I think the usual problem is because it sets a cookie for the wrong domain. Are you running a local copy on xampp or the like? You will need to add this to your config.php if you are.

    $bb->cookiedomain = '';
    $bb->cookiepath = '/forums/';

    Cookiedomain should be blank, and cookiepath should obviously be the folder your forums are in (so you should change that value).

Viewing 25 results - 30,101 through 30,125 (of 32,499 total)
Skip to toolbar