Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 30,726 through 30,750 (of 32,495 total)
  • Author
    Search Results
  • #53715
    maker
    Member

    I get these errors:

    bbPress database error: [Table ‘mpmorg2_bbpress.bb_online’ doesn’t exist]

    SELECT * FROM bb_online WHERE user_id = 1 LIMIT 1

    bbPress database error: [Table ‘mpmorg2_bbpress.bb_online’ doesn’t exist]

    INSERT INTO bb_online (user_id, activity) VALUES (‘1’, ‘2007-03-24 06:06:37’)

    read me says:

    “You’ll maybe get an error if you browse your forum the first time after you’ve installed the plugin. This is normal.

    If you keep getting errors, try setting $mysql41 to false maybe it works then, otherwise don’t hestitate to contact me.”

    How do I set this to false?

    forum is here: http://www.mpm.org.au

    EDIT: It’s okay, it just took some time for the errors to disappear.

    #52035

    In reply to: Post Moderation

    karaboga
    Participant

    Yes, you are right; some people will not want to use this.

    But i mean, this would be an option, like in WordPress.

    As bbPress’ structure is very similar to WordPress; adding that option to bbPress won’t be so hard, i guess. :)

    #55912

    In reply to: Show off your Forum !!

    wmarcy
    Member

    http://rbl.babbage-tech.com/forums/

    I should have kept a list of plugins and the only real change to the core code was I removed the bozo check.

    #55755
    Null
    Member

    Got now this:

    <?php

    require_once('../bb-load.php');

    global $bbdb, $bb_table_prefix;

    $id = $_POST['id'];
    $content = $_POST['content'];

    $bbdb->query("UPDATE ".$bb_table_prefix."menu SET item = '". $_POST['content'] ."' WHERE item_id = '". $_POST['id'] ."'");

    echo stripslashes(htmlentities($content));
    ?>

    This should work?

    #55679

    In reply to: Empty tag <br> issue?

    mattpeckham
    Member

    Okay, fixed it by putting:

    margin-bottom: 1em;

    …in the CSS. :)

    #55676

    In reply to: Empty tag <br> issue?

    Null
    Member

    Try <br />

    #55675

    In reply to: Empty tag <br> issue?

    Arlo
    Member

    I actually have the same problem; <br> doesn’t work, it just shows up in the post as-is.

    #49614

    In reply to: Emoticons For bbPress?

    Null
    Member

    How to make is so, that it wont filter between the code tags? Cause we dont want smilies in code parts :)

    #55069
    Arlo
    Member

    Hi, I’m having a bozo nightmare. I installed bbPress a few days ago, and I keep getting flagged as a Bozo.

    1. I’m running latest bbPress, and this Fix bbPress plug-in.

    2. I disabled Akismet per the other Bozo thread.

    And yet:

    In my keymaster profile page, I have a large text field with the contents of my admin name, and I’m stuck as a bozo. Changing “1” to “0” in PHPMyAdmin does nothing. Deleting my name from the bozo field does nothing.

    I understand this is supposed to be a checkbox, but I have this:

    <tr>
    <th scope="row">This user is a bozo:</th>
    <td><input name="is_bozo" id="is_bozo" type="text" size="30" maxlength="140" value="" />

    </td>
    </tr>

    #55886
    fel64
    Member

    Cheers Sam, worked beautifully. I put your CSS in my style.css and played around with it until eventually getting rid of all extra styling :P But it works great. That was a major annoyance. Thanks. :D

    #55798
    Null
    Member

    So in the next version like:

    <youtube>linktothevideo</youtube> ??

    #55884
    wittmania
    Member

    It’s not working for me…

    On topics with a single page, I get this error:

    Bad arguments. in blah blah blah/bbpress/
    my-plugins/page-links.php on line 68

    When I click on a page link, I get this error:

    Fatal error: Call to undefined function: is_tags() in
    /blah blah blah/bbpress/
    my-plugins/page-links.php on line 33

    Any idea what’s wrong?

    Also, I would recommend that you add an option for the links to be text-only instead of the CSS/image based ones. Thanks for putting this plugin out for all of us.

    #55861
    Null
    Member

    Nah too complicated, need a plugin or something :D

    Most simple is to just hide the chosen forum from the list (while creating a topic) from all members except the mods/admins…

    #55839
    forgeron
    Member

    Thanks for the tip!

    Both seem flawless, but a lot of work on the other hand. I decided to use this: http://www.zubrag.com/scripts/password-protect.php

    It’s not a plugin, but it blocks acces to the index.php and forum.php. The topics can still be read by anyone who knows the URL, but I used a robots.txt to make sure the site will NOT be indexed by google or any other search engine.

    So I guess I’m more or less safe. But it isn’t all that super secure. :) Hopefully there will be a similar plugin for this once.

    #53795
    Null
    Member

    Shame there is no demo or image of how it looks like :)

    #55860
    fel64
    Member

    Can’t you just throw a quick-and-dirty conditional PHP statement around the post form in forum view?

    Just open your theme’s forum.php and stick a if( userisadmin() && forumid = 666 ) { ... } around your post form. I have no idea what the actual functions are, that’s just pseudocode.

    #55859
    mattpeckham
    Member

    Exactly Null, exactly right. Fingers crossed for a plugin/update! :)

    mattpeckham
    Member

    I’m getting close! :) I just need that last little bit – totally an aesthetics thing too. Functionally I’m thrilled. WP and bbPress = da bomb.

    #55841

    In reply to: Setting user data

    fel64
    Member

    It shouldn’t be that hard, I was looking at the avatar plugin and it just added an extra field to the info keys when the user edited the profile. I guessed from that that bb automatically took all the info from that and made that extra data entry in the database.

    But in this case there’s nothing the users can specify. :P

    #53794
    fel64
    Member

    This is why the Quicktags plugin is nice – no need to memorise :D

    #49613

    In reply to: Emoticons For bbPress?

    fel64
    Member

    To make this work in 1.0 you need to change the first few lines (or it won’t be available to activate as a plugin). I modified mine to this, which still has all the credits in there.

    <?php
    /*
    Plugin Name: bbEmoticons
    Plugin URI:
    Description: A Clickable Smilies hack for bbPress. Thanks to <a href="http://www.orioa.com/">kohaku</a> and <a href="http://plasticdreams.org/">aka</a>. Original WP Grins by <a href="http://www.alexking.org/software/wordpress/">Alex King</a>.
    Author: hiromasa
    Author URI: http://hiromasa.zone.ne.jp/blog/
    Version: 0.72
    */
    ...

    Just replace the <?php at the start of your .php file with this and it should show up to be activated.

    Edit: Oh, awesome, a overflow: auto property has been added. Thanks. :)

    #53793
    Null
    Member

    OMG I totaly looked over that <em>

    Yep it works

    #1606

    Topic: Setting user data

    in forum Plugins
    fel64
    Member

    How do I add some miscellaneous userdata? When each user registers they should be automatically assigned an identicon. I was thinking I’d read the userdata using get_profile_info_keys() but I can’t find a corresponding set_profile_info_keys() or the like. Does anyone know?

    #53792
    fel64
    Member

    “But how to add <strike> AND italic? (I miss italic to in the basic install)”

    Wha’? Italic is totally there!

    Just use

    <em> </em>

    That’s your basic XHTML compliant italic, just like <strong> is the compliant bold. They’re both in by default.

    Or did I miss something?!

    #53791
    LMD
    Participant

    Uh, you don’t need to create separate functions for each tag! You are only extending the contents of an array.

    I use this home-grown plugin for all the extra tags I want to add (edited for readability).

    <?php
    // Allow extra html tags, even depreciated
    function allow_extra_tags( $tags )
    {
    $tags['a'] = array(
    'href' => array(),
    'title' => array(),
    'rel' => array(),
    'target' => array()
    );
    $tags['i'] = array();
    $tags['b'] = array();
    $tags['del'] = array();
    $tags['strike'] = array();
    $tags['img'] = array(
    'src'=> array(),
    'alt' => array(),
    'width' => array(),
    'height' => array()
    );

    return $tags;
    }
    add_filter( 'bb_allowed_tags', 'allow_extra_tags' );
    ?>

    Much simpler and easier to maintain.

Viewing 25 results - 30,726 through 30,750 (of 32,495 total)
Skip to toolbar