Forum Replies Created
-
In reply to: Get Number of Favorites & Subscription to a topic
hmm, can’t see why it shoudln’t work
try for test purposes
<?php $topic = bbp_get_topic_id(); $users = get_users() ; $countsub = 0; foreach ($users as $user) { $topicsub_list = array(get_usermeta ($user->id, 'wp__bbp_subscriptions', false)) ; echo '<br>Topic : '.$topic ; echo '<br>user_id: '.$user->id.'<br>' ; var_dump ($topicsub_list) ; if (in_array ($topic , $topicsub_list)) $countsub++ ; } echo $countsub; ?>
that should help you find out where the problem is
In reply to: How to add date of birth filedit does for bbpress, but I think you are also using bbpress, in which case maybe this
In reply to: Tell me how to keep the navigation bar out of sight!In reply to: Get Number of Favorites & Subscription to a topicgreat – I think subscriptions works the same way but with ‘wp__bbp_subscriptions’
In reply to: Get Number of Favorites & Subscription to a topicunder 2.5.14 favorites are stored in usermeta under ‘wp__bbp_favorites’ as a list of topics
so to get a count for a topic, you would need to loop through all users and for each one count if the current topic was in it.
so something like (not tested as am tied up elsewhere, so just spending 5 mins on this)
$topic = some function to get current topic number if not already there $users = get_users() ; $count = 0 ; foreach ($users as $user) { $topic_list = get_usermeta ($user->id, 'wp__bbp_favorites', false) ; if (in_array ($topic , $topic_list) $count++ ; } echo $count ;
In reply to: How to add date of birth filedsounds like this is the answer
In reply to: Not all users have Participant role🙂
In reply to: Not all users have Participant roleit gets assigned on first login by the user
In reply to: Search Not Workinghmm, sounds more like a database issue on conversion.
https://www.airpair.com/php/fatal-error-allowed-memory-size is the best help I can suggest
In reply to: Topic Index Shortcode: Filter By Certain Forums?the [bsp-display-topic-index] shortcode in my style pack plugin may be what you need
once activated go to
dashboard>settings>bbp style pack>shortcodes to see how it works
In reply to: How to notify per forum?as for editing messages
In reply to: How to notify per forum?in which case I’d try the asynchronous emails – it may be bulk sending isn’t working as your host email provider may treat as spam. Also might be worth talking to your host provider to see if they can see if emails are being sent or not – this is also worth a read https://contactform7.com/best-practice-to-set-up-mail/ , whilst it is about contact form 7, the principles still apply.
In reply to: How to notify per forum?ok, you may need to debug your email system
start with
then it may be your host provider is stripping emails with many bcc’s in it – some do because of spam, so then look at
let us know how you get on
In reply to: How to notify per forum?sorry, but we all have to live, and I don’t plan to replicate Vinny’s code for free.
Users are of course free to subscribe themselves to forums, and then they receive what you are after
In reply to: How to hide avatars in the list of topicstry
#bbpress-forums p.bbp-topic-meta img.avatar{ display : none ; }
In reply to: Changing Submit button wording to Updateas I said ‘updating..’ beyond my current time avaailability
In reply to: Remove specific buttons from TinyMCEgreat – glad you are fixed
In reply to: How to hide avatars in the list of topicsthe simplest way would be to put this in your theme’s custom css area
img.avatar { display : none ; }
In reply to: How do I edit the Forum page?could be many things
It could be a theme or plugin issue
Themes
As a test switch to a default theme such as twentyfifteen, and see if this fixes.
Plugins
If that doesn’t work, also deactivate all plugins apart from bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.
Then come back
In reply to: Search Not Workingdatabase size should be no problem.
Since you already have a large bbpress forum, then has this issue just started, always been there, have you converted from another, updated from 2.5.12 ???? some history would be useful
In reply to: How to notify per forum?or bbp toolkit
In reply to: How to notify per forum?In reply to: Working Member List?bbpress version 2 just uses WordPress users, so look at WordPress list members plugins
for instance
In reply to: Working Member List?this is code from bbpress version 1 – 9 years ago, unlikely to work
not used that, and as it is a paid product, I suggest you ask their support area