What is the proper way to write this:
<?php require( '<?php include('site.html'); ?>/abc.html' ); ?>
you rocks Rick 
this is the solution:
<?php echo bb_get_avatar(bb_get_current_user_info(‘ID’), 40); ?>
I’m coming to grips with bbPress.. slowly.
Is the $user->ID actually availabel for use at that point or do you need to do a
bb_get_current_user_info('ID'); ?
what value are you using for $default? have you tried just using:
<?php echo bb_get_avatar($user->ID, 40); ?>
Wow. This is a reason to log in again here (after being totally fed up by being censored and having to read on the fine bbPress as a plugin for the bloaty WP) and to say: Hello _ck_!
ok managed to use js to highlight the code. Thanks for help everyone.
@KateS30 http://bbshowcase.org/forums/view/available-themes
WP Mimic 0.02 download link for you! enjoy and have fun!
ok I managed to activate the plugin,
https://bbpress.org/plugins/topic/bbpresssyntax-hiliter/
by changing my_plugins to bb_plugins and the folder name to bbpress_syntax_hilite.
I checked and js and styles are being loaded in header.
Still, the code is not highlighted
I added a specific page number and nothing.
Then I visited the specific page then it started generating the code to the uploads folder.
In the admin section and your screen-shot (http://pixopoint.com/uploads/theme_integrator_adminpage1-480×668.png) notice it doesn’t have “.html” after.
<?php require( '/homepages/0/xxx/htdocs/xxx/wordpress/wp-content/uploads/pixopoint-theme-integrator/chunk1' ); ?>I added html and it’s working so far.
I’m still going…
Hi _ck_
Thanks for quick reply. Can you please tell me about the other ways?
This is because the plugin above is not working.
What I need is that someone wraps the code in code tags or pre tags (but not both) and it gets highlighted. I need to highlight java code.
I can edit any existing plugin to suit my requirements, I just need a hint to start.
Looking forward to your reply.
Thanks
This has been done a few different ways for bbpress over the years, this plugin is the easiest to find but there are other ways:
https://bbpress.org/plugins/topic/bbpresssyntax-hiliter/
Is there any plugin that can help me highlight source code on bbpress?
Any other ideas are also welcome.
Thanks for reading.
Thanks for the feedback.
Good to hear they fixed it in 1.0 – it’s actually easy to fix by hacking the core, only two characters need to be changed that way!
( >0 instead of =1 )
I went the PHP route.
At the top of register.php I put this code:
<?php
header( ‘Location: http://www.arguemax.com/wordpress-2.9.2/wordpress/wp-login.php?action=register’ ) ;
and it works.
While I try several combinations of this I thought I would throw this out for consideration.
PHP is not like HTML. PHP generates HTML or browser code on the server and spits it out onto the browser on the client side. I am just thinking now that maybe you cannot use this method of redirection because the functionality is overwritten. I am just asking. Has anyone tried this redirection method with PHP before?
As I type this, I am deleting the browser histrory/memory to see if that helps because so far this method does not redirect anything.
Try:
RewriteRule ^.*/bb-login.php$ http://www.arguemax.com/wordpress-2.9.2/wordpress/wp-login.php [R=301,L]
or:
Redirect 301 /bb-login.php http://www.arguemax.com/wordpress-2.9.2/wordpress/wp-login.php
Yes, I wrote the “Skip Akismet” plugin last year to do that.
https://bbpress.org/plugins/topic/skip-akismet/
It’s cross compatible with bbPress and WordPress, however they refused to accept it into the WordPress plugin repository and told me to submit it to the core (which I didn’t bother if they are going to be like that).
Later I discovered the akismet plugin itself already has a “trusted user” filter via bb_is_trusted so my method is overly complicated, but my plugin could in theory be modified to trust users who have X number of posts or pass a certain minimum membership age.
This method however would be much cleaner:
add_filter( 'bb_is_trusted_user','more_trusted',10,2);
function more_trusted($trusted,$user_id) {
// bb_get_user here and determine if trusted, possibly cache result
return $trusted; // boolean true/false
}
Feel free to develop that, let me know if you need help.
oh.
That is pretty clever. I like that. I think I will use this technique. Now I just need to refresh my memory on how to code .htaccess
I have created the file, .htaccess and I included the lines
And I gave it a shot, but it did not work. Is there something I need to do such as make the file a certain type or read/write privledge?
you asking for help or notifying that you have done it.
If the latter one, then I would like to know more on how you did it
Noel the fonts are small in Firefox but that may be because they don’t seem to scale for some reason when “large fonts” are enabled in Windows.
Like I pointed out, resetting the body to font-size:100%; seems to fix the whole problem for me.
The overly large gravatars still takes some getting used to however, I’ve never seen a forum system with avatars over 100×100
Here’s a mini-plugin I whipped up to fix the behavior of bbPress where a sticky that is made to “stick to front” (aka “super-stickies”) gets removed from its original forum.
Instead, now it will show as a regular sticky in its original forum but also as a super sticky on the front page.
<?php
/*
Plugin Name: Super Stickies Fix
.................................................................................................................
*/
function super_stickies_fix($where){return str_replace("topic_sticky = '1'","topic_sticky > 0",$where);}
add_filter('get_sticky_topics_where','super_stickies_fix');
?>
Tested in bbPress 0.9, in theory it should work fine also in bbPress 1.x
You can remove the line of all dots, it’s just there to fix the wrap problem for code on bbpress.org 2.0