Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 24,301 through 24,325 (of 32,468 total)
  • Author
    Search Results
  • #15335
    lndasa
    Member

    I have installed bbpress under mysite.com/blog/wp-content/plugins/bbpress/ and its working fine along with blog (integrated). I would like to move it to mysite.com/forums. I physically copied the files to the mysite.com/forums folder and ran it gave an error saying “page not found” and then I commented out my bb-config.php to restart installation. It accepted DB values but in the Step 2 it went to the old location where it was installed mysite.com/blog/wp-content/plugins/bbpress/. So looks like the site path is hard coded in the database how do I address this.

    #76266
    _ck_
    Participant

    language files,

    in bbPress 0.9 go into bb-includes/languages/

    in bbPress 1.0 they go into my-languages/

    #76237
    _ck_
    Participant

    CyrNickName is virtually identical to the function linked above, they all take the same approach:

    function sanitize_user_cyr( $raw_username, $username, $strict = false ) {
    $raw_username = $username;

    $username = strip_tags($username);
    // Kill octets
    $username = preg_replace('|%([a-fA-F0-9][a-fA-F0-9])|', '', $username);
    $username = preg_replace('/&.+?;/', '', $username); // Kill entities

    // If strict, reduce to ASCII for max portability.
    // if ( $strict )
    // $username = preg_replace('|[^a-z0-9 _.-@]|i', '', $username);

    return apply_filters('sanitize_user_cyr', $username, $raw_username, $strict);
    }

    add_action('sanitize_user', 'sanitize_user_cyr', 0, 3);

    #76261
    bobbyh
    Member

    Arun, I’ve integrated bbPress before using sessions, it was very easy. :-)

    Here is the code: http://tinymce.moxiecode.com/punbb/viewtopic.php?pid=54919#p54919

    #15347
    arun.kumar
    Member

    Hi,

    I am looking for developers to integrate bbPress sessions (authentication) with my website session. Some of the requirements to give you idea:

    1. Disable user registration and user login in bbpress, as users session from main website will be used in the forum.

    2. Install plugin to show recent posts.

    Pay rate is highly attractive. If your coding skills are impressive, you also get a chance to mod PHP website and rewrite PHP files to standards.

    If you are really strong in bbPress code, have excellent PHP, MySql, Apache and Linux skills (while Ruby is good to have), Please reach out to me at “arun.seattle@yahoo.com”.

    Thanks!

    Arun.

    #59367

    In reply to: Plugin: List Bookmarks

    bobbyh
    Member

    Haha, two people asked for this in one day after two years of no interest… :-)

    Here’s the download link: http://www.kosmosity.com/wp-content/uploads/2007/07/list_bookmarks.zip

    To be honest, I haven’t looked at this in two years. It doesn’t have any dependencies on bbPress, though, so it should still work. Let me know!

    #76158
    grassrootspa
    Member

    Hmmm…Have 2 idea to help (not sure what the issue is and am new at this)

    1) change the bar width from “width: 800px;” to maybe “width: 900px;” and see if it extends to where you want.

    2) If that does nothing (it might not) you want to try and stick the

    <?php include('andybar.php');?>

    for the bar DIRECTLY below where your “Origin Euphoria” banner” is in the WordPress theme header (assuming its not there already).

    Since that part of your WordPress CSS lets stuff go all the way to the border on each side the bar should expand and fit perfectly. (Maybe Its not the navbar css but the WordPress theme css preventing it to go all the way across.

    #76230

    In reply to: 0.9.x version request.

    anti-sec
    Member

    @johnhiler Thank you , sorry but I hadn’t time to look properly at bbpress .

    @_ck_ Be serene , I’m a white hat and infosecwriter . I’m here with my personal data , ua , ip , server and corporation. Really do u see bad intentions? Yes , I need to study 0.9.x sources to confirm a vulnerability and write an exploit ( if possible , code is really good ) , however I’m for full disclosure only after vendors report and fix.

    So , don’t be nervous , and thank you for attention and support .

    Regards.

    #76157

    Excellent! Works a treat! :) Thank you very much.

    Is there a way of stretching it to make it fit the table better?

    Here’s how it looks: http://www.origineuphoria.com/forums/

    Here’s the code:

    #navbar ul {

    margin: 0;

    padding: 5px;

    width: 800px;

    list-style-type: none;

    text-align: center;

    background-color: #222222;

    }

    #navbar ul li {

    display: inline;

    }

    #navbar ul li a {

    text-decoration: none;

    padding: .4em 3em;

    color: #CCCCCC;

    background-color: #222222;

    }

    #navbar ul li a:hover {

    color: #CCCCCC;

    background-color: #141414;

    }

    #76122

    I meant show code in the forums.

    This is code, it's preformatted
    so that I can space things out funny.

    AdSense For bbPress seems to be broken with bb 1.0.1, but seeing as the plugin tells you to edit your theme, you’re probably going to be best off just putting in your codes into your theme template files.

    #76148

    BuddyPress is WPMU so it’s not an ‘all three’ but a ‘both’ (there’s no extra code to log in to buddyPress vs logging into WPMU).

    It sounds like the cookies being set for bbPress are ‘wrong’. Double check the Auths and salts, even going so far as to RE paste them into the bb-config. If the SALT doesn’t match, the cookies will be wrong. And do make sure that you log out, flush all your cookies (go in and delete them) and dump your cache. FireFox hangs onto logins in weird ways sometimes, and IE is worse.

    You may also want to check the BuddyPress post on the issue.

    Copy these from wp-config:

    define('AUTH_KEY',        'blahblah');
    define('SECURE_AUTH_KEY', 'blahblah');
    define('LOGGED_IN_KEY', 'blahblah');
    define('NONCE_KEY', 'blahblah');
    define('AUTH_SALT', 'bliddyblah');
    define('LOGGED_IN_SALT', 'bliddyblah');

    Put them in bb-config.php with BB_ in front:

    define('BB_AUTH_KEY',        'blahblah');
    define('BB_SECURE_AUTH_KEY', 'blahblah');
    define('BB_LOGGED_IN_KEY', 'blahblah');
    define('BB_NONCE_KEY', 'blahblah');
    define('BB_AUTH_SALT', 'bliddyblah');
    define('BB_LOGGED_IN_SALT', 'bliddyblah');

    #76194

    In reply to: Can I edit my tags?

    deadlyhifi
    Participant

    I’ve just had a look at your site. Your tags show in the bottom right corner of the page, as if it’s included in your footer.php file.

    In your topic.php file all the tag code

    id="topic-tags" etc.

    needs to be put inside

    div class="infobox"

    then you can start styling it correctly.

    #76069
    _ck_
    Participant

    See where it says “Compatible up to: 0.9”

    I won’t be fixing plugins for 1.0 until December at the soonest.

    Make sure you have the terms-of-service.html file in the same directory, that’s all I can suggest.

    #76193

    In reply to: Can I edit my tags?

    /* Structure

    =================================== */

    #wrapper {

    width: 1023px; /* controls the main width of the page, if changed also change #content and .sidebar */

    margin: 0 auto;

    padding: 0px 0 25px 0;

    border: 1px solid #FFFFFF;

    border-top: none;

    background: #333333;

    text-align: left;

    }

    ul#tags-list li { display: inline; }

    #spacer {

    height: 25px;

    background: white;

    }

    #title {

    height: 0px;

    background: 222222;

    margin-bottom: 1px;

    }

    Ok that’s how i’ve placed the code in my style.css

    I use Firefox and tried a hard refresh, but the updates are still not showing. So i’m guessing it’s a problem with the placement of the code. That’s the only code i’ve put it. The above is exactly how it is in my style.css

    #15341
    lamentira
    Member

    I have discovered that there is a very easy way to integrate a BBPress forum inside of a WordPress blog. I havent found anyone in the forums doing it in this way so I will explain it here.

    1. Asumed that you have instaled wordpress and bbpress, and you have integrated bbpress with wordpress following the steps showed in bbpress installation process.

    2. You have to go to the administration pannel in your wordpress (wp-admin)

    3. Create a page named Forum. Chose HTML and include the following code:

    <iframe id=”forum” name=”forum” src=”http://your_url/bbpress_folder&#8221; frameborder=”0″ framespacing=”0″ scrolling=”auto” border=”0″ style=”width:925px; height:1000px; ” >

    Sorry, your browser doens’t support iframe. Please upgrade your browsers.

    </iframe>

    replace the bold characters for the apropiate values in your web. The number in bold is the with of your blog. In that case (I use primepress theme) it is 925

    4. Now we only have to add the widget to show the page, or like in my case, the theme shows all the pages in the blog as options in the header. We only have to remove the header and the footer of the forum.

    5. In your bbpress directory go to bbtemplates and make a copy of kakumei directory. You could call it noheader directory and open it.

    6. Open header.php and replace this

    <body id=”<?php bb_location(); ?>”>

    <div id=”wrapper”>

    <div id=”main”>

    <div class=”search” align=”right”>

    <?php search_form(); ?>

    </div>

    <?php if ( bb_is_profile() ) profile_menu(); ?>

    with this

    <body id=”<?php bb_location(); ?>”>

    <div id=”wrapper”>

    <div id=”main”>

    <div class=”search” align=”right”>

    <?php search_form(); ?>

    </div>

    <?php if ( bb_is_profile() ) profile_menu(); ?>

    7. Open footer.php and delete this section

    <div id=”footer” role=”contentinfo”>

    <p><?php printf(__(‘%1$s is proudly powered by bbPress.’), bb_option(‘name’), “http://bbpress.org&#8221;) ?></p>

    <!– If you like showing off the fact that your server rocks –>

    <!– <p class=”showoff”>

    <?php

    global $bbdb;

    printf(

    __( ‘This page generated in %s seconds, using %d queries.’ ),

    bb_number_format_i18n( bb_timer_stop(), 2 ),

    bb_number_format_i18n( $bbdb->num_queries )

    );

    ?>

    </p> –>

    </div>

    <?php do_action(‘bb_foot’); ?>

    8. Open style.css and delete this

    #wrapper {

    background: #fff url(‘images/page_header_tile.png’) repeat-x 0px -15px;

    }

    9. You can add the reference a bbpress.org in the wordpress footer.

    Hope this help

    You can see the result here http://www.lamentiraestaahifuera.com

    This is the forum page:

    http://www.lamentiraestaahifuera.com/?page_id=45

    #76235
    _ck_
    Participant

    Both bbPress and WordPress can be integrated so the login is shared.

    With bbPress 0.9 you will need special plugins to use WP 2.7 or 2.8

    bbPress 1.0 can share the login with WP 2.7 or 2.8 without plugins.

    However many plugins do not yet work with 1.0, so keep that in mind.

    Real names as an option is nice but I’d hate to see it mandatory as some countries are trying to do. My experience is that people either have manners or they don’t, real names, in person, online or otherwise won’t stop rude people much. The problem is once your real name is online, your employer or in the USA your health insurance can use anything you say against you, no matter how innocent it might be.

    But that doesn’t change the fact you should be able to use your native characters in bbPress and WordPress if you wish ;-)

    I’m curious if the user login plugin above will also allow you to use your name with the login and not just the Display Name.

    Note that bbPress 1.0 also allows you to login via your email address once you are registered. There is a plugin for 0.9 that does the same thing.

    #76192

    In reply to: Can I edit my tags?

    deadlyhifi
    Participant

    after you have made the changes you need to a do a hard refresh, to force the browser to read the updates stylesheet – it has the old one cached.

    May I suggest you use Firefox, and get the Firebug extension so you can look at all the code correctly.

    #76156
    grassrootspa
    Member

    @andywilliams244 Try this for a nifty nav bar that shows at the very top of your site (maybe use this at the very top of both your WordPress and bbPress site?):

    1) Check this link out: http://www.bleepingcomputer.com/forums/topic55647.html

    2) What you want to do is make a really simple PHP file, lets call it “andybar.php” (if you have trouble making one copy one of your .php bbpress files and rename it)

    3) Copy the code from that page into the php file. (you probably want to open with Notepad or Wordpad)

    4) Fill in the links how you want them to be, like:

    <li><a href="http://www.andywebsite.com">ANDY_WEBSITE</a></li>

    5) Save the php file and upload it into the folder of your theme.

    6) Put this in the header where you want the bar to display:

    <?php bb_head(); ?>
    <?php include('andybar.php');?>
    <br>
    </head>

    7) The bar should appear at the very top of your bbPress site. You can easily change the colors with the CSS inside that one php file.

    8) You might need to play with the bbPress CSS if there is a spacing issue above or below the bar. Hope this helps!

    #76121
    birdy404
    Member

    oh and in your response you’d mentioned something about wanting to show codes…no, i don’t want to show the codes. All i want is for the ads to show on the pages i want them to.

    thanks!!

    #76147
    deanes02
    Member

    I put define( 'WP_AUTH_COOKIE_VERSION', 1 ); in bb-config, but I still have the same problem.

    I can log into WPMU, BuddyPress and bbPress all with the same credentials. Logging into any of them doesn’t log me out of any of the others.

    When I log into WPMU or BuddyPress, I am logged into both of them but not bbPress. IF I am logged out of all three, when I log into bbPress I am only logged into bbPress. I can log into bbPress and WPMU seperately and I remain logged into both.

    If I am logged into both WPMU and bbPress, I can log out of one but remain logged into the other.

    I am presuming I should just be able to log into any of the three and be logged into ALL three?

    Thanks for your help above (I’ve cleared the cache and checked my settings again and again :-(

    Any more ideas?

    #15339
    anti-sec
    Member

    Hi bbpress staff and coders ,

    I want to ask u the bbpress 0.9.x latest pack ( 0.9.5 ) . Currently I need to study the code of this previous version for security pourpose , and I would be very glad to u if can provide my request .

    Sorry for nuisance .

    Regards.

    #76128
    dz7
    Member

    Oh, last post was a mistake. :)

    I finally figured it out. I was right with the last thing I tried…the function to change was validate_auth_cookie, which should return an integer representing the user ID. (It wasn’t working because I hadn’t yet set that user’s capabilities in the database.)

    So, for anyone trying to do the same thing: the function that needs to be rewritten is validate_auth_cookie in class.wp-auth.php. Write your own function to validate the cookie, and return a user ID (int).

    #76223
    katastrov
    Member

    Grblrlblrlblll… now it works but i had to recreate database with different names, password is all diferent etc etc. Forum is installed but that was quite something :)

    thanks again for your help Ipstenu

    #76221

    Don’t rename bb-config-sample.

    Finally, I have also created the database in phpMyAdmin. Of course there’s 0 tables.

    That’s fine :) You have to create the DB before bbPress can connect to it. bbPress doesn’t make the DB for you (any more than WordPress does so this should be familiar).

    You should be able to run the install now, though make sure bbPress can write to the bbpress folder, so it can create the bb-config.php file as it goes (you can remove the access later).

    #76210

    In reply to: Closed registrations

    I put this in my .htaccess for my forums:

    Redirect /forums/register.php http://mysite.com/wpmu/wp-signup.php
    Redirect /forums/bb-reset-password.php http://mysite.com/wpmu/wp-login.php?action=lostpassword

    Not so much a disable but ‘Ignore the man behind the curtain’.

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