Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 28,026 through 28,050 (of 32,481 total)
  • Author
    Search Results
  • #3045

    Topic: how to inset avatar

    in forum Plugins
    giveror
    Member

    I’m using plugin avatar upload .

    http://bbpress.org/forums/topic/plugin-avatar-upload

    I want to insert avatar under username .

    EX :

    ccats.gif

    where i must insert code.

    sorry if my english isn’t good.Because I’m thai people.

    #61184

    To clarify – on or about line 75, find:

    $scripturl = bb_get_option ('uri') . 'my-plugins/js_quicktags.js';

    $thisurl = bb_get_option ('uri') . 'my-plugins/' . basename(__FILE__);

    Change to:

    $scripturl = bb_get_option ('uri') . '/my-plugins/js_quicktags.js';

    $thisurl = bb_get_option ('uri') . '/my-plugins/' . basename(__FILE__);

    In short, change the two instances of my-plugins/ to /my-plugins/

    Great plugin, thanks!

    #63662
    chrishajer
    Participant

    Is it possible the files were corrupted upon uploading? Seems like it’s a server configuration thing, not even related to PHP or CGI. You should be able to view this file, for example, but you cannot:

    http://www.kreativoase.at/taufkerze/forum/bb-images/bbpress.png

    In fact, it’s an internal server error code 500, but the server is configured to show this error message, which might be misleading. If you have access to error logs, that will help determine what’s causing the 500 error.

    If it’s something applying to that directory and all lower lever directories, maybe there is a problem with the .htaccess file (if you are using one) in the forum directory. Do you have a proper .htaccess file? Please post the content here. I am starting to think an error in the .htaccess file is the problem for it to cause a 500 error on the forum directory or any subdirectory you try to access.

    Permalinks on false is good.

    bbPress does not need its own database, but it does need a database, and the table prefix will be bb_ by default. So long as that doesn’t conflict with any other tables you already have, it’s OK to use an existing database.

    chrishajer
    Participant

    You said you were not using pretty permalinks, but you most definitely ARE using them.

    This is a link to one of your topics:

    http://www.eidolonai.com/forum/topic/62

    If you were not using permalinks, the link would look like this:

    http://www.eidolonai.com/forum/topic.php?id=62&page&replies=1#whatever-post-number-anchor (with some additional stuff at the end for replies and post number)

    Try accessing this URL:

    http://www.eidolonai.com/forum/topic.php?id=62

    It gets rewritten to http://www.eidolonai.com/forum/topic/62 and that fails.

    So, do you have mod_rewrite set to true in config.php? If so, turn it off until you can get rewrite rules in place that will work with GoDaddy.

    By turn it off I mean

    $bb->mod_rewrite = false; (no quotes around false)

    #63652
    cmaujean
    Member

    Most of this code was taken directly from the bbsync plugin (I’ve attempted to remove need for configuration, and some of the bbsync functionality/flexibility).

    There are really truly NO errors logged anywhere for this.

    here is my plugin in it’s entirety:

    define('CRBBFORUMID', 1);

    function cr_post($post_id) {
    global $bbdb, $wpdb, $current_user;

    require (dirname(__FILE__) . '/../../bbpress/config.php');
    // get the post
    $post = wp_get_single_post( $post_id );

    if(!$current_user) {
    return;
    }
    bb_set_current_user($current_user->ID);

    $post_title = $bbdb->escape($post->post_title);

    $bb_topic_arr = get_post_meta($post_id, 'bb_topic', $true);
    $bb_topic_id = $bb_topic_arr[0];

    // if bb has this post already, update the topic
    $topic_exists = false;
    if ($bb_topic_id) {
    if(bb_update_topic($post_title, $bb_topic_id)) {
    $topic_exists = true;
    }
    $reply = bb_get_first_post($bb_topic_id);
    bb_update_post($post_text, $reply->post_id, $bb_topic_id);
    }

    // if not, create a new topic
    if (!$topic_exists) {
    $topic_id = bb_new_topic($post_title, CRBBFORUMID, $tags);
    $reply_id = bb_new_post($bb_topic_id, $post_text);

    $r = false;
    if ($topic_id && $reply_id) {
    bb_update_topicmeta($bb_topic_id, 'wp_post', $post_id);
    if (!update_post_meta($post_id, 'bb_topic', $topic_id)) {
    add_post_meta($post_id, 'bb_topic', $topic_id, true);
    $r = true;
    }
    }
    $oldcoms = get_approved_comments($post_id);
    if($oldcoms) {
    foreach($oldcoms AS $oldcom) {
    if($user = bb_get_user($oldcom->comment_author)) {
    $time = strtotime($oldcom->comment_date);
    $text = '<em><strong>This comment was originally posted at ' . date('G:i', $time) . ' on ' . date('jS F Y', $time) . ".</strong></em>nn" . $oldcom->comment_content;
    bb_set_current_user($user->ID);
    bb_new_post($topic_id, mysql_real_escape_string($text));
    }
    }
    }
    }
    return $r;
    }

    function cr_comment($comment_id, $approval_status) {
    global $bbdb, $wpdb;
    require_once(dirname(__FILE__) . '/../../bbpress/bb-load.php');

    $comment = get_comment($comment_id);

    $topic_id = get_post_meta($comment->comment_post_ID, 'bb_topic', $true);
    if(($topic_id) && ($approval_status == 1) && ($comment->user_id) && bb_set_current_user($comment->user_id)) {
    //topic linked, genuine comment, actual user, bb likes user
    bb_new_post($topic_id, $comment->comment_content);
    return true;
    } else {
    return false;
    }
    }

    add_action('publish_post', 'cr_post');
    add_action('comment_post', 'cr_comment');

    #63651
    chrishajer
    Participant

    Without a link to your forum or an example of the plugin code, it’s going to be hard to help. The blank screen is almost certainly a 500 error, so it should be logged somewhere, depending on your server configuration.

    If you disable the plugin and everything works, you know the problem is with the plugin. So, you need to fix that. Without posting the plugin, it will be hard for anyone to help you fix it.

    cmaujean
    Member

    Howdy,

    WordPress 2.3.3

    bbPress latest from yesterday

    Wordpress Integration

    I’ve created a very simple wordpress plugin to attempt to allow wordpress posts and comments to also be put in a bbPress forum.

    When I make a post and my plugin attempts to:

    require_once(dirname(__FILE__) . '/../../bbpress/bb-load.php');

    I get a blank page, and the post/comment does not get sent to bbpress. I’ve have traced this to the point where bb-settings.php calls this line:

    require( BBPATH . BBINC . 'template-functions.php');

    but no matter what I put in template-functions.php (even writing to a file), I get the blank page.

    I’ve checked all my error logs, and there are no errors being logged, not even a 500 error. I’m at my wits end, and late on this project, please help.

    Thanks,

    Christopher

    #63645
    chrishajer
    Participant

    Looks like you have some cruft in one of the files you uploaded or edited. Or possibly this is something with character encoding? Did you set ('BBDB_COLLATE', ''); and/or('BBDB_CHARSET', ''); ?

    #62987

    In reply to: Log in / Log out issue

    strthomp
    Member

    <~ Is an idiot

    The redirect fix worked…..

    Why it only gave issues on the mac side is still a mystery to me… but the login works as needed so who cares.

    Same issue happens with log out… happen to know which template page that would be? I am assuming i could probably use the same code snippet on that template page??

    Thanks for your help chrishajer!

    #3037
    testosteron
    Member

    Hi when i try to install the 0.9 Trunk this error comes up

    Warning: require_once(/var/www/web112/html/testeite/forum/bb-includes/backpress/functions.plugin-api.php) [function.require-once]: failed to open stream: No such file or directory in /var/www/web112/html/testeite/forum/bb-admin/install.php on line 17

    Fatal error: require_once() [function.require]: Failed opening required ‘/var/www/web112/html/testeite/forum/bb-includes/backpress/functions.plugin-api.php’ (include_path=’.:/usr/share/php:/usr/share/pear’) in /var/www/web112/html/testeite/forum/bb-admin/install.php on line 17

    #3036
    Mister
    Member

    When running the install script, after only changing the config.php I encounter the following:

    
    Warning: Cannot modify header information - headers already sent by (output started at /home/ucstudents.nl/public_html/bbpress/config.php:1) in /home/ucstudents.nl/public_html/bbpress/bb-admin/install.php on line 10

    Warning: Cannot modify header information - headers already sent by (output started at /home/ucstudents.nl/public_html/bbpress/config.php:1) in /home/ucstudents.nl/public_html/bbpress/bb-includes/functions.php on line 1910

    I can complete the installation but every page I visit starts with 

    and other errors sometimes occur.

    What is causing this, and how can it be fixed?

    #3033
    testosteron
    Member

    Hi!

    I want to integrate bbpress into my wordpress blog complete!

    that means :

    • When you login into wordpress you have to be logged in in bbpress the same time! (for write threads and wp comments with one login)
    • I want that wordpress an bbpress look like one theme. So is it possible to show the normal wordpress sidebar in bbpress? and how?
    • wich login menue i should use? (I want to integrate the login menue in the header of both themes )

    I read a lot of things here with set cookie path etc but in PHP I’mnot “the best”! :D

    The structure is like this.

    The domain for the wordpress blog is http://www.example.com/blog/

    and the Domain for the Forum is http://www.forum.example.com/

    I think this thread is needed to make one real documentation for integration so the next with the problem don’t have to read 100 threads :D

    // Sorry for my english! Im from germany ;)

    #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/

Viewing 25 results - 28,026 through 28,050 (of 32,481 total)
Skip to toolbar