Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 28,026 through 28,050 (of 32,494 total)
  • Author
    Search Results
  • #63694
    Sam Bauers
    Participant

    I can’t say for sure what is happening for you, but you can just define this constant in your config.php file and it should override that calculated path.

    define('SUPPORT_FORUM_ICON_URI', 'http://headonradionetwork.com/forum/my-plugins/');

    .

    This is not a hack, the plugin was built to allow overrides on that value because of circumstances like yours.

    #63162
    _ck_
    Participant

    Yeah that looks okay. Someone more knowledgeable than me is going to have to trace this. I get as far back as the ajax xml generation code but that’s useless without knowing what’s triggering the error. Maybe ask Sam or MDA on the irc or perhaps turn to other WPMU folks to see if they encounter this?

    #63161
    Nola1974
    Participant

    From user_id 1

    bb_capabilities a:2:{s:9:"keymaster";b:1;s:8:"throttle";b:1;}

    #63157
    Nola1974
    Participant

    I got paros running, could login to a bunch of sites (gmail, yahoo, here) but kept asking me for my bbpress’ login over and over.

    What exactly do you want to see from the session in paros?

    GET http://geekdc.com/forum/bb-admin HTTP/1.1
    Host: geekdc.com
    User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.12) Gecko/20080201 Firefox/2.0.0.12 Paros/3.2.13
    Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
    Accept-Language: en-us
    Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
    Keep-Alive: 300
    Proxy-Connection: keep-alive
    Referer: http://geekdc.com/forum/bb-admin/
    Cookie: __utma=164913321.806591864.1206118840.1206381545.1206389257.5; __utmz=164913321.1206118840.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); ?wordpressuser?=admin; ?wordpresspass?=33b7fd3d41082aeb1764e84c5e297d8f; ‘wordpressuser’=admin; ‘wordpresspass’=33b7fd3d41082aeb1764e84c5e297d8f
    Content-length: 0

    #63688

    In reply to: Problem with Links

    chrishajer
    Participant

    For right now, turn off permalinks in your config.php

    $bb->mod_rewrite = false;

    Looks like you have it set to 'slugs' right now but your .htaccess rules are not allowing that. Set it to false for now and you can figure out permalinks later.

    #63146
    Nola1974
    Participant

    This is apparently caused by servers running the Suhosin PHP hardening patch… it encrypts cookies. I was having a simlar problem about a year ago on another site:

    Can’t post. Topic turns yellow. Can’t delete.

    I found this plugin for WP that fixes it (in WP).. it’s apparently a bug in WP’s AJAX handling. Perhaps something similar is going on inside BBpress’ AJAX functionality?

    http://sparepencil.com/code/ajax-referer-fix/

    in pluggable.php (current)

    if ( !function_exists('bb_check_ajax_referer') ) :
    function bb_check_ajax_referer() {
    if ( !$current_name = bb_get_current_user_info( 'name' ) )
    die('-1');

    $cookie = explode('; ', urldecode(empty($_POST['cookie']) ? $_GET['cookie'] : $_POST['cookie'])); // AJAX scripts must pass cookie=document.cookie
    foreach ( $cookie as $tasty ) {
    if ( false !== strpos($tasty, bb_get_option( 'usercookie' )) )
    $user = substr(strstr($tasty, '='), 1);
    if ( false !== strpos($tasty, bb_get_option( 'passcookie' )) )
    $pass = substr(strstr($tasty, '='), 1);
    }

    if ( $current_name != $user || !bb_check_login( $user, $pass, true ) )
    die('-1');
    do_action('bb_check_ajax_referer');
    }
    endif;

    From above mention (wordpress) plugin:

    if (!function_exists('check_ajax_referer')) :
    function check_ajax_referer() {
    // Explode cookie data like WordPress normally does
    $cookie = explode('; ', urldecode(empty($_POST['cookie']) ? $_GET['cookie'] : $_POST['cookie'])); // AJAX scripts must pass cookie=document.cookie
    foreach ( $cookie as $tasty ) {
    if ( false !== strpos($tasty, USER_COOKIE) )
    $user = substr(strstr($tasty, '='), 1);
    if ( false !== strpos($tasty, PASS_COOKIE) )
    $pass = substr(strstr($tasty, '='), 1);
    }

    // This variable is set when cookie data was sent in an encrypted fashion
    // For more information:
    // * http://forum.hardened-php.net/viewtopic.php?pid=616
    // * http://www.hardened-php.net/suhosin/
    if(isset($_SERVER['RAW_HTTP_COOKIE']))
    {
    // Explode the raw (HTTP) cookie data using the WP method
    $crypt_cookie = explode('; ', $_SERVER['RAW_HTTP_COOKIE']);
    foreach ( $crypt_cookie as $tasty ) {
    if ( false !== strpos($tasty, USER_COOKIE) )
    $crypt_user = substr(strstr($tasty, '='), 1);
    if ( false !== strpos($tasty, PASS_COOKIE) )
    $crypt_pass = substr(strstr($tasty, '='), 1);
    }
    // Set $user and $pass to the decrypted values if the cookies match
    if($crypt_user == $user && $crypt_pass == $pass)
    {
    $user = $_COOKIE[USER_COOKIE];
    $pass = $_COOKIE[PASS_COOKIE];
    }
    }

    if ( !wp_login( $user, $pass, true ) )
    die('-1');
    do_action('check_ajax_referer');
    }
    endif;

    #63678
    chrishajer
    Participant

    The problem is, you’ve given yourself 600px of space in between those side images, and you’ve used up all of it. You can do something like this to any of those tables that are now 600px wide. Change the width to 560px and then center it. That will give you 20px of whitespace on the left and right. You will need to do this for several tables that are 600px wide now.

    width="560" style="margin: 0 auto;"

    (inside the <table> tag)

    This is a really bad way of doing it, but it gets the job done. Much better to do this with divs that have unique names, then define the style for those divs in style.css. But, just adding that style inline gets the job done. It’s just not the best way of doing it.

    #63673

    In reply to: Design Change

    chrishajer
    Participant

    I think you want to move (or remove) this piece of code in topic.php of your template file:

    <?php topic_tags(); ?>

    Removing that removes the tags for a topic. Then, just put it where you want it to get the tags back.

    #63664

    In reply to: how to inset avatar

    chrishajer
    Participant

    From the readme file:

    =================================

    3. To display an uploaded avatar, insert the following template function.

    a) On the user’s profile page (profile.php template).

    <?php avatarupload_display($user->ID); ?>

    This grabs the avatar info file directly from the current user’s profile information.

    b) On each user’s forum posts (post.php template)

    <?php avatarupload_display(get_post_author_id()); ?>

    You can include the avatar anywhere else you like, just be sure to have the user’s ID available.

    =================================

    You would insert one of those pieces of code in a template file wherever you want the avatar to appear. Try one and see how it works.

    #57375

    In reply to: plugin: seo meta

    aiitee
    Member

    can you please specify where exactly i have to put this code? i dont found is_forum and is_topic

    #3046
    aiitee
    Member

    Hi well, if you check this site http://www.hentaitube.org all the links take you to the “no input specified” page, i did the .htacess thing it didnt work, i tried copied the whole code of the rewrite-rules on the .htacess but it doesnt work,.. just for more details, in the admin control panel i cannot change my profile, i dont see any posts…

    []EDITED[] I changed the permalinks code, its set to “false” now it works, but i want it to be like slugs, what can i do??

    if you need more info just tell me

    3ring
    Member

    Yes, I saw that in the other post chrishajer (pay for help). Thanks so much for your help. I knew it had to be something simple.

    Why would this have worked for so long then break after months of use?

    How can I send you some cake? ;)

    Please contact me through the contact form on the site in my id.

    #63659
    3ring
    Member

    WoooHooo!!

    Thanks _ck_! That worked sweet. Didn’t even need to touch .htaccess.

    I just donated $20 through your donate button. Sweet bbpress site by the way.

    Thanks again so much.

    Also, thanks for the offer, chrishajer, I really appreciate it.

    For anyone who wants to know how to do that quickly, just go to your config.php file and make the following line of code look like this:

    $bb->mod_rewrite = false;

    (problem code was: $bb->mod_rewrite = slug;)

    #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 ;)

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