Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 27,551 through 27,575 (of 32,453 total)
  • Author
    Search Results
  • #65197

    In reply to: Reading Forum for Kids

    Detective
    Member

    Great site! I try to do something similar in http://www.ficciones.cl :)

    Have any of your members read a book by Roberto Bolaño or Jorge Luis Borges? Those are my favorite authors. I also like Ray Bradbury, Lewis Carroll, Hugo Pratt and Yukio Mishima.

    #3419
    parthatel
    Member

    How can I create a navigation bar in bbPress so that when I update it in WordPress, it automatically gets updated in bbPress? I don’t want to call the full wp header as the bbPress header, but would I be able to use

    <?php wp_list_pages('sort_column=menu_order&title_li='); ?>

    in bbPress to call the pages in the navigation bar? Both my WordPress and bbPress are integrated in the same databases. If not, how can I do it?

    #3418
    Detective
    Member

    Foros Ryuuko

    I use a custom theme (heavily a modified Kakumei) and some custom plugins. The forum is new, so it doesn’t have activity, all our users are still using the Vanilla forum we had.

    I didn’t hack any core files, all “non standard things” are donde via custom plugins.

    Plugins i use:

    – My own “Ajustes” (for sidebar, footer and navigation menu content, profile content, and some html tags).

    – MD5 Insecurity (will be deactivated soon).

    – Private Messaging Extended

    – A custom Quicktags (ported from Vanilla)

    – Ajaxed Quote

    – Simple Online List (i also modified a lot this plugin, because it never worked for me ….).

    – Unread Topics. I also modified this one, it was doing too many queries. I added some indices and reduced the overhead.

    – User Photo. I ported the User Photo WP plugin.

    – Human Test.

    Also i indirectly use:

    – Gaming Codes: each user can enter his gaming codes. They’re displayed on the user profile.

    Aleph: this plugin creates user lists (among other things). So i use it inside WP like a “member list”. The beauty is that i can easily create different user lists, so i created a list for each gaming code (in other words, users can see which users have a certain gamer code).

    As i said, the theme is a heavily modified Kakumei. I replaced all topics/forum loops with my own, trying to mimick the Vanilla look. Also the css is based on the Tarski theme for WordPress. In fact, i import it directly from the WP installation.

    For the forum/topic icons, i created a custom plugin which printed the css based on the slug of each forum, and then i added the resulting code to the style.css. I still have to create a lot of icons, those are temporary.

    I hope you like my forums and if you have any questions or would like a plugin/theme release, just ask :p

    #65121
    malfhok
    Member

    Great! It works properly now. Thanks for upgrading a very useful plugin. :-)

    #65165

    In reply to: Several domains

    mikelothar
    Member

    Exactly. :)

    #65168
    chrishajer
    Participant

    If you just want the year with php, you don’t need bbPress functions at all, just php:

    <?php echo date('Y'); ?>

    That will echo the current year.

    #3413
    parthatel
    Member

    Just like how WordPress calls time in the footer by <?php the_time(‘Y’); ?> and the name by <?php bloginfo(); ?>. What is the code I need to use for bbPress since <?php the_time(‘Y’); ?> doesn’t work to get the year? I also need to know how to get the bbPress title.

    #65162

    In reply to: Several domains

    chrishajer
    Participant

    Why not redirect them with a permanent 301 redirect? If your host does not offer this, why not create a directory for each domain, like this:

    /var/www/vhosts/domaina.com/

    /var/www/vhosts/domainb.com/

    You install bbPress in the domaina.com/ directory. In the domainb.com/ directory, you put an index.php file in there like this:

    <?php
    header("Status: 301 Moved Permanently", false, 301);
    header("Location: http://www.domainA.com/");
    exit();
    ?>

     

    Then, when anyone accesses http://www.domainB.com/ they are seamlessly directed to http://www.domainA.com/. Would that accomplish what you need?

    You can also use .htaccess for 301 redirects if there is more than one page, like there are search engine results with pages from domainB.com already out there, and you want to redirect them all to domainA.com.

    #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

Viewing 25 results - 27,551 through 27,575 (of 32,453 total)
Skip to toolbar