Forum Replies Created
-
In reply to: Get Number of Favorites & Subscription to a topic
great – you may want to check the favorites for if a user has more than one favorite topic – I am suspecting your code was only tested with 1 favorite – if so same principal, if not I don’t know why one works and then other doesn’t !!
In reply to: How to reorder topics in one forum?syntax error
line
add_filter('bbp_before_has_topics_parse_args', 'my_custom_display_topic_index_query ' );should read
add_filter('bbp_before_has_topics_parse_args', 'my_custom_display_topic_index_query' );is essence you have a space after the word query before the ‘ in
'my_custom_display_topic_index_query 'In reply to: Get Number of Favorites & Subscription to a topiclooks like it hasn’t converted to an array basically it should read
array (size = 2)
0 => 149
1 => 65etc.
ok so let’s try replacing
$topicsub_list = array(get_usermeta ($user->id, 'wp__bbp_subscriptions', false)) ;with
$topicsub_lista = get_usermeta ($user->id, 'wp__bbp_subscriptions', true) ; $topicsub_list = explode (',' , $topicsub_lista) ;In reply to: Problems on Forum Topicson question 1
once activated go to
dashboard>settings>bbp style pack>Forum Display item 11
and you can change the forums per page.
In reply to: Error 404 when navigating pageIt 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.
In reply to: How to hide avatars in the list of topicsok
In reply to: Tell me how to keep the navigation bar out of sight!great
In reply to: How to reorder topics in one forum?did it hide the topics in that forums or in all forums?
In reply to: Get Number of Favorites & Subscription to a topichmm, 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