Forum Replies Created
-
add_filter('bbp_get_topic_stick_link', function ($link, $retval, $admin_links) { $splitLink = explode('a> <a', $link); $link = $splitLink[0] . 'a>'; return $link; }, 10, 3 );
Here’s my solution in case anyone sees this
that works on files even outside of the templates directory? I already override some of the template loops but this seems like a different thing
What’s the correct way to override
includes/topics/template.php
? Seems I have to remove it from thereAh I see, yeah I don’t like that at all, will probably remove it from my template. Thanks as always!
Yes it looks like the default behavior is that the “sticky” link on the forum topic super stickies it, based on the
super=1
query param I’m seeing. Any way to default it to0
, or do I have to make a custom topic template?In reply to: Carriage returns stripped from email notificationsHey, so it turns out that if you change your email headers to send HTML, you have to replace the carriage returns with <br>’s, which is what you’re doing in your app. For some reason the str_replace line you are using wasn’t working in my case (probably a different whitespace character). But as is often the case there’s a nifty PHP function that works – https://www.php.net/manual/en/function.nl2br
In reply to: Forum notifications sent as plain textWow that code is a lot more involved than I thought it would be. I’ll probably end up just using your plugin. Thanks as always! Do I need to send as text/html if I just want the correct line spacing or is there a way to fix that for plain text emails? Right now by default all the carriage returns get stripped by default, that’s really all I’m trying to fix. If I need to send HTML that’s fine but I have a hard time believing the default bbpress notifications should look like this
In reply to: Proper way to run forum repair toolsGot it, no spam in this case. I’ll see what happens when a new reply is posted.
Thanks!In reply to: Proper way to run forum repair toolsHi Robin, were you able to replicate this? I’m thinking this should be broken out into its own forum post, seems like a bug to me.
In reply to: Proper way to run forum repair toolsThere are sub forums involved. The one that is considered the “freshest” has a sub forum inside of that as well, but that forum actually has the oldest most recent post.
1-_ A-_ A' -_ B -_ C -_ D
So forum 1’s freshness is displayed as the freshness of A’, but in reality it should be the freshness of D. Hopefully that makes sense.
In reply to: Proper way to run forum repair toolsUnfortunately this did not help my problem. The freshness is still incorrect. Is it relevant that the forum with the incorrect freshness is a private forum? Invisible to users who are not in a private group, using your “bbp private groups” plugin
In reply to: Proper way to run forum repair toolsWill do, thanks
I was able to figure out that it had to do with reply threading not being properly imported, which may have had to do with the fact that reply threads weren’t enabled on the bbPress end at the time of import. So the newest reply would show up in the middle of the thread, because all of the replies that after that one were I guess orphaned replies to previous ones.
I was able to solve this by manually editing each of the replies and setting its parent. I think that threads that began after the import, as well as threads that have not been replied to since the import won’t be affected, only the ones that were active before and after. So I’ll monitor the forums and fix the reply hierarchy of any resurrected threadsI’ve emailed you a link, I’d prefer not to post the site publicly. Do you know where in the template / plugin the replies are taken from the database and looped through to create the thread?
GD bbPress tools (only for quotes), Image upload for bbpress pro, and bbp private groups, nowhere have I modified reply orders
The menu order is correct, but the posts are not displaying according to that menu order, apparently