1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Icewind Clone Node 1.0.3

Clones (copies) a node including permissions and moderators

  1. Lawrence

    Lawrence Well-Known Member

    Lawrence submitted a new resource:

    Icewind Clone Node - Clones (copies) a node including permissions and moderators.

    Read more about this resource...
     
    Mirovinger likes this.
  2. TBDragon

    TBDragon Active Member

    first thanks for this work

    u mean by this after click clone i can change what i want and after click clone will clone the rest setting where i didnt change right ?!
     
  3. Rob

    Rob Well-Known Member

    This should be native, stock functionality @Mike

    Great mod!
     
  4. TBDragon

    TBDragon Active Member

    ya hope it can be done for usergroup also ^_^
     
    Rob likes this.
  5. Lawrence

    Lawrence Well-Known Member

    Yes.

    You do not need to make any changes unless prompted to. Example, link forums require a unique title, and a pop-up will let you know that the title is already in use when you hit the Clone button.
     
  6. Slind

    Slind Active Member

    Is it possible to clone the childs if you clone a node?
     
  7. Lawrence

    Lawrence Well-Known Member

    Cloning child nodes of a parent node you are cloning is not done automatically. You can clone child nodes and set their parent to the newly cloned parent though.
     
  8. Slind

    Slind Active Member

    Hm okay, will you add this in the future? :)
     
  9. Lawrence

    Lawrence Well-Known Member

    I'm not sure. I would find it pretty useful for cloning forums for guilds that have multiple child forums. The problem would be the automatic cloning of child forums that may require unique information (if the parent has a link forum for example). A check could go in to not clone child link forums or at least add something extra to the Title that an admin can change later.

    With the above said, it is something I would like to have implemented. In my case it would save a lot of work.
     
    Maestro2k5, otto and Slind like this.
  10. Maestro2k5

    Maestro2k5 Member

    you can also copy subforums, ie a category and its sub-forums
     
  11. Rob

    Rob Well-Known Member

    I have found a bug!!

    When duplicating a "page" node, the template content (on the second tab) clones fine, however it erases the template content on the original node.
     
    Lawrence likes this.
  12. Lawrence

    Lawrence Well-Known Member

    Thanks for reporting it, hence the "like". I just tested this and the bug is confirmed. This is odd as the original node, regardless of node type, is not touched. At least the data was not lost. When I tested it on my site, I copied and pasted the cloned page's html back into the original page and it saved it normally, but need to get this fixed as it defeats the purpose of cloning, :)
     
    Rob likes this.
  13. Lawrence

    Lawrence Well-Known Member

    @Rob fixed on my dev site. The original template id for the HTML code was used when cloning the page, therefore the template for the HTML was re-assigned to the new cloned page (that is why the original page that was cloned did not have any HTML, after the new cloned page was saved). I set the template id to 0 and now during the cloning save the cloned template is now given it's own template id. The bug was caused by an oversight on my part.

    I'll re-package it and upload as a new version here.
     
  14. Lawrence

    Lawrence Well-Known Member

    Lawrence updated Icewind Clone Node:

    Note, the readme says Icewind Clone Nodes version 1.0 and 1.0.1 are compatible with XF 1.4 Beta, I just discovered a compatibility issue pertaining to cloning Forum Nodes on XF 1.4 Beta. The compatibility issue will not cause any loss of data, it just won't allow the Forum Node to be cloned. I'll try to keep the next version compatible with XF versions < 1.4, but no guarantees at this point.
     
    Last edited: Aug 7, 2014
  15. jauburn

    jauburn Well-Known Member

    This is a fantastic idea, and I am eagerly awaiting the release of the version that supports 1.4.

    Question/suggestion: Would it be possible to create a feature that allows one to empty out the copied categories forums? I have a situation where I need to clone an entire category/forum structure for a new start. But after the clone/copy operation, I would like to empty out the newly cloned forums for a fresh start.

    Thanks.
     
  16. Lawrence

    Lawrence Well-Known Member

    Hi, if I understand correctly, posts and threads do not get cloned, only the forum settings, permissions, and moderators. Currently this add-on does not clone child nodes when you clone their parent node.
     
    jauburn likes this.
  17. jauburn

    jauburn Well-Known Member

    That's great.

    That's too bad. I would want to clone a category and have all of the forums cloned with it.
     
  18. Lawrence

    Lawrence Well-Known Member

  19. Rob

    Rob Well-Known Member

    Hi @Lawrence,

    I know this is a little out of scope for expected "stock functionality" but would you mind updating this to work with @Jake Bunce's Nodes as Tabs?
    I just get an error when trying to clone a node and I assume you would just need to pass a few more params.

    Jakes mod is one of the most popular here so I know others would have this issue at some point.

    The specific error I get when submitting is Mysqli statement execute error : Field 'nat_tab_text' doesn't have a default value. The node actually does get cloned but you cant go back in and edit a thing because trying to save it produces the above error again.

    Thanks for your help,

    Rob
     
    Last edited: Sep 7, 2014
  20. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    "nat_tab_text" actually is not a field in my addon.

    Please post the full error message including the stack trace.
     

Share This Page