Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 4,401 through 4,425 (of 32,481 total)
  • Author
    Search Results
  • #190713

    In reply to: Freshness Date Format

    Robin W
    Moderator

    1. are you using code from above or my plugin https://wordpress.org/plugins/bbp-last-post/
    2. so you want some as a date and some as ‘since’ ?
    3. if so, which ones are which

    #190705

    In reply to: Text background

    Robin W
    Moderator

    try

    .bbp-the-content {
    	background-image: url("paper.gif") !important;
    }

    ie add the !important bit

    if that fails, then it is beyond general help !

    #190704

    In reply to: Text background

    markleeuw
    Participant

    1 fixed the code \/

    Image and video hosting by TinyPic

    2. i put my own image inside

    Image and video hosting by TinyPic

    but it is still black

    any ideas?

    #190697

    In reply to: Text background

    Robin W
    Moderator

    your css area is very picky, most just accept what they are given

    try

    .bbp-the-content {
    	background-image: url("paper.gif");
    }
    
    #190689
    Robin W
    Moderator

    not sure if it’s theme or plugin – maybe be a combination

    anyway if you are happy not to have the avatar showing in that line, then this fixes

    #bbpress-forums div.bbp-template-notice img.avatar {
    	float: left;
    }

    add it to your custom css.

    Yanur Islam Piash
    Participant

    I am using [theme-my-login] shortcode in login and register button in the top bar. And a caldera form shortcode in “contact us” button in the footer.

    You can see it here: https://www.bohubrihi.com/forum/support-forum/support-for-students/

    #190682

    In reply to: Text background

    Robin W
    Moderator

    add this to your custom css and alter the image to the one you want

    #bbpress-forums div.bbp-the-content-wrapper textarea.bbp-the-content {
    	background-image: url("paper.gif");
    }
    Robin W
    Moderator

    what shortcodes are you using ?

    Yanur Islam Piash
    Participant

    Hi,

    No shortcodes are working in the bbpress pages. The shortcodes are runnng very well in all other pages of my site. Just not working on bbpress topics, forums and replies pages. So I guess the problem is within bbpress. I tried to find out plugin conflict but no conflict was found.

    Here is one of my topic pages: click on the “Login” or “register” button in the top menu. A hover will appear where I put a shortcode that works well in any other pages. Also, you can click on “contact” in the footer to see another shortcode not working. No problem with the plugins created shortocode or the popup modal, as they are working just fine in all other pages.

    All the plugins, themes and applications are updated.

    #190653
    Robin W
    Moderator

    sorry – it needs to go in your theme’s functions file

    Functions files and child themes – explained !

    #190630
    Robin W
    Moderator

    ok, two wrong fixes, so I loaded it to my test site

    This works for me

    add_action ('bbp_theme_after_reply_author_admin_details', 'rew_add_email') ;
    
    function rew_add_email () {
    	$email = get_post_meta ( bbp_get_reply_id () , '_bbp_anonymous_email', true ) ;
    	if (!empty ($email))
    		echo '<p>'.$email ;
    }
    #190626
    Robin W
    Moderator

    This should work

    add_filter( 'bbp_after_get_the_content_parse_args', 'rew_disable_text_editor' );
    
    //editor bbpress
    function rew_disable_text_editor( $args = array() ) {
    	$args['tinymce'] = true;
    	$args['quicktags'] = false;
    	if( current_user_can('administrator')) $args['quicktags'] = true;
    	return $args;
    }

    add this to your functions file

    #190623
    Robin W
    Moderator

    ok, try this, if this fails I will load it to my test site and get it right for you

    add_action ('bbp_theme_after_reply_author_admin_details', 'rew_add_email') ;
    
    function rew_add_email () {
    	$email = bbp_get_author_email (bbp_get_reply_id () ) ;
    	if (!empty ($email))
    		echo '<p>'.$email ;
    }
    #190618
    Clivesmith
    Participant

    Thank you Robin for your help.

    with your code I get the word Array under the IP address not the Email.

    Clive

    #190617
    Robin W
    Moderator

    untested (as I’ve not got anonymous set on my test site, and I’m on another project) but this should work

    add_action ('bbp_theme_after_reply_author_admin_details', 'rew_add_email') ;
    
    function rew_add_email () {
    	$email = get_post_meta ( bbp_get_reply_id () , '_bbp_anonymous_email' ) ;
    	if (!empty ($email))
    		echo '<p>'.$email ;
    }

    Add this to your functions file.

    This will put the email after the ip address on anonymous topics and replies for admins only

    If it doesn’t work come back and I’ll do some testing

    #190612
    Robin W
    Moderator

    ok, do you know how to add code to your functions file if I give you some

    #190577
    Robin W
    Moderator
    add_action( 'bbp_template_before_forums_index' , 'rew_shortcode' ) ;
    add_action( 'bbp_template_before_topics_loop' , 'rew_shortcode' ) ;
    
    function rew_shortcode() {
    	echo '<div class="social_login" >' ;
    	echo '<br>' ;
    	echo 'Inicia sesión con su cuenta de redes sociales y participa en el foro' ;
    	echo '</br><br>' ;
     	echo do_shortcode('[wordpress_social_login]'); 
    	echo '</br>' ;
    	echo '</div>' ;
     }
    #190574
    principiante
    Participant

    Hi Robin,
    That is perfect!
    Please, how can I add text:
    “Inicia sesión con su cuenta de redes sociales y participa en el foro”
    before social login shortcode?
    Thank you!

    #190573
    themichaelglenn
    Participant

    @crookie I’m having the same problem. The BBSpoiler button works if I’m editing a post or a page, but it doesn’t appear at all in tinyMCE in bbPress. I’ve tried using tinyMCE Advanced, and the standard WordPress tinyMCE, both with the same results.

    I’m currently working on a bbPress tinyMCE plugin, to allow me to include specific buttons in the forum editor, and if I can figure out how to make that work with BBSpoiler I’ll post an update here.

    I’ve tried to look through the code for BBSpoiler, and I’m guessing that it’s missing an action or a filter to hook into the bbPress tinyMCE (but I don’t honestly understand actions, filters or hooks, so I could be completely wrong.)

    #190560
    alriknijdam
    Participant

    Sorry for the late answer, I missed your last reply because I forgot the ‘notify me’ checkbox.

    I took a look in phpMyAdmin and the menu_order is non of the above, it is 2
    If you visit a topic you can also see that by looking at the $reply_position = get_post_field( 'menu_order', $reply_id ); value 🙂

    #190555
    chumtarou
    Participant

    Would anyone know how to add placeholder text into the visual editor version of the text area for forums.

    Once we enable the visual editor option mentioned here, this option from WPMU no longer works.

    Thanks very much in advance.

    #190553
    liderxlt
    Participant

    Update with more information, I am using the wpallimport plugin, it allows to use PHP functions.

    Which allow to add hooks before, during and after importing.
    All the information here >> http://www.wpallimport.com/documentation/advanced/action-reference/

    <?php
    
    add_action( 'pmxi_saved_post', 'soflyy_forum_data', 10, 3 );
    
    function soflyy_forum_data( $post_id, $xml_record, $is_update ) {
    	$exped = array('1','3','5','7','9','11');//ID OF THE FILE OF TOPIC
    	$actualiz = array('2','4','6','8','10','12');//ID OF THE FILE OF REPLY
    	$import_id = ( isset( $_GET['id'] ) ? $_GET['id'] : ( isset( $_GET['import_id'] ) ? $_GET['import_id'] : 'new' ) );
    
    	if ( in_array($import_id,$exped) ) {
    		// Topics import - 1 esel id de la importacion
    		$parent_forum = get_post_meta( $post_id, '_bbp_forum_id', true );
    		if ( $parent_forum != 0 ) {
    			$args = array(
    				'ID' => $post_id,
    				'post_parent' => $parent_forum
    				);
    			wp_update_post( $args );
    			update_post_meta( $post_id, '_bbp_topic_id', $post_id );
    			update_post_meta( $post_id, 'post_alter_id', $post_id );
    			update_post_meta( $post_id, '_bbp_last_active_time', date( "Y-m-d H:i:s", time() ) );
    		}
    	} elseif ( in_array($import_id,$actualiz) ) {
    		// Replies import - 2 esel id de la importacion
    		$old_topic_id = get_post_meta( $post_id, '_bbp_topic_id', true );
    		$post = get_posts( array(
    			'post_type' => 'topic',
    			'meta_key' => '_old_topic_id',
    			'meta_value' => $old_topic_id
    			) );
    		if ( $post ) {
    			$new_topic_id = $post[0]->ID;
    			$args = array(
    				'ID' => $post_id,
    				'post_parent' => $new_topic_id
    				);
    			wp_update_post( $args );
    			update_post_meta( $post_id, '_bbp_topic_id', $new_topic_id );
    			update_post_meta( $post_id, '_edit_last', 1 );
    			
    			//wp_update_post( $post_id,'post_parent',$new_topic_id );
    		}
    	}
    }
    ?>
    

    I have tried adding hooks like

    add_action( 'pmxi_update_post_meta','bbp_notify_subscribers',10,3);
    add_action( 'bbp_new_reply','bbp_notify_topic_subscribers', 10, 3 );
    add_action( 'bbp_new_reply','bbp_notify_topic_subscribers', 10, 3 );

    But without success.

    I hope this information is useful.

    regards…

    #190552
    Robin W
    Moderator

    add this to your theme’s functions file

    add_action( 'bbp_template_before_forums_index' , 'rew_shortcode' ) ;
    add_action( 'bbp_template_before_topics_loop' , 'rew_shortcode' ) ;
    
    function rew_shortcode() {
    	echo '<div class="social_login" >' ;
    	echo '<br>' ;
     	echo do_shortcode('[wordpress_social_login]'); 
    	echo '</br>' ;
    	echo '</div>' ;
     }

    It may not be perfect, but without seeing its effect on your theme, I can’t say, so come back when it is in if it needs tidying up

    #190550
    principiante
    Participant

    Im using WordPress Social Login plugin
    Shortcode: [wordpress_social_login]
    Thank you!

    #190549
    liderxlt
    Participant

    Hello!
    First of all I want to clarify that the notifications by email if they arrive if a response is made in the subject from the frontend, in that there is no problem.

    I feed the forum with external information, the updates of new and old topics are published daily. This I do by means of an import code. When users subscribe to a topic and receive new answers, email does not arrive.

    I suspect that is the replic’s import code.

    At the beginning of the code, I identified the id of the theme to link the replic, then updated the data.

    $old_topic_id = get_post_meta( $post_id, '_bbp_topic_id', true );
    		$post = get_posts( array(
    			'post_type' => 'topic',
    			'meta_key' => '_old_topic_id',
    			'meta_value' => $old_topic_id
    			) );
    		if ( $post ) {
    			$new_topic_id = $post[0]->ID;
    			$args = array(
    				'ID' => $post_id,
    				'post_parent' => $new_topic_id
    				);
    			wp_update_post( $args );
    			update_post_meta( $post_id, '_bbp_topic_id', $new_topic_id );
    			update_post_meta( $post_id, '_edit_last', 1 );
    		}

    The import of topic and replic is a success, except for the detail that does not motivate users subscribed to forum and topic.

    Regards!

Viewing 25 results - 4,401 through 4,425 (of 32,481 total)
Skip to toolbar