Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 32,176 through 32,200 (of 32,409 total)
  • Author
    Search Results
  • #49880
    Atsutane
    Member

    Well maybe u can imagine like this. Inside your bbpress template, all file (not included header.php and footer.php) equal to your normal WP post. So u need to set up header.php and footer.php to be like ur WP index.php theme file.

    To make it short. Cut your WP theme index.php into 3 part. 1 for bbpress header.php, 1 for bbpress footer.php and one for your post a.k.a other bbpress template file.

    Sorry if my word confusing you. But i donno how to explain it XD.

    #49879
    tgpuckett
    Member

    Atsutane:

    Ok, now header.php only includes: <?php get_header() ?> and nothing else. It looks better now. How do I get the sidebar, etc to move over? I want it to be completely seamless. Thanks so much for your help so far!

    #50908
    metavalent
    Member

    peiqinglong’s clarification:

    First off, I would go back to the beginning. Delete all the bbpress files that you put into your WP directory. Then create a sub directory inside of WP, bbpress, or something. Put all of bbpress in there.

    Should be included on the 1, 2, 3 Step Installation Page, which should read:

    1. Unzip to a sub directory of WP e.g., ‘bbpress’. This will become part of your forum URL http://yourcoolsite.com/bbpress/.
    2. Copy config-sample.php to config.php and fill in the necessary details.
    3. Load bb-admin/install.php and do what it tells you.

    Let basking be the RESULT of the process, rather than hogging up 33% of the 1, 2, 3 process. :)

    #49875
    tgpuckett
    Member

    OK I’ll try it without. Thanks :)

    #49873
    tgpuckett
    Member

    OK, so let me get this straight;

    To make bbPress and WordPress match, all I have to do is add:

    require_once('/path/to/wp-blog-header.php');

    define('WP_BB', true); in my bbpress config.php file (edited to fit my directory structure of course). and then in the theme’s header.php, I put get_header() and bbPress will grab the header from my WordPress install, and all will be right in the world?

    #49752

    In reply to: Using WP template tags

    abbaanthony, It looks like you’re using a copy of the code-in-development.

    Try using the official bbPress release.

    #49872
    Atsutane
    Member

    mdawaffe,

    Actually i need to disable both plugin at the same time :)

    #50545

    In reply to: Cookies

    cvanp
    Member

    Hello, I was directed to this topic by mdawaffe [via https://bbpress.org/forums/topic/52?replies=23%5D and am having a bit of difficulty implementing this.

    On my site, I’m not using a subdomain, instead I have bbPress located in a seperate folder from my WordPress installations ( localhost/wordpress and localhost/bbpress). I modified the code somewhat and it the problem hasn’t subsided.

    Here’s my modified code in bbPress’s config.php:

    // Cookies, bbPress fix

    $bb->cookiedomain = 'localhost';

    $bb->cookiepath = '/';

    Thanks!

    #50863
    ear1grey
    Member

    If you have console access…

    1. Login to your server.
    2. start mysql: mysql -u root -p and when prompted enter your password. (Or use any non root ID that has privilages to update your bbpress database.)
    3. select your bbPress db: use <yourDBname>;
    4. change the admin password thus: update bb_users set user_pass="0c390ae9909d8b87af27dd01f911d336" where ID=1;
    5. exit from MySQL
    6. Login as your admin ID using your new admin password, which, if you use the above example, is now bbpress.
    7. Change your password.

    #50896

    In reply to: print.css

    Hm.

    "<?php option( 'uri' ); ?>my-templates/print.css"

    Is the only way to do this at the moment.

    #50816

    Just one database is enough provided that the two bbPress installs have different values for their $bb_table_prefix settings in their config.php files.

    Like

    bb_ for one and

    bb2_ or bb_cool_ (or whatever) for the other.

    #50800
    peiqinglong
    Member

    Thank you! I’ll post the instructions when I get a chance. =)

    #860
    kannued
    Participant

    I’m trying to validate the code. One problem that I cannot fix for XHTML 1.1 in topic.php is this line:

    <ol id=”thread” start=”<?php echo $list_start; ?>”>

    How would I change it so it will validate? Validation says the following:

    there is no attribute “start” .

    <ol id=”thread” start=”1″>

    You have used the attribute named above in your document, but the document type you are using does not support that attribute for this element. This error is often caused by incorrect use of the “Strict” document type with a document that uses frames (e.g. you must use the “Transitional” document type to get the “target” attribute), or by using vendor proprietary extensions such as “marginheight” (this is usually fixed by using CSS to achieve the desired effect instead).

    This error may also result if the element itself is not supported in the document type you are using, as an undefined element will have no supported attributes; in this case, see the element-undefined error message for further information.

    How to fix: check the spelling and case of the element and attribute, (Remember XHTML is all lower-case) and/or check that they are both allowed in the chosen document type, and/or use CSS instead of this attribute.

    #50063
    ear1grey
    Member

    Thud, thud, thud <- that’s my head on the wall :)

    It’s happened again! Another forum user has added their problem onto a thread which is tackling a different issue entirely.

    Joe Public just doesn’t seem to dig that it’s OK to start a new topic.

    Having looked a bit at the DB structure I think splitting a thread should be fairly easy, any thoughts or hints, please shout – I’m going to look at a plugin when I have time, but time is short currently.

    If someone else has some spare cycles I’ll willingly test it, even if it’s really rough :D

    #50822

    In reply to: Avatars

    Atsutane
    Member

    Well u can try this. Donno if it gonna work or not .. right now 12:54am so i dont have the time to test it :) Try at ur own risk. Got problem dont blame me XD. Well if this was wrong feel free to fix it.

    function get_post_author_avatar() {

    global $bbdb;

    $id = get_post_author_id();

    $user = bb_get_user( $id );

    $usermail = $user->user_email;

    $default = “http://www.somewhere.com/homestar.jpg&#8221;; // Put your default avatar link

    $size = 40;

    $grav_url = “http://www.gravatar.com/avatar.php?gravatar_id=&#8221;.md5($email).”&default=”.urlencode($default).”&size=”.$size;

    echo “<img src=”$grav_url” alt=”Gravatar” />”;

    }

    #50820

    In reply to: Avatars

    AphelionZ
    Participant

    That’s pretty cool, but the plugin is only available for WordPress. That means you’d have to call the wordpress tag within bbPress, and I dont load wordpress with my forum (way too complicated for what i need)

    However, somebody could take the wordpress code and customize it for bbPress :)

    #50884
    Nola1974
    Participant

    There definitely needs to be more template tag functions for things like this for those of us who don’t dream in PHP. :)

    #859
    ear1grey
    Member

    The topic-tags.php template is being explicitly included through the topic_tags() method of template-functions(), so replacing it in my-templates has no effect.

    This makes me wonder if, generally, a bb_include and bb_require method could be used for all includes which would check the template system before resorting to a default folder.

    this could possibly replace the oft repeated:

    if (file_exists( BBPATH . 'my-templates/whatever.php' ))

    require( BBPATH . 'my-templates/whatever.php' );

    else require( BBPATH . 'bb-templates/whatever.php' );

    I thought it worth mentioning because theme developers might find it useful from the outset.

    #49866
    peiqinglong
    Member

    doubter:

    Are you trying to incorporate the look of your main site into bbpress or functions of WP into bbpress? If you are looking to make bbpress look a part of your site, I highly recommend that you remove all the WP code from config.php. Then make a my-templates directory inside bbpress directory, make a copy of the contents of bb-templates and drop it in there. Then modify the files to match your existing site. See an example here: http://www.abunchofcars.com/forum/

    #49864

    doubter,

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

    That line in the code you pasted is missing a single quote at the end (before the semi colon).

    Hope that works :)

    #50727

    jessind,

    I tried your site in firefox and http://jessanastasia.com/forums/topic/1 gave a 404 not found reply (which was then caught by your WordPress for some reason and I ended up at your blog).

    Which method did you use to set up permalinks? MultiViews or the rewrite stuff? Did you put the .htaccess file in the forums directory?

    #50874

    In reply to: AWESOME!

    marky
    Member

    There’s a phpBB importer script available in this thread: https://bbpress.org/forums/topic/3

    But it doesn’t convert BBCode yet. I think that feature is in the works, though.

    #49862

    mokona,

    The error is actually caused by the line above that on. Delete the line that says:

    define(WPp_BB', true);

    #49860
    mokona
    Member

    Hi, I think I’ve got the same problem.

    I’m trying to install bbPress into a subdirectory of wordPress and I want it to have the same template of my main site.

    I’ve looked this topic and I’ve uninstalled bbPress and made some changes to my config.php, that now looks like:

    <?php

    require_once('/home/wererabbit/demon.wererabbit.net/wp-blog-header.php');

    define('WP_BB', true);

    define('BBDB_NAME', '*****');

    define('BBDB_USER', '*****');

    define('BBDB_PASSWORD', '******');

    define('BBDB_HOST', 'mysql.wererabbit.net');

    $bb_table_prefix = 'bb_';

    $bb->domain = 'http://demon.wererabbit.net/';

    $bb->path = '/forum/';

    $bb->name = 'Forum';

    $bb->admin_email = 'lum@wererabbit.net';

    $bb->mod_rewrite = true;

    $bb->page_topics = 30;

    $bb->edit_lock = 60;

    $bb->gmt_offset = 0;

    $bb->akismet_key = false;

    $bb->wp_table_prefix = 'wp_';

    $bb->wp_home = 'http://demon.wererabbit.net';

    $bb->wp_siteurl = 'http://demon.wererabbit.net';

    define(WPp_BB', true);

    define('BBPATH', dirname(__FILE__) . '/' );

    require_once( BBPATH . 'bb-settings.php' );

    ?>

    Now when I try to install I get a parse error:

    Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/.nevermore/wererabbit/demon.wererabbit.net/forum/config.php on line 57

    line 57 is:

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

    I think there’s something missing but I do not catch it.

    #50792

    In reply to: bozo’s?

    ear1grey
    Member

    I hadn’t spotted that bit, I was pointing towards midwife’s description; honest! :)

Viewing 25 results - 32,176 through 32,200 (of 32,409 total)
Skip to toolbar