Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 26,651 through 26,675 (of 32,481 total)
  • Author
    Search Results
  • #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.

    #68544
    kannued
    Participant

    I added this

    .threadpost img
    {
    background-color: transparent;
    max-width:100%;
    }

    But it didn’t change anything. The max-width is to restrict larger images.

    #4191

    It’s like trying to open the wrapper on a new CD you’re dying to listen to…if I can just get it open without using a hammer…

    This is a thread. There are many threads like this thread. This thread is my thread.

    Follow the cookie path please. Visit with the config file settings. See the pattern and you will bend the spoon. Then let me eat ice-cream with that spoon, please.

    Paths:

    WP: http://mydomain.org/
    bbPress: http://mydomain.org/forum/

    Apache version 1.3.41 (Unix)
    PHP version 5.2.5
    MySQL version 5.0.51a-community
    Architecture i686
    Operating system Linux

    #########################################
    bb-config.php:

    // URI’s

    $bb->wp_siteurl = ‘http://mydomain.org&#8217;; // No trailing slash

    $bb->wp_home = ‘http://mydomain.org&#8217;;

    // Cookie Scope

    $bb->cookiedomain = ”;

    $bb->cookiepath = ”;

    $bb->sitecookiepath = ”;

    $bb->admin_cookie_path = ‘/forum/bb-admin’;

    $bb->core_plugins_cookie_path = ‘/forum/bb-plugins’;

    $bb->user_plugins_cookie_path = ‘/forum/my-plugins’;

    $bb->wp_admin_cookie_path = ‘/wp-admin’;

    $bb->wp_plugins_cookie_path = ‘/wp-content/plugins’;

    // The name of the cookies

    $bb->authcookie = ‘wordpress_blah3_blah5_blah8’;

    $bb->secure_auth_cookie = ‘wordpress_sec_blah3_blah5_blah8’;

    $bb->logged_in_cookie = ‘wordpress_logged_in_blah3_blah5_blah8’;

    define(‘BB_AUTH_KEY’, ‘ahhpushit’);

    define(‘BB_SECURE_AUTH_KEY’, ‘pushpushit’);

    define(‘BB_LOGGED_IN_KEY’, ‘realgood’);

    define(‘BB_AUTH_SALT’, ‘andpepper’);

    define(‘BB_LOGGED_IN_SALT’, ‘arehere’);

    #########################################

    wp-config.php:

    define(‘AUTH_KEY’, ‘ahhpushit’);

    define(‘SECURE_AUTH_KEY’, ‘pushpushit’);

    define(‘LOGGED_IN_KEY’, ‘realgood’);

    define(‘AUTH_SALT’, ‘andpepper’);

    define(‘LOGGED_IN_SALT’, ‘arehere’);

    $wp->authcookie = ‘wordpress_blah3_blah5_blah8’;

    $wp->secure_auth_cookie = ‘wordpress_sec_blah3_blah5_blah8’;

    $wp->logged_in_cookie = ‘wordpress_logged_in_blah3_blah5_blah8’;

    // bbPress WP integration

    define(‘COOKIE_DOMAIN’, ”);

    define(‘COOKIEPATH’, ”);

    #########################################

    1)Clear all cookies

    #########################################

    2) Log into bbPress: (mydomain.org/forum/): role 'member':

    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

    #########################################

    3) Visit WP site: (not logged in)

    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

    PHPSESSID => /

    various 3rd party cookies from picasa etc

    #########################################

    4) Visit wp-login.php: (not logged in)

    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

    PHPSESSID => /

    wordpress_test_cookie => /

    #########################################

    5) Log into wp-login.php as 'subscriber' user (same user as bbPress) which puts me /wp-admin/

    wordpress_logged_in_URIHASH => /

    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

    PHPSESSID => /

    wordpress_test_cookie => /

    #########################################

    6) 'Visit site' from wp-admin

    wordpress_logged_in_URIHASH => /

    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

    PHPSESSID => /

    wordpress_test_cookie => /

    #########################################

    7) Click on '//mySite.org/forum' link on main site (bbPress install dir)
    Forum's first page displays: No extra cookies made. These cookies are from WP in the previous step:

    wordpress_logged_in_URIHASH => /

    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

    PHPSESSID => /

    wordpress_test_cookie => /

    #########################################

    8) Log out from bbPress:

    wordpress_logged_in_URIHASH => /

    wordpress_test_cookie => /

    PHPSESSID => /

    STILL LOGGED INTO bbPress!

    #########################################

    9) Visit wp site

    wordpress_logged_in_URIHASH => /

    wordpress_test_cookie => /

    PHPSESSID => /

    #########################################

    10) Logout from WP site: (wp-login.php?loggedout=true)

    wordpress_test_cookie => /

    PHPSESSID => /

    #########################################

    11) Visit forum site.

    logged out.

    #########################################
    12) Clear all cookies

    #########################################

    13) Log 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

    #########################################

    14)Log out of bbPress:

    All cookies cleared.

    #########################################

    15) Visit WP site + clear cookies.

    #########################################

    16) Log into WP

    wordpress_logged_in_URIHASH => /

    wordpress_URIHASH => /wp-content/plugins

    wordpress_URIHASH => /wp-admin

    wordpress_test_cookie => /

    PHPSESSID => /

    #########################################

    17) Visit bbPress site.

    Already Logged in as wp user.

    wordpress_logged_in_URIHASH => /

    wordpress_URIHASH => /wp-content/plugins

    wordpress_URIHASH => /wp-admin

    wordpress_test_cookie => /

    PHPSESSID => /

    #########################################

    18) Logout from bbPress:

    wordpress_logged_in_URIHASH => /

    wordpress_test_cookie => /

    PHPSESSID => /

    Still logged in to bbPress!

    #########################################

    19) Logout from main site:

    wordpress_test_cookie => /

    PHPSESSID => /

    #########################################

    20) Eat stapler.

    #68530
    _ck_
    Participant

    I really wish people would just post in the extend area for each plugin directly. All these fractions of questions and answers all over the forum makes it impossible for the next person to find it .

    The span technique should be fine, I just didn’t do it that way because it’s just about as much code to put an image in the foreground that way than the background.

    #4190
    kannued
    Participant

    When I input the code to include the image in a post, my image is surrounded by the post-form colour. In other words, I have an image with a white background which is surrounded by the post-form colour. The image is the only content in the post.

    Posts without images are surrounded by the post content colour. In other words, the text has a white background throughout. No post-form colour as in the outer edge of the image.

    How can I change so that the image is surrounded by the post content colour, in this case white, instead of the post-form colour?

    Using bbpress .9.0.2, with allow images .7.1

    #68522

    Hey Chris,

    Apache version	1.3.41 (Unix)
    PHP version 5.2.5
    MySQL version 5.0.51a-community
    Architecture i686
    Operating system Linux

    I came across the other stuff while searching…

    (and figured, heck, I’m hungry, I think I’ll put that in my mouth…)

    #68502

    Hey kannued,

    When I edit the forum in the Admin back-end, I used to see the [H] [H] Forum Name so I would delete both of the [H]’s and let the plugin put one back.

    If you take a look at the link to my issue (a few posts up), you’ll see that I stopped using H’s altogether…

    #4187

    Plugin: _ck_’s Hidden Forum v.0.0.4*

    I did this:

    //$hidden_forums['label']="[H] ";
    $hidden_forums['label']="<span id='shield'>&nbsp;</span>";

    so that I could use a background image. The ugly thing with this is that you see span blah blah as the browser title…

    Is there a better way to do this?

    #68499

    Works for me.

    bbPress 1.0a2 and plugin v.0.0.4*

    Didn’t bother me before (just deleted double H’s) but this is progress!

    Um, _ck_, while you’re looking at that file…peek at another minor thing ;)

    #68520

    Theme Name: Kakumei Blue Version: 0.01 theta-beta

    Well, a modified copy of it anyway.

    The current incarnation of this is with the Enhanced Tag Heat Map 1.0.2

    If I try to update changes made to the settings I get The Green Box.

    With the change to the PHP error level, I get the following notices displayed at the top of the screen:

    Notice: Undefined index: plugin in /home/musnake/public_html/forum/my-plugins/enhanced-tag-heat-map/enhanced-tag-heat-map.php on line 485

    Notice: Undefined index: host in /home/musnake/public_html/forum/bb-includes/backpress/functions.wp-cron.php on line blah

    Notice: Undefined index: action in /home/musnake/public_html/forum/my-plugins/enhanced-tag-heat-map/enhanced-tag-heat-map.php on line 586

    Notice: Undefined index: action in /home/musnake/public_html/forum/my-plugins/enhanced-tag-heat-map/enhanced-tag-heat-map.php on line 618

    I was looking to debug why I get The Green Box.

    Thanks.

    #68518

    Ok, I’m getting something printed to the screen.

    The main one (because it’s related to a core file):

    Notice: Undefined index: host in /home/musnake/public_html/forum/bb-includes/backpress/functions.wp-cron.php on line 189

    which is the last line of the following block:

    function wp_cron() {
    // Prevent infinite loops caused by cron page requesting itself
    $request_uri = parse_url($_SERVER['REQUEST_URI']);
    $cron_uri = parse_url(BP_Options::get('cron_uri'));

    if ( $request_uri['host'] == $cron_uri['host'] && $request_uri['path'] == $cron_uri['path'] )

    The rabbit hole leads to bb-includesclass.bp-options.php around line 14:

    function get($option) {
    switch ($option) {
    case 'cron_uri':
    return bb_get_uri('bb-cron.php', array('check' => BP_Options::get('cron_check')), BB_URI_CONTEXT_WP_HTTP_REQUEST);

    Is this ice-cream?:

    if(!isset($_SERVER['REQUEST_URI'])) {
    $_SERVER['REQUEST_URI'] = substr($_SERVER['argv'][0], strpos($_SERVER['argv'][0], ';') + 1);
    }

    $request_uri = parse_url($_SERVER['REQUEST_URI']);

    I guess $request_uri['host'] isn’t set as the notice goes away if wrap a simple if isset around the next block. That snippet doesn’t work for me BTW. I thought $_SERVER['REQUEST_URI'] was the URI used to call up that page. How is it missing? It is just a notice. I should go back to the plugin issues (Undefined index: plugin and Undefined action: )

Viewing 25 results - 26,651 through 26,675 (of 32,481 total)
Skip to toolbar