Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 31,126 through 31,150 (of 32,495 total)
  • Author
    Search Results
  • #54512
    chrishajer
    Participant

    Martin, your webserver cannot send emails? Can you upload a file called mailer.php and put this into it: (if you don’t have command line access)

    <html>
    <body>
    <?php
    mail( 'you@yourdomain.com', "subject: test", "message: test", 'From: you@yourdomain.com');
    echo "Mail should have been sent, check your inbox";
    ?>
    </body>
    </html>

    Run that from your browser and check your inbox. I’ve never had it fail, so I don’t know what is displayed if the mail command fails. If you have a command line, you can just run the mail command:

    php -r 'mail( 'you@yourdomain.com', "subject: test", "message: test", 'From: you@yourdomain.com');'

    If you cannot send email from your server, then the patch you referred to would work, but I suspect that was for an older version (.73 maybe, since the post is so old.) You save that information to a file, call it mail.patch or something. You need a command line to patch the files, so if you don’t have that, you would need to download the files referenced in the patch, patch them locally (built in on Linux and OSX but I think you would need a 3rd party app on Windows.) To patch the files:

    1. cd to the installation directory
    2. run this command:
      patch -p0 < /path/to/mail.patch

    That makes the changes to the files referenced in the patch, and the user registration email will be displayed rather than being emailed.

    HTH

    #54108
    so1o
    Participant

    The code looks gr8 sam… go ahead and commit it to version 2.0

    #54006
    Null
    Member

    The code I gave you works fine here.

    Well since it does create the bb_menu table I suggest you fill it manually with phpma.

    Use these lines:

    INSERT INTO bb_menu VALUES (‘active’, ‘Forums’, ‘index.php’, ‘front-page’, 0)

    INSERT INTO bb_menu VALUES (‘active’, ‘Search’, ‘search.php’, ‘search-page’, 1)

    INSERT INTO bb_menu VALUES (‘available’, ‘Statistics’, ‘statistics.php’, ‘stats-page’, 0)

    But NOT all at once. Do them 1 by 1 so like:

    INSERT INTO bb_menu VALUES (‘active’, ‘Forums’, ‘index.php’, ‘front-page’, 0)

    presss Go

    Then enter line 2 etc etc

    I am in the final stage of releasing this for 0.8, but I still don’t know why your table isn’t filled like it should… :(

    #54386
    Sam Bauers
    Participant

    All the magic happens in bb_repermalink() in bb-includes/function.php but the real problem here is that get_path() splits by “/” to find out the topic/forum/user id.

    You could plugin to bb_repermalink() and change the value of $permalink that way.

    e.g. if your permalinks were of the form, forum-12, topic-34 etc. (already setup in your .htaccess file)

    You could make the following file…


    function my_pre_permalink() {
    $p = get_path(0);
    $p = split('-', $p);
    $p = $p[1];
    return $p;
    }

    add_action('pre_permalink', 'my_pre_premalink');

    Drop that into your plugins directory and it should work.

    Of course I haven’t tested this, but it should work in theory.

    #54509
    chrishajer
    Participant

    In your template, you use

    <small>Login to Send PM<small>br />

    .

    and you just keep opening the <small> tag, never closing it. (note, it’s not closed here.)

    It pays to validate your code occasionally at http://validator.w3.org/

    Good luck.

    #54508
    Sam Bauers
    Participant

    A code sample or URL would help.

    But you probably have a style somewhere like:

    #something div div {

    font-size: 0.8em;

    }

    …and maybe some missing closing tags somewhere in your template.

    #1394
    master5o1
    Participant

    It’s really annoying and it only happens in my recently updated Ubuntu Edgy … with Firefox 2.0 (ie, it only happens in firefox 2.0 for ubuntu edgy)

    I have no idea whether its something i did wrong with my Avatar adjustments to the style.css or whether “desmond” is just forcing me to take an eyetest.

    It’s annoying.

    oh yeah…if you haven’t noticed i am running 0.80 :)

    Trent, confirmed. The first time I just loging as a moderator.

    thanks a lot for your help and hard work. :)

    #54498
    Trent Adams
    Member

    Sorry to get back to you late. Copy this into a file and call it path-to-url.php and drop it into your /my-plugins/ folder. If you don’t have one, create it and drop that file into it.

    <?php

    function fix_bb_path_to_url( $url ) {
    return preg_replace( '|:/([^/])|', '://$1', $url );
    }

    add_filter( 'bb_path_to_url', 'fix_bb_path_to_url', 1, -1 );

    ?>

    It is an error that mdawaffe created that patch for at:

    https://trac.bbpress.org/attachment/ticket/575/path-to-url.php

    Trent

    #54095
    ardentfrost
    Member

    That sounds fine dude. One of these days I”ll get around to adding in an admin panel for it :)

    I also want to turn the web link into a pic in the next release so that spammers no longer break the size of the table

    #53597
    jenz
    Member

    Hello. I have a WordPress installation (2.1) at / and then the bbPress installation (0.8) at /forums/. I have followed the instructions: https://bbpress.org/documentation/integration-with-wordpress/ and still no go. The WordPress integration plugin is installed and activated in my WP install and I have defined the bbPress tables (bb_) prefix correctly in the plugin options.

    I have defined the options:

    $bb->wp_table_prefix = ‘wp_’; // WordPress table prefix. Example: ‘wp_’;

    $bb->wp_home = ‘http://test.com&#8217;; // WordPress – Options->General: Blog address (URL) // No trailing slash. Example: ‘http://example.com&#8217;

    $bb->wp_siteurl = ‘http://test.com&#8217;; // WordPress – Options->General: WordPress address (URL) // No trailing slash. Example: ‘http://example.com&#8217;

    in my config.php file, but do I need to add anything else? Right now, my WordPress users cannot log into the bbPress install, and the bbPress users cannot log into the WordPress install. Any help would be creatly appreciated.

    #54466
    Emre Erkan
    Member

    Thank you. :)

    #54094
    brampamp
    Member

    I’ve taken the bb_profile_data() function and incorporated it into bb-memberlist.php as bb_member_profile_data() – I’ve tweaked it just a little to incorparate the email address and take out length of membership but other than that it’s the same.

    I call it using

    bb_member_profile_data($member->ID);

    from within the table created in the memberlist.php file. I’ve left all the other code the same apart from removing some table columns that were not needed.

    Thanks again for your help and pointing me in the right direction.

    Let me know if you would like to see the exact code.

    #54479
    jefgodesky
    Member

    I tried writing my own plugin–less functionality, really just a simple filter plugin with some preg_replace’s to get the most basic wiki markup, but even this isn’t working. Can anyone see what might be going awry here? I’ve tested all the regular expressions in a plain PHP file, so I know they’re working; it’s putting it all into a plugin and getting bbPress to use it that seems problematic.

    /*
    These parameters specify the functioning of this plugin.
    Edit accordingly for your specific situation.
    */

    $mediawiki_filter_params["wiki"] = "http://en.wikipedia.org/wiki/";

    /*
    Stop editing; actual plugin functionality follows.
    */

    function filter_mediawikitext($content) {
    global $mediawiki_filter_params;
    // BASIC FORMATTING
    // Bold and italic
    $content = preg_replace("|(''''')(.*?)(''''')|",
    "<strong><em>2</em></strong>", $content);
    // Bold
    $content = preg_replace("|(''')(.*?)(''')|",
    "<strong>2</strong>", $content);
    // Italic
    $content = preg_replace("|('')(.*?)('')|",
    "<em>2</em>", $content);

    // LINKS
    // Internal links
    $content = preg_replace("|()(.*?)()|",
    "<a>2</a>",
    $content);
    // External links with descriptions
    $content = preg_replace("|([)(.*?) (.*?)(])|",
    "<a>3</a>", $content);
    // External links with no description
    $count = 1;
    $replace = TRUE;
    while ($replace) {
    $before = $content;
    $content = preg_replace("|([)(.*?)(])|",
    "<a>[".$count."]</a>",
    $content, 1);
    if ($before==$content) { $replace = FALSE; }
    $count++;
    }

    // HEADINGS
    $content = preg_replace("|(======)(.*?)(======)|",
    "<h6>2</h6>", $content);
    $content = preg_replace("|(=====)(.*?)(=====)|",
    "<h5>2</h5>", $content);
    $content = preg_replace("|(====)(.*?)(====)|",
    "<h4>2</h4>", $content);
    $content = preg_replace("|(===)(.*?)(===)|",
    "<h3>2</h3>", $content);
    $content = preg_replace("|(==)(.*?)(==)|",
    "<h2>2</h2>", $content);

    // RETURN
    return $content;
    }

    add_filter("the_content", "filter_mediawikitext");

    #1372
    Geezerjim
    Participant

    I am using the following code in my graphic-display-ranks plugin running bbPress 0.8:

    $path_to_subdirectory = bb_get_option('uri') . "my-plugins/ranks/";

    later on in the plugin I call that path using:

    $display_text = $path_to_subdirectory . $image_for_special_rank_1 . "" alt="#Posts:" . $rank_count . "" title="#Posts: " . $rank_count . """;

    $display_text is inserted into an image tag for display. Everything works, but when I look at the source code of the page I see:

    <img src="my-plugins/ranks/metalic_modo.png" alt="#Posts: 1" title="#Posts: 1" />

    It’s as if it’s not pulling in the base part of the uri at all. Am I missing something here?

    #54377
    flaerpen
    Member

    i’ve tried that! Both of the solutions, but i still can’t use my own template!

    I can’t see the thumbnail of either my template or kakumeis.

    EDIT: I saw what maybe could be the problem. It uses doubleslashes to the link to both Kakumei and my template. Maybe it’s because of that i have my problem? Maybe this could help someone to help me too. (?)

    http://localhost/ungodum/bbpress/bb-admin/themes.php?theme=

    D:\webb\xampp\htdocs\ungodum\bbpress/my-templates/ungodum/&_wpnonce=538f668ad4

    #54242
    macwise
    Member

    Trent,

    First of all, thanks for all your help with getting this all straightened out. I’ve gotten a lot done thanks to your help alone.

    As for the 1 header approach, maybe I am creating a “complexity by simplicity” approach, and if what you are saying is correct, then I’m probably better just making the wp side have a wp header, and the bb side have a bb header. I guess I just thought in the long run it would be simpler and more effective to have one-size-fits-all header with the necessary bb code and wp code being selected only when it was needed. That was before now, when I just assumed that since you could call wp code in bbpress, that you could also just as easily call bb code in wordpress.

    So, I will create a second, separate header file for bbpress, and I will see where that takes me in this process. Thanks for your help with this. I hope my reasoning at least makes sense now, even though it is probably faulty reasoning at that.

    ron

    #54104
    Sam Bauers
    Participant

    I’ve integrated the icons into the support-forum code. I’ll see if I can commit it.

    #54419

    In reply to: Add nofollow to links

    bbPress has a function called bb_rel_nofollow() which can be added via filter to functions which output a link ( not functions that output a URL).

    For example:

    add_filter('post_author_link', 'bb_rel_nofollow');

    #1384
    Emre Erkan
    Member

    Hi,

    bbPress 0.80 is really nice, thank you. :)

    Turkish version of bbPress 0.80 is ready, we have a bbPress page on WordPress Türkiye.

    Downloads and docs:

    bbPress Turkish version 0.80 (whole package)

    bbPress Turkish .mo file

    bbPress Turkish .po file

    Documentation

    #54418

    In reply to: Add nofollow to links

    Trent Adams
    Member

    I would imagine that you could do this without affecting any core files through a plugin as the links portion for posts is pluggable. Now, saying that, we need someone with some experience working with the code to make this a plugin.

    Trent

    #1381
    linickx
    Participant

    We all know that the AutoMattic guys use their own stuff, but after each site has been skinned with all their CSS magic, sometimes it’s hard to see… I thought we should savour the moment the wordpress.org forums ran with the default bbpress theme ;)

    #49987
    ljhardy
    Member

    Does anybody know if this script is supposed to work with the latest release of bbpress (.8)? I ran into some problems importing some of the tables.

    Thanks, Len

    #1377
    flaerpen
    Member

    Hello, I’ve upgraded to Desmond now, yay :D

    But i can’t get my theme to work, i’m getting the message “Theme not found. Default theme applied.” when i try to change theme to both my own and kakumei!

    I’m trying on my localhost and made a new fresh install into another directory, but i still can’t get it work :S

    #54321
    spencerp
    Member

    Awesome! Glad to hear it’s working now! :)

    I should not attempt software updates just before bedtime.

    LOL! I know how that is..

    spencerp

Viewing 25 results - 31,126 through 31,150 (of 32,495 total)
Skip to toolbar