Forum Replies Created
-
In reply to: Forum url changes
great – glad we got there !!
In reply to: Forum url changesok you could also use a PHP variable rather than a wordpress function
so
$current_url = $_SERVER['REQUEST_URI'];
should give you the displayed URL in all cases.
you can then do an ‘if’ test to see if you are in forums using say
if (strpos($_SERVER['REQUEST_URI'], '/qaforums/') == true )
…then you are in the forumsIn reply to: Picture fails to upload for usersThis is an issue with the bbpress-notification plugin not bbpress, suggest you post to their support forum
In reply to: Forum url changesok, so this is the first time you have said that the get_permalink does not match the display.
so for a forum as a specific example, please state
the displayed url
the get_page_link
the get_permalinkIn reply to: Forum url changessorry, I have given you some code which addresses, which does not seem to satisfy you.
I am not quite sure why you think the plugin authors would want to make their plugin work for your exact circumstances, but if you want to post a defect then go here
In reply to: Forum url changeswhat is the question ?
In reply to: Forum url changesok, not sure there’s much more I can do to help in that case 🙂
In reply to: Forum url changesok, I had understood that get_page_link() returned mywebsite.com/forum_name3/forum_name3/ in all cases
is this not correct?
In reply to: Forum url changeswould you like to post your current code?
In reply to: mantenimiento plugin restric content pro-bbpressYou can restrict who can see what by using
In reply to: mantenimiento plugin restric content pro-bbpressHello, I have a membership website, and in it a forum with bbpress.
I use restrict content pro and to restrict the forum I installed the restric content pro-bbpress plugin.
The following happens to me, apparently this plugin is abandoned and they do not make updates for a lot of time, or so the security of my website indicates.
My question is which one can I change it for and have it integrated with restric content pro.My version of: wordpress is
5.8 bbpress 2.6.6
RCP-bbpress
1.0.1 My
site is https://www.tactodebarro.com
Thank you for your attention NuriaIn reply to: Forum url changesif get_page link returns :
mywebsite.com/forum_name3/forum_name3/
then you could just test for this eg
if (get_page_link() == 'mywebsite.com/forum_name3/forum_name3/') { get_permalink etc. } else { get_page_link() }
just answered you other post 🙂
In reply to: Forum url changesI’d suspect that because each forum is not an real individual wordpress page (ie not in dashboard>pages) , then retrieving the page_link might well return a ‘virtual’ ID, and this might be the top forum – not proven, just a hunch.
My initial suggestions would be that you try get_permalink instead of get_page_link() – this retrieves the full url of the current displayed page, and should in theory get you what you want.
If you need the existing get_page_link() for your other pages, you could try wrapping it in an if… eg:
if (is_bbpress()) { get_permalink etc. } else { get_page_link() }
Let us know if that helps
Sorry, I cannot find your post.
Please repost without the urls as urls, and I’ll take a look
By the way – help is free here and offered by volunteers in their own time, so please consider help a privilege not a right 🙂
🙂
ummm…
ok, ether you are using bbpress version 1, which went out of production many years ago or might be a related plugin or part of a wrapper like buddyboss????
bbpress version 2.6.x does not have any files of those names
sorry – whereabouts is the bb-settings.php file?
In reply to: Get Number of Favorites & Subscription to a topic🙂 great, glad to have helped
In reply to: Get Number of Favorites & Subscription to a topicI’ve just taken a look – the whole way subscriptions works was changed in 2.6
this code works on my test site
add_action('bbp_template_before_single_topic', 'show_bbp_sub'); function show_bbp_sub() { $subscriptions = bbp_get_subscribers(bbp_get_topic_id()) ; $count = count($subscriptions) ; echo 'number of users subscribed: '.$count; }
In reply to: Get Number of Favorites & Subscription to a topiccan you post the complete code
I would suggest $output, but you may need to play with the variables to see what each does
In reply to: using the bb forums list widgetjust taken a quick look.
yes it looks like it will show the sub forums of a forum ID you enter, but not the parent forums as well.
I should say I’m not a bbpress author, and after a check of the code it is not an easy change to fix
In reply to: Remove noreply email from notification emailsthe code is valid – I suspect you have a copy/paste issue – sometimes a ‘ becomes corrupted,
Can you post exactly what you have in your file
In reply to: Search Results Not Workingcaused by a post that was password protected – fixed