Forum Replies Created
-
In reply to: How to avoid SMTP server blocking?
agreed, but many ISP’s stop emails with lots of bcc’s in them, clearly that is not your issue then.
In reply to: How to hide the forum and its posts from visitorsvisbility hidden should make a forum only visible to moderators and keymasters
If you are not seeing that then 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: How to reorder topics in one forum?no problem
In reply to: How to avoid SMTP server blocking?did you try this?
In reply to: Add large avatar next to topic in one forum onlygreat glad you are fixed
In reply to: Attachments & Emoji +Test topic & postIn reply to: Redirection using the logon shortcodetry this
function rew_login_redirect_url ($redirect) { //quit if it's not a redirect if (strpos($_SERVER['REQUEST_URI'], '?redirect_to=') == false ) return $redirect; $redirect = 'url' ; return $redirect ; } add_filter ('bbp_user_login_redirect_to' , 'rew_login_redirect_url', 5 , 1) ;
change ‘url’ to where you want it to go
Put this in your child theme’s function file – or use
In reply to: Search Not Workinggreat – really pleased that you are fixed, and thanks for reporting back
In reply to: Add large avatar next to topic in one forum onlyif that code does what you want then just use the same logic you did in
eg
function rkk_topic_av() { $thisforumid = bbp_get_forum_id(); if($thisforumid == 43135) { echo bbp_get_topic_author_link( array( 'size' => '48' , 'type' => 'avatar')); } } add_action('bbp_theme_before_topic_title','rkk_topic_av');
In reply to: Date of created topic near the name of topicthe green bit can be achieved by
once activated go to
dashboard>settings>bbp style pack>Freshness Display
In reply to: Change forum date outputdashboard>settings>general>date format
bbpress just follows the WordPress format you set, as it presumes you want dates to look the same all over your site
otherwise
once activated go to
dashboard>settings>bbp style pack>Freshness Display lets you play with how it is displayed
In reply to: Get Number of Favorites & Subscription to a topicgreat – and thanks for posting the final solutions – I’m sure it will help someone else
In reply to: Get Number of Favorites & Subscription to a topicgreat – 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 ;