Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 24,001 through 24,025 (of 32,188 total)
  • Author
    Search Results
  • #76279

    For example, where is WordPress “auth” cookie salt in WPMU? I also can’t find WordPress “secure auth” cookie salt & WordPress “logged in” cookie salt in my WordPress admin page.

    You just listed them.

    The WordPress “auth” cookie salt in WPMU is in your wp-config.php file: define('AUTH_SALT', 'bliddyblah');

    If you’ve done that correctly, you should see something like this: http://img268.yfrog.com/img268/8247/bbpresssettings.gif

    I wiped out my cookies and URL, but you should get the idea.

    #15360
    4crickj
    Member

    I want to check if the visitor is logged in, I can’t find a function that works in version 1.0.1 (such as bb_is_user_logged_in(), is_user_logged_in(), bb_is_logged_in() and is_logged_in() ). All of those functions raise the “Call to undefined function” error.

    I am trying to make my forum private, redirecting all users that are not logged in to the login page. The following code is in my functions.php theme file:

    if(!preg_match("/bb-login.php/", $_SERVER["SCRIPT_NAME"]) && !bb_is_user_logged_in()) {

    header("Location: " . $bb->uri . "bb-login.php");

    die("Authorisation required.");

    }

    Any help is appreciated.

    #75755
    ademmler
    Member

    Thanks, I have done so and it works :)

    #76208
    _ck_
    Participant

    Are you certain you have bbpress installed under your /forums/ directory?

    Because I am fairly certain you don’t.

    If you did, this would work

    http://absolute-truth.net/forums/license.txt

    (unless you deleted that file, which is unlikely)

    /forums/ should be at the same level that /blog/ is

    #76206
    _ck_
    Participant

    The cookies are a different problem, you have to set the cookies to use the root / and not a sub-folder.

    See if it allows you into

    http://absolute-truth.net/forums/bb-admin/options-general.php

    and/or

    http://absolute-truth.net/blog/wp-content/plugins/bbpress/bb-admin/options-general.php

    and change the bbPress address (URL)

    #74855
    Göran
    Member

    I opened the .mo file and changed “sullat” to “tappat” in it using a text editor and saved the change and uploaded it and ir worked. It should perhaps not have been possible but it was!

    The second part of my question now seems strange since I pasted what in my e-mail looked like Ditt användarnamn är: Gran Lindgren but it displayed correctly here!

    #76270
    _ck_
    Participant

    Or just try putting this into your bb-config.php

    $bb->uri = 'http://your-domain-name.com/forums/';

    #75728
    _ck_
    Participant

    I noticed many of the old constants are not defined anymore by default.

    A few plugins, definitely not all just a few, may be fixed somewhat by adding this to bb-config.php

    define('BB_LOAD_DEPRECATED',true);

    #76204
    _ck_
    Participant

    You don’t actually have bbpress installed underneath wordpress do you?

    http://absolute-truth.net/blog/wp-content/plugins/bbpress/

    if so, that’s really not good design

    move it to http://absolute-truth.net/forums/

    bbPress is not a wordpress plugin, it’s a standalone program

    #74854
    _ck_
    Participant

    .mo files cannot be directly edited, you need to use a tool like poedit http://www.poedit.net/ to correct the .po file and then compile it to .mo

    #76202
    _ck_
    Participant

    Try putting this into your bb-config.php

    $bb->uri = 'http://your-domain-name.com/forums/';

    #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

Viewing 25 results - 24,001 through 24,025 (of 32,188 total)
Skip to toolbar