Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 27,601 through 27,625 (of 32,495 total)
  • Author
    Search Results
  • #64979
    olgaberrios
    Member

    Tengo el encoding del navegador en iso-8859-1 y sigo viendo los símbolos raros. Tampoco entiendo mucho sobre esto…

    PD.: Probablemente todo el mundo habla castellano aquí y no se atreve a decirlo. XD

    #65161

    In reply to: Several domains

    mikelothar
    Member

    I’m assuming i have to change something here:

    // Set the URI and derivitaves
    if ( $bb->uri = bb_get_option('uri') ) {
    $bb->uri = rtrim($bb->uri, '/') . '/';

    // Not used in core anymore, only set here for plugin compatibility
    if ( preg_match( '@^(https?://[^/]+)((?:/.*)*/{1,1})$@i', $bb->uri, $matches ) ) {
    $bb->domain = $matches[1];
    $bb->path = $matches[2];
    }
    unset($matches);
    } else {
    // Backwards compatibility
    // These were never set in the database
    if ( isset($bb->domain) ) {
    $bb->domain = rtrim( trim( $bb->domain ), '/' );
    }
    if ( isset($bb->path) ) {
    $bb->path = trim($bb->path);
    if ( $bb->path != '/' ) $bb->path = '/' . trim($bb->path, '/') . '/';
    }
    // We need both to build a uri
    if ( $bb->domain && $bb->path ) {
    $bb->uri = $bb->domain . $bb->path;
    }
    }

    If someone knows what exactly i need to change, please reply :)

    #3410
    mikelothar
    Member

    Hi, i hope someone can help me with this.

    I have several domains pointing to the same bbpress forum. For example, during the installation, i installed bbpress with the domain name setting of “domainA.com”. Now, when i get a visitor from “domainB.com”, he will be redirected to “domainA.com” pretty fast, like when he’s clicking the “Home” link on the forum.

    I have managed to change this, by replacing, in the header file of the template, the:

    <?php bb_option('uri'); ?>

    .. to:

    http://<?php _e($_SERVER['HTTP_HOST']) ?>

    And it works. However, bbpress use the ‘uri’ alot, and for example, if the user is not logged in, and is trying to post, he will be redirected to domainA.

    What i’m asking for, i guess, is if it’s possible, in the php files somewhere, to specifically define the uri to be the server’http_host’ instead of the domainA? Where can i find and change this, and how?

    Thank you very much.

    Mike

    #60550
    chrishajer
    Participant

    Is this still related to the Simple Onlinelist plugin? If so, please post the actual error message you’re getting.

    The original error message says the table is not there, so, can you check the database with a tool like phpMyAdmin and see if the table was actually created?

    Is it possible the plugin hard codes the bb_ table prefix, but you’re using something different for your installation?

    #65061
    Mufasa
    Member

    I’m not going to let this go :P

    #65060
    Mufasa
    Member

    How can we vote on this? Clearly lots of people want easier integration with their site – its just too bloody hard to get it going.

    Bring on a WordPress [shortcode] and widgets!!

    I’m very happy with how easy it it get the accounts to jive but what about the front end of our websites. I don’t expect the bbPress team to just start listening and acting on what I say – but I will put my money where my mouth is and if the bbPress team spoke to us and pointed us in the right direction – what hooks to use etc then I would even look at doing the code to make it happen.

    But I don’t even know if people care :P

    sydspinnin
    Member

    I upgraded bbpress after upgrading my wordpress site to the latest version (2.5.1). The install complained that there were already forums/threads in the database, but said the install went OK. The problem I’m having, however, is that when I go to the forums, I get a t_string error referring to line 20 of the bb_config.php file.

    This line is the prefix used for the tables.

    $bb_table_prefix = ‘bb_’; // Only letters, numbers and underscores please!

    So, I’m guessing that it thinks it is a new install instead of merely an upgrade. How do I get the updated version to simply read in the existing forums and threads?

    Thank you so much for any help. These are busy forums and there will be limited patience with this problem. :/

    pomeid
    Member

    I’m using bbsync properly synchronized with my wp-blog. I want to close wp-comments and add a link to the forum topic in every wp-entry for responses. Bbsync provides this code:

    Replies in the thread can be shown where the comments are (quite automagically). Use <?php bbrepliestext(); ?> to just link to the thread; it accepts the link text as an argument and %no% and %replies% will be replaced with the numebr of posts and the right pluralicised form of the word reply.

    But I don’t know how or where using it. Anybody can explain me the instructions more detailed, please? Has someone something similar working? I’ve tried to paste <?php bbrepliestext(); ?> in my template files but it doesn’t work (blank text) .

    Thanks!

    #65152
    chrishajer
    Participant

    Can you post the URLs for the old site, new site and forum?

    Is it possible you hard coded the old domain in a template or link somewhere? Maybe the link in the WordPress menu is still to the old site? Did you search through your WordPress template directories for the old domain? If it’s hard coded in a template file, it would not be in the database.

    Or maybe, you were not consistent with www vs. non-www for the URL? I have seem WordPress redirect example.com to http://www.example.com in some cases (never sat down to figure out when or why that happens.)

    #65146

    In reply to: PHP Injection

    chrishajer
    Participant

    The invitation to put code in backticks is actually the least of your worries. Anything in backticks gets escaped and displayed differently. You don’t want to hack that function to exclude backticks. Removing the function wouldn’t help with what you’re worried about.

    You need to be concerned with input that is not sanitized, not input that is escaped in backticks.

    I think bbPress has a very good security track record. There have been a couple problems in the past year (one XSS and one SQL injection I know of) but in general bbPress has been very secure. I don’t think you have to worry about getting hacked when using it. The software is written by professionals.

    #64970
    caddyj
    Member

    There’s a bit missing from the end of that code… should read:

    wp-blog-header.php');

    The end of the line anyway…

    #64969
    caddyj
    Member

    I managed to fix this in the end… italways’ post got me thinking, as he mentioned problems on sub-domains. Despite my BB press directory not being in a sub-domain, looking at the MU forum, a lot of people seemed to be having problems with the 1.5.1 install switching sub-domains with sub-directories. Looking at the forums here again, there was a topic about integrating BB Press with MU on a sub-domain which included adding the following code to bb-config:

    require_once('/home/mydomain/public_html/wp-blog-header.php');

    This is the relative path from the server root. Adding this seemed to fix the cookie problem and BB Press 0.9.0.2 is now successfully sharing cookies with MU 1.5.1 for me. This is the only change from the standard integration settings. I was trying all sorts before trying that, with absolutely no joy. Quite why this worked, I don’t know… hope it works for you too.

    #3403
    mystifier
    Member

    I like the idea of adding a BB to a WordPress website and BBPress offers good integration but, having had one website previously screwed with a Visitor’s Book, I am a bit paranoid about PHP Injection.

    Since there is actually an invitation to put code between backticks, how secure is it against injection?

    Is there a simple hack to exclude backticks?

    #65059
    Mufasa
    Member

    Can somebody set that spammer on fire? Please!!! Seriously hot sticky napalm would be just fine…

    Nobody can login to our site at all – including Admin.

    We will probably hack it to work – but I think we should all vote for bbPress [shortcodes] and widgets.

    1) [bbPress]

    2) bbPress widgets

    Hail bbPress [shortcodes] and widgets ;)

    #3402
    Detective
    Member

    Hi,

    For my own purposes i modified the plugin Private Messagging. The changes i made are:

    – The message’s content is filtered through the same filters as a regular post content.

    – The plugin is localized.

    – Added security fixes.

    – Added limits (the plugin now checks message lengths and inbox size).

    – Added improved error handling (i still have to use Wp_Error).

    – Improved usability :)

    Maybe it could be useful, so if anyone wants to check it out (or even use it) it can be downloaded here (remember to change the extension to .tar.gz).

    #64668
    seryi
    Member

    The same happened to me after upgrading my wordpress to V.2.5.1

    The problem is that auth mechanism in wordpress (based on cookies) has changed and no more compatible with the bbPress’ one. I believe that the next bbPress release will fix it. However now there is only one way to solve the problem – to edit some piece of code(only few lines). This is the instruction:

    1) open your bbpress_dir/bb-includes/pluggable.php

    2) find function wp_validate_auth_cookie

    3) inside this function change next 2 lines of code

    $key = wp_hash($username . $expiration);

    $hash = hash_hmac(‘md5’, $username . $expiration, $key);

    to

    $key = wp_hash($username . ‘|’ . $expiration);

    $hash = hash_hmac(‘md5’, $username . ‘|’ . $expiration, $key);

    4) find function wp_generate_auth_cookie

    5) inside this function change next 2 lines of code

    $key = wp_hash($user->user_login . $expiration);

    $hash = hash_hmac(‘md5’, $user->user_login . $expiration, $key);

    to

    $key = wp_hash($user->user_login . ‘|’ . $expiration);

    $hash = hash_hmac(‘md5’, $user->user_login . ‘|’ . $expiration, $key);

    That’s all!

    NOTE! It’s only actual for wordpress 2.5.1 with bbpress 0.9.0.1

    #64960
    seryi
    Member

    The same happened to me after upgrading my wordpress to V.2.5.1

    The problem is that auth mechanism in wordpress (based on cookies) has changed and no more compatible with the bbPress’ one. I believe that the next bbPress release will fix it. However now there is only one way to solve the problem – to edit some piece of code(only few lines). This is the instruction:

    1) open your bbpress_dir/bb-includes/pluggable.php

    2) find function wp_validate_auth_cookie

    3) inside this function change next 2 lines of code

    $key = wp_hash($username . $expiration);

    $hash = hash_hmac(‘md5’, $username . $expiration, $key);

    to

    $key = wp_hash($username . ‘|’ . $expiration);

    $hash = hash_hmac(‘md5’, $username . ‘|’ . $expiration, $key);

    4) find function wp_generate_auth_cookie

    5) inside this function change next 2 lines of code

    $key = wp_hash($user->user_login . $expiration);

    $hash = hash_hmac(‘md5’, $user->user_login . $expiration, $key);

    to

    $key = wp_hash($user->user_login . ‘|’ . $expiration);

    $hash = hash_hmac(‘md5’, $user->user_login . ‘|’ . $expiration, $key);

    That’s all!

    NOTE! It’s only actual for wordpress 2.5.1 with bbpress 0.9.0.1

    #65055

    In reply to: Only admin can login?

    jldean
    Member

    I think I’ve fixed it – fully ‘integrated’ bbpress and wp for cookie sharing AND user database. Now it’s using the wp tables for user data, and is giving out the correct cookie… and all users can login :)

    #64287
    marians
    Member

    On Multiviews: Never heard of it until I first installed bbPress. If mof_rewrite would work out of the box (i.e.: if bbPress would create the file or dump the necessary content) I wouldn’t need MultiViews.

    Here is one aspect I’d like to through in: URL Customization/Localization.

    When localizing URLs, it’s very easy to do this via editing of mod_rewrite rules. All my bbPress installations are in german language, thus I want german URLs.

    When changing the wording in URLs, e.g. from “forum” to “board” or “topic” to “idea” etc., same thing – just edit the rewrite rules.

    How easy would it be to customize URLs with MultiViews in effect? Without having looked into the implementation, I would guess that it requires code changes.

    If URL customization is easier in mod_rewrite, please drop MultiViews. Otherwise, please document how URL customization can be done using MultiViews.

    #65056
    Mufasa
    Member

    Ya know what…

    What would solve all these problems would be shortcodes.

    If I could just create a page and add a shortcode:

    [bbPress] then all our problems would just go away.

    Then if you wanted to get the bbPress “search” and “hot tags” to show in your sidebar you can just add the bbPress widgets and they would in theory just work.

    I guess that means my request is:

    1) Add a bbPress [forum] shortcode for wordpress

    2) Release some bbPress widgets for the wordpress sidebar

    #58255

    In reply to: bbSync

    pomeid
    Member

    Could anybody give me more detailed instructions for getting thread replies in the comments, please?

    Replies in the thread can be shown where the comments are (quite automagically). Use <?php bbrepliestext(); ?> to just link to the thread; it accepts the link text as an argument and %no% and %replies% will be replaced with the numebr of posts and the right pluralicised form of the word reply.

    Where to put exactly the php code? Does it must to replace some other code? Do I have to put something between ( ) ?

    Sorry but I’m not an advanced user on coding. Thanks!

    #65081

    In reply to: bbPress.com

    guymed
    Member

    Wait, its called:

    phpBB: OMGPonyBBQs!:

    OMGOMGOMGOMGOMGOMG!!!!!1

    xD, again. When they gonna make actuall talkpress?.. :(

    Rhys Wynne
    Participant

    Hiya :)

    I’m basically thinking out loud, and felt this was the best forum to post in.

    I was browsing through _ck_’s top 100 bbpress forum (well, the first one at least http://www.greedyorneedy.com/), and had a look at the site’s forum and member profiles such as this:-

    http://www.greedyorneedy.com/users/view/id/7412

    They look brilliant – facebook esque, and would love to implement something similar to my site (well one of my ideas anyway)

    What I suspect is that it is a WordPress/Wordpress MU plugin, but still if anybody has any ideas to how they achived this, I would love to hear them :)

    #63530

    In reply to: require_once problems

    John Smith
    Member

    Hi, sambauers

    The code work fine for me , thanks.

    #3391

    I would like my bbpress forum to show up on my wordpress blog page called “forum”. I also would like the forum to have the same look as my blog (at least the top of it). I have bbpress loaded in a subdirectory of WP called “forum”. I’m new to html coding and would love step by step instructions from anyone who is patient with new students :) Thanks

Viewing 25 results - 27,601 through 27,625 (of 32,495 total)
Skip to toolbar