I’ve been working on updating a theme to be more ‘navigable’. I found the new_topic function could not be used when viewing a topic, so I modified the function to return a proper ‘Add New Topic’ link when called from a topic view (topic.php)
The code changes can be found in ticket 736:
http://trac.bbpress.org/ticket/736
Here I added a ‘New Topic’ link in the topic meta section:
http://onthepitch.org/talk/topic/coaching-youth-soccer
I need to go back and change the bottom into a table like I did with the FutureKind theme. That will solve both the border on the headers and the spacing is an easy fix with line-height. I haven’t released it because I still have to clean up some CSS laziness that I did and put in some conditional code for bb-topic-views (so it will still work right if people don’t have it installed)
The server load on dreamhost is always wrong (as with their microtime so the page render time is always wrong). Dreamhost uses a NFS filesystem where the files are remote from the server the code is executing on. So if there is a file queue, the load will be artificially high, it’s not CPU load, it’s disk load (which affects the overall load numbers).
I only paid $20 for that dreamhost (for a year promo) and will not be renewing. It’s mind-boggling that some people pay over $100 a year for that hosting.
I put together a plugin that will allow you to include navigation links to flip forward or backward through forums and/or topics within a forum.
http://plugins.baptiste.us/plugins/nav-links-for-bbpress/
This is a first stab. No online config, etc. yet – just the main code to get the right links and forum/topic IDs. I hope to add some things to it and improve the API a bit to let templates get individual ‘next’ or ‘previous’ links.
I ended up having to do direct DB queries – I couldn’t find a way in the main bbPress code to get me the info I needed, but I’m not super familiar with the core code either so I may have missed something. But no functions or class methods jumped out at me.
I’ll post the bbPress plugin URL for it once it’s approved, but you can download it from the link above.
Here’s a look at what it does on a forum I’m still setting up/messing with.
Topic Nav – look in the meta section under the RSS link:
http://onthepitch.org/talk/topic/test-topic-2
Forum Nav – look under the list of topics:
http://onthepitch.org/talk/forum/soccer-parents
Yes – I know the forum navigation disappears in forums with no posts – side effect of the action hook I used to insert (it seems to return without applying filters when there are no posts – which I guess makes sense if you’re figuring there’s nothing to ‘filter’. But many filers append
)
This definitely makes navigation for my setup much easier.
hmm, good find _ck_! I hope they fix it soon.
I currently have a phpbb board and I want to switch to wordpress/bbpress. I was wondering with the phpbb>bbpress script also move all my users over? Also when I integrate bbpress and wordpress will that also allow my users to keep their same username across all three installations?
When are you going to make kakumei too available _ck_ ? I’ve been drooling over it for a week or two now
Aha! It’s nice, I think it needs a small bottom border on the Views and Hot Tags headers, you know, like the other headers
.
Again, I think the list of views could use a bit more space between lines.
Seriously, what’s with your serverload O_O. Do you want some free hosting for that stuff? It’s not healthy to live in a server with 9+ server load.
Just tossing your post a bump because I would like to see a plug-in that allows for greater customization of profile page. I am using BBpress for a guild forum and it would be really useful to add a screenshot of their character and links to their armory profile etc.
Oh sorry, I’ve created a new main theme so this one isn’t visible anymore by default.
However thanks to a theme switcher I pieced together you can now see it this way:
http://bbpress.dreamhosters.com/forums/?bbtheme=kakumei-too
(I’m calling it “Kakumei Too” for lack of a more creative name right now)
You can switch to other themes using the toggle in the bottom right.
This is definitely worth doing. bbPress needs to have template functions that allow you to get the ‘next’ or ‘previous’ forum and topic. This would allow themes to include nice navigation links like ‘Next Thread’, ‘Next Forum’ instead of always having to jump to the front. WordPress does this for posts.
I’ve looked all around and I’m just not seeing anything like this.
I’m going to mess around with some code – it looks like the BB_Walker has a stepping ability built in that SHOULD make this pretty trivial, but I’m still getting comfortable with the inner bbPress classes and such. I’ll post here if I come up with anything. If anyone else has tried this or knows of a plugin that exists already – let me know. I couldn’t find one. Again – this isn’t pagination when you have lots of posts/threads. This is when you are in a topic or post view, being able to navigate to the next post, thread, or forum – i.e. like flipping pages of a book.
I just discovered something and wanted to run it by the forum. I agree…when I registered in bbPress and then logged into WordPress as the administrator, that new registrant was not given a role.
However, after I actually logged on as the new person and then logged BACK on as the administrator to see what was what…the person’s role was actually changed to “Subscriber” – my default role in WordPress.
So, if this is true, and I’m not missing something that could catch me up…it seems that this whole issue might be mute. Once the user actually logs in, their role is set as the default role so their rights are restricted by that role.
Has anyone else experienced this? Am I perhaps missing something that I’m really going to regret if I don’t fix this?
Thanks,
K
No I don’t mean a folder within a folder, that’s just fine and not a problem. I mean executing one within the other where they are both running at the same time on one page. That’s a huge amount of code and memory for any server, shared or dedicated.
The nice thing about the registration and login process is you can route back to any page you want as the wordpress system is much more developed. I have the code around here somewhere and posted it before…
see #5 on the list in this post:
https://bbpress.org/forums/topic/user-intregation-between-wordpress-038-bbpress-not-work?replies=7#post-10428
Two things:
I DO have my bbPress folder running inside my WordPress folder. You’re thinking this is a bad idea??? Any suggestions as to why? I thought I read on here that it wasn’t a bad idea to this. I probably read wrong though……
Second — if my bbPress IS actually inside my WordPress folder, any other ideas why I’m getting the error message?
I guess one more (sorry)…if you’re forcing all registration links to go to WordPress, where does this process take your users after they register? Back to bbPress? To WordPress? That might work…but for my site, I’d need it to go back to bbPress; I’m dealing with a lot non-techies and any weirdness will throw them for sure. I need to try and make it as easy as possible for them.
Thanks again for any help,
K
Ah apparently Detective’s method is for sites running WP at the same time as bbPress (not just integrated, running within each other – which I do not recommend). So this won’t work for most people.
I solved the problem by forcing all registration links to go through WordPress but obviously that’s not a perfect answer (and needs core hacks).
So this problem needs to be revisted again
I’m trying to create this plugin. When I try to register using bbPress, I get this error message…
Fatal error: Class ‘WP_User’ not found in /home/sbisdedt/public_html/web20/forum/my-plugins/default-role.php on line 11
The registration actually takes place; the person receives the email with the password; their registration shows up in both WordPress and bbPress.
But how do I stop that error message from appearing. What could I have possibly done wrong.
Thanks for your help.
K
Thank you for your response. I had actually already read that page and followed the steps. As it turns out, the issue was that when viewing the site on a MAC in Firefox, the login/site admin link always reverted back to login in WordPress; and even though I was logged in, in bbpress it always asked me to log in again. It did this when I jumped back and forth between the two sites.
As it turns out, I was actually always logged in…the links just didn’t toggle to the correct position. When i looked at the site on IE using a PC, the links did as expected. I guess the first time IE out performed Firefox…or it may have been the difference between viewing on a MAC versus PC. I don’t know.
I’m not going to worry about it. 99% of the people viewing the site will be viewing it in IE (work related forum).
Thanks again,
K
Go ahead and try it and you’ll see:
http://bbpress.org/forums/tags/theme/page/2
There are at least three pages…
Registration is open? Where do you see it disabled?
Sure … but i had to make some hacks to the template-functions *shame* to allow for color-changing tag-cloud.
I don’t know better.
Looks great _ck_ ! When are you going to re-enable registration on your forums?
Please let me know if I missed any decent themes available?
http://bbshowcase.org/forums/view/available-themes
You can click on them to get a general idea what they look like in action. Themes reset back to default in three minutes (or use the theme switcher in the bottom right hand corner on any page).
Still needs a bug fix or two but I’ll release that as a “My Views” module along with the theme switcher probably this coming weekend.
Whew. That was a project and a half.
I use this theme at:
http://plugins.baptiste.us/forums/
matching the site theme itself. Works great. I should put together a diff of the modifications I made to tweak things like removing the urchin code and fixing a few other quirks….
Very nice work. Extremely visually pleasing theme.
However you just might want to remove your google urchin tracking code from the template footer you distribute. Most bbPress newbies won’t catch that and it could get your Google account banned if they report it.