Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 29,676 through 29,700 (of 32,432 total)
  • Author
    Search Results
  • #54760
    oledole
    Member

    Thanks! That fixed it.

    #54759
    fel64
    Member

    Did it not say what the fatal error was?

    In any case, at a hunch putting

    if( !function_exists('force_balance_tags') ) {

    in front of ck’s code, and

    }

    before the add_filter(... bit, could fix it. I don’t run it myself so this is a long shot.

    #54758
    oledole
    Member

    Looked like a nice tweek-plugin, but it produced a “fatal error” when I activated it. Looks like it has something to do with this suggested code:

    add this to a plugin

    function force_balance_tags($text) {return balanceTags($text, true);}

    add_filter(‘pre_post’, ‘force_balance_tags’);

    When I added this to the bbcode plugin it resulted in the same fatal error when activated…

    #59075
    fel64
    Member

    Should be. If they are on the same domain, it is certainly possible. In a small set of cases you will need to add two simple lines of code to your bbpress config.php. What URLs do you (want to) have bbpress and wp at? Tell us and we can tell you what code to add.

    #54757
    citizenkeith
    Participant

    _ck_: Thanks for the Tweaks plugin. Very useful! :)

    fel64
    Member

    Changing the width of the theme is easy; all it takes is a single change in a CSS file. If they hard-coded the width into the HTML, they deserve the extra work. :P

    I think that if you use they backticks on an inline basis the overflow is hidden, but if you use it for paragraphs (specifically: backtick is in line above your code, I think) the overflow remains.

    For example, a really long path like var/www.mywebsite.com/htdocs/wordpress/bbpress/bb-includes/template-functions.php or whatever will be cut off. If there had been spaces, it should wrap.

    But a paragraph of code will have the scrollbar.

    <?php
    /*
    Plugin Name: o/
    */
    function withareallylongnamethatjustneverstopsandthefunctiondoesn'tevendoanythinguseful() {
    return true;
    }

    _ck_
    Participant

    Yeah the only problem I can foresee is that the plugin browser looks like a semi-custom job and I am uncertain if it’s hard coded into the template.

    (In other news I finally figured out how to use SVN last night and posted my two little plugins directly… we’ll need to have a “100 plugins party” when bbpress hits that many… ;-)

    Detective
    Member

    Hi!

    I run a vanilla board. I think Vanilla is a very complete, fast and stable forum software. The only problem i have is that none of the add-ons i programmed work the way i wanted. This is because the design of Vanilla is extremely object oriented so there are rules that you have to follow.

    BBPress doesn’t have that. Instead you have a lot more freedom to do things, and that’s what i wanted, so i’m moving to BBPress.

    Of course the object oriented structure of Vanilla is extremely well designed. I just don’t think extreme OO is completely adecuate on this kind of software.

    Another difference is that in Vanilla you just enable an add-on and it works. You don’t have to add code nor modify files (again, this is because of the structure of Vanilla. This is a very good feature, specially if you don’t have experience in PHP). In BBPress mostly all of the time you’ll have to modify files in your template to use some plugins (i like this, because i have more control over what’s happening).

    In short, Vanilla is excellent, but it’s not for me :D

    #59027
    _ck_
    Participant

    Be sure to see my nifty update at the end of that thread.

    I suspect 4.01 will be out shortly ;-)

    I really like this plugin, gives bbpress a higher end forum feature.

    Trent Adams
    Member

    You mean having a template that is completely ‘auto’ driven so that it adjusts to each browser window width? I know that I constantly get users a little mad at me because I like ‘big resolution’ on my computers and my users are still at 800 X 600 screens so my sites have a tendency to have to be scrolled. ;)

    Not sure about the overflow as I don’t use the default theme myself. Anyone else?

    Trent

    _ck_
    Participant

    Any chance you’ll switch to the new wider template here?

    Narrow templates require too much up/down action and look kinda 1990’s-ish – might be turning off some potential new <s>victims</s> users.

    Also, did the overflow:auto get removed for posts? I am noticing this week that posts with wide code seem to be overflow:hidden and the text gets cut off. Didn’t do that before… used to get scroll arrows…

    #59038
    fel64
    Member

    Can you please report this bug on trac? Thank you :)

    #54756
    _ck_
    Participant

    bbPress’s auto-close tags is broken by default – though the code and filter is in there, it’s not passed correctly:

    add this to a plugin

    function force_balance_tags($text) {return balanceTags($text, true);}

    add_filter('pre_post', 'force_balance_tags');

    or if you don’t know how, use my tweaks plugin:

    http://ckon.wordpress.com/2007/07/12/bbpress-plugin-bb-tweaks/

    #57486
    _ck_
    Participant

    If anyone is interested I have a much higher speed routine that runs on mysql instead of the ip2c flatfile. For highly active forums the extra speed is a must. I benchmarked the firestats way against the mysql way and mysql is 4-5x faster in all cases because it caches.

    (Omry is working on a memcached version of his 500k flatfile, so eventually it might beat mysql but not anytime soon – his cached java version is 100x faster than mysql but that doesn’t help us)

    I don’t have it packaged as a plugin and would have to write the code to automate the database table creation for the data from webhostinfo.info but I’d be willing to sit down and do it if there is serious interest.

    I just love putting little flags next to my forum posts to show off how international the forum is, but that’s just me.

    ps. “country” is spelled wrong in this topic’s title

    #54755
    citizenkeith
    Participant

    Today, one of my users didn’t close his strong and em tags… which made the everything after his post bold and italic!

    If you update the plugin, you might want to consider auto-closing all bbcode tags. :)

    #59003
    Inquirer
    Member

    At the top of the config.php files of bbPress and WordPress these values will be the same.

    <?php

    // ** MySQL settings ** //

    define(‘BBDB_NAME’, ”); // The name of the database

    define(‘BBDB_USER’, ”); // Your MySQL username

    define(‘BBDB_PASSWORD’, ”); // …and password

    define(‘BBDB_HOST’, ‘localhost’); // 99% chance you won’t need to change this value

    Trent wrote:

    [For bbPress and WP to be integrated you have to configure your config.php before install to have your WP specific data in it (there is a portion near bottom) and then install bbPress in the same MySQL database regardless of where the physical files actually reside (your case /blog/ and /forum/).}

    // The rest is only useful if you are integrating bbPress with WordPress.

    // If you’re not, just leave it as it is.

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

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

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

    /* Stop editing */


    I already have WordPress installed in my public_html directory in a folder named blog.

    Above, I put in examples of how to fill-in ‘examples’

    Apparently it would be wp_home = http://mywebsite.com/blog/

    and wp_siteurl = http://mywebsite.com/blog/

    Apparently, only the WordPress has to have the bottom portion filled-in?

    If this is correct then I would have to fill-in bottom portion of the WordPress config.php and FTP it before I reinstalled bbPress.

    [regardless of where the physical files actually reside]

    I was thinking of the physical storage of the files.

    [Does that make sense?]

    I think so.

    #50458

    In reply to: Google sitemap

    creatiu
    Member

    This plugin is not working property, actually is creating not valid URLS inside the sitemap like this:

    <url>

    <loc>://?</loc>

    <lastmod>2007-07-14</lastmod>

    <changefreq>monthly</changefreq>

    <priority>0.014705882352941</priority>

    </url>

    This happens with the latest version of bbPress (0.8.2.1)

    #58999
    Inquirer
    Member

    [If you plan on integrating WP and bbPress, it is best to have a running copy of WP up and going.]

    I already have WordPress up and running.

    [Then just install your bbPRess in the same database as WP. WordPress will have the database prefix of wp_ and bbPress with bb_]

    I have WordPress installed in my public_html directory in a directory named blog

    Do you mean install bbPress in the blog directory?

    In other words, don’t create a separate directory forum to install bbPress?

    I think I want mywebsitedomainname/blog and mywebsitedomainname/forum to be separate urls

    But to integrate WordPress with bbPRess do they have to have the same url?

    Thanks


    On a separate note

    I should be able to use WinSCP to login to my server via SSH, then access my database with a MySQL login, then drop the bb_ tables from the failed bbPress install.

    I imagine this could be done through the WinSCP Console

    I realize the phpAdmin is a more user friendly interface than the WinSCP Console.

    I sent an e-mail to my web hosting support, but they haven’t responded.

    #2092

    Topic: Punbb -> BBPress

    in forum Plugins
    annathea
    Member

    I took Bruno Torres’ converter script as a foundation, and re-wrote it to work with the Punbb database architecture. Also, added in a tiny bit of string clean up, since Punbb allows foreign characters in the username field, and BBPress does not.

    Here’s the code to look at:

    http://utopian.net/code/punbb-importer.phps

    And in a handy .zip for download:

    http://utopian.net/code/punbb-importer.zip

    A few important notes, since this is NOT at all pretty –

    1) It uses a lot of memory, so make sure PHP has access to at least 16mb in php.ini. If I had more than 20 minutes to devote to this, I’d look into that and try to improve it, but hey.

    2) If you’re importing a lot of data, you may need to split up the resultant sql file into smaller files less than 2mb in size. Add this to the list of things I would automate if I needed to use this script more than once.

    3) I am using BBPress integrated with WPMU and included lines for importing into the WordPress user tables. After I noted and fixed the problem converting Punbb’s lax, apostrophe-laden usernames to nice and sanitary WP-friendly ones, the script ran like a charm. Seriously, if I’d known it would be this easy I would have done this six months ago.

    4) The forum-parent to forum relationship imported correctly into the database, but displayed a little funny, so I manually re-ordered the forum items in the database and massaged the template a little bit to recognize forum parents a little bit differently, more PunBB style.

    5) A clean WPMU and BBPress install is ideal, but I already had ten existing WP users, half of whom had a user account in the PunBB data I was merging. For such a small data set, it was very easy to manually correct this by deleting the PunBB users and making sure that the imported topics and posts for those users pointed to their current id.

    Hopefully this will be a good start for those of us looking to move existing PunBB forums to BBPress & WordPress. Good luck, and let me know if you use it!

    #58986
    _ck_
    Participant

    Offhand I’d guess that the last poster function is meant to be “in the loop” for a per topic basis. Because you are trying to use it for an entire sub-forum, it’s missing a topic id reference. You’d have to calculate the last topic that the last poster posted in.

    Posting the code to that part of the template would help (at least for me)

    #2090
    #54382
    thierryyyyyyy
    Participant

    I have the same error on LOCALHOST, and also with windows. (my forum hosted on web works :) )

    (thierry is the name of my computer, and is synonyme of “localhost”)

    link I click on to activate my template is such : (there are 2 “”)

    http://thierry/forum/bb-admin/themes.php?theme=D%3A%5C%5CMes+Documents%5C%5Csites_web%5C%5C2diabolos.com%5C%5Cforum%2Fmy-templates%2F2diabolos%2F&_wpnonce=0ecdd913e2

    I tried the “patch_to_url_2” in vain.

    a “brillant” idea made me change the themes.php :

    if ( !in_array($activetheme, $themes) ) {
    $activetheme = BBPATH . 'my-templates/2diabolos/'; // THIS LINE WAS 'bb-templates/kakumei/' ...
    bb_update_option( 'bb_active_theme', $activetheme );
    remove_action( 'bb_admin_notices', $theme_notice );
    bb_admin_notice( __('Theme not found. Default theme applied.'), 'error' );
    }

    works well (hopefully)

    (after reflection, I think the following line don’t help)

    I tried to debug a little bit. I put in themes.php

    print_r($themes);
    echo "<br>";
    echo "the theme you want to activate : " . $_GET['activated'] ;

    the result for the first line is good, the “$_GET ” is empty.

    #2089

    Topic: Attchment Uploader

    in forum Plugins
    Jaithn
    Member

    Hey guys,

    wordpress already has an attchment uploader, doesn’t it? is there a chance to build a plug-in for bbpress using that code?

    grz,

    jaithn

    #58946
    citizenkeith
    Participant

    Well, I don’t know the first thing about writing plugins, so if somebody can help out, I’d appreciate it. :)

    #58973
    fel64
    Member

    Not a clue. Maybe that host’s MySQL version doesn’t support SQL_CALC_FOUND_ROWS on *? Or something. Your best bet is to report this problem on trac as the bug it is. :)

Viewing 25 results - 29,676 through 29,700 (of 32,432 total)
Skip to toolbar