Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 30,726 through 30,750 (of 32,491 total)
  • Author
    Search Results
  • #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.

    #53790
    Null
    Member

    This works ok:

    <?php
    function allow_strike_as_allowed_tags( $tags ) {
    $tags['strike'] = array();
    return $tags;
    }
    add_filter( 'bb_allowed_tags', 'allow_strike_as_allowed_tags' );

    function allow_italic_as_allowed_tags( $tags ) {
    $tags['i'] = array();
    return $tags;
    }
    add_filter( 'bb_allowed_tags', 'allow_italic_as_allowed_tags' );
    ?>

    #53789
    Null
    Member

    Ahh ok, I want them in 1 plugin file though… also think these two should be standard :D

    #55795
    wittmania
    Member

    Trent, it is at lne97.com/bbpress/

    However, it isn’t doing it anymore. I have no idea what changed. My only guess is that I logged out as the keymaster, logged in as a “dummy” subscriber, and then logged back in as an administrator.

    ???

    #53788
    Trent Adams
    Member

    This is the plugin for strike (used as “del” for compliance reasons, but you can change the code from del to strike if you want. Creating a new plugin and changing it it “i” and italics in the name versus strike will do that one as well.

    Trent

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