Search Results for 'code'
-
Search Results
-
Hallo,
Please excuse my english!
I’using “private forums” and “approve user registration” to keep my forum privat. I don’t want to show the tags to users who are not logged in.
So I just did this <!– –> with the tags part in front-page.php.
But is there any way to show the tags to users who are loggend in?
For example change the front-page.php to something like:
if (user_is_logged_in)
{
<div id=”hottags”>
<h2><?php _e(‘Hot Tags’); ?></h2>
<p class=”frontpageheatmap”><?php bb_tag_heat_map(); ?></p>
</div>–>
}
This would be very nice
Benjamin
Hi there
As said in the topic title, how can I use bbpress avatars on wordpress comments? I have bbpress and wordpress on the same database.
Is there anyway to do this?
Someone told me to use User Photo, but I couldnt make it work… and I was wondering if existed some kind of code to add so wordpress could call the avatar from bbpress.
Thank you
hi guys, site is http://www.audioscribbler.co.uk
Basically, I’ve got the latest discussions plugin active in the sidebar, but I can’t find the necessary code to edit to customise it. I’ve create a custom DIV class (this managed to change the line-height) but I can’t get rid of the bold properties, I can’t change the font – I’ve looked on the widgets.php page and can’t find it, and editing the plugin itself doesn’t seem to work. Anyone got any ideas? thanks
I’m trying to make my front-page.php template look a little more like a conventional vBulletin type theme by displaying the “last post title and link” in a column next to the “forum title.” The problem is that topic_title() isn’t giving me what I want inside the loop. I guess I need some sort of nested loop or an alternate function.
Here’s an example of a vB style i’d like to emulate:
Main Car Forum (This is a top level forum)
Car Forums by Brand <– this is a bbPress category forum w/ subforums per car brand.
— Honda Forum 1…………………….. last post: my car broke down
— BMW Forum 2…………………….. last post: new tires?
The problem is when I play w/ the front-page template I can only get the last post info for the “Main Car Forum” not the brand subforums and even that isn’t actually giving me what I think it should.
Here’s what I have in my 2nd HTML column of my modified template:
<td class="topicTitle"><a href="<?php topic_last_post_link(); ?>"><?php topic_title(); ?> </a>
<br /><span class="lastPoster">by <a href="<?php user_profile_link($topic->topic_last_poster) ?>"><?php topic_last_poster(); ?></a></span>
</td>The topic_last_post_link and topic_title() aren’t giving me the expected results. For topic_last_post_link it’s actually returning the last topic/thread link not the last post link and that’s for the “Main Car Forum.” For the subforums it’s displaying the same exact thing as it does for “Main Car Forum” it’s not actually displaying the topic/post info for the correct subforum.
TIA,
-Charlie
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;
}