HOW TO MAKE THE CONFIRMATION CODE ONLY FOR ANONYMOUS Come to this instalation after you finish with INSTALL.TXT BACKUP your files!!! It is easy! I hope that you did backup all your changed files. The backup files I'll call "original file". ---------------------------------------------------------- OPEN: modules/Forums/viewtopic.php FIND: $new_topic_url = append_sid("posting.$phpEx?mode=newtopic&" . POST_FORUM_URL . "=$forum_id"); CHANGE TO: if( $userdata['session_logged_in'] ){ $new_topic_url = append_sid("posting1.$phpEx?mode=newtopic&" . POST_FORUM_URL . "=$forum_id"); }else{ $new_topic_url = append_sid("posting.$phpEx?mode=newtopic&" . POST_FORUM_URL . "=$forum_id"); } FIND: (it is the next line) $reply_topic_url = append_sid("posting.$phpEx?mode=reply&" . POST_TOPIC_URL . "=$topic_id"); CHANGE TO: if( $userdata['session_logged_in'] ){ $reply_topic_url = append_sid("posting1.$phpEx?mode=reply&" . POST_TOPIC_URL . "=$topic_id"); }else{ $reply_topic_url = append_sid("posting.$phpEx?mode=reply&" . POST_TOPIC_URL . "=$topic_id"); } FIND: $temp_url = append_sid("posting.$phpEx?mode=quote&" . POST_POST_URL . "=" . $postrow[$i]['post_id']); CHANGE TO: if( $userdata['session_logged_in'] ){ $temp_url = append_sid("posting1.$phpEx?mode=quote&" . POST_POST_URL . "=" . $postrow[$i]['post_id']); }else{ $temp_url = append_sid("posting.$phpEx?mode=quote&" . POST_POST_URL . "=" . $postrow[$i]['post_id']); } FIND: $temp_url = append_sid("posting.$phpEx?mode=editpost&" . POST_POST_URL . "=" . $postrow[$i]['post_id']); CHANGE TO: $temp_url = append_sid("posting1.$phpEx?mode=editpost&" . POST_POST_URL . "=" . $postrow[$i]['post_id']); FIND: $temp_url = append_sid("posting.$phpEx?mode=delete&" . POST_POST_URL . "=" . $postrow[$i]['post_id']); CHANGE TO: $temp_url = append_sid("posting1.$phpEx?mode=delete&" . POST_POST_URL . "=" . $postrow[$i]['post_id']); SAVE the file. You MUST upload this file LAST!!! (THIS IS THE LAST FILE TO UPLOAD) ----------------------------------------------------- OPEN: posting.php (original file) This is the file that you had before to edit it for confirmation code. If you lost it, take it from the phpNuke instalation packet for the version you use. FIND: (the code below is from phpNuke 7.3) // // Start session management // $userdata = session_pagestart($user_ip, PAGE_POSTING, $nukeuser); init_userprefs($userdata) ADD UNDER: if (!$userdata['session_logged_in']) { die ("GO get some cookies and come back again..."); } FIND: // // Include page header // include("includes/page_header.php"); $template->set_filenames(array( 'body' => 'posting_body.tpl', CHANGE the last line to: (we actualy change posting_body.tpl to posting_body1.tpl ) 'body' => 'posting_body1.tpl', FIND: // // Output confirmation page // include("includes/page_header.php"); $template->set_filenames(array( 'confirm_body' => 'confirm_body.tpl') CHANGE the last line to: (we actualy change confirm_body.tpl to confirm_body1.tpl ) 'confirm_body' => 'confirm_body1.tpl') FIND: 'U_REVIEW_TOPIC' => ( $mode == 'reply' ) ? append_sid("posting.$phpEx?mode=topicreview&" . POST_TOPIC_URL . "=$topic_id&popup=1") : '', CHANGE TO: 'U_REVIEW_TOPIC' => ( $mode == 'reply' ) ? append_sid("posting1.$phpEx?mode=topicreview&" . POST_TOPIC_URL . "=$topic_id&popup=1") : '', FIND: (few lines down) 'S_POST_ACTION' => append_sid("posting.$phpEx"), CHANGE TO: 'S_POST_ACTION' => append_sid("posting1.$phpEx"), FIND: header($header_location . append_sid("login.$phpEx?redirect=posting.$phpEx&" . $redirect, true)); CHANGE TO: header($header_location . append_sid("login.$phpEx?redirect=posting1.$phpEx&" . $redirect, true)); FIND: 'S_CONFIRM_ACTION' => append_sid("posting.$phpEx"), CHANGE TO: 'S_CONFIRM_ACTION' => append_sid("posting1.$phpEx"), SAVE THIS FILE as posting1.php and upload ------------------------------------------------------------------- OPEN: posting_body.tpl (original) This is the file that you had before to edit it for confirmation code. SAVE this file as posting_body1.tpl and upload ------------------------------------------------------------------- NOW UPLOAD viewtopic.php which you edited first. ------------------------------------------------------------------- That is All. Your registered users wont have to insert confirmation code. Love to All Truden (www.truden.com) P.S. I'm the author of this mode, but I don't own it. It is all yours, and you don't need my permission to do what ever you need to do with it. IT IS YOURS. Nobody has the right to put Copyright on this mode or sell it for profit!!!