Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 26,651 through 26,675 (of 32,466 total)
  • Author
    Search Results
  • #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’; // No trailing slash

    $bb->wp_home = ‘http://mydomain.org’;

    // 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: )

    #68512

    In reply to: Error on logging out

    _ck_
    Participant

    This happens because there was a bug in early bbPress 1.0 alpha where it does not handle a blank query OR your HTACCESS file is missing a way to handle empty topics names.

    Edit your .htaccess file and add these two rules to the bottom of the rule list (before </ifmodule>)

    RewriteRule ^topic(|/)$ /forums/ [R=302,L,QSA]
    RewriteRule ^forum(|/)$ /forums/ [R=302,L,QSA]

    Note that you have to change /forums/ to the base of your forum path, whatever it might be if it’s not forums. ie. /discussions/

    /community/

    whatever, etc.

    #68517

    In bb-settings.php I changed the line that excluded some PHP errors (error_reporting(E_ALL ^ E_NOTICE);) to error_reporting(E_ALL); hoping to see something in /myforumdir/error_log

    I’ll keep looking for the switch.

    #4185

    I read earlier in this post where _ck_, chrishajer et al weighed in on what may generate a bbPress error.

    I am increasingly running into the standard Your attempt to do this has failed message, which is better than browning-the-internet but not as good as ice-cream.

    From a user perspective, my issues appear to be form related, as I only step in it once I click on it, haha.

    The plugins are used by others with dissimilar complaints ;) This points to my environment (patch level etc.)

    If it’s the blend of bbPress + plugin, I’d like to be in the position to start beating on errors with my hammer.

    And there’s the rub: to find the errors. I am bereft of grok.

    #68109

    Minor gotcha’? The bbPress blog must have XML-RPC enabled in it's settings I was going to install this to take a peek but I see someone suggested that their site hung. I’m on this ice with my host (WPMu :D )and can’t risk it just now…

    I remember that there was much drama trying to authenticate with Flikr API via XML-RPC… It required a .htaccess file at the domain root with: `<Files xmlrpc.php>

    SecFilterInheritance Off

    <Files>`

    Of course, the ‘Use XML’-thingy setting in the WP Admin/settings needs to be enabled too…

    Fingers crossed…

    I must say that I’m afraid of my shadow when it comes to turning off security filters to get something to work, especially since there was a recent thread on these forums about deleting that file altogether!

    #52824

    I’m not sure if this worked but …

    I added in the standard Plugin header to the bad-behavior-generic.php file (see below) and then copied it and the rest of the bad-behavior folder up to bbPress. It turned on. I’m trying to sort out how to hack the wordpress plugin. I’m running the same DB for wp and bb so, in theory, this should work easily. It’s not ;) Fatal errors.

    /*
    Plugin Name: Bad Behavior
    Version: 2.0.24
    Description: Deny automated spambots access to your PHP-based Web site.
    Plugin URI: http://www.bad-behavior.ioerror.us/
    Author: Michael Hampton
    Author URI: http://www.homelandstupidity.us/
    License: GPL

    #4184

    Topic: Beernews.org Forums

    in forum Showcase
    beernews
    Member

    No integration yet, just a lot of plugins from CK (I hope this guy is on the Automattic payroll!) and others..should make a donation probably ;)

    This board is for craft beer (or ‘microbrews’ which is a term the mainstream still uses but is dead in our world).

    Beernews. org Forum

    I should probably start a noobs forum for people that are interested and want to find out more about these higher end beers.

    #68107

    I am passably decent at arrays, but when I toss in <?php bbpress_live_get_topics(); ?> or anything, I get no data at all. Not even a splorg of unsorted data (which at least would give me an idea of what I need to do). Frustrated me enough that I just gave up. I tried every method I know of to print an array, and I don’t even get an error message.

    An example of ‘Make a bullet list of the recent posts’ would be nice to help people get started.

    #50459

    In reply to: Google sitemap

    macgeekco
    Member

    i also have the same problem with version 09.02

    <url>

    <loc>://</loc>

    <lastmod>2008-09-02</lastmod>

    <changefreq>monthly</changefreq>

    <priority>0.0625</priority>

    </url>

    What can i change, in order to be validate by google webmaster tools

    #60779

    In reply to: PHPBB3 Converstion

    yazerty
    Member

    It seems not to work for my phpbb3 board :(. Perhaps the 13000 messages are for something in this… ?

    If you succed, tell us bryan868 :) !

    And will passwords be “ok” ?

    #68479

    I think you can fix that in your bb-config.php file by overwriting.

    Under define('BB_LANG', '');

    Add in this: $bb->wp_table_prefix = 'wp_';

    #68463

    No, I’m not using it yet, and likely won’t. It’s cool, though, just outside my scope :)

    (I’m totally digging on this vanilla forum, with a total lack of features I never use!)

    #65965

    Yeah, I like that. I guess a template option for show/supress child fora would be better. Then you could use that db option…

    I’m still choosing templates but will work on it.

    This is what I had based on _ck_’s snippets:

    The theme’s front-page.php just after the forum list titles:

    </tr>
    <?php $forum_id = 0; //musnake: supress child fora: https://bbpress.org/forums/topic/hiding-subforums-subforums-from-subforum-pages#post-20150 ?>
    <?php $forum_parent=$forum_id; //musnake ?>
    <?php while ( bb_forum() ) : ?>
    <?php if ($GLOBALS['forum']->forum_parent==$forum_parent) { //musnake ?>

    <tr<?php bb_forum_class(); ?>>
    <td><?php bb_forum_pad( '<div class="nest">' ); ?><a href="<?php forum_link(); ?>"><?php forum_name(); ?></a><small><?php forum_description(); ?></small><?php bb_forum_pad( '</div>' ); ?></td>
    <td class="num"><?php forum_topics(); ?></td>
    <td class=num><?php echo $GLOBALS['forum']->views; ?></td>
    <td class="num"><?php forum_posts(); ?></td>
    </tr>
    <?php } //musnake ?>
    <?php endwhile; ?>
    </table>
    <?php endif; // bb_forums() ?>

    That theme didn’t have the breadcrumbs I wanted, so after much searching (including PHPXref!) I found this: which gets put in your theme’s forum.php:

    <h3 class="bbcrumb"><a href="<?php bb_option('uri'); ?>"><?php bb_option('name'); ?></a> <?php bb_forum_bread_crumb(); ?></h3>

    Hope that helps. Thanks All.

    Oh, just to be clear, the //musnake are to point out where the changes are, not to claim any credit!

    #68489

    In reply to: Hiding subforums

    _ck_
    Participant

    You mean not list them in the main list?

    (not actually completely hide them)

    The same approach should work in 1.0 as 0.9

    I showed the exact code to do it in a topic around here somewhere.

    Hiding subforms on your home page

    https://bbpress.org/forums/topic/hiding-subforums-subforums-from-subforum-pages#post-17436

    #68174

    In reply to: Second Page Gone!

    _ck_
    Participant

    Ah you have the exact situation I had made a note of in the back of my mind but had not made a fix for yet because I didn’t think it would be common – bb-attachments is like a page access for every image load because it loads bbPress. You have so many images, it’s trigging the “too fast” feature.

    I haven’t addresses that yet. You can turn off the ban feature by setting these to zero:

    $mini_track_options['ban_speed'] = 0;
    $mini_track_options['ban_pages'] = 0;

    #62618

    In reply to: TalkPress

    beernews
    Member

    Been a few months. Where does one keep up with the developments (other than the trac/code stuff which I dont understand)?

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