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.
Shame there is no demo or image of how it looks like
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.
Exactly Null, exactly right. Fingers crossed for a plugin/update!
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.
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.
This is why the Quicktags plugin is nice – no need to memorise
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.
OMG I totaly looked over that <em>
Yep it works
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?
“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?!
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.
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' );
?>
Ahh ok, I want them in 1 plugin file though… also think these two should be standard
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.
???
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
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.
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?
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!
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
So literally:
$bb->mod_rewrite = 'slugs';
That works with the latest TRAC?
Trent
**Edit** Nevermind, it does works!
It’s in the core code, no need to patch. Just grab the very latest version via Subversion.
Just what I have been waiting for real pretty permalinks. Thank you
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
Actually found a good one! Check this out:
Engtech’s SVN Tutorial
Trent