Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 2,951 through 2,975 (of 32,453 total)
  • Author
    Search Results
  • #209706
    Robin W
    Moderator

    the 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 🙂

    #209705
    mrmillercoach
    Participant

    I 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.

    #209704
    Robin W
    Moderator

    @mrmillercoach – do you need help for you to code it, or someone to code it for you ?

    robertstaddon
    Participant

    This 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'];
    
    #209661
    Robin W
    Moderator
    #209656
    Robin W
    Moderator

    Put this in your child theme’s function file – or use

    Code Snippets

    
    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;
    }
    oibc
    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?

    winchester234
    Participant

    Hi,

    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:

    Vanlife Community Forum

    The theme I’m currently using is Newspaper by TagDiv.

    Many thanks,
    Francesco

    #209626
    levangelista2013
    Participant

    Same 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.

    drjohndimi
    Participant

    I 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.

    #209609
    adishor22
    Participant

    I 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.

    #209608
    Mohamad Zidani
    Participant

    No 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/

    #209606
    Mohamad Zidani
    Participant

    https://infocontact.ma/communaute/f/beaute-mode/

    #209605

    In reply to: writing to contents

    Robin W
    Moderator

    code that works is never bad !!

    thanks for posting the final solution, and great that it works !

    #209604

    In reply to: writing to contents

    Clivesmith
    Participant

    Just 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 );
    
    #209603

    In reply to: writing to contents

    Robin W
    Moderator

    the $post array does not exist in this function

    try

    if (get_post_type ($post_id) == bbp_get_reply_post_type() ) {

    #209599

    In reply to: writing to contents

    Robin W
    Moderator

    try 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 );
    #209598
    SirLouen
    Participant

    Is it possible to apply the post moderation just to certain flagged users?
    I see that this is possible by keywords:

    Moderation and BlackListing

    But cannot find any specific info regarding users.

    #209587
    Robin W
    Moderator

    add 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

    #209586
    mattiejas
    Participant

    I 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.

    #209583

    In reply to: Managing too long URL

    webcreations907
    Participant

    How about the below?

    
    
    #bbpress-forums div.bbp-reply-content a, 
    #bbpress-forums div.bbp-topic-content a{
    	word-wrap: break-word;
    }
    
    
    #209571

    In reply to: writing to contents

    Robin W
    Moderator

    something 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 ;
    }
    #209570
    kasperdalkarl
    Participant

    I 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,
    		)
    	);
    }
    #209565
    kasperdalkarl
    Participant

    Thanks 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!

    #209563
    kasperdalkarl
    Participant

    Hi!

    I was wondering if anyone knows how to allow users to align text in posts/threads?
    Right now it just comes out as raw code text:
    <p style=”text-align: center;”>Test test test</p>

    I have been trying to mess a bit in /wp-content/plugins/bbpress/includes/common/formatting.php but to no success. Does anyone have a suggestion on how to allow p style and text alignments?

    Thank you!

Viewing 25 results - 2,951 through 2,975 (of 32,453 total)
Skip to toolbar