Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 25,501 through 25,525 (of 32,468 total)
  • Author
    Search Results
  • chrishajer
    Participant

    The problem is not that they SUPPORT PHP4, it’s that you WANT PHP5. Add this to your .htaccess if you’re at 1&1.

    AddType x-mapp-php5 .php

    That will force *.php files to be processed by PHP5. That should resolve the problem for you.

    #72439

    Finally got it working using _ck_’s plugin. Now I want the same login sync with my custom php pages. Any pointers regarding what I should be doing? I think I will need the code used in _ck_’s plugin and the bbPress core file. Am I right?

    diabolikal
    Member

    Hey guys, I’m getting the same problem, and my hosting is 1&1 and I’m sure they support PHP4. It is in my subfolder of the domain,

    http://www.ko-holic.com/bbpress

    Help!

    #72438

    Hello Kevin!

    Thanks for your reply! :D

    I did a clean install of WP 2.7 and then I activated Ann’s plugin.

    Then I added the code those three lines in wp-config.php and lost access to dashboard.

    Redirect Loop

    Firefox has detected that the server is redirecting the request for this address in a way that will never complete.

    The browser has stopped trying to retrieve the requested item. The site is redirecting the request in a way that will never complete.

    * Have you disabled or blocked cookies required by this site?

    * NOTE: If accepting the site’s cookies does not resolve the problem, it is likely a server configuration issue and not your computer.

    I am currently testing on localhost (XAMPP). Any idea what is causing this loop? May be I need to edit those lines but I dont know how to.

    I had to delete the plugin from the plugin directory to access dashboard again.

    I would not think of going beyond WP 2.7 unless I am unable to achieve the sync. And regarding the Open ID integration, I would like to keep myself away from it as I need to allow only registered users to login.

    chrishajer
    Participant
    chrishajer
    Participant

    X-Powered-By: PHP/4.4.9

    Are you using PHP4? I thought that was the source of this problem.

    What version did you install?

    adsearch
    Member

    Warning: cannot yet handle MBCS in html_entity_decode()! in /hsphere/local/home/xxxxxx/adsearch.co.in/forum/bb-includes/wp-functions.php on line 113

    Hello I have Installed the forum at the address given below

    http://adsearch.co.in/forum

    http://adsearch.co.in/fourms

    but at both the place I Get the same error.

    I did not integrate it with wordpress.

    what is the problem.

    adsearch
    Member

    Warning: cannot yet handle MBCS in html_entity_decode()! in /hsphere/local/home/xxxxxx/adsearch.co.in/forum/bb-includes/wp-functions.php on line 113

    Hello I have Installed the forum at the address given below

    http://adsearch.co.in/forum

    http://adsearch.co.in/fourms

    but at both the place I Get the same error.

    I did not integrate it with wordpress.

    what is the problem.

    #72437

    Hi Ashfame,

    First: i feel your pain in integrating WP2.7.1 and 0.9, i’m sure alot of us do – that said though, it’s definitely possible.

    Second: it’s definitely possible to achieve site wide login using either _ck_ or Ann’s plugins. Without a doubt using _ck_’s is far easier, as Ann’s comes with no documentation and there are steps required that no-one’s written out. It took me about an hour of searching and playing with Ann’s to get it to work, but once it did, it worked brilliantly.

    Basically follow the steps given on the 3rd page of the integration forum posts (hey dont expect documentation for something a sought after as this to be on an actual page – like the integration one – or even at the start of a post so it’s easily found). Then add in

    define(‘COOKIEPATH’, ‘/’ );

    define(‘SITECOOKIEPATH’, ‘/’);

    define(‘COOKIE_DOMAIN’, ”);

    to both the WP and BB configs. Obviously you can change the values.

    The other thing that really helped me, after alot of trial and error, was to set up WordPress first. Activate Ann’s plugin. It then automatically boots you our of the WP admin area. you have to go to/wp-login.php?action=logout and then entirely clear your cache and cookies.

    Then re-log in. The cookie WP sets will now be recognisable.

    Install BB AFTER this step to make life alot easier; as bbpress will recognise the admin cookie right form the word go :)

    Third: Ann’s method overwrites the ‘new’ wordpress cookie method, so the theory is that it’s future proof. at least throughout this WP2.7 branch. The bad news is, according to an automattic post i read yesterday, that the OpenID integration in WP2.8 may require a rewrite of all authentication in WordPress. If this happens then there is a good chance that all authentication in Automattic systems will have tot change, there’s just no way of future proofing against a company wide re-write. But if that doesn’t happen, then Ann’s plugin should work for a long time.

    Fourth: A the risk of reading form the _ck_ bible, there’s very little reason across the board to upgrade from WP2.5.1 to WP2.7.1 . There are no known security issues in 2.5.1. I’ve yet to come across a WP plugin that doesn’t work for 2.5.1, it’s a damn site easier to use, and it’s faster and more lightweight. Obviously, you may have different requirements that we don’t know about, but I would look long and hard at not using 2.7.1 if i were you.

    Good luck, Kev

    #4998

    I tried integrating them but messed up a lot. So trying a different approach what I want to achieve in my project.

    I need WP as CMS, bbPress as forum script and custom php code which will create a member’s area. I want site-wide login sync.

    Tried _ck_’s plugin but can’t make it to working even after using 0.0.3 version and I dont want to use Ann’s method of downgrading cookie of what WP 2.7.1 uses. Just because this project won’t be under me for long, so will opt a method which is more future proof. So I am thinking of directing all the login requests of WP & bbPress to my custom login page which will be the only means of login & logout on the site. I want to use plugins for both WP & bbPress so as to maintain future compatibility. I can always update those custom codes or can i have a plugin for that too.

    I may be running wild here but it seems quite easily feasible too.

    Waiting for your suggestions!

    #70397
    chrishajer
    Participant

    For reloading Apache after installing php5-mysql, you might end up doing this on CentOS:

    sudo /sbin/service apache2 restart

    or

    sudo /etc/init.d/apache2 restart

    or even

    sudo /usr/sbin/apache2ctl graceful

    One of those should restart the apache2 daemon.

    #70396
    chrishajer
    Participant

    On CentOS, you probably want rpm or the yum front end to it. Try this:

    yum install php5-mysql

    Maybe you need sudo in front of that command, depending on your system configuration. In that case sudo yum install php5-mysql.

    That should install the package for you on CentOS.

    http://www.centos.org/modules/newbb/viewtopic.php?post_id=49482&topic_id=14408

    #72394
    Sam Bauers
    Participant
    #72246
    psheld
    Member

    I think I’m going to have delete my WordPress instance now and reinstall. :-(

    Thanks Chris for your help, but bbPress has really messed things up. I used the installation process to set the config files, so it’s not entirely clear what I need to do. I have cleaned up the wp-config.php file back to how I think it should have been, but still no go.

    I think changes may have been made to the db tables for which I’m not sufficiently skilled to reverse.

    So that’s that. Thanks again for you help though.

    #72435

    In reply to: wp-functions error

    Billy Wilcosky
    Participant

    yay! I figured it out… in the “my views” plug in you have add_action(‘bb_foot’, ”); at the end of the code. I think that is the problem because then I basically have add_action(‘bb_foot’, ”); twice on one page. The my views plugin has it, and then it is also in my footer.

    When I remove add_action(‘bb_foot’, ”); from the my views plug in (but leave it in my footer), everything works and the error goes away!

    Finally, now I can sleep ;)

    #72432

    In reply to: wp-functions error

    Billy Wilcosky
    Participant

    Ok, I found out what is causing the error. It is the following line of code in my footer:

    <?php do_action(‘bb_foot’, ”); ?>

    But I believe I have to have that line of code in place for one or more of _ck_’s plugins… Any suggestions anyone?

    #72393
    maharzan
    Member

    Great.. Thanks.

    Can you post which file you have edited.. so I can only replace that file?

    bb-includes/functions.bb-formatting.php ??

    #72407
    _ck_
    Participant

    No do not start with 1.0 unless you plan to not use any plugins.

    You can always upgrade from 0.9 to 1.0

    You can *never* downgrade from 1.0 to 0.9 because of the dramatic db changes involving tags and meta.

    Even if you are “only using part of bbPress” (not sure what that means) 1.0a6 is about to do a semi-radical change with 1.0a7 involving permalinks.

    bbPress 0.9 templates will (mostly) work with 1.0 but not visa versa.

    1.0 is about 150% the code size than 0.9 for the same functionality.

    I could go on but the point is that 1.0 is changing and unstable by nature. It should not even be called alpha but pre-alpha.

    ganzua
    Member

    This other nice trick by you doesn’t work either from the wp comments template;

    global $wpdb;
    $result=$wpdb->get_var("SELECT COUNT(*) FROM bb_posts WHERE poster_id = $user_id AND post_status = 0");
    echo $result;

    No errors though. I tried replacing poster_id with wp comment_author_id but it didn’t make it.

    What I was trying to do is to put the the whole count of wp comments and bbpress posts all together.

    The previous question was because I produced a hit counter that runs for both; wp and bbpress. I added the total hits of the bbpress post views plugin to the wp counterize plugin. It works but I think I did this by the hard way.

    #71817
    Chad Holden
    Member

    Positive. I am also getting this message on every install :

    >>> WordPress “auth” cookie salt not set.

    >>>>>> Could not fetch “auth” cookie salt from the WordPress options table.

    >>>>>> You will need to manually define the “auth” cookie salt in your database.

    >>> WordPress “logged in” cookie salt not set.

    >>>>>> Could not fetch “logged in” cookie salt from the WordPress options table.

    >>>>>> You will need to manually define the “logged in” cookie salt in your database.

    Not sure if that matters.

    AND This is at the top :

    DB Error in BB_Install::process_form_finalise_installation: Table ‘wpmu.wp_options’ doesn’t exist

    SELECT option_value FROM wp_options WHERE option_name = ‘auth_salt’ LIMIT 1

    DB Error in BB_Install::process_form_finalise_installation: Table ‘wpmu.wp_options’ doesn’t exist

    SELECT option_value FROM wp_options WHERE option_name = ‘secure_auth_salt’ LIMIT 1

    DB Error in BB_Install::process_form_finalise_installation: Table ‘wpmu.wp_options’ doesn’t exist

    SELECT option_value FROM wp_options WHERE option_name = ‘logged_in_salt’ LIMIT 1

    #4995
    _ck_
    Participant

    HttpOnly cookies are a security advancement that is finally supported now by all major browsers (Firefox eventually got it right in 3.1, while IE 7 still has a bug but it generally works).

    HttpOnly means a cookie cannot be read by javascript in the browser, only by the server (via PHP, etc.) This practically stops XSS exploits and makes it much harder if not impossible in most cases.

    HttpOnly may “save your bacon” when a plugin has a security hole (like Private Messaging and bb-Reputation 0.0.5) and prevent a malicious script from forwarding your keymaster cookie to someone else via a XSS script.

    I manged to get them to include HttpOnly in WordPress 2.7 and bbPress 1.0 but it’s still not in older WordPress or bbPress 0.9 because they worried about backward compatibility with some WordPress plugins that try to directly read the cookie (bad technique) instead of using server-side helpers.

    However there are NO bbPress plugins that direct read the auth cookie and very few WordPress plugins still do this. I am not 100% positive how it will affect ajax but it shouldn’t because it’s still authorized on the server-side via PHP.

    So if you’d like to try out HttpOnly on your bbPress 0.9, here’s how, it’s as simple as a mini-plugin. Note that if you are already using a cookie replacement plugin like my “Freshly Baked Cookies” or “Year Long Cookies” you will need to edit them instead of using the following (you can only use one cookie replacement plugin at a time).

    I’d appreciate any feedback or experiences with this, especially if it causes problems:

    Save this as _HttpOnly.php and upload into your my-plugins/ directory:

    <?php
    /*
    Plugin Name: HttpOnly Auth Cookie
    */

    function wp_set_auth_cookie($user_id, $remember = false) {
    global $bb;

    if ( $remember ) {
    $expiration = $expire = time() + 1209600;
    } else {
    $expiration = time() + 172800;
    $expire = 0;
    }

    $cookie = wp_generate_auth_cookie($user_id, $expiration);
    do_action('set_auth_cookie', $cookie, $expire);

    setcookie($bb->authcookie, $cookie, $expire, $bb->cookiepath, $bb->cookiedomain. '; HttpOnly' );
    if ( $bb->cookiepath != $bb->sitecookiepath )
    setcookie($bb->authcookie, $cookie, $expire, $bb->sitecookiepath, $bb->cookiedomain. '; HttpOnly' );
    }
    ?>

    To prove it’s working, you CANNOT use the Firefox webdeveloper plugin because that looks at the cookie in Firefox’s chrome, not at the user level. What you have to do is

    1. prove you can see your bbpress/wordpress cookie by typing or copying this to your browser address bar javascript:alert(document.cookie);

    2. install the plugin

    3. log out and then log in

    4. again type or copy this to your browser address bar javascript:alert(document.cookie);

    5. if it’s working, you should NOT see your wordpress/bbpress cookie in the alert

    Currently the only plugin I am aware of that tries to read the cookie directly in WordPress is the WP-UserOnline plugin from GamerZ, and he may have even fixed that by now in the newest versions. However there may be others, so test your setup.

    #4993

    Okay, this is an oldy but a goodie.

    I’ve got bleeding edge trunk (as of lunchtime yesterday) and once I installed it, I could no longer share my login cookies between WP and BB. I reverted to my backup and it magically worked again. At first I thought I must have whacked my bb-settings (since that’s how I thought I fixed it last time), but that didn’t work.

    I’ve been fiddling with this a couple times, and I finally found my notes that my ‘working’ version of bb-settings.php was how I fixed it (basically I fiddled with it and now it works). I can’t use it, though, since if I try and paste up that file with the trunk build, the forums die.

    My ‘fix’ was to change this:

    if ( $bb->path != '/' ) $bb->path = '/' . trim( $bb->path, " tnrx0B/" ) . '/';

    to

    if ( $bb->path != '/' ) $bb->path = '/' . trim( $bb->path, '/' ) . '/';

    No longer works.

    I’m not sure why the cookies are borked that way, and I have a lingering suspicion that it’s becuase I have my blog in /blog, but I’m running it out of / (root). My forums are in /forums.

    WP 2.7.1

    BB trunk bleeding edge

    #57287

    In reply to: LaTex support

    I’ve had a go at adapting one of the WordPress plugins (easy LaTeX) for bbPress. It works for me, but there are probably a few things a little too specific to my set-up for it to be released “in the wild” – for example, I’m using both WordPress and bbPress so there’s a little cross-over information which wouldn’t be available on a bbPress-only site (putting in some options for that would probably be a good idea).

    However, it might be suitable for beta-testing. I’ve put a copy here if anyone’s interested in taking a look and tweaking it.

    A few details:

        It uses a public server so no need for LaTeX to be installed locally.

        It uses a cache (needs to be writable by the server) to save on server load.

        It has a two-step parsing (not in the original) since forum posts are saved in their original format. This makes it more robust since the plugin allows for changing the tags that surround the mathematics. The saved format uses <math> tags which has the added advantage of avoiding markdown processing.

        Due to being a rather limited programmer, I ended up copying stuff from other plugins to get it to work without really understanding what I was doing (particularly with add_filter and the like) so if some kind soul wishes to take pity on me and clean up my code I’d be very grateful.

    #72392
    Sam Bauers
    Participant

    This was a bug. Fixed in trunk now.

    Old posts will need to be edited to get fixed. Hitting edit then save straight away should do it.

    #66145

    How I do deep integration using WordPress 2.7 and bbPress 1.0 Alpha 6.

    Add to beginning of bb-config.php:

    if ( !defined('ABSPATH') & !defined('XMLRPC_REQUEST')) {
    define('WP_USE_THEMES', false);
    include_once( '/absolute/path/to/yourdomain.com/wp-blog-header.php' );
    header("HTTP/1.1 200 OK");
    header("Status: 200 All rosy");
    }

Viewing 25 results - 25,501 through 25,525 (of 32,468 total)
Skip to toolbar