Skip to:
Content
Pages
Categories
Search
Top
Bottom

Change topic title on front-page.php

  • @dudd

    Participant

    Hi,

    I need to change the topic title directly on the front-page.php

    i add this code on that file but don’t work …

    ########################################################”

    <p role=”main”>

    <label><?php _e(‘Topic:’); ?>

    <input name=”topic” type=”text” id=”topic” size=”50″ maxlength=”80″ value=”<?php echo esc_attr( get_topic_title() ); ?>” />

    </label>

    </p>

    <?php endif; do_action( ‘edit_form_pre_post’ ); ?>

    <p><label><?php _e(‘Post:’); ?>

    <textarea name=”post_content” cols=”50″ rows=”8″ id=”post_content”><?php echo apply_filters(‘edit_text’, get_post_text() ); ?></textarea>

    </label>

    </p>

    <p class=”submit”>

    <input type=”submit” name=”Submit” value=”<?php echo esc_attr__( ‘Edit Post »’ ); ?>” />

    <input type=”hidden” name=”post_id” value=”<?php post_id(); ?>” />

    <input type=”hidden” name=”topic_id” value=”<?php topic_id(); ?>” />

    </p>

    <p><?php _e(‘Allowed markup:’); ?> <?php allowed_markup(); ?>.
    <?php _e(‘Put code in between backticks.’); ?></p>

    #######################################################################””

Viewing 8 replies - 1 through 8 (of 8 total)
  • @mr_pelle

    Participant

    Can you be more specific, please?

    Anyhow, you cannot use that code without wrapping it in a <form />.

    @mr_pelle

    Participant

    Can you be more specific, please?

    Anyhow, you cannot use that code without wrapping it in a <form />.

    @dudd

    Participant

    I need to add form on my forum front page to edit directly the topic title on it.

    Now, i add this code :

    #####################################################

    <form name=”edit_topic” method=”post” action=””>

    <label><?php _e(‘Topic:’); ?>

    <input name=”topic” type=”text” id=”topic” size=”50″ maxlength=”80″ value=”<?php echo esc_attr( get_topic_title() ); ?>” />

    </label>

    <input type=”submit” name=”Submit” value=”<?php echo esc_attr__( ‘Edit Post »’ ); ?>” />

    </form>

    ########################################################

    but when i clic submit button nothing is happening …

    http://img530.imageshack.us/img530/3108/frontpaged.png

    @dudd

    Participant

    I need to add form on my forum front page to edit directly the topic title on it.

    Now, i add this code :

    #####################################################

    <form name=”edit_topic” method=”post” action=””>

    <label><?php _e(‘Topic:’); ?>

    <input name=”topic” type=”text” id=”topic” size=”50″ maxlength=”80″ value=”<?php echo esc_attr( get_topic_title() ); ?>” />

    </label>

    <input type=”submit” name=”Submit” value=”<?php echo esc_attr__( ‘Edit Post »’ ); ?>” />

    </form>

    ########################################################

    but when i clic submit button nothing is happening …

    http://img530.imageshack.us/img530/3108/frontpaged.png

    @movienumbers

    Member

    thanks!

    @movienumbers

    Member

    thanks!

    @innermastery

    Member

    Hi,thanks for sharing the information.Really very nice tips are provided here.

    @innermastery

    Member

    Hi,thanks for sharing the information.Really very nice tips are provided here.

Viewing 8 replies - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.
Skip to toolbar