Search Results for 'code'
-
AuthorSearch Results
-
March 26, 2020 at 1:12 pm #209712
In reply to: Redirection after registration
Robin W
Moderatoror use
March 26, 2020 at 12:02 pm #209706In reply to: global auto unsubscribe method needed
Robin W
Moderatorthe problem is that there are dozens and dozens of membership plugins, each with its own bespoke code that it uses when members leave. Some will have a hook that a coder can link to, but it is specific to that plugin, some have no hook, so it can only be a manual process, or one linked to a daily routine.
Without knowing which membership plugin and knowing if it has a hook, it is impossible to answer this question.
in all cases it will be ‘custom code’ whether written by you or someone else 🙂
March 26, 2020 at 11:46 am #209705In reply to: global auto unsubscribe method needed
mrmillercoach
ParticipantI was wondering whether anyone had come up with a solution. This is not an unusual problem.
I did find this plugin https://en-gb.wordpress.org/plugins/bbp-toolkit/ which I will try.
I really do not want to generate custom code.
March 26, 2020 at 11:42 am #209704In reply to: global auto unsubscribe method needed
Robin W
Moderator@mrmillercoach – do you need help for you to code it, or someone to code it for you ?
March 25, 2020 at 2:51 pm #209690robertstaddon
ParticipantThis typo still exists, which continues to publicly display Private or Scheduled sticky posts in the latest version of bbPress 2.6.4.
It can be easily fixed by correcting line 404 of the “bbpress/includes/topics/template.php” file to set $sticky_query[‘perm’] instead of $sticky_query[‘post_status’].
This is the correct code that works:
// Allowed statuses, or lean on the 'perm' argument (probably 'readable') $sticky_query['perm'] = bbp_get_view_all( 'edit_others_topics' ) ? $r['post_status'] : $r['perm'];March 24, 2020 at 2:15 pm #209661In reply to: How can I create new user groups in bbpress?
Robin W
ModeratorMarch 24, 2020 at 6:08 am #209656In reply to: BBpress 2.6.1 translations issue
Robin W
ModeratorPut this in your child theme’s function file – or use
add_filter( 'gettext', 'rew_bbpress_translate', 20 , 3 ); add_filter( 'ngettext', 'rew_bbpress_translate' , 20 , 3 ); function rew_bbpress_translate( $translated, $text, $domain ) { if ($domain == 'bbpress') { $words = array( '%s day' => '%s jour', '%s days' => '%s jours', 'Last Post' => 'Dernier message', ); $translated = str_replace( array_keys($words), $words, $translated ); } return $translated; }March 24, 2020 at 2:42 am #209646oibc
Participant@jack_tyler
@wpweaver
I have the same and other problem.
would you pls help me?I am wondering if is there any existing feature on the BBPress to have a login, register, forgot password, email confirmation only in front-end? I know that there are [bbp-login], [bbp-register], and [bbp-lost-pass] short-codes that you can place in the page so that it will display on the front-end but the issue is when user enters an incorrect password or account, it will redirect to admin login. What I wanted is to stay always in the front-end. Or do you have any suggestion what plugin I can use that and compatible?
I like plugin “Weaver for bbPress” .
but some problems happens after I installed the plugin “Weaver for bbPress” .
May I ask?
1.It is OK that a new user(registered) logged in from frontend,and hide the wp-admin. But after logout ,”Sorry, you don’t have permission to view this profile.”shown on http://mysite.com/forums/users/oi/subscriptions/?loggedout=true
2. It is OK that admin logged in from frontend. But after logout ,”Sorry, you don’t have permission to view this profile.”shown on http://mysite.com /forums/users/oi/subscriptions/?loggedout=true .
3. when user enters an incorrect password or account, it will redirect to admin login.What I wanted is to stay always in the front-end. Or do you have any suggestion what plugin I can use that and compatible?
March 23, 2020 at 6:44 pm #209642winchester234
ParticipantHi,
My issue is that when I add the forum root at the forum settings, the page displays the following error in the header and the footer of the page:
Notice: Undefined property: WP_Post_Type::$post_type in /home1/smilingsun/public_html/vanlifemagazine.co/wp-content/plugins/td-composer/includes/shortcodes/vc_row.php on line 415
The page is at:
The theme I’m currently using is Newspaper by TagDiv.
Many thanks,
FrancescoMarch 23, 2020 at 9:04 am #209626In reply to: Threaded Replies – Still not working
levangelista2013
ParticipantSame problem: not possibile to replay to a replay. I get a message saying (I translate from Italian) ‘you don’t have the permissions. the variable does not match’. As I am unable to deal with the code, I will use a different plugin.
March 23, 2020 at 6:01 am #209618Topic: bbPress Required Profile Fields – What’s the code?
in forum Troubleshootingdrjohndimi
ParticipantI have searched online for days and I have not found how to make profile fields mandatory/required by users so that if they don’t complete those fields they cannot use the forum.
I’m sure there are code ninjas out there that have done this in their sleep or just know how to do it, so can you please the code and where to find/replace them?
Thank you so much.
JD
– If I have my way, I’d rather not have yet another plugin installed for this. Thanks.March 22, 2020 at 5:56 pm #209609In reply to: BBPress Notifications not Clearing Up
adishor22
ParticipantI have this problem too, and it also occurs on another, larger bbPress forum where I am a moderator.
I’ve asked someone who knows PHP to take a look at the code in bbpress/includes/extend/buddypress/notifications.php, but the couldn’t find any problem there.
I’m not sure if they were onto something or not, but they said the bug might originate in an incorrect reference to the database topic/post IDs, similarly to what @nikbond said above.
Robin’s solution above does not seem to work for me either.
March 22, 2020 at 3:15 pm #209608In reply to: Topics not showing in FrontEnd
Mohamad Zidani
ParticipantNo there is an other topic but its not showed, i can see it in wp-admin.
This
https://infocontact.ma/communaute/t/evenements-sur-casablanca/March 22, 2020 at 3:04 pm #209606In reply to: Topics not showing in FrontEnd
Mohamad Zidani
Participanthttps://infocontact.ma/communaute/f/beaute-mode/March 22, 2020 at 11:26 am #209605In reply to: writing to contents
Robin W
Moderatorcode that works is never bad !!
thanks for posting the final solution, and great that it works !
March 22, 2020 at 11:16 am #209604In reply to: writing to contents
Clivesmith
ParticipantJust to update, all seems to be working so I thought I would share this. I am sure the coding is bad but it works !!
I am the only one that can create topics, I moderate all replies and want to add to the end of each reply ‘#plasticfree’ and a custom metadata value for each topic that I put in when I create a topic.
This means that the hashtag and twitter name goes out with the RSS feed to tiwtter etc.
Thank you Robin for all your help./*** To add #plasticfree and twitter name to reply ***/ function waa_content( $content, $post_id ){ // get the topic id $post_id = get_the_ID(); $reply_topic_id = bbp_get_reply_topic_id( $post_id ); // get value from table $twitname = get_post_meta( $reply_topic_id, 'bbp_twitname', true ); $twithash = '#plasticfree'; $post = get_post($id); if ($post->post_type =='reply'){ $pos = strpos($content, '#plasticfree'); if ($pos == false) { $content .= '<br>'. $twithash .' ' .$twitname; } } return $content; } add_filter( 'content_edit_pre', 'waa_content', 10, 2 );March 22, 2020 at 10:12 am #209603In reply to: writing to contents
Robin W
Moderatorthe $post array does not exist in this function
try
if (get_post_type ($post_id) == bbp_get_reply_post_type() ) {March 22, 2020 at 9:27 am #209599In reply to: writing to contents
Robin W
Moderatortry this
function waa_content( $content, $post_id ) { $extra_text = 'hello' ; //append extra text to the end of reply content $content.= $extra_text ; return content ; } add_filter( 'content_edit_pre', 'waa_content', 10, 2 );March 22, 2020 at 8:27 am #209598Topic: How can I limit some users from direct posting
in forum TroubleshootingManuel Camargo
ParticipantIs it possible to apply the post moderation just to certain flagged users?
I see that this is possible by keywords:But cannot find any specific info regarding users.
March 22, 2020 at 5:22 am #209587In reply to: Forum statistics styling
Robin W
Moderatoradd this to the custom css of your theme
#bbp_stats_widget-2 dt { float : left ; } li#bbp_stats_widget-2.widget-container.widget_display_stats dl dd strong { padding-left : 10px ; } li#bbp_stats_widget-2.widget-container.widget_display_stats dl dd { margin-bottom : 5px ; }you can adjust the number in margin-bottom : 5px ; to get the separation between lines that you want
March 22, 2020 at 5:19 am #209586In reply to: BBPress Notifications not Clearing Up
mattiejas
ParticipantI have the same problem on my website also with bbPress 2.6.4 and BuddyPress 5.1.2. @robin-w Thanks for the suggested fix. Unfortunately, inserting your code into my child theme’s functions.php did not fix the problem for me.
March 22, 2020 at 1:51 am #209583In reply to: Managing too long URL
webcreations907
ParticipantHow about the below?
#bbpress-forums div.bbp-reply-content a, #bbpress-forums div.bbp-topic-content a{ word-wrap: break-word; }March 21, 2020 at 11:59 am #209571In reply to: writing to contents
Robin W
Moderatorsomething like this should do it
add_filter( 'bbp_new_reply_pre_content', 'my_function' ); function my_function ($reply_content) { $extra_text = 'hello' ; //append extra text to the end of reply content $reply_content.= $extra_text ; return $reply_content ; }March 21, 2020 at 11:30 am #209570In reply to: Allow HTML tags in Post for All Users
kasperdalkarl
ParticipantI actually found a solution by trying some stuff out.
Go to this file: …/wp-content/plugins/bbpress/includes/common/formatting.php
And at the bottom of that file, add this:
add_filter( 'bbp_kses_allowed_tags', 'ntwb_bbpress_custom_kses_allowed_tags' ); function ntwb_bbpress_custom_kses_allowed_tags() { return array( // Links 'a' => array( 'class' => true, 'href' => true, 'title' => true, 'rel' => true, 'class' => true, 'target' => true, ), // Quotes 'blockquote' => array( 'cite' => true, ), // Div 'div' => array( 'class' => true, ), // Span 'span' => array( 'class' => true, 'style' => true, ), // Paragraph 'p' => array( 'class' => true, 'style' => true, ), // Code 'code' => array(), 'pre' => array( 'class' => true, ), // Formatting 'em' => array(), 'strong' => array(), 'del' => array( 'datetime' => true, ), // Lists 'ul' => array(), 'ol' => array( 'start' => true, ), 'li' => array(), // Images 'img' => array( 'class' => true, 'src' => true, 'border' => true, 'alt' => true, 'height' => true, 'width' => true, ), // Tables 'table' => array( 'align' => true, 'bgcolor' => true, 'border' => true, ), 'tbody' => array( 'align' => true, 'valign' => true, ), 'td' => array( 'align' => true, 'valign' => true, ), 'tfoot' => array( 'align' => true, 'valign' => true, ), 'th' => array( 'align' => true, 'valign' => true, ), 'thead' => array( 'align' => true, 'valign' => true, ), 'tr' => array( 'align' => true, 'valign' => true, ) ); }March 21, 2020 at 9:06 am #209565In reply to: Allow HTML tags in Post for All Users
kasperdalkarl
ParticipantThanks for posting this. I installed the plugin, and added
// Paragraph 'p' => array( 'class' => true, 'style' => true,But sadly I still get this in cleartext:
<p style=”text-align: center;”>Test 3</p>Any suggestions? Thanks!
-
AuthorSearch Results