Specifically about this though, and what’s wrong with it:
<?php require( .$bb_pixpoint_url. '/1.html' );
1. The . before the $bb_ and after the url means “concatenate” or “put together”. So you are putting together nothing, then the variable, then the 1.html. I don’t think it would work, since there is nothing to add to the beginning of the variable. Would probably give a syntax error
2. It’s not really a URL it’s a file system path. So, it’s poorly named.
3. I didn’t try it, but I think it would work otherwise, if you define the variable somewhere first.
I think I would do it like this:
<?php require( "$gerikg_pixopoint_path/chunk1.html" ); ?>
Then define $gerikg_pixopoint_path = '/homepages/32/d84982904/htdocs/example/wp-content/plugins/pixopoint-theme-integrator/';
If you define $gerikg_pixopoint_path in bb-config.php, I think you need to do a global $gerikg_pixopoint_path wherever you want to use the variable. There has to be a better way of doing it. [EDIT]
@kevinjohngallagher with deep integration all I need to do is edit the bbpress theme but with ryan’s plugin I need to edit both WP and bbP themes. The good thing about his plugin that it reduces the load on bbPress. It’s hard to make things automatic because every theme is made differently without a universal structure, it would be nice though.
@chrishajer <?php require( .$bb_pixpoint_url. '/1.html' ); ?> is that how you write it?
Okay so I have realized I do not have the expertise to turn this into a plugin but I can offer some direction and the code I am currently using as the plugin at
http://www.berryreview.com/forums/index.php?ak_action=accept_mobile
The full source of the plugin I hacked can be found at this link along with instructions
http://www.berryreview.com/forums/topic/berryreview-bbpress-forums-mobile-plugin-please-ask-questions-here
Please post questions at that link since there is no way to get notified of replies in the BBPress forums and I don’t have the time to keep checking if there are new questions.
If you just want to download the plugin check it out at
http://www.berryreview.com/forums/Downloads/br-mobile.php.txt
But you will need to read the instructions to get it to work
Sorry I cannot be more help. Really limited on time.
Hi,
I am using geshi library in wordpress for syntax highlighting. This is implemented using a plugin (code colorer).
Geshi library is also used on my bbpress forum (bbpress is not integrated with wp).
I am using sql query to show latest bbpress posts on wp homepage. The issue is that I have to include bb-load.php to run the query, which causes the error that geshi is already included (since wp included it in header).
How to resolve this issue?
One option is to use wp conditionals so that geshi is not loaded when its is_home()
Another way is to use RSS parsing instead of db query to show the forum posts on wp home.
For some reason, I don’t want to use either of them at this time.
So, how can I “unload” geshi.php from wp/bbp on my wp home?
Any ideas are appreciated.
Thanks for reading.
<br />
<?php<br />
//Put this in someplace obvious<br />
// like the config file<br />
global $path_needed_for_ryans_plugin = "/path/to/stuff/"</p>
<p>?><br />
<?php<br />
global $path_needed_for_ryans_plugin;<br />
require_once( $path_needed_for_ryans_plugin .'1.html' );<br />
?><br />
Infact you’re probably better off doing in it with a “define” but I’ve not used Ryan’s plugin and didn’t want to presume.
Long term though, this should be something the plugin handles itself. After all the point of a plugin, especially one that is meant to make it easier to sort out themes without having to edit them, is ot not edit the themes
It’s still a great first step though.
No, it doesn’t make sense to me. Maybe someone else will follow. Or maybe I need more coffee.
Maybe instead of xxxx, since the xxxx is the piece that changes, you define that in a file that is included by all files already (maybe bb-config.php or something that pixopoint includes) and then use the variable everywhere. Similar to how $bb_table_prefix is done:
$bb_pixopoint_url = 'www.examplexxxx.com';
Then use $bb_pixpoint_url in the different locations in the bbPress theme.
I’m trying to see if I can create a theme via pixopoint that works for everyone. It requires you to put
<?php require( 'xxxx/1.html' ); ?>, <?php require( 'xxxx/2.html' ); ?>, <?php require( 'xxxx/3.html' ); ?>, etc. in different locations of the bbPress theme.
The xxxx changes with every server. Instead of finding and replacing all instances of the codes. I wanted to create another file that you can put in the path and it will fill all the xxxx.
Does that make sense?
I’ve tried to load bbpress into wp config via
if ( !defined(‘BBDB_NAME’) )
require_once(ABSPATH.’bbpress/bb-load.php’);
then I call <?php login_form(); ?> into wp template where i want to show it…
it works fine.. but there is a problem…
when i open my wp-admin … all colors and buttons has gone..just wp structure still there..
look at this screenshot
http://img687.imageshack.us/img687/7772/wpadmin.jpg
when I remove this code
if ( !defined(‘BBDB_NAME’) )
require_once(ABSPATH.’bbpress/bb-load.php’);
then admin works fine… but i need this code to show bbpress login/registration into wp..
please guide me where I am wrong…
Thanks
If it’s a fresh install do this:
1) Unzip the bbPress zip file
2) Change the newly created folder name from “bbpress” to “community”
3) Browse to /community and install bbPress
Keep in mind that if you have already installed bbPress on /bbpress you can’t simply rename the folder. If you want to rename it follow these steps:
1) Go to bb-admin/options-general.php and change the bbPress URL to the new one
2) If you have custom permalinks open the .htaccess file (on the forum root folder) and change the RewriteBase directive to RewriteBase /community/
3) Rename the folder
thank you clockworker also thanks to suzkaw (Eric)
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.