Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 3,126 through 3,150 (of 32,453 total)
  • Author
    Search Results
  • #208013
    telium
    Participant

    (I also tried converting all of my phpBB tables to utf8mb_unicode_ci but that didn’t help).

    The onscreen status is very high level. Is there an import log somewhere that might provide more details- pointing to something I can fix? I’m comfortable altering the MySQL structure of phpBB if needed.

    #208010
    telium
    Participant

    I have a fresh bbPress install and want to import everything possible from my phpBB version 3.2.4 installation. The import runs and step 8 is importing lots of anonymous topic authors.

    However, why aren’t my users importing? Based on other posts I ensure no topics/threads are attributed to founders/moderators/admins. (I created a single founder account and downgraded everyone else).

    I see some references to a 3rd party import script, and other references saying its not needed. Can someone help? It’s Jan 15 2020 and I have the latest bbPress. Note sure hot to proceed.

    Excerpt from log:

    6.No forum subscriptions to import
    5.All forum parents imported100%
    5.Calculating forum hierarchy (0 through 11 of 11)0%
    4.All forums imported100%
    4.Converting forums (0 through 16 of 16)0%
    3.No passwords to clear
    2.No users to import
    1.Skipping sync-table clean-up
    #207966
    stevehammatt
    Participant

    I’m also starting to have a similar problem. Some posts (rather than replies) are being held for moderation. It would be awfully helpful if bbPress could email the admin when this happens, rather than the admin having to spot hidden posts.

    This never used to happen before. I had no words in my moderation list or blacklist in comments, and a maximum of 2 links specified in the Discussion settings. A post just got held earlier today with only one link in the post, so I don’t know why this is happening. I’ve experimented with increasing the number of links allowed.

    I will also consider the code snippet above – thanks for that.

    mvaneijgen
    Participant

    @johnjamesjacoby do you have any tips on where to start tweaking? You’ve said that it’s almost correct, but I’ve no idea where to start with this code.

    #207869
    samtime
    Participant

    Hi, When a moderator edits a Topic in the WordPress Dashboard, there’s a section near the bottom with the Replies in it. However it also reveals user’s email and IP addresses.

    Forum Replies

    Is there a way to hide the emails and IP’s in this section for moderators?
    I’ve already hidden IP’s on the front end for mods by editing some code related to the loop-single-reply.php (more info here, thank you Robin).

    Or, is there a way to make the Replies box that appears there turned off by default for moderators, under the screen options?
    Screen Options

    Thank you, Sam

    #207867
    danielsgirl
    Participant

    Solved this with:

    
    .fusion-content-widget-area .button {
        margin-left: 0px;
    }
    
    body .fusion-content-widget-area .button {
        margin-left: 0px;
    }
    #207852
    Robin W
    Moderator

    add this to the custom css area of your theme

    #sidebar .bbp-login-form label {
    	width: 200px !important ;
    }
    Robin W
    Moderator

    so the code above (which I assume is the new color) is saved in custom css tab?

    #207814
    Robin W
    Moderator

    just

    #bbp-forum-9201 {
    display : none !important ;
    
    }

    should do it

    Robin W
    Moderator

    yes, that’s an issue with 2.6.x where bbpress uses a min file – they are working on a fix, but in the meantime put this in the custom css tab of the style pack plugin

    #bbpress-forums .status-closed, #bbpress-forums .status-closed a {
    	background-color: #fdd !important;
    }
    #207727
    cr53
    Participant

    Hi Robin, thanks for your reply.

    I’ve tried using the CSS you provided in both the bbPress Style Pack Custom CSS tab and in my theme’s Custom CSS area and neither were successful at hiding the breadcrumbs on the forum home page.

    When I inspect the breadcrumbs element I’m looking to hide/remove, I see that it’s labelled;

    <span class="bbp-breadcrumb-current">Forums</span>

    I would like to show the current breadcrumb on all further pages, however no breadcrumbs on the forum homepage.

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

Viewing 25 results - 3,126 through 3,150 (of 32,453 total)
Skip to toolbar