Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 24,776 through 24,800 (of 32,468 total)
  • Author
    Search Results
  • #73356

    In reply to: Menu Links

    mikemcd22
    Member

    @Ipstenu

    Thanks Very much, I understand. I had no doubt your answers were correct. By editing his header he caused some loss of functionality. When reading his entire quote which begins, quite importantly with, “Thanks. I did that. Then found out… ” You see that he tied both things together: cause and affect (or is that effect). In any case, the question of whether there are plugins for editing themes etc., and therefore avoiding destruction of important code has been answered.

    #73354

    In reply to: Menu Links

    mikemcd22
    Member

    @Michael3185

    Any chance you could share the location of those PHP Tutorials? I would love to check them out. I was remembering a friend of mine used PHPBB years ago. I had forgotten all about it until he recently posted to a discussion list. Guess he was a real pioneer!

    http://www.bavp.org/forumz/ If you want to check it out (though I can’t imagine why…) :)

    Thanks

    anointed – If I were you, I’d leave it alone and keep vbulletin. There’s no reason to change if everything’s working and you don’t hate vbulletin :) Now, if you do hate it…

    #74308
    _ck_
    Participant

    Caching will help for non-members, especially considering that a more popular site has a few dozen bots crawling around it at any given time. But yes, it will have to generate a new file for each page.

    However even without wp-super-cache it’s possible to cache parts of pages for all members, especially worthwhile on parts that use a whole bunch of CPU cycles to generate each time.

    I wrote some code awhile back to cache the tag clouds, since they are not filtered by logged-in/out and remain static until a tag is added or deleted. The tag cloud took an average of 10-20 ms out of 120 ms to generate on the front page so the savings were worthwhile.

    #73608
    nielowait
    Member

    Wow, this is a bit of a headache.

    I’m busy trying to get the integration sorted out and got along quite well (WPMU, BBPress, BuddyPress combo), although I still needed to log in twice, when my luck ran out and now I can’t seem to log into bbpress. Bit annoying. I’ve reinstalled the whole thing, but still no luck. Trying to debug it at the moment, but it’s tough going.

    I did come across something that needed fixing though; I’m not sure where to submit this fix, so I’m posting it here for now.

    The bug was this; the latest release candidate never displayed the dropdown from which one selects the keymaster during installation due to a mistake in line 2569 of bb-admin/includes/class.bb-install.php.

    Previously the line was;

    $wp_administrator_meta_key .= $this->data[2] . ‘_’;

    which meant the meta_key it tried to query the db on looked something like this; ‘wp_capabilities1_’.

    I changed it to:

    $wp_administrator_meta_key = $bbdb->escape( $bb->wp_table_prefix . $this->data[2] . ‘_capabilities’ );

    so now the key will be ‘wp_1_capabilities’.

    This is obviously (when you look at the code) only relevant when setting the default blog id.

    Hope it helps someone!

    #74786

    Did you rename your keys in bb-config? Like define('BB_AUTH_KEY', 'KEYNAME');

    Also, don’t share your keys with anyone :) They should be SECRET :)

    #74673

    No issues! Jump ahead and make it happen. Its nothing that can’t be done ;)

    #74540
    Rodrigo
    Participant

    Hi guys,

    I was facing the same problem here, but I could solve it. Basically, I put this on wp-config.php:

    define('COOKIEHASH', '65f9fb5b6e5df178e02402af4495ed46');
    define('COOKIE_DOMAIN', '.www.rodrigoghedin.com.br');
    define('SITECOOKIEPATH', '/teste/');
    define('COOKIEPATH', '/teste/');

    And this in bb-config.php:

    $bb->cookiedomain = '.www.rodrigoghedin.com.br';

    I’m running a test installation. Main WordPress is in a directory (/teste), and bbPress is a sub-directory (/teste/bbpress). Right now, it’s working fine.

    []’s!

    #74784
    manguni
    Member

    i have instal & integration bbpress 0.9.04 & WP 2.7.1 and there have wrong way,

    instalation mesage:

    >>> WordPress cookie secret key not set.

    >>>>>> Your “bb-config.php” file was not writable.

    >>>>>> You will need to manually define the “BB_SECRET_KEY” in your “bb-config.php” file.

    Key master email not sent!

    i just copy four WP secret key to bb_config.php:

    define(‘AUTH_KEY’, ‘^y?+[8|=-QR1cngc>:Kd:%8:ob/67|{#Trw1wV}{YDUngFP 2DL5ibGmfp8CiknU’);

    define(‘SECURE_AUTH_KEY’, ‘3C%:+qR(Jkuan5oA#Eq2 vq;siUcsF- D^,fij:pV0<|ZD!gHZjlHO8k?(7`sh’);

    define(‘LOGGED_IN_KEY’, ‘A;nBjuz%qGr$F<]{G_L8%tM?{PT5+_{a?lkBs%)4]t_)9;vZgy,s)m<W=/l+9M$*’);

    define(‘NONCE_KEY’, ‘V-_=k,n).uzdcm65)f)2jAdST8s4EARpWMhOX26Q0e8x8[UB|LI|hcyptQtYbw’);

    but login still different betwen WP and bbpress. what ur think?

    floch69
    Member

    Hi,

    I’ve been searching this forums yet but could’nt find any explanation to my problem so here it goes:

    I’m a newbie at developping for bbpress, and trying to customize it for my needs.

    First, I’m running bbPress 0.9.4; I’m also using a copy of the default theme that i’m modifying (located in my-templates/mysite).

    I’ve attached a hook to the action ‘bb_index.php_pre_db’ which is ran on bbpress/index.php; My goal is to display only forums (without latest discussions and sticky topics) so i’ve copied the content of index.php and removed calls to latest discussions and sticky topics:

    add_action('bb_index.php_pre_db', 'home');

    function home(){

    $forums = get_forums(); // Comment to hide forums

    do_action( ‘bb_index.php’, ” );

    bb_load_template( ‘front-page.php’);

    exit();

    }

    The problem is that once in the file front-page.php, the $forums variable doesnt exists anymore. Actually i tried to print it out in the bb_load_template as well and the variable is empty too. It seems that because i’m using a hook (called by do_action), globals variable do not exists anymore in this context. I might be wrong but i’m actually stuck to this point and can’t really move forward. Any tips?

    Cheers.

    mparker12345
    Member

    Anyone else know why this might be happening? I’m completely stuck :(

    #72115
    Ryan Hellyer
    Participant

    Thanks for the themes :)

    The links to your demo’s don’t seem to be working though :(

    #74231
    johnhiler
    Member

    SPAM

    It’d probably be useful to have a section on registration and post spam, along with the various techniques to fight it:

    https://bbpress.org/forums/topic/request-to-the-experienced-what-anti-spam-tools

    PERMALINKS

    Some general stuff on htaccess and pretty permalinks (and how support for different approaches to permalinks vary across hosts):

    https://bbpress.org/forums/topic/dropping-multiviews-support

    https://bbpress.org/forums/topic/pretty-permalinks-not-working

    https://bbpress.org/forums/topic/pretty-permalink-type-change-gives-me-a-404-error

    VERSION DIFFERENCES

    It’d also be helpful to have a summary table showing major differences between the different versions, especially for people using plugins and unsure if an upgrade will break their plugins.

    For example, version 1.0 uses BackPress plus it uses WordPress’ latest taxonomy stuff. Plus it has a new approach to meta data. So if an 0.9 compatible plugin depends on any of this stuff, it will probably break in 1.0 unless the plugin’s been specifically updated for the latest version.

    TAGS

    Tag permissions – who can add and remove tags:

    https://bbpress.org/forums/topic/members-can-add-tags

    How hot tags work and can be formatted:

    https://bbpress.org/forums/topic/hot-tags

    Reordering of hot tags:

    https://bbpress.org/forums/topic/alphabetical-ordering-of-hot-tags

    Multi-byte characters (this may have been addressed in recent versions):

    https://bbpress.org/forums/topic/unable-to-add-mutibyte-character-tags

    #74778
    massbase
    Member

    There isn’t a functions.php file in any theme, nor in kakumei and in my own theme which is based off of kakumei.

    #74794
    massbase
    Member

    @Fanny

    rather, ask, how great is the difference between RC3 and RC2? is it enough for there to be any incompatibility issues…? if the difference is small, than most RC2 plugins should work with RC3.

    in which you might want to look at this thread: –

    https://bbpress.org/forums/topic/list-of-plugins-that-work-on-rc1

    otherwise… add to the list of tested RC3 plugins by contributing to this list…

    RC3 Compatible :-

    – BB-Reputations

    – BB Code Lite

    – Members Online

    – BB-Signatures

    – BBPM

    #74777
    massbase
    Member

    never had a pingback before, and not sure how it looks, but ill give the above code a try.

    #74776
    Sam Bauers
    Participant

    Put this into your themes functions.php file and call it at will. It may screw up with pingback posts, not sure though.

    function my_post_author_avatar_profile_link( $size = '48', $default = '', $post_id = 0 ) {
    if ( ! bb_get_option('avatars_show') )
    return false;

    $author_id = get_post_author_id( $post_id );
    if ( $link = get_user_profile_link( $author_id ) ) {
    echo '<a href="' . esc_attr( $link ) . '">' . bb_get_avatar( $author_id, $size, $default ) . '</a>';
    } else {
    echo bb_get_avatar( $author_id, $size, $default );
    }
    }

    #74678
    dreamfree
    Member

    @johnhiler: thanks for your reply, sorry I didn’t express clearly, I didn’t mean whether the attachment can be downloaded if registered or not, I mean, the permalink is dynamical and thus somewhat ugly, not that friendly in SEO.

    Actually, I write a robots.txt rule in the root of http://www.dreamfreeblog.com like:

    User-agent: *

    Disallow: /bbs/?bb_attachment=*

    but unexpectly, it didn’t work, the attachment link still be indexed. Do I need to write the rule in /bbs root?

    and secondly, as the link like:

    http://www.dreamfreeblog.com/bbs/ topic/18?bb_attachments=30&bbat=19

    I don’t know how to write the robots.txt rule…. :(

    #15029
    thechrisd
    Member

    Recently I’d been trying to deep integrate WP 2.8 and bb 1.0-rc1 together. I had previously managed to do it successfully with WP 2.5.1 and bb 0.9.0.4, so I tried porting the same method to the newer version.

    Unfortunately however, it doesn’t seem to work. With the addition of backPress, the old method of deep integration no longer works as some functions get called twice, triggering a fatal error.

    [Wed Jun 17 02:56:20 2009] [error] [client 86.45.179.252] PHP Fatal error: Cannot redeclare _mb_substr() (previously declared in */wordpress/wp-includes/compat.php:86) in */forums/bb-includes/backpress/functions.compat.php on line 108, referer: *

    So, mainly I was wondering whether anyone else had managed to find a new method of deep integration, or whether it’s now not possible at all?

    #74768
    Arturo
    Participant

    see the following 3d:

    https://bbpress.org/forums/topic/just-one-more-release-candidate-10-rc-3

    https://bbpress.org/forums/topic/cookie-integration-problem-wp28-bb-10-rc-2

    to make the integration work, change the cookie key, in wp-config and bb-config, in wp-config insert :

    define(‘COOKIE_DOMAIN’, ‘www.site.com’);

    define(‘COOKIEPATH’, ‘/’);

    in bb-config:

    $bb->cookiedomain = ‘www.site.com’;

    with this code i have the integration fixed.

    #15026
    Josh Leuze
    Member

    I think I found a bug with the third RC of bbPress 1.0 and WordPress 2.8, I checked around the forums and in Trac and didn’t see this specific issue mentioned elsewhere.

    I have WordPress installed in a subdirectory, with bbPress installed below that.

    WordPress: http://www.mydomain.com/beta/

    bbPress: http://www.mydomain.com/beta/forums

    So aside from having WordPress installed in a subdirectory for testing purposes, there is nothing out of the ordinary about my install. I don’t have WordPress set up to run in the root from the subdirectory or anything, it’s totally standard.

    The issue is that when I am logged in through WordPress, I am unable to access the backend of WordPress. Any attempt to access the Dashboard or any other page on the admin area is redirected to the login page of WordPress, even though I am already logged in.

    I am able to access the admin area of bbPress, but I am unable to logout from either WordPress or bbPress.

    When I login through bbPress, I am able to access the backend of both WordPress and bbPress. I am able to logout from bbPress, but not WordPress.

    I have followed along with Sam’s basic integration screencast a few times now, I believe I am installing everything correctly, and the results are consistent.

    I have a live install of WordPress running in the root of this particular domain, so I am unable to do a test install in the root, but I have a feeling that it would run fine there and that this issue is the result of installing from a subdirectory.

    The only difference that I can see between the screencast and what I am seeing on my end is the manual cookie settings code that bbPress asks you to add to wp-config.php at the end. In the screencast, bbPress lists this code:

    define('COOKIEPATH', '/');

    But in my install, bbPress lists this code:

    define('COOKIEHASH', 'e49cd3ef5873cd2d82bbc6a99b41ebfa');

    define('COOKIE_DOMAIN', '.www.mydomain.com');

    define('SITECOOKIEPATH', '/beta/wp-admin');

    define('COOKIEPATH', '/beta/');

    When I delete those three extra line from my wp-config.php file, leaving only the fourth line, the issue is resolved and I am able to login in and out from either WordPress or bbPress, and access both admin areas.

    Has anyone else encountered a problem like this? Am I skipping a step, or is one of the paths that bbPress giving incorrect?

    #74757

    In reply to: login

    mcmc
    Member

    I could also no login anymore, therefore I removed the code.

    maybe this info is helpful:

    as soon as I log in at http://investorsbuzz.com/forum_/bb-login.php

    it changes to http://www.investorsbuzz.com/forum_/

    #74753

    In reply to: login

    Well yeah, it’s not working :)

    Look at this picture: http://yfrog.com/eahtaccessg

    You’ll see what I mean about $1

    http://investorsbuzz.net/<PUT THE $1 HERE>

    I can’t get the link to work right :/

    #74752

    In reply to: login

    mcmc
    Member

    doesn’t seem to work, looks like this now (see http://investorsbuzz.com/forum_)

    I added the code at the beginning:

    # Getting rid of the WWW in front

    RewriteEngine on

    RewriteCond %{HTTP_HOST} ^www.investorsbuzz.com [NC]

    RewriteRule ^(.*)$ http://investorsbuzz.com/ [L,R=301]

    RewriteEngine On

    RewriteBase /

    #uploaded files

    RewriteRule ^(.*/)?files/$ index.php [L]

    RewriteCond %{REQUEST_URI} !.*wp-content/plugins.*

    RewriteRule ^(.*/)?files/(.*) wp-content/blogs.php?file=$2 [L]

    RewriteRule ^(.*/)?avatar/(.*) wp-content/avatar.php?file=$2 [L]

    RewriteRule ^(.*/)?sitemap.xml wp-content/sitemap.php [L]

    RewriteRule ^(.*/)?global-posts-feed/(.*) wp-content/recent-global-posts-feed.php [L]

    # add a trailing slash to /wp-admin

    RewriteCond %{REQUEST_URI} ^.*/wp-admin$

    RewriteRule ^(.+)$ $1/ [R=301,L]

    Also: what do you mean with

    Ugh and there’s a bug in put $1 right after the / in http://investorsbuzz.com/

    Thanks!

    #74687

    WP 2.8 (not MU), been integrated since 2.7 without issue once I re-set my secret keys. The only hard time I had was sorting out my cookie paths, since I have my blog at domain.org/blog, but it’s ACCESSED at domain.org, and the forums are domain.org/forums.

    This has been working like a champ:

    // WordPress cookie integration speedup
    $bb->wp_siteurl = 'http://domain.net/blog';
    $bb->wp_home = 'http://domain.net';
    $bb->cookiedomain = '.domain.net';
    $bb->cookiepath = '/';
    $bb->authcookie = 'wordpress_COOKIE';
    $bb->secure_auth_cookie = 'wordpress_sec_COOKIE';
    $bb->logged_in_cookie = 'wordpress_logged_in_COOKIE';
    $bb->admin_cookie_path = '/forums/bb-admin';
    $bb->core_plugins_cookie_path = '/forums/bb-plugins';
    $bb->user_plugins_cookie_path = '/forums/my-plugins';
    $bb->sitecookiepath = '/blog/';
    $bb->wp_admin_cookie_path = '/blog/wp-admin';
    $bb->wp_plugins_cookie_path = '/blog/wp-content/plugins';

    Also I kick all http://www.domain.net traffic back to straight domain.net to force things to be in order, which may be useful to someone.

Viewing 25 results - 24,776 through 24,800 (of 32,468 total)
Skip to toolbar