Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 28,101 through 28,125 (of 32,493 total)
  • Author
    Search Results
  • #57374

    In reply to: plugin: seo meta

    victor-f
    Member

    Thasnk! Its work fine :P

    #63409
    Beau Lebens
    Participant

    Actually I’m not using any plugins for the integration process, as bbPress and MU seem to handle it reasonably well “out of the box”.

    I’m running r1197 of WPMU and 0.8.3.1 of bbPress.

    Here’s some of the things that are modified/running though:

    config changes in bbPress:

    $bb->wp_table_prefix = 'wp_';
    $bb->wp_home = 'http://url.to.wordpress.install.com/';
    $bb->wp_siteurl = 'http://url.to.wordpress.install.com/';

    // Integrating with mu
    $bb->cookiepath = '/';
    $bb->cookiedomain = '.domainname.com'; // leading . allows subdomain sharing
    $bb->usercookie = 'wordpressuser'; // WPMU doesn't hash cookies
    $bb->passcookie = 'wordpresspass'; // WPMU doesn't hash cookies

    // Load WordPress so we can use the same templates.
    define('WP_BB', 'true');
    require_once dirname(dirname(__FILE__)) . '/wp-blog-header.php';

    config changes for WPMU

    // Adding custom settings to force cookies to be shared with/accessible to bbPress
    define('USER_COOKIE', 'wordpressuser');
    define('PASS_COOKIE', 'wordpresspass');
    define('COOKIEPATH', $base);
    define('SITECOOKIEPATH', '/');
    define('COOKIE_DOMAIN', '.domainname.com'); // same as bbPress

    Plugins in bbPress

    – A custom one I call “NoLogin” that just attempts to remove all reference that’s built into bbPress (and block actual attempts) at logging in via bbPress (rather than via MU)

    – MD5 insecurity for bbPress by Sam Bauers

    – A quick fix called “MainDomain” that redirects requests to a subdomain instance of the forums to the canonical version which is hosted from mybabyourbaby.com (rather than babyname.mybabyourbaby.com)

    – A quick and dirty “FixKSES” which allows the left/center/justify/right paragraph buttons to work in TinyMCE, because I’m using that for post formatting.

    – Display Names by Michael Adams et al to show the MU display_name, rather than the bbPress username

    WPMU plugins/hacks

    Because I load the WP engine in addition to the bbPress engine (not very performance-friendly, but makes life easier for sharing code etc), I have access to a lot of the functionality I rely on in the rest of the site – grabbing friendly usernames, user icons/avatars, links to profiles (which are handled completely outside bbPress and WP functionality), etc etc.

    I use the TinyMCE editor bundled with WP in bbPress for posting, which is surprisingly easy to add – just load the JS file and add a class to the TEXTAREA. The only thing I haven’t fixed just yet on this is that if you edit an existing post with multiple paragraphs in it then TinyMCE seems to squash it all back down to one.

    I also found that I had to add a quick function to stripslashes() onto the hooks “pre_post” and “pre_topic_title” to prevent annoying slashes appearing in them.

    One last thing that I discovered was that because the WP engine is being loaded to display bbPress pages, but it doesn’t really “know about” those pages (they’re not internal WP pages), it technically triggers a 404, even though it displays just find. I explained this a bit here: https://bbpress.org/forums/topic/bbpress-wordpress-mu-or-not-leads-to-404-errors-but-pages-still-load including a way around it.

    Templates

    I’m actually using the same templates for bbPress as I am for MU. I accomplish this by symlinking those files directly from the place they normally live, into my-templates/mbob/header.php and footer.php, then make custom files for all the internal bits.

    HTH someone :)

    Beau

    #63459
    itissue
    Member

    Nevermind. I figured it out. All I needed to do was create this:

    <?php if ( !bb_is_user_logged_in() ) : ?>

    ENTER CODE TO HIDE FROM REGISTERED USERS

    <?php endif; ?>

    A simple not was all it took.

    itissue
    Member

    I know there’s a way to hide a certain part of the front page by using this:

    <?php if ( bb_is_user_logged_in() ) : ?>
    INSERT HIDDEN CODE HERE
    <?php endif; else : // $forums ?>

    but I was wondering if you could have a section that only nonregistered users can view. This will make more sense after visiting my site:

    http://tapestry.endless-sonata.net

    At the bottom, I have a table that contains Hot Tags, Views, Users Online, and Top Posters. What I want is for that view to be only visible to registered users. Then, when a nonregistered user views this site, I want just the Hot tags to show in an expanded version, not off to the left. Is there a way to do this? I tried entering the alternate code after this:

    <?php endif; else : // $forums ?>

    but it didn’t display anything.

    #57199
    itissue
    Member

    I tried changing the date format using fel64’s wonderful plugin. It works great except the time is inaccurate. I have the timezone displayed. It shows the eastern time zone apparently. The problem is, the time displayed is obviously off by a lot. It says I posted something at 3:22 PM EST when in reality I posted it at 9:30 AM central time, which is 10:30 AM eastern time. Does anyone have an explanation for this? To see what I mean, go to http://tapestry.endless-sonata.net . Hover over the freshness to see the exact time.

    Edit: The timezone is supposed to be GMT, but apparently it’s displayed as EST. Strange. Is there a way to display the time zone selected by the user or hardcoded on config.php?

    #63457
    chrishajer
    Participant

    1. Validate a couple pages of your site here:

    http://validator.w3.org/

    2. I think you’ll find this font tag is invalid (missing a quote):

    <font color=white">

    Every browser deals with invalid markup in a different way.

    #63254
    aabd
    Member

    Thanks. i have the same problem!:)

    #63446
    mettled
    Member

    I just got the same error message on my forum as well. Obviously I was entering different copy, but everything else was the same. I’ve posted on my forum before without any problem. I haven’t changed anything that I can recall, so this was totally unexpected. I’m not a coder so any help would be great. My bbPress is version 0.8.3.1.

    horrorshow
    Member

    nolageek,

    In WPMU, did you put the bbpress-integration.php in the “mu-plugins” directory or the “plugins” directory?

    I want only the site admin to be able to activate the “bbpress Integration” plugin, but it shows up for all users giving them an option to activate the plugin. That’s not good.

    On the bbPress side, I found that the wordpress-integration is not necessary (I’ve asked about this, but no replies so far), and display name plugin requires some code changes to the BBPress code for it to work properly. It causes permission problems, and I had to dig around the forum where it shows you which code to change.. In retrospect, it probably wasn’t worth the trouble. (Gurus, please correct me if I am wrong, as I am new to BBpress)

    If you want me to look for that thread again, let me know.

    To get single sign-on working properly, you need to make code changes on the bbPress side to bb_cookie() and bb_logout() in pluggable.php along with the config changes I mentioned (which you’ve done already).

    function bb_cookie( $name, $value, $expires = 0 ) {
    if ( bb_get_option( 'cookiedomain' ) ){
    setcookie( $name, $value, $expires, bb_get_option( 'cookiepath' ), bb_get_option( 'cookiedomain' ) );
    }else{
    setcookie( $name, $value, $expires, bb_get_option( 'cookiepath' ) );
    }
    }

    function bb_login($login, $password) {
    if ( $user = bb_check_login( $login, $password ) ) {
    bb_cookie( bb_get_option( 'usercookie' ), $user->user_login );
    bb_cookie( bb_get_option( 'passcookie' ), md5( $user->user_pass ) );
    do_action('bb_user_login', (int) $user->ID );
    }
    return $user;
    }

    I hope this helps, and please let me know how it works out.

    #63441
    howtogeek
    Member

    A workaround would be to use feedburner to burn the feed, because it’ll display the friendly page. Would require some theme hacking, I’d think.

    Nola1974
    Participant

    I’m not able to get this working in WPMU/bbpress:

    Using newest versions of both (fresh install 3 days ago)

    Site: http://geekdc.com

    bbpress: http://geekdc.com/forum

    bbpress config.php :

    $bb->wp_table_prefix = 'wp_';  // WordPress table prefix.  Example: 'wp_';
    $bb->wp_home = 'http://geekdc.com'; // WordPress - Options->General: Blog address (URL) // Example: 'http://example.com'
    $bb->wp_siteurl = 'http://geekdc.com'; // WordPress - Options->General: WordPress address (URL) // Example: 'http://example.com'

    //if ( isset( $bb->wp_table_prefix ) ){
    $bb->usercookie = ‘wordpressuser’;
    $bb->passcookie = ‘wordpresspass’;
    $bb->cookiepath = '/';
    $bb->cookiedomain = '.geekdc.com';
    $bb->path='/forum/';
    //}
    /* Stop editing */

    Stock WPMU wp-config.php

    Using the following plugins on WPMU:

    bbpress-integration.php

    https://downloads.wordpress.org/plugin/bbpress-integration.0.74.zip

    Using the following plugins on bbpress:

    wordpress-integration

    https://bbpress.org/plugins/topic/wordpress-integration/

    display name

    https://bbpress.org/plugins/topic/display-name/

    Is there anything else I need to do?

    When I first log in to WPMU I get the following cookies:

    geekdc.com wordpress_test_cookie (content:’ WP+Cookie+check’)

    geekdc.com wordpressuser (content username)

    geekdc.com wordpresspass (content: hash)

    I go to the forum, and I’m not logged in.

    I log into bbpress and I get two more cookies, exactly the same execept for the expiration dates. The WPMU expires at the end of session. The wordpress expires in one week. I do not get another wordpress_test_cookie.

    #63445
    chrishajer
    Participant

    What version bbPress are you using? Looks like mismatched quotes are causing a problem inserting this post into your database. I inserted that text into a post on my installation and it is inserted fine. Of course, I might be missing some of what you tried to insert before it erred out.

    This is what I posted:

    Internet. I've taken to not answering my phone lately, and I like it. And Eh@ the laptop-- it's nice to have, but I don't need it. The internet tho, is a lifeline How would you get on the internet without your laptop?

    Was there something before “Internet”? Can you post a link to a plain text file that contains the whole text of the post? Maybe some characters in there are causing this problem.

    #63440
    chrishajer
    Participant

    If the browser can’t handle the feed, just use one of the feed readers from the dmoz list.

    #63439
    chrishajer
    Participant

    I guess trying to view the RSS feed without a feed reader is kind of like trying to view a HTML page with notepad. You see something other than what’s intended because your client doesn’t support the content coming your way.

    #63438
    howtogeek
    Member

    I’m sure the problem is that McKrazie is still on IE6, which displays RSS feeds as xml documents, since there’s no reader built in.

    Sadly many companies have not upgraded yet.

    #63437
    chrishajer
    Participant
    #63436
    chrishajer
    Participant

    Yes, you need a feed reader. IE7 has one built in, Firefox does too, and you can add RSS feeds to a Google personalized homepage (which is what I took a screenshot of.)

    Autodiscovery works fine for your site. Here’s your latest posts feed: http://www.hooligans-gaming.net/forums/rss.php

    Google Reader is a feed reader as well. Try viewing your feed there.

    http://www.google.com/reader/view/

    Really, I can’t find any place it’s NOT working:

    Google Reader

    http://www.chrishajer.com/bbpress/Hooligans-Google-Reader.png

    Firefox 2

    http://www.chrishajer.com/bbpress/Hooligans-Firefox.png

    IE7

    http://www.chrishajer.com/bbpress/Hooligans-IE7.png

    #63433
    chrishajer
    Participant

    Oddly, all the stuff over there is using the same CSS, which is a little weird. I think I would prefer to have .threadauthor .name, .threadauthor .post_count_plus, .threadauthor .status, .threadauthor .membersince, but that is not there now. If it were, it would be easy to add to style.css and style each item individually. But it’s not.

    So, I just added this to .threadauthor in style.css:

    font: 13px Verdana, Arial, Helvetica, sans-serif;

    So now that block looks like this:

    .threadauthor {
    margin-left: -110px;
    overflow: hidden;
    position: absolute;
    width: 95px;
    font: 13px Verdana, Arial, Helvetica, sans-serif;
    }

    That worked for me. There are probably better ways to do it, by adding the proper classes to the template file or whatever generates that HTML, but barring that, this one line addition worked fine for me. If 13px is too small still, make it a larger number. You might also need to adjust the width after that.

    #63435
    Craig
    Member

    Internet Explorer at my work :(

    So, you can’t just view the rss.php page that is linked in the profiles? You need an external feeder to read it?

    #63434
    chrishajer
    Participant

    Works fine for me with Firefox and my Google homepage. See this after I added your feed:

    http://www.chrishajer.com/bbpress/iGoogle.png

    No problem at all. Where are you trying to view this feed?

    #2985
    Craig
    Member

    Alright, I will fully admit I am a complete newbie to RSS feeds and while I’m trying to learn more… I have a weird error I think.

    When you have an active RSS feed on my forums it just shows a page with a white background and expandable/collasping script.

    Forums: http://forums.hooligans-gaming.net

    Help a brother out!

    #63183
    janellers
    Member

    just don’t belive in my last post :( please help me!

    #63408
    horrorshow
    Member

    Hi beaulebens,

    I like your site!

    Which version of wpmu and bbpress are you running? Which plugins are you using for the integration. (I had to modify some cookie setting code in bbpress to get the single signon working properly: https://bbpress.org/forums/topic/cookies-subtle-bug-single-sign-on-bbpress-and-wordpress)

    BBsync doesn’t work with WPMU, btw.

    What other things have you customized? Thanks for sharing!

    horrorshow
    Member

    I fixed the problem by making changes to the bb_cookie() and bb_logout() since wpmu and bbpress set cookies differently: (the expire times are different). If anyone wants to me to post the code, please let me know.

    Also, I added the “cookiedomain” to the config.php

    Here’s the full list relevant to the integration.

    $bb->wp_table_prefix = 'wp_';
    $bb->wp_home = 'http://achillesblog.com';
    $bb->wp_siteurl = 'http://achillesblog.com';
    $bb->usercookie = 'wordpressuser';
    $bb->passcookie = 'wordpresspass';
    $bb->cookiepath = '/';
    $bb->cookiedomain = '.achillesblog.com';
    $bb->path='/forum/';

    #63284
    itissue
    Member

    That looks like it should work. I have this in my-views.php though

    $my_views_prefered_order=array(
    "latest-discussions","no-replies","untagged","my-topics","my-posts","most-views","most-posts","least-views","least-posts",
    "installed-plugins","available-plugins","installed-themes","available-themes","statistics"
    );

    The problem is, every time I put /view/latest-discussions/ or /view/latest-discussions/page/2 , it redirects me to the index page.

Viewing 25 results - 28,101 through 28,125 (of 32,493 total)
Skip to toolbar