Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 28,426 through 28,450 (of 32,481 total)
  • Author
    Search Results
  • #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

    #55023
    fel64
    Member

    Be careful with modifying code files unless you’re familiar with SVN, you’re going to have troubles upgrading. :/

    #55022
    colindb
    Member

    I don’t know how to write plug-ins, but I just installed bbPress and wanted to be able to approve new users. I messed around with the code just enough to get what I needed working, here are the changes I made:

    Starting with the function bb_send_pass function in bb-includes/registration-functions.php: I added an optional third parameters, so the function signature now looks like:

    function bb_send_pass( $user, $pass, $toAdmin = false ) {

    If the toAdmin flag is set I want this email to go to me, not the requesting user. So, just above the “$message = …” line, I added this:

    $recipient = bb_get_user_email( $user->ID );

    $rawRecipient = $recipient;

    if ($toAdmin)

    $recipient = 'myemail@example.com';

    I’m sure there is a better way to grab an administrator’s email, but like I said, I don’t know anything about bbPress… And what’s this about $rawRecipient? To make my life easier, I’m also including the email address in the email’s body (so I can forward it to the correct person without having to look up their info again). I did this by adding “Your email:” to the “$message = …” line:

    $message = __("Your username is: %1$s nYour password is: %2$s nYour email is: %4$s nYou can now log in: %3

    $s nnEnjoy!");

    And then including “$rawRecipient” as the 4th parameter to the sprintf call at the end of the function. Again, you could get fancy here (only include the email address if it’s going to an admin, for example), but whatever, this works. :)

    Okay, with that function done, we just need to change the registration code that calls it. I went to the bb_new_user function in bb-includes/pluggable.php. Just before that function returns there’s an “if ( defined (‘BB_INSTALLING’) )” check. The else case calls bb_send_pass (the function we just changed). Add a third parameter (sending ‘true’), and the registration code should now send an email to you instead of the newly registered user.

    As a final touch, I updated the registration success page (bb-templates/kakumei/register-success.php in my case), telling the user that an admin will verify their request and then email them.

    Hope this helps someone out.

    #62180

    In reply to: help please anyone…

    livibetter
    Member

    sub-domain? did you mean add-on domain?

    You just need to move (re-install) all bbPress files up a level. If you installed them into public_html/konpaforum.com/bbpress/, then mv public_html/konpaforum.com/bbpress/* public_html/konpaforum.com/

    If you want to integrate into WordPress, then leave them and install WordPress in public_html/konpaforum.com/, would be a good idea.

    #62147
    goldfiinger
    Member

    I never used the comic sans in the end :)

    #62176

    In reply to: help please anyone…

    chrishajer
    Participant

    Oh yeah, this doesn’t look right (the path is wrong):

    http://konpaforum.com/bbpress/

    :D

    #62174

    In reply to: help please anyone…

    chrishajer
    Participant

    My guess is that you are trying to use permalinks and they’re not supported by your current configuration. I would try this first. In your config.php, find the mod_rewrite line, and make it look like this:

    $bb->mod_rewrite = false;

    That should make your forum accessible and should take care of the 404 error as well, at least for the forum software. The actual error you have there is because when a page cannot be found (like your forum pages) Apache is configured to serve up 404.shtml, but that file is not present. You could create one so that is shown when a 404 file not found error occurs.

    You access your admin panel by logging in as the keymaster (user you created when you created the forum) and then click the “Admin” link next to your logged in name. If it’s not there, you are not logged in as the keymaster. I would post the direct URL to bb-admin but it just redirects if you are not already logged in as keymaster. Try that first.

Viewing 25 results - 28,426 through 28,450 (of 32,481 total)
Skip to toolbar