Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 3,201 through 3,225 (of 32,517 total)
  • Author
    Search Results
  • #207721
    tkdgns1106
    Participant

    Is there a way to search for topics within that forum ??

    For example

    Dogs (Forum 1)

    Cute puppies (topic 1)
    My dog ​​(topic 2)
    Cat vs Dog (Topic 3)

    Cat (forum2)

    Cute Cats (Topics 1)
    My cat (topic 2)
    Cat vs dog

    Forum 1 and 2 Nested Cats vs. Dogs.
    Is there a way to search only topics (topci 1-3) within dog forum ??

    I personally think bbpress is very good and I respect all the developers here.

    You can’t speak English without knowing the code. I still read and post posts through the translator.

    Would you please kindly let me know?

    #207719
    Robin W
    Moderator

    Put this in the custom css tab of style pack or your theme’s custom css area

    .forum-archive div.bbp-breadcrumb {
    display : none ;
    }
    #207687

    In reply to: bbpress control bar

    Voice4Vision
    Participant

    Ok…limitedly tested, so please test further before going live. I have also added tooltips for those using this to easily identify the purpose of each image. Be advised, I am no developer…so you’re on your own. I can not confirm if this causes any security issues. I have been having issues creating this post due to

    ERROR: Duplicate reply detected; it looks as though you’ve already said that.

    Please disregard all previous attempts and keep this latest post!

    1) Put the code at the bottom of your child theme’s functions.php file.
    2) You will need to use your own icons or images.
    3) All image titles are hard-coded, so either ensure all images are renamed or edit the snippet accordingly.

    add_filter ('bbp_before_get_topic_edit_link_parse_args' , 'my_edit_topic_filter', 10 , 1 ) ;
    function my_edit_topic_filter ($args) {
    	$args['edit_text'] = '<img src="../../wp-content/themes/dna-child/images/edit.png" style="cursor:pointer;" title="EDIT">' ;
    return $args ;
    }
    add_filter ('bbp_before_get_topic_merge_link_parse_args' , 'my_merge_topic_filter', 10 , 1 ) ;
    function my_merge_topic_filter ($args) {
    	$args['merge_text'] = '<img src="../../wp-content/themes/dna-child/images/merge.png" style="cursor:pointer;" title="MERGE">' ;
    return $args ;
    }
    add_filter ('bbp_before_get_topic_close_link_parse_args' , 'my_close_topic_filter', 10 , 1 ) ;
    function my_close_topic_filter ($args) {
    	$args['close_text'] = '<img src="../../wp-content/themes/dna-child/images/close.png" style="cursor:pointer;" title="LOCK">' ;
    	$args['open_text'] = '<img src="../../wp-content/themes/dna-child/images/open.png" style="cursor:pointer;" title="UNLOCK">' ;
    return $args ;
    }
    add_filter ('bbp_before_get_topic_stick_link_parse_args' , 'my_stick_topic_filter', 10 , 1 ) ;
    function my_stick_topic_filter ($args) {
    	$args['stick_text'] = '<img src="../../wp-content/themes/dna-child/images/stick.png" style="cursor:pointer;" title="STICKY">' ;
    	$args['unstick_text'] = '<img src="../../wp-content/themes/dna-child/images/unstick.png" style="cursor:pointer;" title="UNSTICKY">' ;
    	$args['super_text'] = '<img src="../../wp-content/themes/dna-child/images/super.png" style="cursor:pointer;" title="GLOBAL STICKY">' ;
    return $args ;
    }
    add_filter ('bbp_before_get_topic_trash_link_parse_args' , 'my_trash_topic_filter', 10 , 1 ) ;
    function my_trash_topic_filter ($args) {
    	$args['trash_text'] = '<img src="../../wp-content/themes/dna-child/images/trash.png" style="cursor:pointer;" title="TRASH">' ;
    	$args['restore_text'] = '<img src="../../wp-content/themes/dna-child/images/restore.png" style="cursor:pointer;" title="RESTORE">' ;
    	$args['Delete_text'] = '<img src="../../wp-content/themes/dna-child/images/delete.png" style="cursor:pointer;" title="DELETE">' ;
    return $args ;
    }
    add_filter ('bbp_before_get_topic_spam_link_parse_args' , 'my_spam_topic_filter', 10 , 1 ) ;
    function my_spam_topic_filter ($args) {
    	$args['spam_text'] = '<img src="../../wp-content/themes/dna-child/images/spam.png" style="cursor:pointer;" title="SPAM">' ;
    	$args['unspam_text'] = '<img src="../../wp-content/themes/dna-child/images/unspam.png" style="cursor:pointer;" title="UNSPAM">' ;
    return $args ;
    }
    add_filter ('bbp_before_get_topic_approve_link_parse_args' , 'my_approve_topic_filter', 10 , 1 ) ;
    function my_approve_topic_filter ($args) {
    	$args['approve_text'] = '<img src="../../wp-content/themes/dna-child/images/approve.png" style="cursor:pointer;" title="APPROVE">' ;
    	$args['unapprove_text'] = '<img src="../../wp-content/themes/dna-child/images/unapprove.png" style="cursor:pointer;" title="DISAPPROVE">' ;
    return $args ;	
    }
    add_filter ('bbp_before_get_topic_reply_link_parse_args' , 'my_reply_topic_filter', 10 , 1 ) ;
    function my_reply_topic_filter ($args) {
    	$args['reply_text'] = '<img src="../../wp-content/themes/dna-child/images/reply.png" style="cursor:pointer;" title="REPLY">' ;
    return $args ;	
    }
    add_filter ('bbp_before_get_topic_split_link_parse_args' , 'my_split_topic_filter', 10 , 1 ) ;
    function my_split_topic_filter ($args) {
    	$args['split_text'] = '<img src="../../wp-content/themes/dna-child/images/split.png" style="cursor:pointer;" title="SPLIT">' ;
    return $args ;	
    }
    add_filter ('bbp_before_get_reply_edit_link_parse_args' , 'my_edit_reply_filter', 10 , 1 ) ;
    function my_edit_reply_filter ($args) {
    	$args['edit_text'] = '<img src="../../wp-content/themes/dna-child/images/edit.png" style="cursor:pointer;" title="EDIT">' ;
    return $args ;
    }
    add_filter ('bbp_before_get_reply_move_link_parse_args' , 'my_move_reply_filter', 10 , 1 ) ;
    function my_move_reply_filter ($args) {
    	$args['split_text'] = '<img src="../../wp-content/themes/dna-child/images/move.png" style="cursor:pointer;" title="MOVE">' ;
    return $args ;
    }
    add_filter ('bbp_before_get_reply_close_link_parse_args' , 'my_close_reply_filter', 10 , 1 ) ;
    function my_close_reply_filter ($args) {
    	$args['close_text'] = '<img src="../../wp-content/themes/dna-child/images/close.png" style="cursor:pointer;" title="LOCK">' ;
    	$args['open_text'] = '<img src="../../wp-content/themes/dna-child/images/open.png" style="cursor:pointer;" title="UNLOCK">' ;
    return $args ;
    }
    add_filter ('bbp_before_get_reply_trash_link_parse_args' , 'my_trash_reply_filter', 10 , 1 ) ;
    function my_trash_reply_filter ($args) {
    	$args['trash_text'] = '<img src="../../wp-content/themes/dna-child/images/trash.png" style="cursor:pointer;" title="TRASH">' ;
    	$args['restore_text'] = '<img src="../../wp-content/themes/dna-child/images/restore.png" style="cursor:pointer;" title="RESTORE">' ;
    	$args['delete_text'] = '<img src="../../wp-content/themes/dna-child/images/delete.png" style="cursor:pointer;" title="DELETE">' ;
    return $args ;
    }
    add_filter ('bbp_before_get_reply_spam_link_parse_args' , 'my_spam_reply_filter', 10 , 1 ) ;
    function my_spam_reply_filter ($args) {
    	$args['spam_text'] = '<img src="../../wp-content/themes/dna-child/images/spam.png" style="cursor:pointer;" title="SPAM">' ;
    	$args['unspam_text'] = '<img src="../../wp-content/themes/dna-child/images/unspam.png" style="cursor:pointer;" title="UNSPAM">' ;
    return $args ;
    }
    add_filter ('bbp_before_get_reply_approve_link_parse_args' , 'my_approve_reply_filter', 10 , 1 ) ;
    function my_approve_reply_filter ($args) {
    	$args['approve_text'] = '<img src="../../wp-content/themes/dna-child/images/approve.png" style="cursor:pointer;" title="APPROVE">' ;
    	$args['unapprove_text'] = '<img src="../../wp-content/themes/dna-child/images/unapprove.png" style="cursor:pointer;" title="DISAPPROVE">' ;
    return $args ;	
    }
    add_filter ('bbp_before_get_reply_to_link_parse_args' , 'my_reply_to_filter', 10 , 1 ) ;
    function my_reply_to_filter ($args) {
    	$args['reply_text'] = '<img src="../../wp-content/themes/dna-child/images/reply.png" style="cursor:pointer;" title="REPLY">' ;
    return $args ;	
    }
    #207681
    Milan Petrovic
    Participant

    Plugin lists all supported BBCodes and variants. What exactly is not working, can you post some examples?

    #207680

    In reply to: Default image topic

    Danishsard
    Participant

    Hey, I don’t have a child theme

    I can edit any code. The template for my skin is Anima

    Pictures are default which is added in the post.

    #207678
    Chuckie
    Participant

    I found @gdragon thaat some bbcodes don’t seem to work. Would this be due to my theme?

    #207670
    commium
    Participant

    WP 5.3.2
    Buddypress 5.1.2
    Website https://connect.commium.fr/
    Theme : Woffice wordpress

    Hi guys,

    I’m beginner developper and i have a problem which i’m trying to solve on my website, i created a function to show groups website statistics on their group -> stats tab on group page, the thing work perfectly with an embedded public stats API, but i want to show theses tab on user dashboard too, not only on group -> stats tab, so i tried to copy past the function display() but it didn’t work, the $setting variable and $setting2 variable are NULL..

    Someone can help me on this problem please, you can check the code below for more informations :

    function stats() {
    	
    if ( bp_is_active( 'groups' ) ) :
     
    class Entreprise_Statistiques extends BP_Group_Extension {
        /**
         * Your __construct() method will contain configuration options for 
         * your extension, and will pass them to parent::init()
         */
        function __construct() {
            $args = array(
                'slug' => 'entreprise_statistiques',
                'name' => 'Statistiques',
            );
            parent::init( $args );
        }
     
        /**
         * display() contains the markup that will be displayed on the main 
         * plugin tab
         */
    
    	
    	
        function display( $group_id = NULL ) {
    		$setting = groups_get_groupmeta( $group_id, 'entreprise_statistiques_setting' );
    		$setting2 = groups_get_groupmeta( $group_id, 'entreprise_statistiques_setting2' );
            $group_id = bp_get_group_id();
    		?>
    			
    		<script>
    		StatHatEmbed=new function(){function d(){var a=document.getElementsByTagName("script");return a[a.length-1]}function e(a,b){var d=document.createElement("script"),c="//www.stathat.com/embed/"+a+"/"+b.s1;b.dev&&(c="//localhost:8081/embed/"+a+"/"+b.s1);b.s2&&(c+="/"+b.s2);b.s3&&(c+="/"+b.s3);c+="?w="+b.w+"&h="+b.h+"&tf="+b.tf;b.style&&(c+="&style="+b.style);b.dev&&(c+="&dev=1");b.title&&(c+="&title="+b.title);d.src=c;d.type="text/javascript";document.getElementsByTagName("head")[0].appendChild(d)}function f(a){return[a.s1,
    		a.s2,a.s3,a.w,a.h,a.tf,a.style].join("_")}this.render_graph=function(a){DIV_ID="statd_embed_graph_"+f(a);d().insertAdjacentHTML("AfterEnd","<div id='"+DIV_ID+"' style='display:none'></div>");e("graph",a)};this.render_histogram=function(a){DIV_ID="statd_embed_histogram_"+f(a);d().insertAdjacentHTML("AfterEnd","<div id='"+DIV_ID+"' style='display:none'></div>");e("histogram",a)};this.render_data=function(a){DIV_ID="statd_embed_data_"+f(a);d().insertAdjacentHTML("AfterEnd","<div id='"+DIV_ID+"' style='display:none'></div>");
    		e("data",a)};this.render_table=function(a){DIV_ID="statd_embed_table_"+f(a);d().insertAdjacentHTML("AfterEnd","<div id='"+DIV_ID+"' style='display:none'></div>");e("table",a)};this.render_text=function(a){DIV_ID=["statd_embed_text",a.s1,a.u].join("_");d().insertAdjacentHTML("AfterEnd","<div id='"+DIV_ID+"' style='display:none'></div>");e("text",a)};this.render=function(a){a.tf||(a.tf="week_compare");a.kind||(a.kind="graph");switch(a.kind){case "graph":this.render_graph(a);break;case "histogram":this.render_histogram(a);
    		break;default:this.render_graph(a)}}};
    
    		</script>
    		<div id="stats">
    		<script>StatHatEmbed.render({s1: '<?php echo($setting); ?>', w: 760, h: 235, tf:'month_compare', style:'fill', title:'<?php echo($setting2); ?>'});</script>
    		</div>
    
    		<?php
    		
    		if ($setting == NULL) {
    			echo ("Aucun site internet détecté, merci de contacter l'équipe COMMIUM.");
    		}
        }
     
        /**
         * Création
         */
        function settings_screen( $group_id = NULL ) {
            $setting = groups_get_groupmeta( $group_id, 'entreprise_statistiques_setting' );
    		$setting2 = groups_get_groupmeta( $group_id, 'entreprise_statistiques_setting2' );
     
            ?>
    				<input type="text" name="entreprise_statistiques_setting2" id="entreprise_statistiques_setting2" placeholder="Nom d'entreprise"><?php echo esc_attr( $setting2 ) ?></input>
    				<input type="text" name="entreprise_statistiques_setting" id="entreprise_statistiques_setting"placeholder="Code suivi"><?php echo esc_attr( $setting ) ?></input>
            <?php
    			$settingInfo = $_POST['entreprise_statistiques_setting'];
    			$settingInfo2 = $_POST['entreprise_statistiques_setting2'];
        }
    	function settings_screen_save( $group_id = NULL ) {
    		$setting = '';
    		$setting2 = '';
    
    		if ( isset( $_POST['entreprise_statistiques_setting']) && isset($_POST['entreprise_statistiques_setting2'] ) ) {
    			$setting = $_POST['entreprise_statistiques_setting'];
    			$setting2 = $_POST['entreprise_statistiques_setting2'];
    		}
    
    		groups_update_groupmeta( $group_id, 'entreprise_statistiques_setting', $setting );
    		groups_update_groupmeta( $group_id, 'entreprise_statistiques_setting2', $setting2 );
    		}
    	}
    bp_register_group_extension( 'Entreprise_Statistiques' );
     
    endif; // if ( bp_is_active( 'groups' ) )
    }
    echo stats();
    #207668
    Robin W
    Moderator

    the code is for a previous version of bbpress.

    try this :

    #wp-link p.howto {
    	display: none;
    }
    
    #search-panel {
    display : none ;
    }
    #207667

    In reply to: bbpress control bar

    Robin W
    Moderator

    ok, so the first bbpress file (there will be another for replies) that we need to filter is :

    incudes/topics/templates.php

    if you open and look at the file on line 2425 you’ll find the function that does the edit topic link.

    Within this is a function that bbpress uses to let us filter parameters (called bbp_parse_args)

    it looks like this

    // Parse arguments against default values
    		$r = bbp_parse_args( $args, array(
    			'id'           => 0,
    			'link_before'  => '',
    			'link_after'   => '',
    			'edit_text'    => esc_html__( 'Edit', 'bbpress' )
    		), 'get_topic_edit_link' );

    you’ll see the word ‘Edit’ is contained in the ‘edit_text’ parameter, so it is this that we need to amend.

    we can use a filter to change what this says, so we don’t need to amend that file- so this code put in your child theme functions file

    add_filter ('bbp_before_get_topic_edit_link_parse_args' , 'my_edit_topic_filter', 10 , 1 ) ;
    
    function my_edit_topic_filter ($args) {
    	$args['edit_text'] = 'this' ;
    
    return $args ;
    
    }

    will change ‘EDIT’ to ‘THIS’

    The parameter is effectively output on line 2455 in

    $retval = $r['link_before'] . '<a href="' . esc_url( $uri ) . '">' . $r['edit_text'] . '</a>' . $r['link_after'];

    so if $r[‘edit_text’] outputs the icon, then you are on the way. If the icon is an image, then using html img etc. in the function above should be good.

    let me know that you make progress with this approach – or come back.

    If you fix that one, I’ll help you work out the rest 🙂

    #207666
    Brindell
    Participant

    I am having the same issue. Would like to remove link to existing content when people add links. The code above does not seem to do anything.

    Thanks

    #207664
    tkdgns1106
    Participant

    Hello I am a bbpress fan. Personally I think it’s a really cool plugin.
    Nonetheless, I want to use the search form in the bbpress.org sidebar.

    So I used search-form using the code in the sidebar through the bb-base theme answered in last topic.

    However, I can’t search in Chinese, Japanese, etc. other than English and numbers.

    I do not live in an English-speaking country. So I searched for 3 days to solve the problem but couldn’t find the answer.

    What I want is to search for a topic in the forum or to find a reply in an answer.

    Can you tell me how to modify bb-base (sidebar search) to search in other languages ​​..?

    Or is there another alternative?

    Help the esteemed bbpress developer ..

    mvaneijgen
    Participant

    @johnjamesjacoby I’ve created a Gist of the code that we currently have which is working on version 2.5.x, this way everyone has easy access to everything needed.

    https://gist.github.com/mvaneijgen/6437dc91d2778ec6fb9f2eb579756bd7

    Now I would love to know where to start thinkering to get this working for version 2.6.x and hopefully get it implemented in version 2.7.x

    #207586

    In reply to: Default image topic

    Danishsard
    Participant

    Hello, can anyone know how to do this for example by adding code fo functions? Or in another way?

    #207565
    Milan Petrovic
    Participant

    My GD bbPress Tools implements BBCodes: https://wordpress.org/plugins/gd-bbpress-tools/ and many other things.

    And I have GD bbPress Toolbox Pro plugin that adds even more BBCodes, it is linked from the free plugin page, so check it out also.

    #207560
    bigealien
    Participant

    Hello everyone.

    I have bbpress as my forum plugin for my website and I’ve been wanting to implement BBCode for BBPress. I currently have the BBCode Deluxe plugin installed on my site which seemed to have great reviews and is updated. However I had an issue getting it to work. See my question I posted on Reddit – maybe one of you would be able to answer it.

    reddit question

    But I was thinking if BBCode Deluxe is not a good plugin for this purpose or there is a better / simpler one, then maybe someone will know about it here.

    Thank you in advance for everything!

    Link to my site : siliren.com

    devsam
    Participant

    Solved by deleting the code lines on wp-content/plugins/bbpress/templates/default/bbpress/form-anonymous.php

    #207542
    samtime
    Participant

    Okay, turned out the WooCommerce plugin was hiding the WordPress toolbar/dashboard in this situation.

    Fixed this by pasting the code below into my child theme’s functions.php file.
    Now the dashboard is available for bbPress moderators, but is still hidden for normal non-moderators, awesome!

    add_action('init', function(){
    if(class_exists('WooCommerce') && function_exists('bbp_get_user_role') && is_user_logged_in()){
    
    $current_user = wp_get_current_user();	
    $user_id = $current_user->ID;	
    $bbp_get_user_role = bbp_get_user_role($user_id);
    
    if($bbp_get_user_role == 'bbp_keymaster' || $bbp_get_user_role == 'bbp_moderator'){	
    add_filter( 'woocommerce_prevent_admin_access', '__return_false' );
    add_filter( 'woocommerce_disable_admin_bar', '__return_false' );
    }
    }
    });
    davelr1
    Participant

    Hi!

    After I update to 2.6.3 this shortcut is not showing topics anymore.
    I tried different ID’s but no topics under the tags is showing.

    This is the code that I’m trying:
    [bbp-single-tag id=377]

    It’s just me?

    Thank you

    #207493
    angrywarrior
    Blocked

    No @randrcomputers???

    How about edit the css styling and get it right instead?

    Changing the theme will not make much difference. You need to custom code the css to fit things to your liking.

    If you do not know how to do that and code it yourself, then I suggest that you hire developer to help you code it.

    #207492
    Robin W
    Moderator

    you will have a plugin or code in your theme that prevents the toolbar for non admins I suspect – have a look thorugh your plugins list or theme settings

    #207446
    audrey2112
    Participant

    Thanks, it work but I did this:

    #bbpress-forums .bbp-form label {
    display : none !important;
    }
    .youzer #bbpress-forums select {
    display : none !important;
    }

    But I don’t kown if it will affect something else in the forum… I hope it will be fixe in futur update of my plugins.

    Do you have a solution for the participant to be able to delete their own post?

    #207440
    Robin W
    Moderator

    ok, without knowing the cause, hard to say what to fix, but this will hide it

    a.bbp-reply-move-link  {
    display : none !important;
    }

    put this in the custom css part of your theme

    #207438
    audrey2112
    Participant

    Nothing much.

    I don’t really play in the files of my site and if I do, It was for these two problems. I have my child theme who I make some changes in the fonction.php files and I have some css in the astra theme, but I don’t think that’s the problem. I just deactivate Youzer to see if it’s there and yes, it’s still there. I just reset bbpress also and it’s still there. The participant can move the topics the another one.

    The changes I made recently was with elementor, some traduction with loco translate. So the problem can be there for a awhile and I just notice it recently.

    Can we just desable that fonction in the template of bbpress?

    And for the deleting post for the participant, is there a code that I can add to the fonction.php of my child theme?

    Thank you.

    #207435
    Robin W
    Moderator

    bboress has widgets for latest topics and latest replies

    My style pack plugin has latest activity widget and several shortcodes including one to display latest topics

    bbp style pack

    once activated go to

    dashboard>settings>bbp style pack>shortcodes
    dashboard>settings>bbp style pack>widgets

    for details

    #207432
    Robin W
    Moderator

    your theme is interfering 🙂

    you’ll need to look at section 8 of this, to get your theme to use the right page

    Step by step guide to setting up a bbPress forum – Part 1

Viewing 25 results - 3,201 through 3,225 (of 32,517 total)
Skip to toolbar