bbPress - TalkPress

Foro WordPress » Otros WordPress y similares » bbPress - TalkPress

Acerca del plugin report post (6 mensajes)

Acerca de este hilo

Tags

Etiquetas:

No hay tags todavía.

  1. Jonathan

    5.0
    Antiguedad: Sep 2009
    Mensajes: 148

    offline

    Publicado hace 2 años
    #

    Hola. alguien sabe como se activa el plugin report-post???? creo q hay q cambiar algo en post.php pero la verdad no se q hay q poner :S

    Solo Se
    Que Nada Se
  2. Fernando

    El culpable de esto
    Antiguedad: Dic 2008
    Mensajes: 2.448

    offline

    Publicado hace 2 años
    #

    Si claro, lo pone en el readme: http://bbpress.org/plugins/topic/report-post/installation/

    Aquí lo tienes en uso, es donde pone "Avisar"

  3. Jonathan

    5.0
    Antiguedad: Sep 2009
    Mensajes: 148

    offline

    Publicado hace 2 años
    #

    NO le cacho en q parte va
    este es mi bb-post.php

    <?php
    require('./bb-load.php');
    
    bb_auth('logged_in');
    
    if ( $throttle_time = bb_get_option( 'throttle_time' ) )
    	if ( isset($bb_current_user->data->last_posted) && time() < $bb_current_user->data->last_posted + $throttle_time && !bb_current_user_can('throttle') )
    		bb_die(__('Slow down; you move too fast.'));
    
    if ( !$post_content = trim($_POST['post_content']) )
    	bb_die(__('You need to actually submit some content!'));
    
    if ( isset($_POST['topic']) && $forum_id = (int) $_POST['forum_id'] ) {
    	if ( !bb_current_user_can('write_posts') )
    		bb_die(__('You are not allowed to post.  Are you logged in?'));
    
    	if ( !bb_current_user_can( 'write_topic', $forum_id ) )
    		bb_die(__('You are not allowed to write new topics.'));
    
    	bb_check_admin_referer( 'create-topic' );
    
    	$topic = trim( $_POST['topic'] );
    	$tags  = trim( $_POST['tags']  );
    
    	if ('' == $topic)
    		bb_die(__('Please enter a topic title'));
    
    	$topic_id = bb_new_topic( $topic, $forum_id, $tags );
    
    } elseif ( isset($_POST['topic_id'] ) ) {
    	$topic_id = (int) $_POST['topic_id'];
    	bb_check_admin_referer( 'create-post_' . $topic_id );
    }
    
    if ( !bb_current_user_can( 'write_post', $topic_id ) )
    	bb_die(__('You are not allowed to post.  Are you logged in?'));
    
    if ( !topic_is_open( $topic_id ) )
    	bb_die(__('This topic has been closed'));
    
    $post_id = bb_new_post( $topic_id, $_POST['post_content'] );
    
    $tags  = trim( $_POST['tags']  );
    bb_add_topic_tags( $topic_id, $tags );
    
    $link = get_post_link($post_id);
    
    $topic = get_topic( $topic_id, false );
    
    if ( $topic->topic_posts )
    	$link = add_query_arg( 'replies', $topic->topic_posts, $link );
    
    // This action used to be bb_post.php, changed to avoid conflict in bb_load_template()
    do_action( 'bb-post.php', $post_id );
    if ($post_id)
    	wp_redirect( $link );
    else
    	wp_redirect( bb_get_uri(null, null, BB_URI_CONTEXT_HEADER) );
    exit;
    
    ?>

    en q parte le pongo el <?php report_post_link(); ?>

    Solo Se
    Que Nada Se
  4. Fernando

    El culpable de esto
    Antiguedad: Dic 2008
    Mensajes: 2.448

    offline

    Publicado hace 2 años
    #

  5. Sabogal

    5.0
    Antiguedad: Dic 2008
    Mensajes: 254

    offline

    Publicado hace 2 años
    #

    Te sugiero hacer una copia de seguridad de tu base de datos antes de instalar ese plugin, pues hace un par de meses lo instalé y me dañó la base de datos al eliminar todos los saltos de línea de todos mis post.

    Saludos!

  6. Jonathan

    5.0
    Antiguedad: Sep 2009
    Mensajes: 148

    offline

    Publicado hace 2 años
    #

    Te sugiero hacer una copia de seguridad de tu base de datos antes de instalar ese plugin, pues hace un par de meses lo instalé y me dañó la base de datos al eliminar todos los saltos de línea de todos mis post.
    Saludos!

    gracias por el consejo lo copie al tiro

    Es en post.php de tu plantilla

    Gracias denuevo fernando ya lo pille

    Solo Se
    Que Nada Se

Responder

Debes Identificarte para publicar.

Foro WordPress » Otros WordPress y similares » bbPress - TalkPress