Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 30,676 through 30,700 (of 32,432 total)
  • Author
    Search Results
  • #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

    #1604
    chilifrei64
    Member

    I migrated from phpbb to bbpress. phpbb had a watch topic mod which would send an email whenever a reply happens on a topic. I was just wondering if there is like a “Watch Topic” plugin. I know there is a summon user but this does not help me because I want to summon whole groups of people. I know bbpress is young, I was just wondering if anybody was working on something like this. My users dont use RSS unfortunately. :-(

    #53772
    Null
    Member

    so how come search isn't enabled when you first install bb? It's obviously there - but you have to add it in? What about some css for the style sheet?

    ardentfrost’s way is good enough, though you can’t use search-form.php anymore for normal use any more. They implemented search at this forum as well, so how did they do it?

    #1601

    Topic: Permalinks

    in forum Troubleshooting
    daniel8802
    Member

    Hi guys –

    What is the section of code that I need to past into my .htaccess if my webserver cannot support +multiviews? I tried saving the whole file as .htaccess, but it didn’t work. Any ideas would be great, thanks!

    #1600
    Trent Adams
    Member

    First off, an example can be found here. Download the bbPress YouTube plugin! Now the disclaimer…….

    This plugin will only Key Masters and Administrators to put YouTube videos into posts. Why only those two groups you might ask? Well, because this plugin right now allows ALL embeds and objects out there to be put into your forum posts and I thought this might be a bit much for the general public! This plugin was started by myself and then mdawaffe finished it off for me. Nothing special, but the next version will have the code to only only YouTube videos in an easy way, but for now you need the entire embed code from YouTube, like this:

    <object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/lh5316fcit0"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/lh5316fcit0" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed></object>

    If you decide to take out the conditional for adminstrators, do so at your own risk! It is nothing special, but at least will do until we can get a better version!

    Enjoy!

    Trent

    #55782

    In reply to: Slug based permalinks

    Trent Adams
    Member

    So literally:

    $bb->mod_rewrite = 'slugs';

    That works with the latest TRAC?

    Trent

    **Edit** Nevermind, it does works!

    #55779

    In reply to: Slug based permalinks

    Sam Bauers
    Participant

    It’s in the core code, no need to patch. Just grab the very latest version via Subversion.

    #55777

    In reply to: Slug based permalinks

    bassetts
    Member

    Just what I have been waiting for real pretty permalinks. Thank you =)

    #1597

    Topic: Slug based permalinks

    in forum Plugins
    Sam Bauers
    Participant

    Now available in the latest build in subversion.

    Get permalinks like this:

    http://www.example.org/forum/my-cool-forum

    …and this…

    http://www.example.org/topic/मैं-काँच-खा-सकता-हूँ

    …and this…

    http://www.example.org/profile/sambauers

    All with the flick of a variable…

    bb->mod_rewrite = 'slugs'

    …set in config.php

    #54661
    Trent Adams
    Member

    Actually found a good one! Check this out:

    Engtech’s SVN Tutorial

    Trent

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