Search Results for 'code'
-
Search Results
-
Hi,
I would like to know the reason of filtering every ouput, even after being sanitized, with the following statement: return apply_filters(‘sanitized_string’, $string, $original_string, $context);
I can’t understand the purpose of this (surplus?) filtration..
And the “apply_filters” also have another sister function like “merge_filters” and “remove_filters”.
I would be glad to know the purpose of these, thanks!
Function details:
1) found in file ./bb-includes/wp-functions.php as from line 579
2) the function:
function apply_filters($tag, $string) {
global $wp_filter, $merged_filters;
if ( !isset( $merged_filters[ $tag ] ) )
merge_filters($tag);
if ( !isset($wp_filter[$tag]) )
return $string;
reset( $wp_filter[ $tag ] );
$args = func_get_args();
do{
foreach( (array) current($wp_filter[$tag]) as $the_ )
if ( !is_null($the_) ){
$args[1] = $string;
$string = call_user_func_array($the_, array_slice($args, 1, (int) $the_));
}
} while ( next($wp_filter[$tag]) !== false );
return $string;
}
Why doesn’t bbPress incorporate email notifications? Isn’t that a no brainer, how else is a person notified of changes to their topic? RSS VS eMail, outcome, eMail wins–right? Not everyone is a techie type of person. They post their questions and if email is not setup they won’t ever know what the answer was?
vbulletin will always be tops if these issues are not dealt with, right?
I am an outsider please put down the stones
I am just curious…
Topic: Single topic only
I’m trying to find a way to us bbPress that allows me to have only a single topic and nothing more for the whole site.
I have a site, http://bulldogs.rleague.com/ which is basically a guestbook on steroids with user moderation, profiles and various security features. The main feature, and the thing that has kept it alive for over 12 years, is the very simple, flowing format which evolved from a guestbook.
I want to replace the bespoke PHP because I’m tired of maintaining it all, and adding new features is a pain in the neck.
I’ve been playing with bbPress today and it has the simplistic approach that suits my needs. However, I need to find a way to basically make the default landing page a topic, and to hide/remove all functionality that is related to multiple topics and multiple forums.
I’m happy to mess with the core code and maintain it for upgrades, but a plugin approach would be preferable. However, I don’t know where to even start. Is it something I can achieve with a different template, or do core functions need modification or plugin-based override?
The other piece to this puzzle, and I think I saw an answer already, is that the display order of posts needs to change to be the most recent at the top.
Any help people can provide is appreciated.
Cheers,
Chris.
That’s really wild.