Spencer, was just hoping for a quick clarification on all this: Did you use the same MySQL database for everything? In the thread here you use terms like “MediaWiki database” and “WP database,” but I’m wondering whether that actually just means the MediaWiki tables and the WP tables, all contained in one MySQL database. Do tell. 
Thanks,
Nate
I am trying to write a plugin … how do I refer to the currently logged in user’s name? I tried
get_user_name( $user->ID )
but I get “get_user requires a numerical ID” or something like that.
Awesome! Thanks a million SamBauers!
spencerp
Hello, I have made my own template and the original gettext-objects in the code have been replaced. Therefore I need to rescan my files for the gettext-text so I can translate.
The only problem is that I have been searching for days to find out how to do, but i can’t find anything interesting. I’ve tried poEdit but you can’t search in .php files for gettext-objects!
how do i do? someone who can help me?
I was referring to scale. Unless it’s in the core, it’s too large to expect others to make their code friendly with your code. If you have a thousand plugin authors and 10% of them do that, it just seems unreasonable that the other 900 will add 100 different things to their code to be friendly with other plugins. And if those 10% each write multiple plugins that way, it’s even MORE things the other 900 have to add to all their plugins.
It’s nothing against YOU, it’s just that you have to think about scale, and what you’re asking isn’t scalable.
I do this on my page. Code looks like this:
<h1><a href="http://www.rayd.org/"><?php option('name'); ?></a></h1>
Looking back at the code I put, I must have been tired! Great to hear you got it going Orion!
Trent
YES! I got it… I used this to get the correct path:
<?php bb_option('uri'); ?>my-templates/images/victorylogo.gif
Ahhhh, and sigh. Trent, thanks for helping with getting my gears going. Now if anyone else runs into a similar issue, they will have a solution.
All the Best,
Orion
actually, I forgot to load the file, the result above was from playing with
‘<?php bb_location(); ?>’ and “image”.
After trying your code Trent, I received no results for the designated area:
src=""
lol…
yeah, any solution is good to start for me. The above produced:
front-pageimages/victorylogo.gif
I am editing the front-page.php, so I am not sure if it pulled that file name or I have a setting a bit off somewhere.
Hmmm…. there has to be a way. I am getting the images to load through CSS, but for this particular image I would like to have it in the HTML content.
So any more ideas or suggestions are welcome.
-Orion
If you are trying to get victorylogo.gif, I would use:
<?php $victorylogo = (bb_get_option('uri') . 'my-templates/images/victorylogo.gif'); ?>
<?php echo $stylesheet; ?>
There might be an easier way, but I am a ‘may not be pretty, but works’ type of guy….
Trent
Hey Trent,
Thanks for the reply…
I checked out the source of the resulting page and found this…
/my-templates/style.cssimages/victorylogo.gif
So I noticed that it is posting “style.css” in the path, which is throwing me off.
Essentially, I am trying to get into my “my-templates” directory. I will look into your other solution. If you have any other ideas, I am open ears.
Thanks,
Orion
<?php bb_stylesheet_uri(); ?> does work for me!?
Anyways, you can also do something like following I did in bbpress-mobile plugin:
<?php $stylesheet = (bb_get_option('uri') . 'my-templates/mobile.css'); ?>
<link rel="stylesheet" href="<?php echo $stylesheet; ?>" type="text/css" />
Trent
Hey Community,
I am trying to link to an image in the “my-templates” directory for my bbpress template. When editing templates in WordPress I used:
<?php bloginfo('stylesheet_directory'); ?>
Is there something similar that I can use for bbPress?
I tried:
<?php bb_stylesheet_uri(); ?>
& it didn’t work.
Anyhow, any help would be greatly appreciated.
Thanks,
Orion
unreasonable request….. ow sorry
I’m working on a patch (it’s basically finished actually) that addresses bug 520. If it is not accepted in the trunk (core code) then I might develop it into a plugin instead.
Short of the obvious stupid answer (upgrade or quit using IE
I think we need to test this out with more IE6 users. I think I have one old PC kicking around and will do some testing on this.
Trent
Maybe using a array? Like
$menu['FAQ'] = 'faq.php';
Passing this through a filter so everybody can add his links via filter in his plugin…
Hehe … it sends an email on EVERY new post if it’s checked in the users profile. Not just admins.
I know what you mean with your plugin-request, this is something mine can’t do at the moment. But I think this is a great feature to be added and it could be done by plugin. “Add Forum to favorites”
You might be correct that if checked ‘in your profile’ it would notify everyone of all posts replied and created if they also have it checked. It would notify you of any post or reply in the forum. At least, that is what the code suggests on first glance. Spencerp or Thomas should be able to clarify this.
Trent
hehe, of course it’s that simple
. Thanks!
You can actually edit rss.php to get it to 50 if you want as well! Just search for the number ’32’ in that file 
Trent
Thanks rednimer..
I’ll try to get on this then, I’ve just been really, really busy with the “home life” lately sigh..
spencerp