Code: Select all
## 2005-12-11 - Version 1.0.4a
## no change in functionality, but minor code changes in clone_target_forum_selection.tpl as required for validation
##
## 2005-12-11 - Version 1.0.4
## changed code so that by default (a) the users who are authorized to create polls in a forum are the only
## ones who can clone posts in that forum and (b) admins or moderators in a forum are the only ones who can clones posts
## in that forum in the name of the original poster. Also updated the instructions a bit.
##
## added a mod to the mod in the contrib folder that will allow the admin to set cloning permissions in the ACP
## in the same way the admin can fine tune permissions for other phpbb actions
##
## 2005-11-19 - Version 1.0.3a
## fixed code so that when you create the new post in original poster's name and then try to preview the
## post, it remembers that you are posting in original poster's name
##
## 2005-11-13 - Version 1.0.3
## added feature that allows admin to decide whether to create the new cloned post in the name of original poster
## or in the name of the user doing the cloning
Bealzabubba wrote: ...I haven't tracked it down yet but I believe the error was introduced by the ACP addon MOD script...
Bealzabubba wrote: ...Otherwise I only have one problem: the mod is cloning messages okay but not the survey associated with the message. Any hints on where to look for this problem?
asinshesq wrote: Take a look at the author's notes for the clone mod. Those notes give you extra changes you need to make if you are using this with the tabulated survey mod. If you made those changes and are still having problems, let me know.
Code: Select all
FIND
if( $mode == 'editpost' && $post_info['topic_survey'] == 1)
Bealzabubba wrote: Here's what I found so far...
There appears to be an error in the 4 changes.
#1 is okay.
#2 is okay
#3 is okay but should be repeated for two seperate ocurances of the FIND code. Missing one of these appears to be what caused the survey parameters not to clone.
#4 is a duplicate of #1 and appears unnecessary....
Error in posting
DEBUG MODE
INSERT INTO phpbb_posts (topic_id, forum_id, poster_id, post_username, post_time, poster_ip, enable_bbcode, enable_html, enable_smilies, enable_sig) VALUES (, 1, 2, '', 1141043083, '7f000001', 1, 0, 1, 1)
Line : 278
File : functions_post.php
Code: Select all
$topic_id = $db->sql_nextid();
vag-forum wrote: ...I've an issue when I try to clone post keeping the original poster name:
Error in posting
DEBUG MODE
INSERT INTO phpbb_posts (topic_id, forum_id, poster_id, post_username, post_time, poster_ip, enable_bbcode, enable_html, enable_smilies, enable_sig) VALUES (, 1, 2, '', 1141043083, '7f000001', 1, 0, 1, 1)
Line : 278
File : functions_post.php
line 278:Code: Select all
$topic_id = $db->sql_nextid();