May 2017
Beginner to intermediate
536 pages
14h 25m
English
We are going to start discussing the topic details page with topic reply creation. Here, we need to place a form between topic details section and replies section to submit responses to topics. Let's take a look at the template code for creating topic responses:
<?php if(is_user_logged_in()&& ($wpwaf->forum->is_forum_member($post->ID,get_current_user_id() ) || current_user_can('manage_options') )) { ?> <?php if($wpwaf_single_reply_data['msg'] !== '' ){ ?> <div class="wpwaf_topic_msg_<?php echo $wpwaf_single_reply_data['msg_status']; ?>"><?php echo $wpwaf_single_reply_data['msg']; ?></div> <?php } ?> <div class="wpwaf_create_topics_label"><?php _e('Your response','wpwaf'); ?></div> <div id="wpwaf_create_replies"> ...Read now
Unlock full access