Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 26,626 through 26,650 (of 32,466 total)
  • Author
    Search Results
  • #68121

    Oh, possibly.

    Operating system  	Linux
    Kernel Version 2.6.9-67.0.4.ELsmp
    Apache version 1.3.37 (Unix)
    PERL version 5.8.8
    PHP version 5.2.1
    MySQL version 5.0.51a-community

    #68120

    @sam: The function ‘display’ in the bbpress-live.php class ‘bbPress_Live_Widget_Forums’ appears to echo out the fora lists etc. Look who I’m preaching too ;) I must have missed something!

    Curious Ipstenu that the rest of your wp blog functions with this plugin enabled and in this state. Not my current experience. Server differences?

    #68119

    Viewing source was the first thing I tried. Old habits die hard ;) But really, there was nothing.

    I did not check the error logs, so I did that right now.

    On Server:

    Make sure error-log is set to verbose for now.

    On bbPress:

    Enable XML-RPC – YES

    On WordPress:

    Install plugin – Done

    Activate Plugin – Done (no errors)

    Configure Plugin –

    URL (http://jorjafox.net/forums/)
    ID/Password (Ipstenu / 555Nope!)
    Caching Enabled - NO
    Enable forums widget - YES
    Enable Topics widget - YES
    Copy new WordPress posts to bbPress (not implemented)

    Then I went into widgets and picked ‘bbPress latest topics’, put it at the bottom of my sidebar. I gave it the title of ‘Latest Topics’ and saved my changes.

    The header shows up on the bottom of the side bar, no content.

    Error log is empty. Frustration resumed :(

    By the way, if the standalone function is called to be echoed like print_r($myarray);, shouldn’t that output something?

    #4209
    _ck_
    Participant

    I just wanted to announce I have a primitive prototype of OpenID working with bbPress and should have a more stable version for experimental testing within a few days (likely by the end of the weekend). The only requirement is your PHP needs CURL with https (ssl) support, which many servers have or can easily add ie. via cpanel’s rebuild PHP (check your PHPINFO to be certain).

    I finally got an old openid 1.1 framework working with openid 2.0 so this makes it possible to use it with all the newest providers: aol, yahoo, microsoft and now even Google (as a “consumer”, not as a server).

    The biggest problem was making it work without extra libraries like the complex math support and even DOMXML which is not available on many shared hosting PHP4 servers. But found a way around that too ;-) I’ll eventually add fsockopen support with ssl so even CURL is not a requirement.

    ps. OpenID on WordPress.com needs to be fixed to offer a secure login when a cookie is not present like every other provider. This is annoying :-(

    #4205
    johnhiler
    Member

    I have been getting reports that registrants on my bbpress forum aren’t receiving their auto-generated password emails from my server.

    I’ve read a few threads on this forum that suggest workarounds. But I’m more interested in allowing my users to set their own passwords.

    There’s a neat WordPress plugin that does exactly what I want:

    http://wordpress.org/extend/plugins/wordpress-password-register/

    I don’t even need the email confirmation/validation code part. I just want users to be able to specify their own passwords. If bot registrations become a problem, I’d just install a captcha plugin.

    Can someone adapt that code into a bbpress plugin that allows for user-defined passwords? I’d be glad to pay $100 to anyone who can deliver a working plugin! Plus I’d be eternally grateful and would have no objections to open sourcing any code that came out of this.

    Please let me know!

    #68116
    Sam Bauers
    Participant

    The standalone functions in bbPress Live don’t print anything to the screen, they return an array. You need to do something like this:

    <?php
    $bbl_topics = bbpress_live_get_topics();

    foreach ($bbl_topics as $bbl_topic) {
    echo '<a href="' . $bbl_topic['topic_uri'] . '">' . $bbl_topic['topic_title'] . '</a>';
    }
    ?>

    #68558

    Thanks Deadpan11,

    The core behavior of bb-settings.php is to append BB_HASH to the cookie name on line 638:

    $bb->logged_in_cookie = ($bb->wp_cookies_integrated ? 'wordpress_logged_in_' : 'bbpress_logged_in_') . BB_HASH;

    Even in a non-WPMU installation such as this one, I would agree that this is a good coding protocol to follow. I did try your suggestion though, because I do want to understand, but the cookie was still created as wordpress_logged_in_blah3_blah5_blah8.

    This caught my eye over the weekend…

    In bb-settings.php line 592:

    $bb->wp_cookies_integrated = false;
    $bb->cookiedomain = bb_get_option('cookiedomain');
    if ( $bb->wp_siteurl && $bb->wp_home ) {
    if ( $bb->cookiedomain ) {
    $bb->wp_cookies_integrated = true;

    I even tried setting $bb->cookiedomain=” to allow the code to construct the value… no joy. No problems logging into bbPress, which is just fine for the moment.

    The code is alpha! Since others had had success I was trying to nail down my server environment deltas…

    I’ll push on with other projects for now :)

    #67851
    timskii
    Member

    Technically, it’s not just about pretty links and sitemaps. BBPress can produce much cleaner, better structured page code than certain other forum software.

    Meta descriptions and keywords are still used by search engines where available. Personally I take the tags associated with each topic and add them to the list of keywords. In the keywords meta:

    global $tags;

    if($tags) {

    foreach ($tags as $t) {

    echo $t->raw_tag.', ';

    }

    }

    That said, I still believe that asking whether something is SEO-friendly is asking the wrong question. Work on making forums user-friendly, which then attracts “quality” posts, and the search engines will follow.

    #68583
    _ck_
    Participant

    What they are asking for might be closer to post-count-plus.

    It doesn’t display it graphically though which would require some extra code to simply display a div with a background image at a designated width.

    #68585
    _ck_
    Participant

    Very nice work.

    Demo:

    http://bbshowcase.org/forums/?bbtheme=WPMimic

    don’t forget to add the info at the top of style.css

    /*
    Theme Name: WP Mimic
    Theme URI: http://idolsavenue.com/forums/topic.php?id=1
    Description: This theme is called "WP Mimic" because it is structured after the current themes of WordPress (.com and .org) forums.
    Version: 0.02
    Author: limited
    Author URI: http://idolsavenue.com/forums/
    */

    and make a proper screenshot

    #68557
    Deadpan110
    Member

    @musnake – as you are not using sub domains, the only thing i can see wrong with your setup is the:

    $bb->logged_in_cookie = 'wordpress_logged_in_blah3_blah5_blah8';

    Try changing to:

    $bb->logged_in_cookie = 'wordpress_logged_in_';

    #68556
    Deadpan110
    Member

    Im not sure if I have set my bbPress 1.0.alpha2 to work with WordPress MU 2.6.3 correctly, but its working.

    http://domain.com = my WordPress MU

    http://forums.domain.com = bbPress sub domain

    As you can probably see, there are things within the config files that might not be needed.

    WordPress/wp-config.php

    define('AUTH_KEY', 'authkey');
    define('SECURE_AUTH_KEY', 'secureauthkey');
    define('SECURE_AUTH_SALT', 'secureauthsalt');
    define('LOGGED_IN_KEY', 'loggedinkey');
    define('SECRET_KEY', 'secretkey');
    define('SECRET_SALT', 'secretsalt');
    define('LOGGED_IN_SALT', 'loggedinsalt');

    I copied and pasted the existing lines straight into bb-config.php replacing what was already there and then added the BB_ to each.

    bbPress/bb-config.php

    define('BB_AUTH_KEY', 'authkey');
    define('BB_SECURE_AUTH_KEY', 'secureauthkey');
    define('BB_SECURE_AUTH_SALT', 'secureauthsalt');
    define('BB_LOGGED_IN_KEY', 'loggedinkey');
    define('BB_SECRET_KEY', 'secretkey');
    define('BB_SECRET_SALT', 'secretsalt');
    define('BB_LOGGED_IN_SALT', 'loggedinsalt');

    In BOTH bb-config.php AND wp-config I added:

    define('COOKIE_DOMAIN', '.domain.com'); // remember the '.' prefix
    define('COOKIEPATH', ''); // this is empty

    Then I visited http://forums.domain.com/bb-admin/options-wordpress.php (Settings > WordPress Integration) and scrolled down to ‘Manual bbPress config file settings’ and copied all the text below ‘WordPress cookie integration speedup’ and pasted into bbPress/bb-config.php.

    $bb->wp_siteurl = 'http://domain.com';
    $bb->wp_home = 'http://domain.com';
    $bb->cookiedomain = '.domain.com';
    $bb->cookiepath = '';
    $bb->authcookie = 'wordpress_LEFT_THIS_ALONE';
    $bb->secure_auth_cookie = 'wordpress_sec_LEFT_THIS_ALONE';
    $bb->logged_in_cookie = 'wordpress_logged_in_'; // DELETE the hash part
    $bb->admin_cookie_path = '/bb-admin';
    $bb->core_plugins_cookie_path = '/bb-plugins';
    $bb->user_plugins_cookie_path = '/my-plugins';
    $bb->sitecookiepath = '';
    $bb->wp_admin_cookie_path = '/wp-admin';
    $bb->wp_plugins_cookie_path = '/wp-content/plugins';

    Oh, and I added the$bb->wp_table_prefix = 'wp_'; too.

    NOTE

    $bb->logged_in_cookie = 'wordpress_logged_in_';

    The hash was removed and the line reads EXACTLY as above.

    To test, just make sure you are logged out of both and then log in and visit your other site.

    Final Note, as stated above – there is probably a lot of unneeded clutter in the bb-press config, but all works for me – no matter which domain I log into!

    I hope this helps someone :)

    #4201
    umdenken
    Member

    I’ve started a project to allow people to integrate apps like bbPress into existing Rails applications. From the README:

    The Integration API is an Open Source project with the goal of making

    it easy to integrate an existing Rails application with any number of

    off-the-shelf apps, such as WordPress, Beast, PunBB, or Vanilla. The

    focus is on enabling transparent single sign-on between the

    applications.

    The basic idea


    The key idea is to add a web services API into the existing Rails

    application, which allows one or more 3rd party apps to get the

    information they need, when they need it. The API should be

    configurable enough and general enough so that it can be added to any Rails app without modification. The Rails app stays in control of all sign-in and sign-out functions.

    …so, the idea is to write a plugin for bbPress that works something like WordPress’s LDAP plugin. But I’m not a big bbPress coder … anybody interested in helping with this?

    Project page: http://greenfabric.com/page/integration_api_home_page

    #64168

    In reply to: bbOrg?

    beernews
    Member

    sorry for not being more clear.

    It was a javascript that I didnt realize had been left behind the code in the header file:

    <script type=”text/javascript” src=”http://onvertigo.com/anarchy_media/anarchy.js”></script&gt;

    Nice work on this template, Trent. :thumbsup:

    Sam Bauers
    Participant

    @limited

    Automattic generally don’t have a problem with this sort of thing at all unless of course you were using it to pretend to be WordPress.org or WordPress.com in some sort of deceptive way. Which of course you aren’t. :)

    #68580
    Sam Bauers
    Participant

    Try:

    foo {
    border-collapse: collapse;
    }

    .

    Where foo is what you are trying to affect.

    #55936

    In reply to: Show off your Forum !!

    forum: http://www.rensenieuwenhuis.nl/r-forum/

    blog: http://www.rensenieuwenhuis.nl

    New forum on R-Project and statistics in general, based on BBPress 1.0 alpha-2I didn’t change much to the original code (other than some minor tinkering on the CSS).

    Plugins:

    • Support Forum
    • Unread Posts
    • Post notification
    • Moderator post notification
    • Google adsense
    • Akismet

    Also use BBpress Live to mirror on my blog what’s going on at the forums. Finally, the forum is accessible through a ‘page’ on my blog: http://www.rensenieuwenhuis.nl.

    In the future, I plan to use BBpress Live to send a selection of my blog-posts to a subforum.

    #55935

    In reply to: Show off your Forum !!

    thion
    Member

    http://forums.astateofmind.eu

    Plugins:

    – Human Test for bbPress

    – Forums Moderators

    – Allow Images

    – bbSocialize

    – bbPages

    – bbPress Smilies

    – bbFlickr

    – Forum Last Poster

    – BBPress Private Messaging

    – BBcode Buttons Toolbar

    – Private Forums

    – bbPress signatures

    – bbPress Polls

    – BBcode Lite

    Modifications: A lot! bbSocialize and bbPages plugins has been created specially for this website, there is a lot of conditional php tags (if, else, etc.), I’ve created a function to create a sidebar, and I’ve integrated some jQuery stuff, and more ;).

    If I could only attract members as I’m coding things :P.

    #4199
    fuzzmop
    Member

    I’ve been wondering how to remove the borders or padding in the stylesheet for Kakumei. I can’t find *anything* that would lead me to changing this. I’ve tried this:

    table, th, td, tr { border: 0; padding: 0; }

    But it doesn’t work unless you’re “adding on” to it.

    Here is an example of what I’m trying to do: http://img79.imageshack.us/img79/2452/paddingtp9.png

    I’m running BBPress 1 Alpha 2 if that’s of any help.

    Can someone please help find out how to remove the border/padding? It would be greatly appreciated.

    #68555

    Hmm,

    With all the path and cookie info stripped out of bb-config and wp-config, cache and cookies cleared, the logging into bbPress:

    wordpress_logged_in_URIHASH => /forum/
    wordpress_URIHASH => /wp-content/plugins
    wordpress_URIHASH => /wp-admin
    wordpress_URIHASH => /forum/my-plugins
    wordpress_URIHASH => /forum/bb-plugins
    wordpress_URIHASH => /forum/bb-admin

    Note the trailing slash on the /forum/ path.

    The only ‘integration’ info in the bb-config.php is the db connection stuff. That’s it.

    Now, this may be/probably is totally natural, that `wordpress_URIHASH => /wp-content/plugins

    wordpress_URIHASH => /wp-admin` cookies are set, and this goes to highlight how wrong my perspective is! Here I was thinking that I had configured at least part of it correctly, the auth cookie stuff, but it was doing it all along, haha.

    I wonder if one of the WP user permissions plugins (WP-Sentry comes to mind) is affecting this -nah! Cookies are set before output is sent.

    Time to back off of this.

    Users will just have to log in twice (between the blog and the fora).

    Thanks rowoot.

    #68554

    Sounds familiar.

    I have been brute-forcing it (after reading the cookie-related code to see where it’s getting what) and have discovered that if I strip ALL of the integration code, I can still get the correct wp cookies to be generated which sounds like a cache issue…

    I’m going to flush cache now… and if it still works, I’m going to try and turn water into a nice Shiraz.

    #68552

    So I was thinking about this in the shower, if I can get bbPress to set a cookie for / instead of /forum I think my woes would be over (See Step 2 above…)

    Now, before looking into it further, I don’t think this is how it works. If the script calling for a cookie to be set is in folder ‘/forum/’ then the domain scope for that cookie is going to be set to ‘/forum/’ by the webserver.

    But to test the obvious, I rushed to bb-config and tried variations on

    // Cookie Scope
    $bb->cookiedomain = '';
    $bb->cookiepath = '/';
    $bb->sitecookiepath = '/';

    No joy.

    Maybe if I had the wp-login code on the forum site…with bb-admin cookies… let me try some things…

    The ‘/’ cookie to rule them all is the way to go. If I can just get it to work…

    #55934

    In reply to: Show off your Forum !!

    Vietson
    Member

    Its my first time using bbPress and first time theming it. I must say, the easiest forum to theme I’ve ever come across.

    I mimic WordPress (.com and .org) forums layout structure and color palette. Still working to iron out some css issue.

    I wanted to update jquery to the current latest but it broke a few things. So I’m currently writing a plug-in that will hopefully update the jQuery and fixes the few broken items.

    BBCode Lite,

    BBCode Button

    Allow Image

    BB Smilies (maybe I should change this to something better)

    BB Video

    Askimet

    TOS (Terms of Service)

    Demo: http://idolsavenue.com/forums/

    #68547

    I’m only 3 days new to bbPress so I hope I don’t steer you wrong…

    There are probably alternating colors too…

    #thread li.alt .threadpost
    #thread li .threadpost

    I think it’s the background color of the li not the img to be changed…

    Hmm, I’m going to bow out, sorry. The solution is probably ridiculously facile and I look forward to seeing it. A bbPress content filter for the img tag inside an li?

    Sorry!

    #68545

    Until someone who know what they’re doing chimes in… you could use CSS Selectors (of your own making e.g. ‘foo’) to trap and apply styles to elements with the ‘foo’ attribute…

    [foo]        -- Has an attribute named "foo"
    [foo="bar"] -- Has an attribute named "foo" with a value of "bar" ("bar")
    [foo~="bar"] -- Value has the word "bar" in it somewhere ("blue bar stools")
    [foo^="bar"] -- Value begins with "bar" ("barstool")
    [foo$="bar"] -- Value ends with "bar" ("I was at the bar")
    [foo*="bar"] -- Value has bar somewhere ("I was looking for barstools")

    So I guess, if you had <img foo='inpost'... and

    [foo ="inpost"] { background-color: transparent; max-width:100%;} that might work.

    If you posted an actual link to the test site (or emailed it), folks could use FF web developer plugins etc to nail down the CSS tree for that theme…

    I hope this helps.

Viewing 25 results - 26,626 through 26,650 (of 32,466 total)
Skip to toolbar