I left Ardentfrost/Josh know of this thread via GoogleTalk, but he hasn’t replied. He must be AFK at the moment. He’ll be in to see this though..

@Trent, can you fix my grammar error in the “Forum Catagories” thread. In the title change: Catagories to: Categories please? That grammar mistake is driving me nuts!
*EDITED: Thanks Trent for editing it!

spencerp
So I have stored an option called forum_restriction_db. It has the value of:
“1” => “David Bessler,testman”, “3” => “David Bessler”,
When I try to assign that array to a varaiable as follows:
$forum_restriction_allowed_in_forum = array(bb_get_option(‘forum_restriction_db’));
It tells me the value of $forum_restriction_allowed_in_forum is just array
.
I tried setting the value of the option forum_restriction_db to array("1" => "David Bessler,testman", "3" => "David Bessler",)
but then it spits back the members of the array as a,r,r,a,y etc … so the allowed memebrs of the forum_id 3 is “r”.
How can I get this to work?
Hmm… last night, the bbpress “latest discussion” links did not have the “replies” bit. This morning they sure do though.
Interesting point about the RSS feeds. Because each post does not have its own URL, I guess this is a way to simulate it. Still, it seems there should be a “pretty” option for that as well. Something like:
http://example.com/topic/1/post/3
Instead of:
http://example.com/topic/1?replies=3
I may explore this with some mod_redirect rules and a little code hacking. Any bbpress devs around that can chime in? In my experience with Google (and others), it’s notably easier to get URLs like the first example above indexed.
Hello! I’ve noticed that when I delete a user in the plugin it doesn’t delete it in the database. I can still see the users in the memberlist in admin-pages!
Does this happen for everybody or just for me?
When I looking in the code where it should delete the user it says:
if ( $bb->wp_table_prefix )
$delteeded = $bbdb->query("DELETE FROM ".$bb->wp_table_prefix."users WHERE ID = $d");
else
$delteeded = $bbdb->query("UPDATE $bbdb->users SET user_status = 1 WHERE ID = $d");
Shouldn’t it say DELETE user instead of UPDATE after the ‘else’??
Works like a charm now!! WOOT WOOT!!
http://spencerp.net/forums/category/1
Now, I just gotta do some customizing of this, and I’ll be all set! Thanks a million Sam, and So1o for this!! 
spencerp
Alright, I’ve just uploaded it all, and even applied the new .htaccess rules, but I’m still getting a 404.. By the way, I still have to adjust the colors of the Category itself though!!

http://spencerp.net/forums/category/1
Any thoughts?
spencerp
P.S. Trent, can you adjust my thread’s title please? My grammar mistake is bugging me lol! Catagories => Categories Thanks in advance!
Good tutorial from Podz! Seen it before, but forgot about it! Thanks for posting Spencer!
Yep! I don’t think I could live without his guides lol! You’re welcome by the way.
And I just like how he uses images to show people what, and where to do things.. 
spencerp
As a note to others as well, make sure you READ the documentation for this! If you don’t run your plugins through the readme validator and correct all the errors, the plugin will not show up correctly. As well, the plugin code must be in the same format for system to create post in plugin page with the right name, author, version, etc.
If you do make a mistake, upload a new one and the system will automatically change when it runs the script again (every hour or 2).
Hope that helps out as well.
Trent
Just compute the computable stuff beforehand and it becomes a lot more maintainable/readable.
// setup the basic data
$uri=option("uri").$rw["page"];
$class="";
// compute the computable data
if ($rw['is']) { $class="current" }
// write the line
echo "<li><a class='$current' href='$uri'>".$rw['item']."</a>"
Note that I’ve used class
rather than id
for semantic purposes – the ID of an element shouldn’t change, but it’s class can change and can be multiple, so you could even do:
$class="item";
if ($rw['is']) { $class .=" current" }
Ands how does one change the time from
2007-01-16 18:23:58
to
January 16, 2007
So no time, only date. I have added <?php topic_time(); ?>
to my frontpage and it shows: 2007-01-16 18:23:58, but on the fronpage (only there) I want to show it like: January 16, 2007
Thx
I did that but you can’t use php in an echo:
<?php
global $bbdb;
$r = mysql_query("SELECT * FROM $bbdb->menu WHERE
set = 'active' ORDER BY
order ASC");
while($rw = mysql_fetch_array($r))
{
echo '<li><a href="'.$rw['page'].'">'.$rw['item'].'</a></li>';
}
?>
This works perfectly, but now I want to add some php code into <a
!here the php code!>...</a>
so it will look like this (i only show the echo now):
{
echo<li><a <?php if ('.$rw['is'].')
{
echo "id="current"";
}?> href="<?php option('uri'); ?>'.$rw['page'].'">'.$rw['item'].'</a></li>;
}`
But this aint working cause you cant do php in an echo. Any suggestions?
Hi. I just got bbPress up and running this evening, and I’m really liking it so far. I have it configured for “pretty permalinks”, and I’m seeing a strange “replies” argument in the topic URLs. For instance:
http://example.com/topic/2?replies=1
This makes pretty permalinks not quite so pretty after all. I thought the whole idea was to minimize the arguments to be more search-engine friendly.
After looking through the source code, it doesn’t appear that this argument is actually used for anything functional. My best guess is that “replies” is an attempt at a cache-buster, so that the URL changes each time a new reply is posted. Wouldn’t it be preferable to simply set the “Last-Modified” header to the time of the most recent post?
It seems like this would achieve the same thing without ruining the pretty permalinks. Also, I notice that the bbpress.org support forums don’t have this extra argument. Can you share the magic?
Thanks.
Figured it out. Kind of dumb. $topic->forum_id
Your answer is in the database. Try to find it, but if you can’t, I’ll give you the answer
OK. Thanks. It turned out bb_head() was only called (as part of an if ()
statement) when the page is a topic. So I see that my above plugin works on a topic page. Awesome.
My long-term project is a forum-access plugin where you can grant or restrict access to individual users. Not roles-based.
Does anyone know a hook to use for intercepting an individual forum listing in front-page.php? You’d think get_forum
would work, but for some reason … anyway.
I’ll keep you posted on my adventures of learning to write plugins.
I cannot think of anything you’d have to do besides re-edit your config.php unless you’ve hardcoded your domain into any custom templates.
Is that it? I am actually working with both WordPress and bbPress integrated. There is quite alot of work that needs to be done WP on the database side ( https://codex.wordpress.org/Changing_The_Site_URL ) , so I was figuring something similar would need to be done for bbPress. Although, they are sharing a database, not sure if that makes a difference. Any other thoughts?
I hope you’ll continue to populate the plugins browser with your clever works 
https://bbpress.org/plugins/
That’s very difficult to decipher, so for maintainability may I suggest you break out the code so you create variables first then use them when creating the echo statement.
It looks like you need to use call_user_func(tabel["is"])
to run the function names that you’re retrieving from the db.
Euuhh well still can’t get it to work…
I have the function:
function get_bb_menu() {
global $bbdb;
return $bbdb->get_results("SELECT * FROM $bbdb->menu WHERE
set = 'active' ORDER BY
order ASC");
}
This will give (tabel sperated with – ):
set – item – page – is – order
active – Forums – index.php – is_front() – 0
active – Statistic – statistics.php – is_bb_stats() – 1
active – Search – search.php – is_bb_search() – 2
Now I want this in a for each so it generates (note this is A PART what it should generate):
<li><a <?php if (is_bb_search())
{
echo "id="current"";
}?> href="<?php option('uri'); ?>search.php">Search</a></li>
<li><a <?php if (is_bb_stats())
{
echo "id="current"";
}?> href="<?php option('uri'); ?>statistics.php">Statistics</a></li>
But how to do this???
davidbessler,
Your theme needs to have a call to bb_head()
in its header.php.
If you’re using a version of the default header, make sure bb_head()
is actually being executed on every page load. There was a bug in early versions of bbPress that prevented bb_head()
from being called on anything but topic pages.
As an aside, if you’re adding javascript, you should definitely use bb_enqueue_script().
bb_enqueue_script( 'give-it-some-name', '/soruce/file.js');
It will be longer than we thought originally 
We guessed too optimistically. Oops!
Nah it will take some weeks before it’s released, so call down
You mean the green background when hovering?
.notice {
border: 2px solid #4c9545;
background: #abd8a2;
color: #4c9545;
font-size: 1.1em;
font-weight: bold;
padding: 10px 15px;
margin: 0 0 1.1em;
}
Not sure though
That is SWEET!! I’ve just implemented the last patch, running 0.8alpha.
Here’s my site for view: http://spencerp.net/forums/
Only thing I’m waiting on now, is the: /bb-admin/content-categories.php page itself.. I’m getting a blog 404 when going there, but of course, didn’t see that file included, so..
And also getting the 404, after clicking on the link:
http://spencerp.net/forums/category/0
But that’s to be expected right.. lol!
Anyway, hopefully this might push the “project” along a little quicker LoL!.

spencerp
/By the way, I left the same comment on your ticket Sam..