+1 to super glue gel as well
Depending on where or what I am attaching, sometimes I will put super glue on the frag/plug, then a small piece of aquarium epoxy putty, then super glue and then place in the tank where I want. This makes it much easier to attach to some of the uneven rocks.