Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 28,051 through 28,075 (of 32,494 total)
  • Author
    Search Results
  • #58245

    In reply to: bbSync

    fel64
    Member

    No. No updates until the summer.

    Also, on an unrelated note, the f in fel is always lowercase. :P

    #63624

    In reply to: Gap in images in table

    chrishajer
    Participant

    Wrap the whole thing, from beginning to end, in a div with this style: <div style="width: 800px; margin: 0 auto;">

    Put that before the beginning table tag, and then close it after the ending </table> tag.

    You can separate the style from the template html by calling the div something like <div id="wrapper"> in your template then adding this to your style.css:

    #wrapper {
    width: 800px;
    margin: 0 auto;
    }

    In either case, the margin is 0 top and bottom, and auto left and right, which means it will be centered horizontally in the browser no matter what the size of the browser viewport.

    chrishajer
    Participant

    I was checking my Google sitemap stats and saw this recently for my bbPress sitemap:

    URLs not followed

    When we tested a sample of the URLs from your

    Sitemap, we found that some URLs were not accessible

    to Googlebot because they contained too many redirects.

    Please change the URLs in your Sitemap that redirect

    and replace them with the destination URL (the redirect

    target). All valid URLs will still be submitted.

    Further reading led to this:

    http://www.google.com/support/webmasters/bin/answer.py?answer=48551&hl=en

    So my questions are:

    1. What is the reason this is a 302 header (temporary redirect) vs a 301 header (permanent redirect)?

    2. Can it be changed in the code or with a plugin to generate a 301 header so Google will follow the URLs?

    3. If this is not possible, what would the proper permanent URL be for a tag URL like http://www.example.com/forum/tags.php?tag%3Dghosts

    BTW, I am using the Sitemap plugin for bbPress by Richard Boakes. http://boakes.org/talk/topic/31

    I can modify that to write the proper permanent URLs to the sitemap if that’s the easiest way to go about it. Or, maybe tags URLs should not even be in the sitemap (they are just pointers to content that exists elsewhere anyway.)

    Thanks.

    #63621

    In reply to: Gap in images in table

    chrishajer
    Participant

    Well, when I validate the page, there are errors around line 318 which is where a bunch of td/tr/table end tags are located. The fact that they are improperly nested (i.e. they are closed here but are not open) means they were probably improperly closed (or not closed) elsewhere.

    But, just adding the style="display: block;" to the <img> tags as sambauers suggested should take care of it without you having to fix the improper code. It should look fine when you do that and replace the stylesheet reference.

    #63617

    In reply to: Gap in images in table

    Sam Bauers
    Participant

    I think adding:

    style="display:block;"

    .

    To the images will work

    #63606
    missbossy
    Member

    Thanks for the help :)

    #49502
    Amaury Balmer
    Participant

    Hello all,

    You can find the latest french translation on

    http://bbpress.fr/

    and i publish a french pack for 0.8.3.1 and soon 0.9 !

    I search voluntary for write french documentation and post on blog ;)

    Contact me !

    #53034
    Amaury Balmer
    Participant

    Hello all,

    You can find the latest french translation on

    http://bbpress.fr/

    and i publish a french pack for 0.8.3.1 and soon 0.9 !

    I search voluntary for write french documentation and post on blog ;)

    Contact me !

    #63353
    Craig
    Member

    As some of you know, I’m new to WordPress and bbPress altogether and as I learn more I am also getting really amp’d for the new releases of both. However, after looking at the trac roadmap…

    I see WP 2.5 still has A LOT of open tickets where as bbPress 0.9 has 0 tickets open. Is it just not updated or is today’s release not realistic? :(

    #63589

    oh thats nice :)

    #63585
    testosteron
    Member

    wich data i have to include to use wordpress functions? and

    when i only login bbpress i have to type my data in wordpress to write a comment :( ( is that “fixable” ?

    greetz

    howtogeek
    Member

    That plugin didn’t work quite right for me, but I was able to hack together my own hard-coded version for both bbpress and wordpress.

    Thanks!

    crazlunatic
    Member

    I added the code but nothing changed:

    http://vistarewired.com/test2/bbpress/

    howtogeek
    Member

    @chrishajer

    Thanks for that… I’ve been meaning to look that up, but looks like you did it for me =)

    Rahul Bansal
    Participant

    chrishajer is right about issue with ‘slugs’

    only false option works… :-(

    $bb->mod_rewrite = false;

    are they rectifying this in next version??

    chrishajer
    Participant

    It looks bad because the path to your style.css is wrong. The stylesheet should be here, but it’s not:

    http://vistarewired.com/test2/forums/bb-templates/kakumei/style.css

    So, where is it really? I suspect the path in the config.php and the URL you are using to access the forum are not the same, and that’s why you see the forum without any styling.

    Wait – it’s actually here:

    http://vistarewired.com/test2/bbpress/bb-templates/kakumei/style.css

    So, in your config you called the directory forums but you actually installed it in the directory bbpress. You need to fix your config.php.

    You have this:

    $bb->uri = ‘http://vistarewired.com/test2/forums/&#8217;;

    It needs to be this:

    $bb->uri = ‘http://vistarewired.com/test2/bbpress/&#8217;;

    (or, you can leave the config alone and change the name of the bbpress directory to forums.)

    Fix that and everything will look as it should. You may need to do a hard refresh or clear the cache in your browser to see the effect of the changes. CTRL SHIFT R in Firefox.

    #63566
    chrishajer
    Participant

    Your server responds that it DOES support PHP:

    (uiserver):u12345678:~ > curl -I www.infotainmentcenter.com
    HTTP/1.1 200 OK
    Date: Sat, 15 Mar 2008 20:01:32 GMT
    Server: Apache
    X-Powered-By: PHP/4.4.1

    Try putting this into a file and making it accessible at your domain:

    <?php
    phpinfo();
    ?>

    Save that as info.php and try accessing it http://www.infotainmentcenter.com/info.php . Maybe you will find that the server supports PHP.

    If the host does not support PHP, I suggest you get a new host. I have seen forum software that can run with flat files instead of a MySQL database, but none that are done without a scripting language like PHP.

    #63564
    _ck_
    Participant

    Separate db vs one table is something new for 0.9 I believe.

    Those are constants that have to be defined in bb-config.php just like any of the other constants. ie.

    define('USER_BBDB_NAME','blahblah');

    If you are just now installing bbpress and not already integrating an existing install, if you wait for the 0.9 release on monday, it will do most of the integration for you.

    There are endless instructions for integration, I’ve gathered most of them here (though that list is getting outdated for 0.9)

    http://bbshowcase.org/forums/topic/better-bbpress-wordpress-integration-the-missing-faq

    crazlunatic
    Member

    Hmmm. I think that might have helped but my forums looks reallly bad =(

    http://vistarewired.com/test2/bbpress/

    Edit: Actually now when I log in, it takes me here: http://vistarewired.com/test2/forums/bb-login.php

    And yes I did make changes like adding the functions code, but I don’t think I need to use it, do I?

    chrishajer
    Participant

    “The definition of insanity is doing the same thing over and over and expecting different results.”

    –Benjamin Franklin

    I hope you were making changes with each subsequent installation. If so, what did you try?

    Try setting permalinks to false instead of true or slugs, in your config.php, like this:

    $bb->mod_rewrite = false;

    If that works, then it’s a pretty permalinks issue.

    kehlers
    Member

    I’m just following up – I posted this bug a while ago, and when I didn’t hear back, I researched and found the solution. (wahoo!)

    PROBLEM:

    If private-forums plugin is installed, users below moderator capabilities will have a BLANK Pick a Section dropdown on post-form.php. If they go ahead and try to click “submit” on their post, they get an error: Forum topic is closed. (error is bogus, obviously, because they are trying to post a NEW topic).

    SOLUTION

    In the /my-plugins/private-forums.php, replace line 294:

    $new_forums[] = $forum;

    with:

    $new_forums[$forum->forum_id] = $forum;

    WHY IT WORKS

    The $new_forums array replaces the global $forums array with just the forums that user is permitted to see. The $forums array uses the forum_id as the array index. Without this fix, the $forums array will have the default index, i.e. 0, 1, 2, 3…

    If your forum ids are (a) ordered numerically by their id and (b) no numbers are ‘skipped’ in the ids, you may not notice this issue. However, in my case, my forum ids are in the order “6, 7, 1, 10, 9” because we have added and deleted and reordered them over the life of the forum.

    Hopefully this helps someone.

    Cheers,

    k

    #63548
    fpslabs
    Member

    oh wow, lol I didn’t even see that. I told you I might be stupid ;) Thanks man

    #63528

    In reply to: require_once problems

    gkp99
    Member

    Nevermind – I was using the wrong relative URL it would seem.

    I settled for this:

    require_once($_SERVER."/forums/config.php");>/code>

    and it works now :-)

    Garry,

    #3012
    gkp99
    Member

    Hello everyone!

    Here is my setup:

    WP blog = http://www.cocoadummy.com

    BB forums = http://www.cocoadummy.com/forums

    I have set the config.php values as required. I have enabled the bbPress-integration plugin in WP and configured it. I have added

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

    to my bbPress config.php file. (This seems to work as I can call the WP bloginfo(‘name’) function in my footer.

    When I try to go to the forums admin I get the following error:

    Warning: require_once(../wp-blog-header.php) [function.require-once]: failed to open stream: No such file or directory in /home/.omaha/gkp99/www.cocoadummy.co/forums/config.php on line 4

    Fatal error: require_once() [function.require]: Failed opening required ‘../wp-blog-header.php’ (include_path=’.:/usr/local/php5/lib/php:/usr/local/lib/php’) in /home/.omaha/gkp99/www.cocoadummy.co/forums/config.php on line 4

    Also, I have added the following line of code to wp-config so that I can import functions from bbPress into WP (I want to add the online list to my WP sidebar):

    // Import bbPress

    require_once(‘../forums/config.php’);

    I have added it beneath this code:

    // Get everything else

    require_once(ABSPATH.’wp-settings.php’);

    (although the error is the same wherever I put it).

    When I goto my blog homepage (www.cocoadummy.com) I get this error:

    Warning: require_once(../forums/config.php) [function.require-once]: failed to open stream: No such file or directory in /home/.omaha/gkp99/www.cocoadummy.co/wp-config.php on line 34

    Fatal error: require_once() [function.require]: Failed opening required ‘../forums/config.php’ (include_path=’.:/usr/local/php5/lib/php:/usr/local/lib/php’) in /home/.omaha/gkp99/www.cocoadummy.co/wp-config.php on line 34

    What am I doing wrong?

    Garry,

    #63526

    In reply to: Different Backgrounds

    chrishajer
    Participant

    It can be done with PHP.

    I’ve never done the random thing, but the Cutline theme for WordPress offers this functionality. You can read about it here:

    http://cutline.tubetorial.com/totally-random-header-images-for-cutline/

    I think you could adapt that for your uses.

    In WordPress, for a specific background tied to a specific page, I just do something like this in header.php:

    <div id="container" style="background: #fff url('<?php bloginfo('template_directory'); ?>/images/<?php echo $post->ID; ?>.jpg') left top no-repeat;">

    That gives the container div the background image of the post ID.jpg, so if you were viewing post 52, you would have a background image of 52.jpg. You could easily adapt this to bbPress calls by using the forum number and $forum_id, whichever div you want a background for (#wrapper or #main?) and then the proper location of your images (whether they are stored in your template folder or your forum root or something.) It fails OK too since there is a color code for the background and that is used if the image cannot be found (I think that’s what happens anyway.)

    Let me know if that makes sense. This is how I’ve done it in WordPress, but the same approach will work for bbPress I think.

Viewing 25 results - 28,051 through 28,075 (of 32,494 total)
Skip to toolbar