Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 28,401 through 28,425 (of 32,462 total)
  • Author
    Search Results
  • #62183
    delphinoy
    Member

    thanks! i hope i can make this work :( :)

    #60661

    In reply to: dutch translation

    Olaf Lederer
    Participant

    The dutch bbpress forum on wordpress is not very active :D

    Providing complete translations for a software in this stadium is very difficult…Prutser (cool nick name) you are on the way to become the most important contributor for the dutch translations :D

    #62217
    Olaf Lederer
    Participant

    I mentioned the DP (Digital Point) forum ;)

    #62215
    Olaf Lederer
    Participant

    Hi Filippo,

    I don’t think that someone will convert a theme for free, check the DP forums, there are a lot of good WP theme coder (some of them could be able to do this job for ~50usd)

    #62197
    Olaf Lederer
    Participant

    deactivating the AI plugin is the solution here…

    #62212
    Olaf Lederer
    Participant

    Hi just tried this code but therer is “is_forum_category()” function in my install (ver 0.83).

    Is this a new one for the next version?

    #62196
    Olaf Lederer
    Participant

    Thanks for pointing me on this, I will check the code from this plugin.

    btw. is there some plugin to use bb code instead of html elements?

    #62211
    Simon99
    Member

    Using latest trunk code, but bb_head works fine in combo with add_action here.

    #62210
    fel64
    Member

    bb_head appears to be a filter.

    #62209
    intellivision
    Participant

    Hmmm still not working. Something’s strange because even this doesn’t show:

    <?php
    /*
    Plugin Name: test stuff
    */

    add_action('bb_head', 'my_add_test_tag');
    function my_add_test_tag() {
    echo '<!-- testing here -->';
    }
    ?>

    I’ve tried activating/deactivating these plugins, and I’ve tried 2 browsers to ensure it’s not cache I’m seeing. Grr.

    #62208
    Simon99
    Member

    is_forum() doesn’t take any arguments, so I believe you’d have to use the global var $forum, like so:

    <?php
    /*
    Plugin Name: noindex stuff
    */

    add_action('bb_head', 'my_add_noindex_tag');
    function my_add_noindex_tag() {
    global $forum;
    if($forum->forum_id == 3) {
    echo '<meta name="robots" content="noindex" />';
    }
    else {
    echo '<!-- please do index -->';
    }
    }
    ?>

    #62207
    intellivision
    Participant
    <?php
    /*
    Plugin Name: noindex stuff
    */

    add_action('bb_head', 'my_add_noindex_tag');
    function my_add_noindex_tag() {
    if( is_forum(3) ) {
    echo '<meta name="robots" content="noindex" />';
    }
    else {
    echo '<!-- please do index -->';
    }
    }
    ?>

    I modified it a bit to see both conditions… but neither are showing up in my source. Any thoughts?

    I did see it in the plugins control panel, and activate it.

    #62204
    fel64
    Member

    What forum categories?

    You want a plugin like this:

    <?php
    /*
    Plugin Name: noindex stuff
    */

    add_action('bb_head', 'my_add_noindex_tag');
    function my_add_noindex_tag() {
    if( is_forum_category() )
    echo '<meta name="robots" content="noindex" />';
    }
    ?>

    That’s off the top of my head, so it may not work without some modification, but that’s what I think the structure needs to be. You’ll need a different conditional tag than is_forum_category(), probably is_forum() if you just wanted to not index forum pages.

    #52874
    Radja
    Member

    I have also problem with translating singular/plural forms that are handled in source code by __ngettext.

    in poEdit (version 1.3.7) I put __ngettext:1,2 to recognise both forms ( singular/plural), but when I try to translate them poEdit refuse to work and returns error:

    17:56:32: C:Documents and SettingshodisDokumenty13jazyk.po:2236: missingmsgstr[]’ section

    17:56:32: msgfmt: found 1 fatal error`

    So, is something wrong with poEdit?

    #62195
    fel64
    Member

    It’s a bug.

    I’ma guess you have Allow Images? At least for me, without AI backticks work fine, with AI they don’t – I guess one of the code handling functions is broken by AI.

    #2747
    Olaf Lederer
    Participant

    Hi,

    according this post form I have to put code between “Backticks”.

    This will not work (at least on my website), if I use the backticks most from the post will disappear. To show code I use the “code” html element, this works fine until I edit the post after submission. bbpress will replace the code tags with backticks.

    Is this a bug or a php limit? (I remember me somthing with the backticks and php)

    #62193
    Olaf Lederer
    Participant

    hehe, Trent that was easy thanks :)

    In the meantime enjoy:

    Moderator New Post Notification

    #2748
    Simon99
    Member

    I’ve recently enabled the hard cache, to see how it handles on a test forum with only a few users. The first problem I’ve come across has been an error with $bb_cache->get_forums() – the array it was returning when cached was 0, instead of containing the forum ids.

    I fixed it by a simple reversal of the sections of code within the get_forums() function in cache.php:

    $forums = (array) $bbdb->get_results("SELECT * FROM $bbdb->forums $where ORDER BY forum_order");
    if ( $this->use_cache && $normal && $forums )
    $this->write_cache(BBPATH . 'bb-cache/bb_forums', $forums);

    $_forums = array();
    foreach ( $forums as $forum )
    $_forums[(int) $forum->forum_id] = $bb_forum_cache[(int) $forum->forum_id] = $forum;

    After reversing them (the above are their original positions), I then made sure the write cache line was using $_forums, instead of $forums.

    No idea if this may have other consequences I’ve yet to unearth, but I thought it may be worth noting here.

    I’ve also used the “load all options” function from wordpress as a basis for creating a global array containing all topicmeta options. By default (even with cache enabled, although maybe I’ve missed a setting), there were several calls to to topicmeta, whereas only one was really required.

    #57269
    fel64
    Member

    You might find that it makes your designing easier if you use

    p + p {
    margin-top: 1em; }

    That’ll add a 1em margin to the top of every p immediately following another p. I find that helpful because then it’s easier to style the blockquotes and such without having to account for the p around it.

    #2743
    flschen
    Member

    Now the first theme is online. The first I created. Västervik is a simple theme and still in development status. Although it should work and works here quite well. :-) I am thank- and grateful for any hints and clues… You can get the theme here: http://dev.floeschen.ch/

    #55400
    mvh
    Member

    any luck so far djuggler?

    i’ve been trying the suggestions but so far, its still the same =(

    #58826
    livibetter
    Member

    Your rss2.php template possibly has additional space and a new line, <?xml version="1.0"?> should be send at first place (after http header), but it’s not on your forum.

    #55397
    djuggler
    Member

    livibetter: You are right. I reversed the modifications after testing. They are in place now. A side note, if the directory ‘youcantfindme’ does not exist then http://make2for1.com/redir returns:

    “Error 404 – Not found

    Your browser can’t find the document corresponding to the URL you typed in.”

    And shows http://make2for1.com/youcantfindme in the address field of the browser. If I create the directory ‘youcantfindme’ and put an index file in there then http://make2for1.com/redir does indeed show the index file and the address changes to http://make2for1.com/youcantfindme.

    The debug test shows the following:

    —-

    http://make2for1.com/forum.php?id=1

    REQUEST_URI: string(15) “/forum.php?id=1”

    should be: string(14) “/forum/general”

    full permalink: string(38) “http://www.make2for1.com/forum/general&#8221;

    PATH_INFO: string(10) “/forum.php”


    http://www.make2for1.com/forum/general

    Error 404 – Not found

    Your browser can’t find the document corresponding to the URL you typed in.

    [That was with the RewriteRule redir youcantfindme [R=301,L] .htaccess]


    http://www.make2for1.com/forum/general

    [with the actual .htaccess generated with http://make2for1.com/bb-admin/rewrite-rules.php%5D

    also

    Error 404 – Not found

    Your browser can’t find the document corresponding to the URL you typed in.

    —-

    I have returned the .htaccess back to

    <IfModule mod_rewrite.c>

    RewriteEngine On

    RewriteRule redir youcantfindme [R=301,L]

    </IfModule>

    so you can see the http://make2for1.com/redir work

    If anyone wants to play with this, I’ll happily setup an ftp account. Email juggler@gmail.com

    I have left the changes in place.

    Thanks.

    Doug

    #58825
    ajg
    Member

    So how did you fix this problem?

    My bbPress and WordPress run on the same server.

    WP RSS feeds do not have that problem.

    All I get is:

    XML Parsing Error: xml declaration not at start of external entity
    Location: http://www.ajakirigolf.ee/foorum/rss.php
    Line Number 2, Column 1:
    <?xml version="1.0"?><!-- generator="bbPress" -->
    ^

    I can not parse the forums RSS feed to other pages. :(

    #62171
    Trent Adams
    Member

    I haven’t tried this collatodo, but does this allow users to sort forum or posts on the front-page? I am a little slow ;)

    Trent

Viewing 25 results - 28,401 through 28,425 (of 32,462 total)
Skip to toolbar