Forum Replies Created
-
In reply to: Help with bbpress API, a first plugin…
OK, so to do that I would have to close the post myself, which looks like I just have to add two x divs
Div <!-- .bbp-reply-content -->
Div
But it looks like HTML filters are being applied still – ah, is this a case of ordering things so that my filter comes right at the end, ie after the HTML filter?
..ah a quick test and, yes, this seems to work.
$content=$content.'TEST1(/div)(/div)IS THIS BETWEEN POSTS? YES!(div)(div)';
Ah apologies, the forum filter has filtered out the DIVs above.. putting them back in with curly brackets.
Excellent. Looks like I need to put some thought into how to make it look good but I think I can work on that! One last question then (sorry, and thanks for your help!), how do I pick out the first post?
- This reply was modified 12 years, 1 month ago by jezza101.
In reply to: Help with bbpress API, a first plugin…Thanks Pip. Starting to make some progress. I’ve been playing around with some other filters and beginning to explore, I can see how to manipulate various components of a post.
But I’ve hit a brick wall, do you know how to insert something between the first and second post for example?
My goal is to inject a “dummy post” which had the same template as a normal post but contained my own message.
Many thanks.
In reply to: Help with bbpress API, a first plugin…As a first goal I would like to be able to alter the content of each reply shown on the topic page. So actually that would include the lead topic post (in bbpress terms the OP is the topic and subsequent posts are the replies, yeah?)
I think I would also need to know the reply’s ID and whether it was the first reply. If I can get a basic template for that I reckon I can get going with the rest 🙂
There are two plugins I built for e107 and I would like to have a go at bbpress 2 versions. One is a ‘Thanks’ plugin, so I’d need to eg add a “thank this post” button to each post, and show a user’s ‘thanks’ count next to their name.
The other is an adense plugin which popped an ad unit inbetween the OP and first reply.
Many Thanks.
- This reply was modified 12 years, 2 months ago by jezza101.
In reply to: Adding "view unread posts" pluginGood job Pip. Looking forward to seeing how you did this, I really struggled to get anywhere but I’m kinda an amateur when it comes to hacking plugins together! Popped a few dollars in the kitty and I hope others do the same.
Downloaded to my dev area and will have a play.
In reply to: spam preventionNot sure what you mean, spam comments are hidden by Akismet on my bbpress 2 forum. I use another plugin to prevent spam registrations, it looks up to black lists on StopForumSpam and HoneyPot.
In reply to: Adding "view unread posts" pluginI looked into this myself, but I couldn’t find enough documentation to get started. I’m the kind of dev who can get stuff to work if given enough time and decent code examples. Hopefully as more bbpress 2.0 plugins are released there will be more to learn from.
I would agree that this is such a core feature as users surely use this to monitor activity. There is a shortcode which lists out new posts, you can see it on my site here. A list of new posts does go some of the way to help users monitor activity. There is also the RSS feed which is what I use to monitor all posts that are made.
I wouldn’t want to second guess JJJ but from the gist of his posts I get that he is very pro 3rd party involvement. In a number of cases his response has been to say if you want a feature enough then why not get to work on it and add it (obviously easier said than done as most users don’t have the skills!). Does the fact its commercial make a difference? I don’t know, I shouldn’t think so. Commercial WordPress plugins have been around for a while and are widely used.
Whilst agreeing that it isn’t ideal, it’s easy to disguise. Just change “forums” to something like “discussion”.
Users then see a link like:
example.com/discussion/forum/off-topic/
Not too scary for them imo. It reads perfectly well “discussion forum” and like you say, most users don’t care much for the internals of all this and won’t notice/care that there is an extra word that (arguably) doesn’t need to be there.The “do it yourself” attitude can be frustrating as we would if we had the skills! But I appreciate developer’s frustrations too. Surely the compromise is to stick it on the backlog and see if it gains support.
PS. “that it has and that is that” not the most exciting error in the world, you are way too easily impressed my friend 😉
In reply to: Register on MultisiteHi,
I’m having the same problem. Would love to help resolve it but I’m afraid this is beyond my knowledge.
I guess it relates to that WP MU default behaviour is to send all registrations to the “main” blog. Can the bbpress form somehow hook into WP’s registration procedure to bypass the redirect? I wouldn’t know where to start.
WP MU almost needs to separate out Network Users, who administer sites, and blog users, who comment and post in the forum. Or allow each site to register its own users. Perhaps add blog id to the user table and let us chose how it should behave. Just thinking out loud
In the mean time I think I might go back to my previous multisite implementation, which just involved a little hack in wp-config that swapped the database table prefix based on the domain calling the site. This means that each site has it’s own distinct User and Forum tables. Of course there are some obvious downsides too, but everything is functional. If anyone is interested in that idea then I’ve posted on my site about it.
Frustrating that this is the one thing that is stopping my site being exactly as I want it, but don’t get me wrong, bbpress 2.1 is great and I look forward to future releases. Keep up the good work.