Forum Replies Created
-
In reply to: Proposed method for file attachments and uploads
I’ve got a skeleton prototype working already but I have an important question:
In Right-To-Left languages, filenames are still left-to-right, correct? ie. it’s never gif.filename, always filename.gif ?
Sounds silly but you never know… I mean how does Chinese or Japanese handle filenames?
In reply to: Proposed method for file attachments and uploadsWhoa, $50 AUS? That’s like half a million US $ right now! I could buy 3, maybe even 4 gallons of gas (if I owned a car) LOL!
Seriously though, many thanks, that’s a massive donation. Now I feel guilty like I have to make this an amazing plugin. Hope I can live up to it. I should have an early alpha for review Sunday or Monday night…
In reply to: Proposed method for file attachments and uploadsAlright, I’ll start working on this.
It won’t be feature rich at start but I’ll give you some basic functionality in a few days.
In reply to: Duplicate Messages Tab in Private Message PluginI had the same problem with my plugins with the avatar tab too. It makes tabs duplicate.
I’ll have to lookup the workaround I did…
Okay the bug fix I had to use was to wrap the function that adds a tab and check if $self was set.
ie.
function add_tab(blah) {
global $self;
if (!self) {
// code that adds tab goes here
}
}So what you probably need to do is change this line like so:
if (!$self && bb_get_current_user_info( 'id' ) == $user_id) {
In reply to: Is there an Approve Registration plugin?If you are just trying to filter out spam bots, try my Human Test:
https://bbpress.org/plugins/topic/human-test/
Someone would have to explain the need for registration approval to me before I would bother making such a plugin.
Front page topics plugin isn’t working? Hmm. Should be.
I have a modification I’ve done somewhere…
Try this:
// fix number of front page topics
function bb_custom_topic_limit($limit) {
switch (bb_get_location()) :
case 'front-page': $limit=5; break;
case 'forum-page': $limit=10; break;
case 'tag-page': break;
case 'topic-page': $limit=15; break;
case 'feed-page': break;
case 'search-page': break;
case 'profile-page': break;
case 'favorites-page': break;
case 'view-page': $limit=10; break;
case 'stats-page': break;
case 'login-page': break;
default: $limit=15;
endswitch;
return $limit;
}
add_action( 'bb_get_option_page_topics', 'bb_custom_topic_limit',200);
// required to fix for custom topic limits to calculate correct page jumps
function fix_post_link ($link,$post_id) {
global $topic;
remove_action( 'bb_get_option_page_topics', 'bb_custom_topic_limit' );
if ($topic && $topic->topic_last_post_id==$post_id) {
$topic_id=$topic->topic_id;
$page=get_page_number( $topic->topic_posts );
} else {
$bb_post = bb_get_post( get_post_id( $post_id ) );
$topic_id=$bb_post->topic_id;
$page = get_page_number( $bb_post->post_position );
}
return get_topic_link( $topic_id, $page ) . "#post-$post_id";
}
add_filter( 'get_post_link','fix_post_link',10, 2);In reply to: Only key holders add topicsI’ve now written a plugin to solve this problem:
In reply to: key master only forumI’ve now written a plugin to solve this problem:
In reply to: Only key holders add topicsThis question is related:
https://bbpress.org/forums/topic/key-master-only-forum#post-15457
I think I will make a real plugin since this seems to be a requested feature that is not too hard to handle in 0.9 Look for it in the plugin section over the next day or two.
In reply to: key master only forumThis will affect all forums:
global $bb_roles;
$bb_roles->remove_cap('member','write_topics');
$bb_roles->remove_cap('member','write_posts');You can put it into
header.php
or make a real plugin ie.members-cannot-post.php
(and install into /my-plugins/)<?php
/*
Plugin Name: Members Cannot Post
*/
global $bb_roles;
$bb_roles->remove_cap('member','write_topics');
$bb_roles->remove_cap('member','write_posts');
?>I think I will make a real plugin which can control this on a per-forum basis since this seems to be a requested feature that is not too hard to handle in 0.9 Look for it in the plugin section over the next day or two.
In reply to: Gravatar and Karma pluginI have a karma plugin in development but it is not available yet and most likely will not be until early May.
You can preview it in use at http://bbShowcase.org
The code in brackets is BBcode so you want my BBlite:
In reply to: phpBB3.0-style themeVery nice work! You could even make a new column on the left to mimic their icons and it would almost exactly the same!
I think this post is related:
https://bbpress.org/forums/topic/bb_mail-for-user-registration
In reply to: bb_mail for user registrationI think this post is related:
https://bbpress.org/forums/topic/non-english-characters-in-email-notification-unreadable
In reply to: Emoticons For bbPress?The insert function in Comment Quicktags for bbPress can easily be reused to insert smilies. You don’t want to use wp-grins because it has to load prototype.js which is huge and slow.
In reply to: Dropping “MultiViews” support?bbPress needs the internal rewrite engine that WordPress has.
Multiviews is unreliable and availability is inconsistent.
Wow that language is amazing looking… in any case I think the i8n folks are going to be your best bet for help. I’ll add some tags.
You want a better spider tool that can limit how many threads it uses, obeys robots.txt and uses a standard user agent.
Good luck getting all that into bbpress though. First you’ll need to write a custom parser that can standardize the posts and topics into a clean format. Some was working on a bbPress xml importer but if you get the data organized enough you could parse it directly into mysql. Not a trivial project by any means but I guess you realize that .
Hopefully you know PHP or some other language that can help you parse all the data?
In reply to: how to restrct users to start a new topic and postThis is a tricky problem.
It’s easy to remove the ability entirely to post new topics for all forums (by removing the ability from the “member” role) but to keep a forum visible but not allow a new topic to be created would require intercepting the forum list from the “add new post” sections.
If you can live with not allowing any member to create a new topic you can do this:
https://bbpress.org/forums/topic/only-key-holders-add-topics#post-15339
Then only moderators and above could create topics.
This request comes up at least once a month, someone might try to tackle it someday (but don’t look at me!)
In reply to: Expanding User Profile DetailsFields can be added via plugins but I don’t believe there is any general plugin available to do that yet on an easy basis like WordPress.
In reply to: where can i grab variables like ‘slugs’ and post urlI believe you are looking for the functions
bb_get_option
andget_post_link
.You would need a custom query, not to mention custom output and formatting for that. But considering that kind of view is available inside each forum, I am not sure how useful that is?
In reply to: Forumula for converting wordpress pluginsWell some are far easier than others.
First look for $wpdb and change to $bbdb
Then you have look at things like
get_option
and other functions and see if they can easily use thebb_get_option
or otherbb_
version of the function.But even if the alternative function exists you have to be sure that it’s doing what you want. Things that relate to users are similar but things that relate to posts have to be change to topics and then there is comments vs posts.
In reply to: Using foreign charactersThere used to be a plugin to do this:
https://bbpress.org/plugins/topic/usernames-i18n-fix/
but it won’t work under 0.9 – instead see this:
https://bbpress.org/forums/topic/diacritic-letters-i-username-like-goran#post-14205
In reply to: Only key holders add topicsAha! I think it’s this simple. Make yourself a mini-plugin and install it containing this:
global $bb_roles;
$bb_roles->remove_cap('member','write_topics');If you don’t know how to make a plugin, it might be possible to just put those two lines into your template’s
header.php